cca6c071369c4c2a2cce1187aee0b446ba44899a
[gnulib.git] / ChangeLog
1 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2
3         getlogin-tests: allow errno == ENOENT
4         * tests/test-getlogin.c (main): Skip tests if getlogin fails
5         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
6         when running a test in an Emacs shell buffer.
7
8 2012-11-08  Jim Meyering  <jim@meyering.net>
9
10         tests/nap.h: avoid warning about unused variable
11         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
12
13         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
14         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
15         white space before each of the special-cased file names, to avoid
16         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
17         in http://bugs.gnu.org/12830.
18
19 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20
21         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
22         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
23         fails with errno == EBADF when fd is opened with O_PATH.
24         Reported by Jim Meyering in
25         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
26         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
27         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
28
29 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30
31         test-utimens: speed up by taking shorter naps
32         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33         New functions.
34         (nap): Use them, to do a better job of guessing the delay.
35         On Fedora 17 with ext4 atop md atop hard disks, this made
36         test-utimens run 10x faster, because the test napped for
37         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
38         <http://bugs.gnu.org/12820#11>.
39
40 2012-11-07  Jim Meyering  <jim@meyering.net>
41
42         mountlist.c: fix a compilation failure
43         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
44         I introduced while transforming commit v0.0-7683-g613bcb6
45
46 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
47
48         errno: port to LynxOS 178 2.2.2
49         Problem reported by Joel Brobecker in
50         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
51         * doc/posix-headers/errno.texi (errno.h): Document this.
52         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
53         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
54         Supply a string for EILSEQ.
55         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
56
57 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
58
59         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
60         Linux kernel 2.6.39 introduced O_PATH (see
61         <http://lwn.net/Articles/433854/>) and this is a better fallback
62         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
63         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
64         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
65         * lib/fcntl.in.h (O_ACCMODE):
66         * tests/test-fcntl-h.c (main):
67         Do not reject O_ACCMODE merely because it has more than the
68         minimal number of bits, as POSIX allows extensions here.
69
70 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
71
72         mountlist: do not classify a bind-mounted dir entry as "dummy"
73         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
74         the "none"-testing clause.
75         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
76         exception for bind-mounted directories.
77
78 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
79
80         quote: provide a means to escape strings with nul characters
81         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
82         (quote, quote_n): Rename formal arguments for consistency with
83         quotearg.
84
85 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86
87         test-raise: don't assume 199 is an invalid signal
88         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
89
90         sh-quote-tests: port to Solaris 9
91         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
92         Problem reported by Dagobert Michelsen in
93         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
94
95 2012-10-28  Jim Meyering  <jim@meyering.net>
96
97         maint.mk: rename a new configurable variable
98         * top/maint.mk (_gl_translatable_string_re): Rename from
99         translation-markers: _gl_ prefix to insulate from user Makefile code,
100         and the _re suffix to inform that it's a regular expression.
101
102 2012-10-26  Eric Blake  <eblake@redhat.com>
103
104         maint.mk: let packages tweak sc_po_check pattern
105         * top/maint.mk (sc_po_check): Add translation-markers, to allow
106         finding files with other translation markers.
107
108 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
109
110         euidaccess: speed up 'configure' on GNU hosts
111         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
112         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
113         it's needed only in this case.  Use AC_CHECK_DECLS, not
114         AC_CHECK_DECLS_ONCE.
115         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
116         or AC_REQUIRE for AC_FUNC_GETGROUPS.
117
118         * lib/regexec.c (re_search_internal): Fix grammar in comment.
119
120 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
121
122         fchmodat, fchownat, fstatat: port to non-inlining compilers
123         Problem reported for FreeBSD 9 by Jim Meyering in
124         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
125         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
126         New files, which define FCHMODAT_INLINE etc.
127         * lib/fchmodat.c (FCHMODAT_INLINE):
128         * lib/fchownat.c (FCHOWNAT_INLINE):
129         * lib/fstatat.c (FSTATAT_INLINE):
130         Remove, as chmodat.c etc. now do this.
131         * modules/fchmodat (Files): Add lib/chmodat.c.
132         * modules/fchownat (Files): Add lib/chownat.c.
133         * modules/fstatat (Files): Add lib/statat.c.
134
135 2012-10-15  Jim Meyering  <jim@meyering.net>
136
137         fchmodat.c, fchownat.c: compile-impeding typos
138         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
139         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
140         Introduced in commit v0.0-7636-gd202279.
141
142 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
143
144         fcntl-h: support GNU flags like O_IGNORE_CTTY
145         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
146         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
147         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
148         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
149         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
150         Define to 0 if not already defined.
151         * tests/test-fcntl-h.c: Test these new flags.
152
153 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
154
155         faccessat, etc.: support AT_FDCWD-only use
156         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
157         this function only if its first argument is AT_FDCWD.
158         Emacs wants faccessat for AT_EACCESS but not for any first-arg
159         values other than AT_FDCWD, so it doesn't want all the openat
160         machinery with fchdir etc.
161         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
162         * modules/fstatat, modules/mkdirat, modules/openat (Files):
163         * modules/unlinkat (Files):
164         Remove lib/openat-priv.h, as at-internal supplies this file.
165         Removing this file here allows us to support programs like Emacs
166         that avoid at-internal.
167
168         faccessat: speed up 'configure' on mainstream hosts
169         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
170         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
171         since it's only on unusual platforms that we need to check for
172         'access', and it's better not to slow 'configure' down on all
173         platforms.
174
175         faccessat: port to Solaris 10
176         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
177         Needed on Solaris 10, which doesn't have AT_EACCESS,
178         so we need the Gnulib fcntl.h, which defines it.
179
180 2012-10-14  Pádraig Brady  <P@draigBrady.com>
181         canonicalize: fix C89 compilation
182         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
183         declarations so C89 is supported.  Also remove the comment
184         referencing memorty allocation as the suggested feature could
185         not be implemented as suggested.
186         Reported by Michael Goffioul.
187
188 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
189
190         group-member: omit unnecessary dependencies
191         This is for Emacs, which has its own allocator and where we
192         don't want to use xalloc.
193         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
194         since we no longer use xmalloc.  Do not include stdbool.h, since
195         the changes below happen to remove the only use of bool.
196         (GROUPBUF_SIZE): New constant.
197         (struct group_info): Remove n_groups member.  Add groupbuf member.
198         This lets us get the groups without using malloc, usually.
199         (free_group_info, get_group_info): Adjust to this.
200         (get_group_info): Return the number of groups found, or -1 on error.
201         Use plain malloc not xmalloc, and treat its failure as if there
202         are no groups, as the user already loses in case of error.
203         (group_member): Simplify, based on changes to get_group_info.
204         * modules/group-member (Depends-on): Remove dependencies on
205         xalloc and stdbool.  Add dependency on xalloc-oversized.
206
207 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
208
209         gethrxtime: port to C++
210         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
211
212 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
213
214         ptsname: fix macro-name typo
215         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
216
217 2012-10-03  Simon Josefsson  <simon@josefsson.org>
218
219         inttostr: Relax license.
220         * modules/inttostr (License): Change from LGPL to LGPLv2+.
221
222 2012-10-03  Eric Blake  <eblake@redhat.com>
223
224         ptsname_r: support ptys returned by FreeBSD posix_openpt
225         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
226         lives in /dev/pts/.
227
228 2012-10-02  Eric Blake  <eblake@redhat.com>
229
230         pselect: reject invalid file descriptors
231         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
232         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
233         * modules/pselect (Depends-on): Add dup2.
234         * doc/posix-functions/pselect.texi (pselect): Document this.
235
236         select: reject invalid file descriptors
237         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
238         * lib/select.c (rpl_select) [!win32]: Work around it.
239         * modules/select (Depends-on): Add dup2.
240         * doc/posix-functions/select.texi (select): Document this.
241
242         select: enhance test
243         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
244         New functions.
245         (test_function): Enhance test.
246         (do_select_bad_fd): Avoid any stale errno values.
247
248         ptsname: reject invalid file descriptors
249         http://www.austingroupbugs.net/view.php?id=503
250         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
252         * modules/stdlib (Makefile.am): Replace witness.
253         * lib/stdlib.in.h (ptsname): Allow for replacement.
254         * modules/ptsname (configure.ac): Trigger replacement.
255         * doc/posix-functions/ptsname.texi (ptsname): Document this.
256
257 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
258
259         hash-pjw-bare: new module
260         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
261         * lib/hash-pjw-bare.h: Likewise.
262         * modules/hash-pjw-bare: New file.
263         * MODULES.html.sh (Misc): Add it.
264
265 2012-10-02  Eric Blake  <eblake@redhat.com>
266
267         manywarnings: cater to more gcc infelicities
268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
269         -Wuninitialized without -O.
270
271 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
272
273         select, poll tests: Make setsockopt invocation effective.
274         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
275         the bind() call.
276         * tests/test-select.h (open_server_socket): Likewise.
277
278 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
279
280         sockets, sys_stat: restore AC_C_INLINE
281         This undoes the 2012-09-22 patch.
282         * m4/sockets.m4 (gl_SOCKETS):
283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
284         Restore AC_C_INLINE, since MSVC requires __inline or _inline
285         and does not support plain 'inline'.  Reported by Bruno Haible in
286         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
287
288 2012-09-30  Bruno Haible  <bruno@clisp.org>
289
290         localeconv tests: Avoid test failure on OpenIndiana.
291         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
292         skip the 'grouping' and 'mon_grouping' tests.
293         Reported by Jim Meyering.
294
295 2012-09-30  Bruno Haible  <bruno@clisp.org>
296
297         havelib: Follow libtool developments.
298         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
299         Suggested by Simon Josefsson.
300
301 2012-09-29  Jim Meyering  <meyering@redhat.com>
302
303         fstatat.c: fix a compile-impeding typo
304         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
305         Introduced in commit v0.0-7636-gd202279.
306         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
307
308 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
309
310         extern-inline: provide a -Wundef safe config.h
311         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
312         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
313         to produce a -Wundef warning free config.h.
314
315 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
316
317         hash-pjw: relax license to LGPLv2+
318         * modules/hash-pjw (License): Relax, with consent of author.
319
320 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
321
322         maint.mk: fix strict vs. lazy variable issues with RELEASE
323         * top/maint.mk (_equal): New function.
324         (member_check): Strip the result to avoid spurious spaces.
325         (url_dir_list): Do not use ifeq, which is strict, as it will
326         require RELEASE_TYPE to be defined.
327         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
328         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
329         (announcement_Cc_alpha,announcement_mail_headers_alpha)
330         (announcement_Cc_beta,announcement_mail_headers_beta)
331         (announcement_Cc_stable,announcement_mail_headers_stable): these.
332         (release): Do not depend on $(release-type), as it forces its
333         evaluation.  Bounce to it.
334
335 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
336
337         maint.mk: formatting changes
338         * top/maint.mk: Indent bodies of if's.
339
340 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
341
342         maint.mk: factor the validation of RELEASE_TYPE
343         With help from Jim Meyering.
344         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
345         * top/maint.mk (_empty, _sp): Move their definition earlier.
346         (member-check, release-type): New.
347         Use the latter instead of $(RELEASE_TYPE).
348         Remove now useless local checks.
349
350 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
351
352         maint.mk: provide "make upload" to ease uploading
353         See
354         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
355         Do not depend simply on the current $(VERSION), as there may have been
356         new commits since the tarball generation.  Rather, rely on $(RELEASE),
357         as "make release-commit" already does.
358
359         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
360         "make TYPE".
361
362         * top/maint.mk (upload_command, upload, release): New.
363         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
364         (VERSION): first word of $(RELEASE) is always right.
365         (emit_upload_commands): Adjust.
366         * top/README-release: Update.
367
368 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
369
370         maint.mk: silent rules
371         With help from Stefano Lattarini.
372         * top/maint.mk (writable-files): Use $(AM_V_GEN).
373         (announcement): Use $(AM_V_at).
374
375 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
376
377         localename: port gl_locale_name_thread_unsafe to FreeBSD
378         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
379         and use the simpler FreeBSD implementation on Mac OS X as well.
380         Original idea suggested by Ed Maste in
381         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
382
383 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
384
385         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
386         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
387         * lib/mbuiter.c, lib/xsize.c: New files.
388         * lib/binary-io.h (BINARY_IO_INLINE):
389         * lib/eealloc.h (EEALLOC_INLINE):
390         * lib/mbfile.h (MBFILE_INLINE):
391         * lib/mbiter.h (MBITER_INLINE):
392         * lib/mbuiter.h (MBUITER_INLINE):
393         * lib/xsize.h (XSIZE_INLINE):
394         New macros.
395         Replace all uses of 'static inline' with them.
396         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
397         * m4/eealloc.m4 (gl_EEALLOC):
398         * m4/mbfile.m4 (gl_MBFILE):
399         * m4/mbiter.m4 (gl_MBITER):
400         * m4/xsize.m4 (gl_XSIZE):
401         Do not require AC_C_INLINE.
402         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
403         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
404         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
405         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
406         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
407         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
408         * modules/binary-io, modules/eealloc, modules/mbfile:
409         * modules/mbiter, modules/mbuiter:
410         (Depends-on): Add extern-inline.
411
412         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
413         * lib/pipe-filter-aux.c: New file.
414         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
415         Replace all uses of 'static inline' with it.
416         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
417         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
418         (filter_retcode): No real need for inline here.
419         * modules/pipe-filter-gi, modules/pipe-filter-ii:
420         (Files): Add lib/pipe-filter-aux.c.
421         (Depends-on): Add extern-inline.
422         (configure.ac): Do not require AC_C_INLINE.
423         (lib_SOURCES): Add pipe-filter-aux.c.
424
425         fdutimensat: omit unnecessary AC_C_INLINE
426         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
427
428         fchmodat, fchownat, fstatat: use extern-inline
429         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
430         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
431         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
432         New macros.
433         * lib/openat.h:
434         Replace all uses of 'static inline' with them.
435         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
436         * modules/fchmodat, modules/fchownat, modules/fstatat:
437         * modules/openat-h:
438         (Depends-on):
439         Add extern-inline.
440         (configure.ac): Remove AC_C_INLINE.
441
442         acl, mbchar, priv-set: use extern-inline
443         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
444         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
445         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
446         New macros.
447         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
448         Replace all uses of 'static inline' with it.
449         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
450         * m4/acl.m4 (gl_FUNC_ACL):
451         * m4/mbchar.m4 (gl_MBCHAR):
452         * m4/priv-set.m4 (gl_PRIV_SET):
453         Remove AC_C_INLINE, since 'inline' is no longer used directly.
454         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
455         Add extern-inline.
456
457         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
458         * m4/sockets.m4 (gl_SOCKETS):
459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
460         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
461         environments where it's already guaranteed to work, so we needn't
462         check for it at 'configure'-time.
463
464         tls-tests: omit unnecessary 'inline'
465         * tests/test-tls.c (perhaps_yield): No longer inline.
466         Simplicity and portability trump efficiency in test cases.
467
468         utimens-tests: avoid unnecessary 'inline'
469         * modules/fdutimensat-tests (configure.ac):
470         * modules/futimens-tests (configure.ac):
471         * modules/utimens-tests (configure.ac):
472         * modules/utimensat-tests (configure.ac):
473         Remove AC_C_INLINE.
474         * tests/test-utimens-common.h (ctime_compare):
475         No longer inline.  Simplicity and portability trump efficiency here.
476
477         misc: don't limit commentary to inline functions
478         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
479         * lib/xalloc-oversized.h, lib/xsize.h:
480         Contrast macros to functions in general, not just to inline functions,
481         when the commentary does not apply only to inline functions.
482
483 2012-09-20  Jim Meyering  <meyering@redhat.com>
484
485         non-recursive-gnulib-prefix-hack: new module
486         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
487         the file that originated in Bison.
488         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
489         largely copied from a snippet that resided in bison's configure.ac.
490         * modules/non-recursive-gnulib-prefix-hack: New file.
491         * MODULES.html.sh (Support for maintaining and releasing projects):
492         Add it.
493
494 2012-09-18  Jim Meyering  <meyering@redhat.com>
495
496         maint.mk: generalize _gl_tight_scope for non-recursive make
497         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
498         that *.h would describe additional .h files in the directory
499         specified by $(_gl_TS_dir).  I.e., add this...
500         (_gl_TS_other_headers): New variable.
501
502         maint.mk: exempt trailing blanks found in "binary" files
503         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
504         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
505         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
506
507 2012-09-17  Jim Meyering  <meyering@redhat.com>
508
509         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
510         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
511         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
512         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
513
514 2012-09-17  Jim Meyering  <meyering@redhat.com>
515
516         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
517         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
518         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
519         It is not in the same category as "exit (0)" or "exit (1)", and
520         besides, I know of no symbolic name for that 77.  Reported by
521         Richard W.M. Jones in
522         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
523
524 2012-09-17  Jim Meyering  <meyering@redhat.com>
525
526         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
527         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
528         all uses of #define, not just those that start in column 1.
529         Richard W.M. Jones reported a false positive in
530         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
531
532 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
533
534         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
535         * lib/localcharset.c (locale_charset) [DARWIN7]:
536         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
537         as these two values are incompatible.  Problem reported by Max Horn.
538         For more discussion, please see
539         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
540
541         doc: document sticky-EOF issue
542         * doc/posix-functions/fgetc.texi (fgetc):
543         * doc/posix-functions/fgets.texi (fgets):
544         * doc/posix-functions/fread.texi (fread):
545         * doc/posix-functions/fscanf.texi (fscanf):
546         * doc/posix-functions/getc.texi (getc):
547         * doc/posix-functions/getchar.texi (getchar):
548         * doc/posix-functions/scanf.texi (scanf):
549         Mention that glibc and default Solaris do not conform to
550         C99 and POSIX-2001 or later, with respect to how getchar
551         etc. behave when feof reports nonzero.
552
553 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
554
555         poll: fix poll(0, NULL, msec)
556         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
557         but nfd is 0.  In that case poll should behave like select.
558
559 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
560             Paolo Bonzini <bonzini@gnu.org>
561
562         poll: fix for systems that can't recv() on a non-socket
563         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
564         is readable.  In this case POLLHUP will not be supported.
565         * doc/posix-functions/poll.texi: Document this.
566
567 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
568
569         poll/select: document portability problems not fixed by Gnulib.
570         * doc/posix-functions/poll.texi: poll does not work well on
571         pipes under Windows.  It has the same limitations as select on
572         BeOS.
573         * doc/posix-functions/select.texi: select does not work well
574         on pipes under Windows.
575
576 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
577
578         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
579         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
580         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
581         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
582
583 2012-09-06  Eric Blake  <eblake@redhat.com>
584
585         net_if: give more details about the bug being fixed
586         * doc/posix-headers/net_if.texi: Add clarification.
587
588 2012-09-05  Eric Blake  <eblake@redhat.com>
589
590         net_if: new module
591         * modules/net_if: New module, borrowing ideas from netinet_in.
592         * m4/net_if_h.m4: New file.
593         * lib/net_if.in.h: Likewise.
594         * doc/posix-headers/net_if.texi (net/if.h): Document it.
595         * MODULES.html.sh (lacking POSIX:2008): Likewise.
596         * tests/test-net_if.c: Make function checks conditional.
597         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
598
599 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
600
601         readutmp: fix non-portable UT_PID use
602         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
603         Use `UT_PID (u) > 0' as absolute condition.
604
605 2012-09-04  Jim Meyering  <meyering@redhat.com>
606
607         fts: reduce two or more trailing spaces to just one, usually
608         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
609         or more slashes, trim all but the final one.  But if a name consists
610         solely of two slashes, don't modify it.  If it consists solely of
611         three or more slashes, strip all but one.
612
613         This is part of the solution to a minor problem with rm:
614         it would print a bogus ELOOP diagnostic when failing to remove
615         the slash-decorated name of a symlink-to-directory:
616
617             $ mkdir d && ln -s d s && env rm -r s/
618             rm: cannot remove 's': Too many levels of symbolic links
619
620         With the change below and a trivial don't-trim-trailing-slashes
621         adjustment to remove.c, it does this:
622
623             $ env rm -r s/
624             rm: cannot remove 's/': Not a directory
625
626         Improved by: Eric Blake
627
628         fts: when there is no risk of overlap, use memcpy, not memmove
629         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
630
631 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
632
633         stdbool: be more compatible with mixed C/C++ compiles
634         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
635         Define to bool, true, false, respectively, as GCC's builtin
636         stdbool.h does.  Problem reported by Michael Goffioul in
637         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
638
639 2012-08-28  Jim Meyering  <meyering@redhat.com>
640
641         revert last change: it was not needed
642         * tests/test-vc-list-files-git.sh: There's already a test for
643         a working git, just below.
644
645 2012-08-28  Jim Meyering  <meyering@redhat.com>
646
647         tests: test-vc-list-files-git.sh: skip if git is not available
648         * tests/test-vc-list-files-git.sh: Skip this test when git is
649         not available.
650
651 2012-08-26  Bruno Haible  <bruno@clisp.org>
652
653         gnulib-tool: Remove no-op option --no-changelog.
654         * gnulib-tool (func_usage): Don't mention --no-changelog.
655         (do_changelog): Remove variable.
656         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
657
658 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
659
660         doc: remove fdl-1.2.texi
661         It is no longer used or maintained, and its use of @acronym
662         is problematic.  See the thread containing
663         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
664         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
665         * doc/old-licenses/fdl-1.2.texi: Remove.
666
667         execinfo: port to FreeBSD
668         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
669         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
670         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
671         * modules/execinfo (Link): Add $(LIB_EXECINFO).
672
673 2012-08-23  Jim Meyering  <meyering@redhat.com>
674
675         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
676         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
677         to placate gcc's -Wold-style-declaration.
678
679 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
680
681         doc: do not use @acronym
682         * doc/inet_ntoa.texi (inet_ntoa):
683         * doc/parse-datetime.texi (Seconds since the Epoch)
684         (Specifying time zone rules):
685         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
686         Don't use @acronym.  Problem reported by John Darlington in
687         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
688
689 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
690
691         stdnoreturn: port to newer GCCs
692         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
693         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
694         Problem reported by Jim Meyering in
695         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
696         Also, rename the 'test' function to a void a clash with the
697         already-supplied 'main' function; this fixes a bug that incorrectly
698         rejected GCC 4.7.1's <stdnoreturn.h>.
699         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
700         Document GCC problem.
701
702 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
703
704         pipe-filter: fix comment typo
705         * lib/pipe-filter.h: Mention correct function.
706
707 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
708
709         execinfo: new module
710         This is for Emacs.  Currently, it provides a no-effect stub
711         on all platforms where it does not already work.
712         It already works on glibc-based systems, and on Solaris 11.
713         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
714         New files.
715         * doc/glibc-headers/execinfo.texi (execinfo.h):
716         * MODULES.html.sh (Misc): Document it.
717
718 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
719
720         extern-inline: support old GCC 'inline'
721         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
722         if available.  This applies to GCC versions 2.7 through 4.2, or
723         when newer GCC is using -fgnu89-inline.  The goal is to address
724         some of the performance issues mentioned by Bruno Haible in
725         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
726
727 2012-08-20  Eric Blake  <eblake@redhat.com>
728
729         maint.mk: avoid redundant file name in message
730         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
731         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
732         (sc_makefile_path_separator_check): Remove bogus $(ME).
733
734 2012-08-20  Mike Frysinger <vapier@gentoo.org>
735
736         timer-time: fix link order when static linking on glibc
737         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
738         _after_ -lrt so that it's significant.
739
740 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
741
742         timespec: omit unnecessary AC_C_INLINE
743         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
744
745         stat-time: omit unnecessary AC_C_INLINE
746         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
747         Do not require AC_C_INLINE.
748
749         ignore-value: omit unnecessary AC_C_INLINE
750         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
751
752         sys_select: avoid 'static inline'
753         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
754
755         mktime: avoid 'static inline'
756         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
757         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
758
759 2012-08-19  Bruno Haible  <bruno@clisp.org>
760
761         gnulib-tool: Improve coding style.
762         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
763         func_emit_lib_Makefile_am.
764         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
765
766 2012-08-19  Bruno Haible  <bruno@clisp.org>
767
768         gnulib-tool: Fix indentation.
769         * gnulib-tool (func_import): Fix indentation.
770
771 2012-08-19  Bruno Haible  <bruno@clisp.org>
772
773         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
774         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
775         on the list of removed files.
776
777 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
778
779         test-parse-datetime: avoid glibc leap-second glitch
780         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
781         with the 2012 rules.  Problem reported by Bruce Dubbs in
782         <http://bugs.gnu.org/12206>.
783
784 2012-08-14  Bruno Haible  <bruno@clisp.org>
785
786         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
787         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
788         from argument.
789         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
790
791 2012-08-14  Eric Blake  <eblake@redhat.com>
792
793         ldexp: relax license
794         * modules/ldexp (License): Trivial relax, since the module only
795         provides a permissively licensed m4 file.
796
797 2012-08-13  Bruno Haible  <bruno@clisp.org>
798
799         gnulib-tool: Fix persistence of --witness-c-macro option.
800         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
801         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
802
803 2012-08-11  Eric Blake  <eblake@redhat.com>
804
805         count-leading-zeros: use a lookup table on non-gcc compilers
806         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
807         alternate implementation, suggested by Jim Meyering.
808
809 2012-08-10  Eric Blake  <eblake@redhat.com>
810
811         count-leading-zeros: new module
812         * modules/count-leading-zeros: New module.
813         * m4/count-leading-zeros.m4: New file.
814         * lib/count-leading-zeros.h: Likewise.
815         * modules/count-leading-zeros-tests: New test.
816         * tests/test-count-leading-zeros.c: New file.
817         * MODULES.html.sh (Integer arithmetic functions): Document it.
818
819 2012-08-07  Simon Josefsson  <simon@josefsson.org>
820             Jim Meyering  <meyering@redhat.com>
821
822         maintainer-makefile: Fix syntax error with dash.
823         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
824         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
825
826 2012-08-05  Jim Meyering  <meyering@redhat.com>
827
828         extern-inline: also ignore -Wmissing-declarations
829         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
830         required with gcc-4.8.0-to-be.
831
832         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
833         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
834         for /error ?([^,]*)/.  This avoids false-positives for strings like
835         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
836
837 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
838
839         gnumakefile: better interaction with Automake-NG
840         * modules/gnumakefile [Makefile.am]: The makefiles generated by
841         Automake-NG always contain a definition of VPATH, even in non-VPATH
842         builds (its value being simply '.' in that case).  So, in the
843         'clean-GNUmakefile' rule, to determine whether running under a
844         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
845         '$(VPATH)' expands to the empty string.
846
847 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
848
849         base64: Use extern C scope in header file, for C++.
850         * lib/base64.h: Add C++ namespace protection.
851
852 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
853
854         stat-time, timespec, u64: support naive out-of-dir builds
855         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
856         Use '#include "foo.h"', not '#include <foo.h>', when including
857         one's own interface.  This works better when configuring with
858         out-of-directory builds, since packages need not add an
859         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
860
861 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
862
863         utimens: use extern-inline
864         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
865         * lib/utimens.h: Add copyright notice, since this is now large enough
866         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
867         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
868         * modules/utimens (Depends-on): Add extern-inline.
869
870         u64: use extern-inline
871         * lib/u64.c: New file.
872         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
873         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
874         * modules/u64 (Files): Add lib/u64.c.
875         (Depends-on): Add extern-inline.
876         (configure.ac): No need to require AC_C_INLINE, since extern-inline
877         does that now.
878         (lib_SOURCES): Add u64.c.
879
880         timespec: use extern-inline
881         * lib/timespec.c: New file.
882         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
883         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
884         * modules/timespec (Files): Add lib/timespec.c.
885         (Depends-on): Add extern-inline.
886         (lib_SOURCES): Add timespec.c.
887
888         stat-time: use extern-inline
889         * lib/stat-time.c: New file.
890         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
891         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
892         * modules/stat-time (Files): Add lib/stat-time.c.
893         (Depends-on): Add extern-inline.
894         (lib_SOURCES): Add stat-time.c.
895
896         extern-inline: new module
897         * modules/extern-inline, m4/extern-inline.m4: New files.
898         This is for better support of 'extern inline' a la ISO C99,
899         with a portable alternative on compilers that do not support
900         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
901         of the Emacs executable, when compiled with debugging disabled,
902         which is a typical way that Emacs is built while developing.
903
904 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
905
906         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
907         * build-aux/do-release-commit-and-tag: Move variable definitions
908         together.
909         ($branch): Instead of defaulting to "master", default to the current
910         branch (as gnu-web-doc-update does).
911         (help): Display the current values of the option arguments.
912         * top/maint.mk (release-commit): New.
913         * top/README-release: Simplify the corresponding step.
914
915 2012-07-30  Eric Blake  <eblake@redhat.com>
916
917         passfd: fix comment on recvfd
918         * lib/passfd.c (recvfd): Fix comment.
919         Reported by Jann Horn <jannhorn@googlemail.com>.
920
921 2012-07-30  Jim Meyering  <meyering@redhat.com>
922
923         maint.mk: avoid a sub-shell
924         * top/maint.mk (release-prep): Remove unneeded sub-shell.
925
926 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
927
928         maint.mk: use silent-rules support from Automake
929         * top/maint.mk (news-check, vc-diff-check, announcement)
930         (no-submodule-changes, alpha beta stable, release-prep)
931         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
932
933 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
934
935         maint.mk: provide a web-manual-update target
936         * top/maint.mk: here.
937         * top/README-release: Use it to simplify the web manual update step.
938
939 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
940
941         README-release: shorten the circuit to post a news
942         * top/README-release: Point directly to the news submission form.
943
944 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
945
946         gnu-web-doc-update: fix --help
947         * build-aux/gnu-web-doc-update: The information "top level" was written
948         twice.
949
950 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
951
952         maint.mk: absolute VPATH issue
953         * top/maint.mk (release-prep): Help Git find .git/.
954         From Jim Meyering.
955
956 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
957
958         gitlog-to-changelog: fix previous change
959         * build-aux/gitlog-to-changelog: Fix condition.
960         Add missing ";".
961
962 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
963
964         gitlog-to-changelog: don't expect .git to be in $srcdir
965         Reported by Bruno Haible.
966         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
967         * build-aux/gitlog-to-changelog (&git_dir_option): New.
968         Use it.
969
970 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
971
972         maint.mk: absolute VPATH build fix
973         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
974         $(srcdir) is not a parent of $(builddir).
975
976 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
977
978         clean-temp: Fix memory leak.
979         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
980         'files' members of tmpdir.
981
982 2012-07-27  Jim Meyering  <meyering@redhat.com>
983
984         maint.mk: new rule: refresh-gnulib-patches
985         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
986         Use this rule to refresh them.
987         * top/maint.mk (refresh-gnulib-patches): New rule.
988
989 2012-07-24  Bruno Haible  <bruno@clisp.org>
990
991         gnulib-tool: Fix handling of inctests variable.
992         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
993         Reported by Nick Bowler <nbowler@elliptictech.com>.
994
995 2012-07-22  Bruno Haible  <bruno@clisp.org>
996
997         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
998         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
999         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1000         Remove exemption for getpass.h.
1001         Suggested by Eric Blake.
1002
1003 2012-07-20  Eric Blake  <eblake@redhat.com>
1004
1005         verify: document conflict with -Wnested-externs
1006         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1007
1008         maint.mk: forbid exit(-1)
1009         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1010
1011 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         fsusage: port back to Solaris
1014         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1015         error (fsd not declared) on Solaris 10.  Reported privately by
1016         Andrew Borodin.
1017
1018 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1019
1020         gnu-web-doc-update: fix error messages
1021         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1022
1023         gnu-web-doc-update: check the requirements.
1024         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1025         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1026         * build-aux/bootstrap (find_tool): Comment change.
1027
1028 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1029
1030         maint.mk: minor simplication.
1031         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1032         for default values.
1033
1034 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1035
1036         gitlog-to-changelog: VPATH build issues
1037         If builddir is not a subdirectory of srcdir, running git from it will
1038         fail.
1039         * build-aux/gitlog-to-changelog (--srcdir): New option.
1040
1041 2012-07-15  Bruno Haible  <bruno@clisp.org>
1042
1043         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1044         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1045         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1046         Remove exemption for fpending.h.
1047         Suggested by Eric Blake.
1048
1049 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         pthread_sigmask: fix bug on FreeBSD 9
1052         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1053         Include string.h.
1054         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1055         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1056         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1057         but pthread_sigmask (1729, NULL, NULL) returns zero.
1058         See <http://bugs.gnu.org/11884>.
1059         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1060         by inspecting whether the main call changed the old mask.
1061
1062 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1063
1064         README-release: make it more legible
1065         * top/README-release: Improve typography slightly.
1066
1067 2012-07-15  Jim Meyering  <meyering@redhat.com>
1068
1069         maint: require that each sc_... command start with "@"
1070         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1071         "make sc_maint" helps us avoid this nit.
1072
1073 2012-07-15  Jim Meyering  <meyering@redhat.com>
1074
1075         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1076         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1077
1078 2012-07-13  Eric Blake  <eblake@redhat.com>
1079
1080         maint.mk: new syntax check for HAVE_DECL checks
1081         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1082         * cfg.mk
1083         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1084         Exempt some false positives.
1085         Based on a report by Karel Zak.
1086
1087         argp: make HAVE_DECL usage consistent
1088         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1089         macros, not whether they are defined.
1090         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1091         convention with other declaration checks.
1092         Reported by Karel Zak, with suggestions from Paul Eggert.
1093
1094         stat-time: relax license to LGPLv2+
1095         * modules/stat-time (License): Relax, with consent of all authors.
1096
1097         strndup: fix m4 usage error
1098         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1099         defined, to either 0 or 1.
1100         Reported by Karel Zak.
1101
1102 2012-07-11  Jim Meyering  <meyering@redhat.com>
1103
1104         maint: enable the sc_avoid_if_before_free syntax-check rule
1105         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1106         (if_before_free_offenders_): Define.
1107         (if_before_free_basename_re_): Define.
1108         Exempt current files with useless if-before-free.
1109
1110 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1111
1112         gettext: do not assume '#define ... defined ...' behavior
1113         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1114         Do not use '#define FOO ... defined BAR ...', as the C standard says
1115         it's not portable to expect that this works after macro expansion.
1116         Problem reported for gzip by Steven M. Schweda in
1117         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1118
1119 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1120
1121         getloadavg: clean out old Emacs and Autoconf cruft
1122         See Glenn Morris in <http://bugs.gnu.org/11905>.
1123         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1124         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1125         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1126         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1127
1128 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1129
1130         bootstrap: let warn be like tests/init.sh's warn_
1131         Reported by Jim Meyering.
1132         * build-aux/bootstrap (warn): Remove, replaced by...
1133         (warnf_, warn_): these.
1134         Adjust callers.
1135         Shorten messages that no longer fit in 80 columns.
1136
1137 2012-07-09  Bruno Haible  <bruno@clisp.org>
1138
1139         getopt: Simplify after Emacs changed.
1140         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1141         (gl_GETOPT_IFELSE): Remove macro.
1142
1143 2012-07-09  Jim Meyering  <meyering@redhat.com>
1144
1145         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1146         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1147
1148         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1149         Bugs in both of those conspired to make the
1150         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1151         _sc_search_regexp's handling of non-empty $in_files would filter
1152         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1153         choice of in_files value meant there would be no match in most
1154         projects, due to the presence of two or more Makefile.in files.
1155         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1156         Fix a bug in how a non-empty $$in_files was processed:
1157         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1158         in spite of the name, it's a regexp, not a list of file names.
1159
1160 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1161
1162         getloadavg, getopt: fix commentary re configure.in
1163         Autoconf is deprecating the name 'configure.in', so change it to
1164         to the new name 'configure.ac' in a couple of places.
1165         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1166         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1167         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1168         Emacs has renamed it to configure.ac, and it no longer refers
1169         to these macros anyway.
1170
1171         timespec: mark functions with const attributes
1172         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1173         Mark with _GL_ATTRIBUTE_CONST.
1174
1175 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1176
1177         canonicalize[-lgpl]: handle "guessing" values when cross-building
1178         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1179         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1180         matches "*yes" instead of just "yes".  Regression introduced in commit
1181         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1182
1183 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1184             Bruno Haible  <bruno@clisp.org>
1185
1186         canonicalize: make the right guess when cross-compiling to GNU
1187         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1188         determine whether cross-compiling to glibc systems, so as to
1189         include GNU/Hurd.
1190
1191 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         timespec-sub: avoid duplicate include
1194         * lib/timespec-sub.c: Do not include <config.h> twice.
1195         Reported by Juanma Barranquero.
1196
1197 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1198
1199         bootstrap: use a more consistent error reporting scheme
1200         * build-aux/bootstrap (warn, die): New.
1201         Use them.
1202
1203 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         sys_time: allow too-wide tv_sec
1206         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1207         timeval even if tv_sec is wider than time_t.  This allows
1208         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1209         as without this patch gnulib replaces struct timeval
1210         and OpenBSD futimes therefore has a type mismatch.
1211         * doc/posix-headers/sys_time.texi: Mention this.
1212
1213         pthread: check for both pthread_create and pthread_join
1214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1215         alter the check so that it tests for both pthread_create and
1216         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1217         Suggested by Bruno Haible and Richard Yao in
1218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1219
1220         parse-datetime: doc tuneup
1221         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1222         spacing issues.
1223
1224 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1225
1226         do-release-commit-and-tag: fix the previous commit
1227         * build-aux/do-release-commit-and-tag: Actually the test was right,
1228         but the comment and the error message were misleading.
1229         Fix comment, and improve error message.
1230         Perform check first, so that NEWS is not modified uselessly.
1231
1232         do-release-commit-and-tag: fix typo
1233         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1234         _not_ start with a stub.
1235
1236 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         pthread: check for pthread_create, not pthread_join
1239         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1240         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1241         pthread_join in libc.  I hope this removes the need for all the
1242         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1243         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1244
1245 2012-07-04  Jim Meyering  <meyering@redhat.com>
1246
1247         parse-datetime: fix failure to diagnose invalid input
1248         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1249         rather than diagnosing the invalid input.  Now it reports this:
1250         date: invalid date '\260'
1251         * lib/parse-datetime.y (to_uchar): Define.
1252         (yylex): Don't sign-extend "other" bytes.
1253         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1254         Thanks to Bruno Haible for the patch to this file.
1255         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1256         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1257
1258 2012-07-03  Jim Meyering  <meyering@redhat.com>
1259
1260         bootstrap: do not require now-removed build-aux/missing
1261         Now that build-aux/missing is, er, missing, bootstrap would
1262         silently fail.
1263         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1264         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1265         no longer part of gnulib.
1266         Diagnose the failure.
1267
1268 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         alloca: add support for HP NonStop TNS/E native
1271         * lib/alloca.in.h (alloca): Support the new host.
1272         From a suggestion by Joachim Schmitz in
1273         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1274
1275 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1276
1277         fsusage: remove code not needed on non GNU/Linux systems.
1278
1279         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1280         Don't include headers no longer needed in this case.
1281         * lib/fsusage.c [STAT_STATVFS &&
1282         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1283         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1284
1285 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         fsusage: include files needed for glibc 2.6 fallback
1288         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1289         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1290         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1291         Problem reported by Ludovic Courtès in
1292         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1293
1294         fsusage: avoid needless check on GNU/Linux
1295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1296         on GNU/Linux systems, since it can't possibly work.
1297
1298 2012-07-01  Bruno Haible  <bruno@clisp.org>
1299
1300         log: Fix an autoconf >= 2.64 warning.
1301         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1302         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1303
1304 2012-06-28  Bruno Haible  <bruno@clisp.org>
1305
1306         log10f: Fix possible configuration problem.
1307         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1308         $LOGF_LIBM.
1309         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1310
1311 2012-06-28  Bruno Haible  <bruno@clisp.org>
1312
1313         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1314         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1315         not gl_cv_func_unlink_works.
1316         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1317
1318 2012-06-27  Eric Blake  <eblake@redhat.com>
1319
1320         config: drop scripts that automake says are not independent
1321         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1322         * build-aux/elisp-comp: Delete.
1323         * build-aux/missing: Likewise.
1324         * build-aux/ylwrap: Likewise.
1325         * modules/elisp-comp: Likewise.
1326         * MODULES.html.sh: Drop mention of elisp-comp.
1327         * NEWS: Mention this.
1328
1329 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         root-uid: new module
1332         This is for portability to Tandem's NonStop Kernel.
1333         * lib/root-uid.h, modules/root-uid: New files.
1334         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1335         * lib/write-any-file.c, tests/test-sethostname2.c:
1336         Include "root-uid.h".
1337         * lib/euidaccess.c (euidaccess):
1338         * lib/pt_chown.c (main):
1339         * lib/unlinkdir.c (cannot_unlink_dir):
1340         * lib/write-any-file.c (can_write_any_file):
1341         * m4/mknod.m4 (gl_FUNC_MKNOD):
1342         * tests/test-sethostname2.c (geteuid, main):
1343         Don't assume ROOT_UID == 0.
1344         * modules/euidaccess (Depends-on):
1345         * modules/pt_chown (Depends-on):
1346         * modules/sethostname-tests (Depends-on):
1347         * modules/unlinkdir (Depends-on):
1348         * modules/write-any-file (Depends-on):
1349         Add root-uid.
1350
1351         regex: use locale-independent comparison for codeset name
1352         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1353         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1354         for codeset name.
1355         * lib/regex_internal.h: Do not include <strings.h>, since we
1356         no longer use strcasecmp.
1357         * modules/regex (Depends-on): Remove strcase.
1358
1359 2012-06-23  Bruno Haible  <bruno@clisp.org>
1360
1361         getopt-posix: No longer guarantee that option processing is resettable.
1362         * doc/posix-functions/getopt.texi: Drop description of problem with
1363         internal state. Fix info about mingw and msvc9.
1364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1365         option processing by getopt(). Run three test programs instead of one.
1366         Simplify cross-compilation guess.
1367         * NEWS: Mention the change.
1368         Reported by Rich Felker <dalias@aerifal.cx>.
1369
1370 2012-06-26  Bruno Haible  <bruno@clisp.org>
1371
1372         argp, regex: Ensure strcasecmp gets declared.
1373         * lib/argp-help.c: Include <strings.h>.
1374         * lib/regex_internal.h: Likewise.
1375         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1376
1377 2012-06-24  Bruno Haible  <bruno@clisp.org>
1378
1379         ptsname_r: Make it consistent with ptsname on AIX.
1380         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1381         implementation as for OSF/1.
1382         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1383         a pty master.
1384
1385         ptsname_r: Make it consistent with ptsname on OSF/1.
1386         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1387         OSF/1.
1388
1389 2012-06-24  Bruno Haible  <bruno@clisp.org>
1390
1391         ttyname_r: Fix result on OSF/1, Solaris.
1392         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1393
1394 2012-06-24  Bruno Haible  <bruno@clisp.org>
1395
1396         ptsname_r: Add support for Solaris.
1397         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1398         Solaris.
1399
1400         ptsname_r: Fix test failure on native Windows.
1401         * modules/ptsname_r (Depends-on): Add isatty.
1402
1403         ptsname_r: Fix test failures on IRIX, Solaris.
1404         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1405         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1406         accordingly.
1407         * lib/ptsname_r.c: Include <fcntl.h>.
1408         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1409         set errno if fd is invalid.
1410         * tests/test-isatty.c (main): Update comments.
1411
1412 2012-06-24  Bruno Haible  <bruno@clisp.org>
1413
1414         ptsname test: Extend test.
1415         * tests/test-ptsname.c: Include <errno.h>.
1416         (main): Test behaviour with invalid file descriptor.
1417
1418 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         time: fix obsolete comment
1421         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1422         reference to HAVE_STRUCT_TIMESPEC in comment.
1423
1424 2012-06-23  Bruno Haible  <bruno@clisp.org>
1425
1426         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1428         does not handle abbreviated long options with equivalent
1429         disambiguations, set gl_replace_getopt to yes.
1430         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1431
1432 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1433
1434         time_r: fix typo that always overrode localtime_r decl
1435         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1436         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1437         not in a standard include.
1438
1439 2012-06-22  Bruno Haible  <bruno@clisp.org>
1440
1441         Write "Mac OS X" instead of "MacOS X".
1442         * README: Write "Mac OS X" instead of "MacOS X".
1443         * build-aux/bootstrap: Likewise.
1444         * build-aux/install-reloc: Likewise.
1445         * lib/acl-internal.h: Likewise.
1446         * lib/acl_entries.c: Likewise.
1447         * lib/argp-ba.c: Likewise.
1448         * lib/argp-pv.c: Likewise.
1449         * lib/config.charset: Likewise.
1450         * lib/copy-acl.c: Likewise.
1451         * lib/csharpexec.c: Likewise.
1452         * lib/euidaccess.c: Likewise.
1453         * lib/fbufmode.c: Likewise.
1454         * lib/fflush.c: Likewise.
1455         * lib/file-has-acl.c: Likewise.
1456         * lib/filemode.h: Likewise.
1457         * lib/fpurge.c: Likewise.
1458         * lib/freadable.c: Likewise.
1459         * lib/freadahead.c: Likewise.
1460         * lib/freading.c: Likewise.
1461         * lib/freadptr.c: Likewise.
1462         * lib/freadseek.c: Likewise.
1463         * lib/fseeko.c: Likewise.
1464         * lib/fseterr.c: Likewise.
1465         * lib/fsusage.c: Likewise.
1466         * lib/fwritable.c: Likewise.
1467         * lib/fwriting.c: Likewise.
1468         * lib/get-rusage-as.c: Likewise.
1469         * lib/get-rusage-data.c: Likewise.
1470         * lib/getdomainname.c: Likewise.
1471         * lib/idpriv-drop.c: Likewise.
1472         * lib/idpriv-droptemp.c: Likewise.
1473         * lib/localcharset.c: Likewise.
1474         * lib/locale.in.h: Likewise.
1475         * lib/localename.c: Likewise.
1476         * lib/mbsrtowcs-state.c: Likewise.
1477         * lib/nproc.c: Likewise.
1478         * lib/passfd.c: Likewise.
1479         * lib/posix_openpt.c: Likewise.
1480         * lib/printf-parse.c: Likewise.
1481         * lib/progreloc.c: Likewise.
1482         * lib/safe-read.h: Likewise.
1483         * lib/safe-write.h: Likewise.
1484         * lib/sched.in.h: Likewise.
1485         * lib/set-mode-acl.c: Likewise.
1486         * lib/signal.in.h: Likewise.
1487         * lib/stdint.in.h: Likewise.
1488         * lib/stdio-impl.h: Likewise.
1489         * lib/stdlib.in.h: Likewise.
1490         * lib/strtod.c: Likewise.
1491         * lib/sys_select.in.h: Likewise.
1492         * lib/tcgetsid.c: Likewise.
1493         * lib/unistd.in.h: Likewise.
1494         * lib/unlockpt.c: Likewise.
1495         * lib/vasnprintf.c: Likewise.
1496         * lib/vma-iter.c: Likewise.
1497         * lib/wcsrtombs-state.c: Likewise.
1498         * m4/acl.m4: Likewise.
1499         * m4/acosl.m4: Likewise.
1500         * m4/asinl.m4: Likewise.
1501         * m4/atanl.m4: Likewise.
1502         * m4/c-stack.m4: Likewise.
1503         * m4/cosl.m4: Likewise.
1504         * m4/expl.m4: Likewise.
1505         * m4/extensions.m4: Likewise.
1506         * m4/fdatasync.m4: Likewise.
1507         * m4/fmal.m4: Likewise.
1508         * m4/frexp.m4: Likewise.
1509         * m4/frexpf.m4: Likewise.
1510         * m4/frexpl.m4: Likewise.
1511         * m4/fsusage.m4: Likewise.
1512         * m4/getdomainname.m4: Likewise.
1513         * m4/getloadavg.m4: Likewise.
1514         * m4/getopt.m4: Likewise.
1515         * m4/gettext.m4: Likewise.
1516         * m4/gnulib-common.m4: Likewise.
1517         * m4/intdiv0.m4: Likewise.
1518         * m4/intlmacosx.m4: Likewise.
1519         * m4/largefile.m4: Likewise.
1520         * m4/ldexpl.m4: Likewise.
1521         * m4/link-follow.m4: Likewise.
1522         * m4/locale-ar.m4: Likewise.
1523         * m4/locale-fr.m4: Likewise.
1524         * m4/locale-ja.m4: Likewise.
1525         * m4/locale-tr.m4: Likewise.
1526         * m4/locale-zh.m4: Likewise.
1527         * m4/locale_h.m4: Likewise.
1528         * m4/lock.m4: Likewise.
1529         * m4/logl.m4: Likewise.
1530         * m4/mathfunc.m4: Likewise.
1531         * m4/minus-zero.m4: Likewise.
1532         * m4/mktime.m4: Likewise.
1533         * m4/mmap-anon.m4: Likewise.
1534         * m4/multiarch.m4: Likewise.
1535         * m4/nanosleep.m4: Likewise.
1536         * m4/nocrash.m4: Likewise.
1537         * m4/poll.m4: Likewise.
1538         * m4/printf-frexpl.m4: Likewise.
1539         * m4/printf.m4: Likewise.
1540         * m4/signbit.m4: Likewise.
1541         * m4/sinl.m4: Likewise.
1542         * m4/sqrtl.m4: Likewise.
1543         * m4/strerror_r.m4: Likewise.
1544         * m4/tanl.m4: Likewise.
1545         * m4/threadlib.m4: Likewise.
1546         * m4/ttyname_r.m4: Likewise.
1547         * m4/unlink.m4: Likewise.
1548         * m4/visibility.m4: Likewise.
1549         * m4/wcwidth.m4: Likewise.
1550         * tests/minus-zero.h: Likewise.
1551         * tests/test-alloca-opt.c: Likewise.
1552         * tests/test-copy-acl.sh: Likewise.
1553         * tests/test-copy-file.sh: Likewise.
1554         * tests/test-fdatasync.c: Likewise.
1555         * tests/test-file-has-acl.sh: Likewise.
1556         * tests/test-flock.c: Likewise.
1557         * tests/test-fsync.c: Likewise.
1558         * tests/test-localename.c: Likewise.
1559         * tests/test-malloca.c: Likewise.
1560         * tests/test-nonblocking-pipe.h: Likewise.
1561         * tests/test-nonblocking-socket.h: Likewise.
1562         * tests/test-openpty.c: Likewise.
1563         * tests/test-posix_openpt.c: Likewise.
1564         * tests/test-ptsname.c: Likewise.
1565         * tests/test-ptsname_r.c: Likewise.
1566         * tests/test-sameacls.c: Likewise.
1567         * tests/test-select.h: Likewise.
1568         * tests/test-set-mode-acl.sh: Likewise.
1569         * tests/test-snprintf-posix.h: Likewise.
1570         * tests/test-sprintf-posix.h: Likewise.
1571         * tests/test-strtod.c: Likewise.
1572         * tests/test-time.c: Likewise.
1573         * tests/test-vasnprintf-posix.c: Likewise.
1574         * tests/test-vasprintf-posix.c: Likewise.
1575         * doc/acl-resources.txt: Likewise.
1576         * doc/**/*.texi: Likewise.
1577         Reported by Max Horn <max@quendi.de>.
1578
1579 2012-06-22  Bruno Haible  <bruno@clisp.org>
1580
1581         grantpt: Relax requirement regarding invalid file descriptors.
1582         * lib/grantpt.c: Don't include <fcntl.h>.
1583         (grantpt): Don't verify the validity of the file descriptor.
1584         * modules/grantpt (Depends-on): Remove fcntl-h.
1585         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1586         file descriptors.
1587         * doc/posix-functions/grantpt.texi: Document more platforms on which
1588         grantpt succeeds for invalid file descriptors.
1589         Reported by Rich Felker <dalias@aerifal.cx>.
1590
1591 2012-06-22  Bruno Haible  <bruno@clisp.org>
1592
1593         fbufmode test: Don't test unportable behaviour.
1594         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1595         (main): Invoke it three times.
1596         Reported by Szabolcs Nagy <nsz@port70.net>
1597         and Rich Felker <dalias@aerifal.cx>.
1598
1599 2012-06-21  Bruno Haible  <bruno@clisp.org>
1600
1601         gnulib-tool: Refactor inctests variable.
1602         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1603         (func_modules_transitive_closure,
1604         func_modules_transitive_closure_separately,
1605         func_import, func_create_testdir): Update.
1606
1607         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1608         * gnulib-tool: Accept option --without-tests.
1609         (func_usage): Document --without-tests option. Rearrange.
1610         (inctests): Normalize according to the mode.
1611         * NEWS: Mention the change.
1612         Suggested by Simon Josefsson.
1613
1614 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1615
1616         parse-duration test: Avoid spurious output.
1617         * tests/test-parse-duration.sh: Reindent with leading tabs.
1618
1619 2012-06-21  Jim Meyering  <meyering@redhat.com>
1620
1621         maint: disable the strncpy prohibition
1622         * cfg.mk: Do not prohibit strncpy here.
1623
1624 2012-06-21  Bruno Haible  <bruno@clisp.org>
1625
1626         nonblocking: Avoid compilation error on mingw64.
1627         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1628         fscanf.
1629         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1630         * modules/vfscanf (configure.ac): Likewise.
1631         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1632         definition only if stdio.h has prepared it.
1633         Reported by Daniel P. Berrange <berrange@redhat.com>.
1634
1635 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1636
1637         gnulib-tool: Use readlink if it is available.
1638         * gnulib-tool (func_readlink): Choose function more appropriately.
1639
1640 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         posixtm-tests: port to buggy compiler
1643         Problem reported by Simon Josefsson in
1644         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1645         * modules/posixtm-tests (Depends-on): Add stdint.
1646         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1647         Now of type int_least64_t, not int64_t, both because that's
1648         what INT64_C returns and because int_least64_t works even
1649         on 72-bit hosts.
1650         (T): Use INT64_C on constants outside the traditional int range,
1651         to work around compiler bug noted by Simon.
1652
1653         mktime: fix integer overflow in 'configure'-time test
1654         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1655         after integer overflow.  Problem reported by Rich Felker in
1656         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1657         Also, don't look for further instances of a bug if we've already
1658         found one instance; this helps 'configure' run faster.
1659
1660 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1661
1662         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1663         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1664         GetVersionEx correctly.
1665         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1666
1667 2012-06-20  Bruno Haible  <bruno@clisp.org>
1668
1669         fdopen: Allow implementations that don't reject invalid fd arguments.
1670         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1671         succeeds.
1672         Reported by Rich Felker <dalias@aerifal.cx>.
1673
1674 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1675
1676         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1677         bring in LIBINTL.
1678
1679 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1680
1681         init.sh: do not rely on autoupated PWD
1682         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1683         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1684         Although Nelson's bug was not necessarily fixed by this patch,
1685         it seems wise to make the change for safety.
1686         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1687         automagically after 'cd'; this is not reliable on older shells.
1688         (setup_): Fail if we cannot cd to temporary directory.
1689
1690 2012-06-19  Bruno Haible  <bruno@clisp.org>
1691
1692         stat, fstat: Avoid warnings on mingw64.
1693         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1694         redefining.
1695         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1696         Reported by Daniel P. Berrange <berrange@redhat.com>.
1697
1698 2012-06-19  Bruno Haible  <bruno@clisp.org>
1699
1700         stdioext: Add support for musl libc.
1701
1702         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1703         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1704
1705         * m4/fseterr.m4: New file.
1706         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1707         function exists.
1708         * modules/fseterr (Files): Add m4/fseterr.m4.
1709         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1710         __fseterr does not exist.
1711         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1712
1713         * lib/freadable.h: Update comment.
1714
1715         * lib/fwritable.h: Update comment.
1716
1717         * lib/freading.h: Update comment.
1718
1719         * lib/fwriting.h: Update comment.
1720
1721         * m4/freadahead.m4: New file.
1722         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1723         that function exists.
1724         * modules/freadahead (Files): Add m4/freadahead.m4.
1725         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1726         __freadahead does not exist.
1727         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1728
1729         * m4/freadptr.m4: New file.
1730         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1731         function exists.
1732         * modules/freadptr (Files): Add m4/freadptr.m4.
1733         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1734         __freadptr does not exist.
1735         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1736
1737         * m4/freadseek.m4: New file.
1738         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1739         exists.
1740         * modules/freadseek (Files): Add m4/freadseek.m4.
1741         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1742
1743         * lib/fpurge.c (fpurge): Update comment.
1744
1745         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1746
1747 2012-06-19  Bruno Haible  <bruno@clisp.org>
1748
1749         *printf-posix: Put more info into config.log.
1750         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1751         exit code into config.log.
1752
1753 2012-06-19  Bruno Haible  <bruno@clisp.org>
1754
1755         getopt-gnu: Fix exit code overflow in autoconf test.
1756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1757         to keep them below < 128.
1758
1759 2012-06-17  Jim Meyering  <meyering@redhat.com>
1760
1761         maint.mk: fix typo in code to derive GPG key at release time
1762         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1763
1764 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1765
1766         regex: avoid warning when pointers are not long
1767         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1768         and uintptr_t, not long, for portability to hosts where pointers and
1769         long have different sizes.  Issue noted by Daniel P. Berrange in
1770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1771         and fix suggested by Bruno Haible in
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1773
1774 2012-06-17  Bruno Haible  <bruno@clisp.org>
1775
1776         dummy: Relicense into the public domain.
1777         * modules/dummy (License): Set to "public domain".
1778         Suggested by Reuben Thomas.
1779
1780 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1781
1782         announce-gen: VPATH issues
1783         * build-aux/announce-gen (--srcdir): New option, used to trim the
1784         $srcdir part of the path from $builddir to NEWS.
1785         * top/maint.mk (announcement): Adjust.
1786
1787 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1788
1789         gnu-web-doc-update: VPATH builds
1790         * build-aux/gnu-web-doc-update (--builddir): New option.
1791         Revamp the handling of options.
1792         Prefer $(...) to `...`.
1793         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1794         the template, and it is GNU mktemp specific.
1795         Prefer set -e to long series of &&.
1796         Restore the initial git branch, not "master".
1797         Properly initialize submodules (don't rely only on bootstrap).
1798         Do not reconfigure blindly, use config.status.
1799         * top/README-release: Update instructions for gnu-web-doc-update.
1800
1801 2012-06-11  Jim Meyering  <meyering@redhat.com>
1802
1803         maint.mk: revert most of the previous change re "all these"
1804         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1805         For rationale, see the discussion at
1806         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1807
1808 2012-06-10  Karl Berry  <karl@gnu.org>
1809
1810         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1811
1812         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1813
1814 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1815
1816         parse-duration: Relicense under LGPLv2+.
1817         * modules/parse-duration (License): Change to LGPLv2+.
1818
1819 2012-06-10  Jim Meyering  <meyering@redhat.com>
1820
1821         maint.mk: prohibit common grammar error: "all these"
1822         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1823         the list of prohibited word sequences.  It should be "all of these".
1824         * lib/tempname.c (__gen_tempname): Fix one of them.
1825
1826 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1827
1828         do-release-commit-and-tag: support VPATH builds
1829         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1830         (noteworthy): Defined earlier to factor its value.
1831         (noteworthy_stub): New.
1832         Use it to factor.
1833         (help_version): Split into...
1834         (help, version): these.
1835         Adjust the option processing part.
1836         Support "--option=value" in addition to "--option value".
1837         (builddir): New.
1838         (--builddir): New option.
1839         * top/README-release: Document this.
1840         Reword slightly so that the reader cannot understand that he
1841         has to do these steps before calling do-release-commit-and-tag.
1842
1843 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1844
1845         readme-release: also require announce-gen and maintainer-makefile
1846         * modules/readme-release (Depends-on): here.
1847         * modules/announce-gen, modules/do-release-commit-and-tag,
1848         modules/gnu-web-doc-update, modules/maintainer-makefile
1849         (Description): Point to readme-release.
1850
1851 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1852
1853         maint.mk: fix VPATH issues.
1854         * top/maint.mk (news-check): GNU Make understand $< very well.
1855         (release-prep): NEWS is in $(srcdir).
1856
1857 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1858
1859         readme-release: require the promoted modules.
1860         * modules/readme-release (Depends-on): Add
1861         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1862         in this text.
1863
1864 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1865             Bruno Haible  <bruno@clisp.org>
1866
1867         error, strerror-override: Support mingw64 from Fedora 17.
1868         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1869         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1870         EINPROGRESS.
1871         * lib/strerror-override.h (strerror_override): Test it.
1872         * lib/strerror-override.c (strerror_override): Likewise.
1873         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1874
1875 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1876             Bruno Haible  <bruno@clisp.org>
1877
1878         error, strerror-override: Support mingw64 from Fedora 17.
1879         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1880         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1881         * lib/strerror-override.h (strerror_override): Test it.
1882         * lib/strerror-override.c (strerror_override): Likewise.
1883
1884 2012-06-03  Bruno Haible  <bruno@clisp.org>
1885
1886         error, strerror-override: Support new errno values from POSIX:2008.
1887         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1888         ENOTRECOVERABLE.
1889         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1890         platforms.
1891         * lib/strerror-override.c (strerror_override): Conditionalize the
1892         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1893         * lib/strerror-override.h (strerror_override): Declare also if
1894         GNULIB_defined_EOWNERDEAD is defined.
1895         * tests/test-errno.c (e130, e131): New variables.
1896         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1897         ENOTRECOVERABLE.
1898         Reported by Paolo Bonzini.
1899
1900 2012-05-31  Jim Meyering  <meyering@redhat.com>
1901
1902         savewd: add missing dependency on sys_wait module
1903         * modules/savewd (Depends-on): Add sys_wait, needed at least
1904         for MSVC.  Report and suggested change by Michael Goffioul.
1905
1906 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1907
1908         system-quote-tests: port to CentOS 5
1909         Problem reported by Tom G. Christensen in
1910         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1911         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1912
1913 2012-05-29  Jim Meyering  <meyering@redhat.com>
1914
1915         maint: fix typos in comments and ChangeLog
1916         Culprits identified and fixed mostly automatically using these commands:
1917         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1918         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1919         using http://github.com/lyda/misspell-check
1920         * ChangeLog: Fix typos.
1921         * doc/solaris-versions: Likewise.
1922         * lib/regexec.c (re_search_stub): Likewise.
1923         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1924
1925 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         manywarnings: remove duplicate -Wmultichar entry
1928         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1929         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1930         so keep the entry marked as documented.
1931
1932 2012-05-27  Karl Berry  <karl@gnu.org>
1933
1934         * config/srclist.txt (mktime.c): remove last libc sync,
1935         perhaps just temporarily.
1936
1937 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         regex: don't assume uint64_t or uint32_t
1940         * lib/regcomp.c (init_word_char): Don't assume that the types
1941         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1942         them, and on some 32-bit compilers there is no uint64_t.
1943         Problem reported by Gianluigi Tiesi in
1944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1945
1946 2012-05-25  Jim Meyering  <meyering@redhat.com>
1947
1948         maint.mk: add strncpy-prohibiting syntax-check rule
1949         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1950
1951 2012-05-24  Jim Meyering  <meyering@redhat.com>
1952
1953         maint.mk: compute $(gpg_key_ID) more portably
1954         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1955         That use of sed is not portable to some fringe systems.
1956         Reported by Paul Eggert in
1957         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1958
1959 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1960
1961         mktime: sync from glibc
1962         * config/srclist.txt: Uncomment mktime.c.
1963         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1964         First, indent with tabs, since glibc uses tabs and doesn't want to
1965         change and we'd rather be identical to glibc.  Also, two small
1966         coding changes:
1967         (isdst_differ): Use &&, not &, as && is the usual style.
1968         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1969         for clarity.
1970
1971 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1972
1973         announce-gen: du -h is more portable than du --human
1974         * build-aux/announce-gen (sizes): Invoke du with -h instead
1975         of --human.  Accept leading white space in its output.
1976
1977 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1978
1979         announce-gen: Improve diagnostics.
1980         * build-aux/announce-gen: When parsing command line options,
1981         prefer "announce-gen: option --release-type requires an argument"
1982         to "Option release-type requires an argument".
1983
1984 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1985
1986         maint.mk: gpg_key_ID: use sed more portably
1987         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1988         the closing brace.
1989         (refresh-po): Fuse two sed invocations into one.
1990
1991 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1992
1993         gitlog-to-changelog: support the log message format used in Bison.
1994         * build-aux/gitlog-to-changelog: Support --strip-tab and
1995         --strip-cherry-picked.
1996
1997 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1998
1999         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2000         the rest of the current time slice to another thread in the current
2001         process. So if the thread that feeds the file decscriptor we're
2002         polling is not in the current process, we get busy-waiting.
2003         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2004         Patch from Theodore Leblond.
2005         * lib/select.c: Split polling out of the loop that sets the output
2006         fd_sets.  Check for zero result and loop if the wait timeout is
2007         infinite.
2008
2009 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2010
2011         select: Fix build error on IRIX 6.5.
2012         * lib/select.c: Include stddef.h for NULL.
2013
2014 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2015
2016         gc: fix libgcrypt detection on older machines.
2017         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2018         copyright years because the file has been distributed every year
2019         since it was created.
2020
2021 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2022
2023         crypto: fix bug in large buffer handling
2024         Problem reported by Serge Belyshev for glibc in
2025         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2026         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2027         * lib/md4.c (md4_process_block):
2028         * lib/md5.c (md5_process_block):
2029         * lib/sha1.c (sha1_process_block):
2030         * lib/sha256.c (sha256_process_block):
2031         Don't assume the buffer length is less than 2**32.
2032         * lib/sha512.c (sha512_process_block): Likewise.
2033         Here, the bug is present only in the rare case where the host does
2034         not support uint64_t or where size_t is wider than 64 bits.
2035         Use u64size to work around the problems.
2036         * lib/u64.h (u64size): New macro.
2037
2038 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2039
2040         fsusage: fix block size returned on older Linux 2.6
2041
2042         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2043         which is available since Linux 2.6.
2044         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2045         when the member is available so it can be used as a fallback.
2046         * doc/posix-functions/statvfs.texi: Mention the hang issue
2047         on Linux < 2.6.36.
2048
2049 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2050
2051         bootstrap: suppress stderr chatter
2052         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2053         Omit unnecessary chatter to stderr.  The main program chatter
2054         was there only inadvertantly.
2055
2056         bootstrap: .gitignore files created by autopoint, libtool
2057         I ran into this problem when bootstrapping the latest diffutils.
2058         After './bootstrap', 'git status' reported lots of untracked files
2059         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2060         autopoint and do not need to be version-controlled.
2061         * build-aux/bootstrap: Put into .gitignore the files that
2062         autopoint and libtool create, by keeping track of files that exist
2063         after but not before these programs are run.
2064         (version_controlled_file): Move up.  2nd arg is now full file
2065         name, not base name; this is more convenient.  Put CVS at the end,
2066         as it's now somewhat deprecated.
2067
2068 2012-05-14  Jim Meyering  <meyering@redhat.com>
2069
2070         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2071         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2072         definition.  Reported by Bruno Haible.
2073
2074 2012-05-13  Bruno Haible  <bruno@clisp.org>
2075             Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         binary-io: Define set_binary_mode function.
2078         * lib/binary-io.h (set_binary_mode): New function.
2079         (SET_BINARY): Define in terms of set_binary_mode.
2080         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2081         * tests/test-binary-io.c (main): Accept an argument, and test either
2082         set_binary_mode or SET_BINARY depending on the argument.
2083         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2084         argument. Clean up also t-bin-out0.tmp.
2085
2086 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2087
2088         bootstrap: take advantage of POSIX shell features
2089
2090         The 'bootstrap' script offered by Gnulib script already uses POSIX
2091         shell features (like $((...)) arithmetic expansions) that are not
2092         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2093         means that bootstrap must already be run using a proper POSIX shell,
2094         which will thus provide more features, like ${var#pattern} parameter
2095         expansion or inversion of a command exit status with '!'.  We can
2096         thus use these features to improve the clarity and the performances
2097         of the bootstrap script.
2098
2099         Suggested by Eric Blake.
2100
2101         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2102         of sed/expr plus command substitutions, to save some forks.  While
2103         we are at it, prefer the POSIX $(...) form of command substitution,
2104         rather than the legacy form `...` (since the former is visually
2105         clearer and interacts better with quoting), and prefer the idiom:
2106           "if ! CMD; then ACTION ..."
2107         over the idiom:
2108           "if CMD; then :; else ACTION ..."
2109         which was required by legacy Bourne shells not supporting '!'.
2110
2111 2012-05-12  Bruno Haible  <bruno@clisp.org>
2112
2113         system-quote: Add more comments.
2114         * lib/system-quote.h: Add more comments about wilcards and limitations.
2115         Suggested by Eli Zaretskii <eliz@gnu.org>.
2116
2117         sh-quote, system-quote: Add comments about wildcards.
2118         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2119         * lib/system-quote.h: Likewise.
2120         Reported by Eli Zaretskii <eliz@gnu.org>.
2121
2122 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2123
2124         fsusage: check for GNU/Linux statvfs problem dynamically
2125         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2126         Define STAT_STATFS2_BSIZE too, since in this case the code now
2127         checks dynamically whether statvfs is reliable, falling back on
2128         Linux-style statfs otherwise.
2129         (statvfs_works): New function, for dynamically testing statvfs.
2130         (get_fs_usage) [STAT_STATVFS]: Use it.
2131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2132         statvfs on GNU/Linux hosts, since it's now done dynamically.
2133
2134 2012-05-10  Bruno Haible  <bruno@clisp.org>
2135
2136         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2137         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2138         '?' character.
2139         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2140         * tests/test-system-quote-main.c (check_all): Check also strings like
2141         "??????????".
2142         Reported by Eli Zaretskii <eliz@gnu.org>.
2143
2144 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         _Noreturn: port config.h to gcc -Wundef
2147         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2148         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2149         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2150
2151 2012-05-10  Bruno Haible  <bruno@clisp.org>
2152
2153         system-quote: Refactor.
2154         * lib/system-quote.h (system_quote_copy): Fix comment.
2155         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2156         New functions, extracted from system_quote_copy.
2157         (system_quote_length, system_quote_copy): Use these functions.
2158         Reported by Paul Eggert.
2159
2160 2012-05-08  Bruno Haible  <bruno@clisp.org>
2161
2162         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2163         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2164
2165 2012-05-08  Bruno Haible  <bruno@clisp.org>
2166
2167         Tests for module 'system-quote'.
2168         * modules/system-quote-tests: New file.
2169         * tests/test-system-quote.sh: New file.
2170         * tests/test-system-quote-main.c: New file.
2171         * tests/test-system-quote-child.c: New file.
2172
2173         New module 'system-quote'.
2174         * lib/system-quote.h: New file.
2175         * lib/system-quote.c: New file.
2176         * modules/system-quote: New file.
2177
2178 2012-05-08  Bruno Haible  <bruno@clisp.org>
2179
2180         sh-quote: Make C++ safe and allow multiple inclusion.
2181         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2182         declarations in extern "C".
2183
2184 2012-05-08  Bruno Haible  <bruno@clisp.org>
2185
2186         sh-quote tests: Make tests stricter.
2187         * tests/test-sh-quote.c (check_one): Check the return value of
2188         shell_quote_copy.
2189         (main): Check a string with a CR character. Check a string that
2190         contains UCHAR_MAX.
2191
2192 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2193
2194         warnings.m4: provide a means to specify the program to compile.
2195         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2196         (gl_WARN_ADD): here.
2197         Use gl_AS_VAR_APPEND.
2198         Support an argument to specify the program to compile.
2199         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2200         AC_SUBST the WARN_CFLAGS when they are used.
2201         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2202         leave this to gl_WARN_ADD.
2203
2204 2012-05-08  Eric Blake  <eblake@redhat.com>
2205
2206         doc: recommendations on gettext version
2207         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2208         choice between versions.
2209         * DEPENDENCIES (gettext): Cover both approaches.
2210
2211 2012-05-08  Jim Meyering  <meyering@redhat.com>
2212
2213         init.sh: explain why EXEEXT support uses aliases rather than functions
2214         * tests/init.sh: Add a comment.
2215
2216         init.sh: don't let bash aliases interfere with tests
2217         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2218         is bash.  This avoids problems for those who alias standard commands to
2219         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2220         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2221
2222 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2223
2224         stdint: be more consistent with glibc, SunOS libc
2225         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2226         (gl_int_fast16_t, gl_uint_fast16_t)
2227         (gl_int_fast32_t, gl_uint_fast32_t)
2228         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2229         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2230         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2231         Be consistent with glibc by default, and with SunOS 5.10 and later
2232         if __sun is defined.  This lessens the likelihood of clashes if
2233         code compiled for older hosts is combined with code compiled for
2234         newer ones.  Problem reported by Niels Möller in
2235         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2236
2237 2012-05-07  Eric Blake  <eblake@redhat.com>
2238
2239         isatty: relax license to LGPLv2+
2240         * modules/isatty (License): Relax license.
2241
2242 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2243
2244         stat-size: comment fix
2245         * lib/stat-size.h: Remove obsolete comment about indenting.
2246
2247 2012-05-06  Bruno Haible  <bruno@clisp.org>
2248
2249         Tests for module 'sh-quote'.
2250         * modules/sh-quote-tests: New file.
2251         * tests/test-sh-quote.c: New file.
2252
2253 2012-05-06  Bruno Haible  <bruno@clisp.org>
2254
2255         sh-quote: Improve shell_quote_argv's signature.
2256         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2257         * lib/sh-quote.c (shell_quote_argv): Likewise.
2258
2259 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2260
2261         stdint: document issues with int_fast8_t etc.
2262         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2263         stdint.h substitutes may define these types differently.  See
2264         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2265
2266 2012-05-05  Bruno Haible  <bruno@clisp.org>
2267
2268         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2270         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2271         or 'guessing no (mishandles large arguments)'.
2272
2273 2012-05-05  Bruno Haible  <bruno@clisp.org>
2274
2275         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2276         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2277         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2278         set gl_cv_func_link_follows_symlink to "guessing no".
2279
2280 2012-05-05  Bruno Haible  <bruno@clisp.org>
2281
2282         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2283         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2284         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2285         "guessing no".
2286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2287
2288 2012-05-05  Bruno Haible  <bruno@clisp.org>
2289
2290         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2291         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2292         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2293         set gl_cv_struct_dirent_d_ino to "guessing yes".
2294
2295 2012-05-05  Bruno Haible  <bruno@clisp.org>
2296
2297         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2298         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2299         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2300         "guessing yes".
2301
2302 2012-05-05  Bruno Haible  <bruno@clisp.org>
2303
2304         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2305         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2306         compiling to a glibc system, set gl_cv_func_signbit and
2307         gl_cv_func_signbit_gcc to "guessing yes".
2308
2309 2012-05-05  Bruno Haible  <bruno@clisp.org>
2310
2311         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2312         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2313         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2314         to "guessing yes".
2315         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2316         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2317
2318 2012-05-05  Bruno Haible  <bruno@clisp.org>
2319
2320         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2321         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2322         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2323         gl_cv_func_realpath_works to "guessing yes".
2324
2325 2012-05-05  Bruno Haible  <bruno@clisp.org>
2326
2327         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2329         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2330
2331 2012-05-04  Bruno Haible  <bruno@clisp.org>
2332
2333         Tweak last commit.
2334         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2335         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2336
2337 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         unistd_h: make it easier to avoid sys_types_h
2340         This is useful for Emacs, which has its own method of porting to
2341         Windows, and which therefore does not need the sys_types_h module.
2342         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2343         code moved here from gl_SYS_TYPES_H.
2344         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2345         using the code directly.
2346         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2347         gl_SYS_TYPES_H.
2348         * modules/sys_types (Files):
2349         * modules/unistd (Files): Add m4/off_t.m4.
2350
2351 2012-05-03  Bruno Haible  <bruno@clisp.org>
2352
2353         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2354         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2355         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2356         "guessing yes" or "guessing no".
2357         (gl_FUNC_LSTAT): Update.
2358         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2359         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2360         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2361
2362 2012-05-03  Bruno Haible  <bruno@clisp.org>
2363
2364         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2365         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2366         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2367         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2368         cross-compiling, choose the first alternative on glibc systems.
2369         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2370
2371 2012-05-03  Bruno Haible  <bruno@clisp.org>
2372
2373         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2374         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2375         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2376
2377 2012-05-03  Bruno Haible  <bruno@clisp.org>
2378
2379         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2380         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2381
2382 2012-05-03  Bruno Haible  <bruno@clisp.org>
2383
2384         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2385         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2386         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2387         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2388         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2389         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2390         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2391         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2392         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2393         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2394         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2395         gl_cv_func_chown_ctime_works to "guessing yes".
2396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2397         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2398         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2399         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2400         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2402         compiling to glibc systems, set gl_cv_func_open_directory_works to
2403         "guessing yes".
2404         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2405         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2406         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2407         "guessing yes".
2408         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2409         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2410         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2411         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2412         "guessing yes".
2413         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2414         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2415         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2416         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2417         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2418         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2419         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2420         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2421         "guessing yes".
2422         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2423         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2424         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2425         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2426         "guessing yes".
2427         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2428         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2429         "guessing yes".
2430         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2431         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2432         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2433         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2434         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2435         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2436         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2437         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2438         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2439         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2440         "guessing yes".
2441         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2442         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2443         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2444         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2445         "guessing yes".
2446         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2447         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2448         "guessing yes".
2449         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2450         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2451         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2452         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2453         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2454         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2455         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2456         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2457         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2458         "guessing yes".
2459         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2460         compiling to glibc systems, set gl_cv_func_mknod_works to
2461         "guessing yes".
2462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2463         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2464         "guessing yes".
2465         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2466         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2467         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2468         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2469         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2470         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2471         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2472         compiling to glibc systems, set gl_cv_func_svid_putenv to
2473         "guessing yes".
2474         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2475         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2476         "guessing yes".
2477         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2478         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2479         "guessing yes".
2480         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2481         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2482         to "guessing yes".
2483         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2484         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2485         to "guessing yes".
2486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2487         compiling to glibc systems, set gl_cv_func_rmdir_works to
2488         "guessing yes".
2489         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2490         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2491         gl_cv_func_unlink_parent_fails to "guessing yes".
2492         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2493         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2494         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2495         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2496         gl_cv_func_rename_dest_works to "guessing yes".
2497         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2498         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2500         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2501         "guessing yes".
2502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2503         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2504         "guessing yes".
2505         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2506         compiling to glibc systems, set gl_cv_func_setenv_works to
2507         "guessing yes".
2508         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2509         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2510         "guessing yes".
2511         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2512         compiling to glibc systems, set gl_cv_func_sleep_works to
2513         "guessing yes".
2514         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2515         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2516         "guessing yes".
2517         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2518         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2519         "guessing yes".
2520         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2521         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2522         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2523         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2524         "guessing yes".
2525         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2526         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2527         "guessing yes".
2528         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2529         compiling to glibc systems, set gl_cv_func_usleep_works to
2530         "guessing yes".
2531         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2532         compiling to glibc systems, set gl_cv_func_futimesat_works to
2533         "guessing yes".
2534
2535 2012-05-03  Bruno Haible  <bruno@clisp.org>
2536
2537         Say "guessing yes" or "guessing no" when cross-compiling.
2538         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2539         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2540         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2541         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2542         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2543         am_cv_func_working_getline to "guessing yes" or "guessing no".
2544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2545         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2546         (gl_FUNC_MEMMEM): When cross-compiling, set
2547         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2549         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2551         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2552         "guessing no".
2553         (gl_FUNC_STRCASESTR): When cross-compiling, set
2554         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2556         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2557         (gl_FUNC_STRSTR): When cross-compiling, set
2558         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2559         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2560         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2561         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2562         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2563
2564 2012-05-01  Bruno Haible  <bruno@clisp.org>
2565
2566         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2567         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2568         * build-aux/reloc-ldflags: Likewise.
2569         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2570
2571 2012-05-01  Bruno Haible  <bruno@clisp.org>
2572
2573         gnulib-tool: Remove transitional code.
2574         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2575         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2576
2577 2012-05-01  Bruno Haible  <bruno@clisp.org>
2578
2579         getcwd: Fix misindentation.
2580         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2581
2582 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2583
2584         exclude: process exclude and include directives in order
2585         This restores the pre-2009 behavior, and is part of a fix of a
2586         grep bug reported by Quentin Arce in
2587         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2588         * lib/exclude.c (struct exclude): Remove 'tail' member.
2589         (new_exclude_segment): Prepend the new segment instead of appending.
2590         Return void, since that's now more convenient.
2591         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2592         (file_name_matches): Renamed from excluded_file_name_p.
2593         (file_pattern_matches, file_name_matches):
2594         Return true if the pattern matches, not if it excludes.
2595         All callers changed.
2596         (excluded_file_name): Process the list in reverse order;
2597         since the list is now reversed this restores the pre-2009 behavior.
2598         (add_exclude): Adjust to new reversed-order list.  Use local var
2599         rather than macro, for clarity.
2600         * tests/test-exclude7.sh: Adjust to corrected behavior.
2601
2602         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2603         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2604         it's not possible here.  Handle the case of \ at end of pattern
2605         without dumping core.
2606         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2607
2608         _Noreturn: future-proof non-GNU and non-MSVC compilers
2609         * build-aux/snippet/_Noreturn.h (_Noreturn):
2610         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2611         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2612         C11 or later.  This is more likely to work with random future C
2613         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2614         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2615
2616         exclude: handle wildcards with FNM_EXTMATCH
2617         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2618         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2619         comment that "has wildcards" really means "has or may have
2620         wildcards".  Simplify by avoiding the need to call strcspn.
2621
2622 2012-04-29  Bruno Haible  <bruno@clisp.org>
2623
2624         gnulib-tool: Fix list of authors.
2625         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2626
2627 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2628
2629         bootstrap: support Automake-NG in $buildreq
2630         * bootstrap (check_versions): Handle automake and aclocal from
2631         Automake-NG specially.  They can be specified as respectively
2632         the "automake-ng" and "aclocal-ng" requirements.
2633
2634 2012-04-25  Eric Blake  <eblake@redhat.com>
2635
2636         bootstrap: only force latest Makefile.in.in for gettext module
2637         * build-aux/bootstrap (with_gettext): Only install latest
2638         Makefile.in.in for projects requesting bleeding edge gettext.
2639
2640 2012-04-22  Bruno Haible  <bruno@clisp.org>
2641
2642         doc: Mention reason for replacement on glibc/Linux systems.
2643         * doc/posix-functions/dprintf.texi: Mention the problem with special
2644         'long double' values.
2645         * doc/posix-functions/fprintf.texi: Likewise.
2646         * doc/posix-functions/printf.texi: Likewise.
2647         * doc/posix-functions/snprintf.texi: Likewise.
2648         * doc/posix-functions/sprintf.texi: Likewise.
2649         * doc/posix-functions/vdprintf.texi: Likewise.
2650         * doc/posix-functions/vfprintf.texi: Likewise.
2651         * doc/posix-functions/vprintf.texi: Likewise.
2652         * doc/posix-functions/vsnprintf.texi: Likewise.
2653         * doc/posix-functions/vsprintf.texi: Likewise.
2654         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2655         platforms with F_DUPFD_CLOEXEC problems.
2656         * doc/posix-functions/glob.texi: Mention which platforms are affected
2657         by the problem with symbolic links.
2658         * doc/posix-functions/linkat.texi: Mention the problem with
2659         AT_SYMLINK_FOLLOW on Linux.
2660
2661 2012-04-22  Bruno Haible  <bruno@clisp.org>
2662
2663         pwrite: Don't replace on all platforms.
2664         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2665
2666 2012-04-22  Bruno Haible  <bruno@clisp.org>
2667
2668         rint* tests: Avoid gcc warnings.
2669         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2670         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2671         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2672
2673 2012-04-21  Bruno Haible  <bruno@clisp.org>
2674
2675         users.txt: Update.
2676         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2677         switched from CVS to git, bzr, or svn.
2678
2679 2012-04-21  Bruno Haible  <bruno@clisp.org>
2680
2681         Large File Support for native Windows platforms.
2682
2683         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2684         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2685
2686         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2687         type.
2688         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2689         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2690         * doc/posix-headers/sys_types.texi: Mention the effect of the
2691         'largefile' module.
2692
2693         * lib/fcntl.in.h: Add comments about off_t.
2694         * modules/fcntl-h (Depends-on): Add sys_types.
2695
2696         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2697         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2698         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2699         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2700         * modules/unistd (Depends-on): Add sys_types.
2701         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2702
2703         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2704         instead of lseek.
2705         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2706         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2707         * modules/lseek (Depends-on): Add sys_types.
2708
2709         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2710         msvc-nothrow.h.
2711         (SetFileSize): New function.
2712         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2713         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2714         if Large File Support is requested.
2715         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2716         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2717
2718         * lib/stdio.in.h: Add comments about off_t.
2719         * modules/stdio (Depends-on): Add sys_types.
2720
2721         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2722         instead of ftello.
2723         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2724         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2725         (gl_PREREQ_FTELLO): New macro.
2726         * modules/ftello (Depends-on): Add sys_types.
2727         (configure.ac): Incoke gl_PREREQ_FTELLO.
2728
2729         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2730         instead of fseeko.
2731         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2732         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2733         (gl_PREREQ_FSEEKO): New macro.
2734         * modules/fseeko (Depends-on): Add sys_types.
2735         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2736
2737         * lib/sys_stat.in.h: Add comments about off_t.
2738         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2739         64-bit integer for st_size in 'struct stat'.
2740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2741         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2742         * modules/sys_stat (Depends-on): Add sys_types.
2743         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2744
2745         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2746         instead of stat or _stat.
2747
2748         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2749         'struct _stati64' instead of fstat and 'struct stat'.
2750         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2751         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2752
2753         Reported by Ray Satiro <raysatiro@yahoo.com>.
2754
2755 2012-04-19  Eric Blake  <eblake@redhat.com>
2756
2757         bootstrap: accommodate older libtool
2758         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2759         Reported by Daniel P. Berrange.
2760
2761 2012-04-19  Jim Meyering  <meyering@redhat.com>
2762
2763         announce-gen: avoid failure due to lack of Digest::SHA1
2764         Even with the preferred Digest::SHA available, this script
2765         would fail when the backup module, Digest::SHA1, was not installed.
2766         * build-aux/announce-gen: Quote the conditional use of "use".
2767         Reported by Reuben Thomas in:
2768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2769
2770         bootstrap: don't let a user's CDPATH setting affect this script
2771         When CDPATH is set, cd will sometimes generate output.
2772         When "cd" is run in a subshell whose output matters, that
2773         surprising-to-some output can cause malfunction.
2774         Unsetting CDPATH turns off this shell "feature."
2775         * build-aux/bootstrap (CDPATH): Unset.
2776         Reported by Reuben Thomas in:
2777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2778         and inspired by his patch here:
2779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2780
2781 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2782         and Jim Meyering  <meyering@redhat.com>
2783
2784         maint.mk: catch "see @xref{}" and similar
2785         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2786         prohibit "See also @xref{", "Also see @pxref{", and similar.
2787
2788 2012-04-16  Jim Meyering  <meyering@redhat.com>
2789
2790         bootstrap: really use gnulib's po/Makefile.in.in
2791         * build-aux/bootstrap: Correct the source file name in previous change.
2792         Reported by Akim Demaille.
2793
2794         configmake: correct minor inconsistency in Makefile rule
2795         * modules/configmake (Makefile.am): All other rules like this one
2796         run the final "mv -f ..." in the same backslash-continued command
2797         as the one that does everything else.  This one put the mv -f ...
2798         command on a separate, non-backslash-continued line.
2799         Make it like the others.
2800
2801         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2802         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2803         the one from gettext.  Reported by Akim Demaille.
2804
2805 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2806
2807         Fix recursion of install-* into po directories.
2808         Bison's install-pdf bug reported by Hans Aberg at
2809         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2810         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2811         (install-info, install-pdf, install-ps): New targets.
2812
2813 2012-04-16  Jim Meyering  <meyering@redhat.com>
2814
2815         maint: avoid spurious "make sc_maint" failure
2816         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2817         exempt all *.class file names, for lib/javaversion.class.
2818
2819 2012-04-15  Bruno Haible  <bruno@clisp.org>
2820
2821         lseek: Make configure test independent of environment.
2822         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2823         Windows, we know that lseek() on pipes is broken; skip the runtime
2824         test.
2825
2826 2012-04-14  Bruno Haible  <bruno@clisp.org>
2827
2828         stat: Bypass buggy override in mingw64.
2829         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2830         * lib/stat.c (stat) [mingw64]: Define to _stat.
2831         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2832
2833 2012-04-14  Bruno Haible  <bruno@clisp.org>
2834
2835         pathmax: Fix compilation error on MSVC 9.
2836         * modules/pathmax (Depends-on): Add unistd.
2837
2838 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2839
2840         README: document pointer comparison assumption
2841         * README (Portability guidelines): Document assumption about
2842         pointer comparisons, in response to a recent bug-gnulib comment by
2843         Jeffrey Kegler.
2844
2845 2012-04-12  Bruno Haible  <bruno@clisp.org>
2846
2847         Tests for module 'getrusage'.
2848         * modules/getrusage-tests: New file.
2849         * tests/test-getrusage.c: New file.
2850
2851         New module 'getrusage'.
2852         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2853         warn-on-use.h.
2854         (getrusage): New declaration.
2855         * lib/getrusage.c: New file.
2856         * m4/getrusage.m4: New file.
2857         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2858         is declared.
2859         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2860         HAVE_GETRUSAGE.
2861         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2862         snippet/c++defs, snippet/warn-on-use.
2863         (Makefile.am): Update generation of sys/resource.h. Substitute
2864         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2865         * modules/getrusage: New file.
2866         * doc/posix-functions/getrusage.texi: Mention the new module.
2867
2868 2012-04-12  Bruno Haible  <bruno@clisp.org>
2869
2870         Tests for module 'sys_resource'.
2871         * modules/sys_resource-tests: New file.
2872         * tests/test-sys_resource.c: New file.
2873
2874         New module 'sys_resource'.
2875         * lib/sys_resource.in.h: New file.
2876         * m4/sys_resource_h.m4: New file.
2877         * modules/sys_resource: New file.
2878         * doc/posix-headers/sys_resource.texi: Mention the new module.
2879
2880 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2881
2882         ioctl: Fix compilation error on mingw.
2883         * lib/ioctl.c: Include <windows.h>.
2884         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2885
2886 2012-04-04  Jim Meyering  <meyering@redhat.com>
2887
2888         regex: correct #pragma guard expression
2889         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2890         not 4.3.  Correct its cpp guard expression.
2891
2892 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2893
2894         regex: remove unnecessary type punning
2895         Problem reported by Vladimir Serbinenko in
2896         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2897         * lib/regex.h (struct re_pattern_buffer): Change the type of
2898         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2899         Fix comment to match code.
2900         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2901         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2902         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2903         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2904         (set_regs):
2905         Omit no-longer-necessary casts.
2906
2907 2012-04-03  Bruno Haible  <bruno@clisp.org>
2908
2909         Tests for module 'ilogbl'.
2910         * modules/ilogbl-tests: New file.
2911         * tests/test-ilogbl.c: New file.
2912
2913         New module 'ilogbl'.
2914         * lib/math.in.h (ilogbl): New declaration.
2915         * lib/ilogbl.c: New file.
2916         * m4/ilogbl.m4: New file.
2917         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2919         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2920         Split sed invocation, to avoid the limit of 100 substitutions of
2921         HP-UX 'sed'.
2922         * modules/ilogbl: New file.
2923         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2924         * doc/posix-functions/ilogbl.texi: Mention the new module.
2925
2926 2012-04-03  Bruno Haible  <bruno@clisp.org>
2927
2928         Tests for module 'ilogbf'.
2929         * modules/ilogbf-tests: New file.
2930         * tests/test-ilogbf.c: New file.
2931
2932         New module 'ilogbf'.
2933         * lib/math.in.h (ilogbf): New declaration.
2934         * lib/ilogbf.c: New file.
2935         * m4/ilogbf.m4: New file.
2936         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2938         REPLACE_ILOGBF.
2939         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2940         REPLACE_ILOGBF.
2941         * modules/ilogbf: New file.
2942         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2943         * doc/posix-functions/ilogbf.texi: Mention the new module.
2944
2945 2012-04-03  Bruno Haible  <bruno@clisp.org>
2946
2947         Tests for module 'ilogb'.
2948         * modules/ilogb-tests: New file.
2949         * tests/test-ilogb.c: New file.
2950         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2951         tests/test-logb-ieee.h.
2952
2953         New module 'ilogb'.
2954         * lib/math.in.h (ilogb): New declaration.
2955         * lib/ilogb.c: New file.
2956         * m4/ilogb.m4: New file.
2957         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2959         REPLACE_ILOGB.
2960         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2961         REPLACE_ILOGB.
2962         * modules/ilogb: New file.
2963         * tests/test-math-c++.cc: Check the declaration of ilogb.
2964         * doc/posix-functions/ilogb.texi: Mention the new module.
2965
2966 2012-04-03  Bruno Haible  <bruno@clisp.org>
2967
2968         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2969         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2970         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2971         (main): Check their values.
2972         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2973         problem.
2974
2975 2012-04-03  Bruno Haible  <bruno@clisp.org>
2976
2977         Tests for module 'logbl-ieee'.
2978         * modules/logbl-ieee-tests: New file.
2979         * tests/test-logbl-ieee.c: New file.
2980
2981         New module 'logbl-ieee'.
2982         * modules/logbl-ieee: New file.
2983
2984         Tests for module 'logb-ieee'.
2985         * modules/logb-ieee-tests: New file.
2986         * tests/test-logb-ieee.c: New file.
2987
2988         New module 'logb-ieee'.
2989         * modules/logb-ieee: New file.
2990
2991         Tests for module 'logbf-ieee'.
2992         * modules/logbf-ieee-tests: New file.
2993         * tests/test-logbf-ieee.c: New file.
2994         * tests/test-logb-ieee.h: New file.
2995
2996         New module 'logbf-ieee'.
2997         * modules/logbf-ieee: New file.
2998
2999 2012-04-03  Bruno Haible  <bruno@clisp.org>
3000
3001         Tests for module 'logbl'.
3002         * modules/logbl-tests: New file.
3003         * tests/test-logbl.c: New file.
3004
3005         New module 'logbl'.
3006         * lib/math.in.h (logbl): New declaration.
3007         * lib/logbl.c: New file.
3008         * m4/logbl.m4: New file.
3009         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3011         REPLACE_LOGBL.
3012         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3013         REPLACE_LOGBL.
3014         * modules/logbl: New file.
3015         * tests/test-math-c++.cc: Check the declaration of logbl.
3016         * doc/posix-functions/logbl.texi: Mention the new module.
3017
3018 2012-04-02  Bruno Haible  <bruno@clisp.org>
3019
3020         Tests for module 'logbf'.
3021         * modules/logbf-tests: New file.
3022         * tests/test-logbf.c: New file.
3023
3024         New module 'logbf'.
3025         * lib/math.in.h (logbf): New declaration.
3026         * lib/logbf.c: New file.
3027         * m4/logbf.m4: New file.
3028         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3030         REPLACE_LOGBF.
3031         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3032         REPLACE_LOGBF.
3033         * modules/logbf: New file.
3034         * tests/test-math-c++.cc: Check the declaration of logbf.
3035         * doc/posix-functions/logbf.texi: Mention the new module.
3036
3037 2012-04-02  Bruno Haible  <bruno@clisp.org>
3038
3039         logb tests: More tests.
3040         * tests/test-logb.h: New file, based on tests/test-logb.c and
3041         tests/test-frexp.h.
3042         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3043         (main): Just invoke test_function.
3044         * modules/logb-tests (Files): Add tests/test-logb.h,
3045         tests/minus-zero.h, tests/randomd.c.
3046         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3047
3048         logb: Provide replacement and workarounds.
3049         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3050         is 1.
3051         * lib/logb.c: New file.
3052         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3053         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3055         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3056         * modules/logb (Files): Add lib/logb.c.
3057         (Depends-on): Add isfinite, frexp, isnand.
3058         (configure.ac): Compile the replacement code logb.c if needed.
3059         * tests/test-math-c++.cc: Check the declaration of logb.
3060         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3061         with subnormal numbers.
3062
3063 2012-04-02  Bruno Haible  <bruno@clisp.org>
3064
3065         log10* tests: Speed up.
3066         * tests/test-log10.h (test_function): Reduce amount of random numbers
3067         to test.
3068
3069 2012-04-01  Bruno Haible  <bruno@clisp.org>
3070
3071         logf-ieee: Fix test whether logf works.
3072         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3073
3074 2012-04-01  Bruno Haible  <bruno@clisp.org>
3075
3076         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3077         * lib/log10l.c: Include <float.h>
3078         (log10l): On IRIX, normalize the +Infinity value.
3079         * modules/log10l (Depends-on): Add 'float'.
3080         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3081         +Infinity.
3082
3083         log10f-ieee: Work around test failure on NetBSD 5.1.
3084         * m4/log10f-ieee.m4: New file.
3085         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3086         test whether log10f works with a negative argument. Replace it if not.
3087         * lib/log10f.c (log10f): For negative arguments, return NaN.
3088         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3089         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3090         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3091
3092         log10f-ieee: Work around test failure on Solaris 9.
3093         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3094         (configure.ac): Require gl_FUNC_LOG10F.
3095
3096         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3097         * m4/log10-ieee.m4: New file.
3098         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3099         whether log10 works with a negative argument. Replace it if not.
3100         * lib/log10.c (log10): For negative arguments, return NaN.
3101         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3102         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3103         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3104
3105         Tests for module 'log10l-ieee'.
3106         * modules/log10l-ieee-tests: New file.
3107         * tests/test-log10l-ieee.c: New file.
3108
3109         New module 'log10l-ieee'.
3110         * modules/log10l-ieee: New file.
3111
3112         Tests for module 'log10-ieee'.
3113         * modules/log10-ieee-tests: New file.
3114         * tests/test-log10-ieee.c: New file.
3115
3116         New module 'log10-ieee'.
3117         * modules/log10-ieee: New file.
3118
3119         Tests for module 'log10f-ieee'.
3120         * modules/log10f-ieee-tests: New file.
3121         * tests/test-log10f-ieee.c: New file.
3122         * tests/test-log10-ieee.h: New file.
3123
3124         New module 'log10f-ieee'.
3125         * modules/log10f-ieee: New file.
3126
3127 2012-04-01  Bruno Haible  <bruno@clisp.org>
3128
3129         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3130         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3131         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3132         workaround.
3133         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3134         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3136         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3137         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3138         (Depends-on): Update conditions.
3139         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3140         IRIX 6.5, OSF/1 5.1 problems.
3141
3142 2012-04-01  Bruno Haible  <bruno@clisp.org>
3143
3144         log10f: Work around OSF/1 5.1 bug.
3145         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3146         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3147         workaround.
3148         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3149         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3151         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3152         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3153         (Depends-on): Update conditions.
3154         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3155
3156 2012-04-01  Bruno Haible  <bruno@clisp.org>
3157
3158         log10: Work around OSF/1 5.1 bug.
3159         * lib/math.in.h (log10): New declaration.
3160         * lib/log10.c: New file.
3161         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3162         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3163         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3165         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3166         * modules/log10 (Files): Add lib/log10.c.
3167         (Depends-on): Add math.
3168         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3169         * tests/test-math-c++.cc: Check the declaration of log10.
3170         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3171
3172 2012-03-31  Bruno Haible  <bruno@clisp.org>
3173
3174         log10l tests: More tests.
3175         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3176         tests/minus-zero.h, tests/randoml.c.
3177         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3178         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3179         (main): Invoke test_function.
3180
3181         log10f tests: More tests.
3182         * modules/log10f-tests (Files): Add tests/test-log10.h,
3183         tests/minus-zero.h, tests/randomf.c.
3184         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3185         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3186         (main): Invoke test_function.
3187
3188         log10 tests: More tests.
3189         * tests/test-log10.h: New file.
3190         * modules/log10-tests (Files): Add tests/test-log10.h,
3191         tests/minus-zero.h, tests/randomd.c.
3192         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3193         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3194         (main): Invoke test_function.
3195
3196 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3197
3198         fflush: Fix syntax error.
3199         * lib/fflush.c: Include unused-parameter.h, needed for
3200         _GL_UNUSED_PARAMETER.
3201         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3202
3203 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3204
3205         regex: pacify GCC when compiling GRUB
3206         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3207         a diagnostic.  Reported by Vladimir Serbinenko in
3208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3209
3210 2012-03-29  Eric Blake  <eblake@redhat.com>
3211
3212         stdio: don't assume gets any more
3213         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3214         support.
3215         * modules/stdio (Makefile.am): Likewise.
3216         * lib/stdio-read.c (gets): Likewise.
3217         * tests/test-stdio-c++.cc: Likewise.
3218         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3219         * lib/stdio.in.h (gets): Make warning occur in more places.
3220         * doc/posix-functions/gets.texi (gets): Update documentation.
3221         Reported by Christer Solskogen.
3222
3223         maint.mk: fix syntax checks without exclusions
3224         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3225         Reported by Daniel P. Berrange.
3226
3227         strerror_r: avoid compiler warning
3228         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3229         level.
3230
3231         fflush: avoid compiler warning
3232         * lib/fflush.c (update_fpos_cache): Mark variables that are
3233         potentially unused.
3234
3235 2012-03-25  Bruno Haible  <bruno@clisp.org>
3236
3237         Tests for module 'localeconv'.
3238         * modules/localeconv-tests: New file.
3239         * tests/test-localeconv.c: New file.
3240
3241         New module 'localeconv'.
3242         * lib/locale.in.h (localeconv): New declaration.
3243         * lib/localeconv.c: New file.
3244         * m4/localeconv.m4: New file.
3245         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3246         REPLACE_LOCALECONV.
3247         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3248         REPLACE_LOCALECONV.
3249         * modules/localeconv: New file.
3250         * modules/nl_langinfo (Depends-on): Add localeconv.
3251         * modules/human (Depends-on): Likewise.
3252         * doc/posix-functions/localeconv.texi: Mention the new module.
3253
3254 2012-03-25  Bruno Haible  <bruno@clisp.org>
3255
3256         locale: Provide a complete 'struct lconv'.
3257         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3258         'struct lconv' does not contain int_p_cs_precedes.
3259         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3260         * doc/posix-headers/locale.texi: Update.
3261
3262         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3263         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3264         * doc/posix-headers/locale.texi: Update.
3265
3266         locale: Provide a working 'struct lconv'.
3267         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3268         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3269         'struct lconv' does not even contain decimal_point.
3270         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3271         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3272         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3273         * doc/posix-headers/locale.texi: Mention the problems with
3274         'struct lconv'.
3275         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3276
3277 2012-03-24  Bruno Haible  <bruno@clisp.org>
3278
3279         Enable common subexpression optimization in GCC.
3280         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3281         macros.
3282         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3283         GCC attribute 'const'.
3284         (uc_locale_language): Declare with GCC attribute 'pure'.
3285         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3286         with GCC attribute 'const'.
3287         * lib/unictype.in.h (uc_is_general_category_withtable,
3288         uc_combining_class, uc_combining_class_name,
3289         uc_combining_class_long_name, uc_bidi_class_name,
3290         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3291         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3292         uc_decimal_value, uc_digit_value, uc_numeric_value,
3293         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3294         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3295         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3296         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3297         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3298         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3299         Declare with GCC attribute 'const'.
3300         (uc_general_category_name, uc_general_category_long_name,
3301         uc_general_category_byname, uc_general_category,
3302         uc_is_general_category, uc_combining_class_byname,
3303         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3304         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3305         Declare with GCC attribute 'pure'.
3306         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3307         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3308         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3309         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3310         with GCC attribute 'pure'.
3311         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3312         'const'.
3313         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3314         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3315         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3316         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3317         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3318         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3319         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3320         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3321         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3322         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3323         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3324         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3325         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3326         GCC attribute 'pure'.
3327         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3328         'const'.
3329         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3330         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3331         u32_strwidth): Declare with GCC attribute 'pure'.
3332
3333         Enable common subexpression optimization in GCC.
3334         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3335         (alphasort): Declare with GCC attribute 'pure'.
3336         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3337         (atoll): Declare with GCC attribute 'pure'.
3338         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3339         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3340         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3341         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3342         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3343         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3344         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3345
3346 2012-03-24  Bruno Haible  <bruno@clisp.org>
3347
3348         gnulib-tool: Avoid unintended error output from 'cmp'.
3349         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3350         "cmp -s", not "cmp > /dev/null".
3351
3352 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3353
3354         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3355
3356         It's not just Automake versions < 1.9b that creates an empty
3357         pkgdatadir at installation time if pkgdata_DATA is specified
3358         to empty; modern automake versions do this as well, at least
3359         until automake 1.11.4 (not yet released at the moment of writing,
3360         but soon to appear).  That behaviour was generally considered a
3361         feature rather than a bug, at least until this discussion:
3362         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3363
3364         See also automake bugs #10997 and #11030.
3365
3366         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3367         reference to relevant automake bug numbers.
3368         (func_emit_tests_Makefile_am): Likewise.
3369
3370 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3371
3372         announce-gen: use Digest::SHA when possible
3373         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3374         back to Digest::SHA1 if necessary.
3375
3376 2012-03-20  Jim Meyering  <meyering@redhat.com>
3377
3378         tests: avoid gcc warnings about argv vs. const initializers
3379         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3380         warnings about discarding 'const' qualifier from pointer target type.
3381         * tests/test-posix_spawn2.c (main): Likewise.
3382
3383 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3384
3385         README-release: simplify slightly
3386         * top/README-release: Run "git checkout master" only once.
3387
3388 2012-03-15  Mark Wielaard  <mark@klomp.org>
3389
3390         git-merge-changelog: add specific example on how to use with hg.
3391         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3392
3393 2012-03-18  Mark Wielaard  <mark@klomp.org>
3394
3395         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3396
3397 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3398
3399         git-version-gen: don't let "prefix" envvar cause trouble
3400         * build-aux/git-version-gen (prefix): Initialize properly,
3401         so as not to use a value specified via the environment.
3402         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3403
3404 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         regex: diagnose too-large repeat counts in EREs
3407         Previously, the code did not diagnose the too-large repeat count
3408         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3409         as if it were 'b\{1000000000}', which is unexpected.
3410         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3411         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3412         is a reasonable one for this problem.  Another option would be to
3413         create a new REG_OVERFLOW error for repeat counts that are too large.
3414         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3415         count is too large, so that the caller can distinguish the two cases.
3416         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3417         "Too large" return code, and that repeat counts are one example of this.
3418
3419 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         doc: some glibc x32 integer width issues
3422         * doc/posix-headers/sys_types.texi (sys/types.h):
3423         * doc/posix-headers/time.texi (time.h):
3424         Mention that glibc x32 does not conform to POSIX in a couple of
3425         areas related to integer widths.
3426
3427 2012-03-15  Bruno Haible  <bruno@clisp.org>
3428
3429         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3430         * lib/fma.c (VOLATILE): New macro.
3431         (FUNC): Use it to work around a GCC compiler bug.
3432
3433 2012-03-13  Bruno Haible  <bruno@clisp.org>
3434
3435         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3436         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3437         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3438         REPLACE_HYPOTL to 1.
3439         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3440
3441 2012-03-13  Bruno Haible  <bruno@clisp.org>
3442
3443         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3444         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3445         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3446         REPLACE_REMAINDERL to 1.
3447         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3448         bug.
3449
3450 2012-03-13  Bruno Haible  <bruno@clisp.org>
3451
3452         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3453         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3454         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3455         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3456         too big rounding errors.
3457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3458         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3459         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3460         (Depends-on): Update conditions.
3461         * tests/test-sqrtl.c (my_ldexpl): New function.
3462         (main): Add test of a particular value.
3463         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3464
3465 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3466
3467         doc: Update timer_* platform portability notes.
3468         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3469         that always return ENOSYS.
3470         * doc/posix-functions/timer_delete.texi: Likewise.
3471         * doc/posix-functions/timer_gettime.texi: Likewise.
3472         * doc/posix-functions/timer_settime.texi: Likewise.
3473
3474 2012-03-13  Bruno Haible  <bruno@clisp.org>
3475
3476         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3477         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3478         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3479         REPLACE_CBRTL to 1.
3480         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3481
3482 2012-03-13  Bruno Haible  <bruno@clisp.org>
3483
3484         remainderl: Avoid compilation error on AIX >= 5.2.
3485         * lib/math.in.h (remainderl): Undefine macro from the system header.
3486
3487 2012-03-13  Bruno Haible  <bruno@clisp.org>
3488
3489         Avoid compilation errors with MSVC option -fp:strict.
3490         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3491         * lib/cbrtf.c: Likewise.
3492         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3493
3494 2012-03-12  Bruno Haible  <bruno@clisp.org>
3495
3496         uninorm: Don't crash in out-of-memory conditions.
3497         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3498         gracefully.
3499         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3500         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3501
3502 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3503
3504         quote: fix syntax-check
3505         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3506         also exports quote_quoting_options.
3507
3508 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3509
3510         Collapse list of copyright years to ranges.  See
3511         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3512         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3513         build-aux/csharpexec.sh.in, build-aux/gnupload,
3514         build-aux/install-reloc, build-aux/javacomp.sh.in,
3515         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3516         build-aux/move-if-change, build-aux/reloc-ldflags,
3517         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3518
3519 2012-03-11  Bruno Haible  <bruno@clisp.org>
3520
3521         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3522         * m4/log2f-ieee.m4: New file.
3523         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3524         whether log2f works with a minus zero argument. Replace it if not.
3525         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3526         (Depends-on): Add log2-ieee.
3527         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3528         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3529
3530         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3531         * m4/log2-ieee.m4: New file.
3532         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3533         whether log2 works with a minus zero argument. Replace it if not.
3534         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3535         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3536         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3537
3538         Tests for module 'log2l-ieee'.
3539         * modules/log2l-ieee-tests: New file.
3540         * tests/test-log2l-ieee.c: New file.
3541
3542         New module 'log2l-ieee'.
3543         * modules/log2l-ieee: New file.
3544
3545         Tests for module 'log2-ieee'.
3546         * modules/log2-ieee-tests: New file.
3547         * tests/test-log2-ieee.c: New file.
3548
3549         New module 'log2-ieee'.
3550         * modules/log2-ieee: New file.
3551
3552         Tests for module 'log2f-ieee'.
3553         * modules/log2f-ieee-tests: New file.
3554         * tests/test-log2f-ieee.c: New file.
3555         * tests/test-log2-ieee.h: New file.
3556
3557         New module 'log2f-ieee'.
3558         * modules/log2f-ieee: New file.
3559
3560 2012-03-11  Bruno Haible  <bruno@clisp.org>
3561
3562         Tests for module 'log2l'.
3563         * modules/log2l-tests: New file.
3564         * tests/test-log2l.c: New file.
3565
3566         New module 'log2l'.
3567         * lib/math.in.h (log2l): New declaration.
3568         * lib/log2l.c: New file.
3569         * m4/log2l.m4: New file.
3570         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3572         REPLACE_LOG2L.
3573         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3574         REPLACE_LOG2L.
3575         * modules/log2l: New file.
3576         * tests/test-math-c++.cc: Check the declaration of log2l.
3577         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3578         and OSF/1 problems.
3579
3580 2012-03-11  Bruno Haible  <bruno@clisp.org>
3581
3582         Tests for module 'log2f'.
3583         * modules/log2f-tests: New file.
3584         * tests/test-log2f.c: New file.
3585
3586         New module 'log2f'.
3587         * lib/math.in.h (log2f): New declaration.
3588         * lib/log2f.c: New file.
3589         * m4/log2f.m4: New file.
3590         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3592         REPLACE_LOG2F.
3593         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3594         REPLACE_LOG2F.
3595         * modules/log2f: New file.
3596         * tests/test-math-c++.cc: Check the declaration of log2f.
3597         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3598         and OSF/1 and Cygwin problems.
3599
3600 2012-03-11  Bruno Haible  <bruno@clisp.org>
3601
3602         Tests for module 'log2'.
3603         * modules/log2-tests: New file.
3604         * tests/test-log2.c: New file.
3605         * tests/test-log2.h: New file.
3606
3607         New module 'log2'.
3608         * lib/math.in.h (log2): New declaration.
3609         * lib/log2.c: New file.
3610         * m4/log2.m4: New file.
3611         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3613         REPLACE_LOG2.
3614         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3615         REPLACE_LOG2.
3616         * modules/log2: New file.
3617         * tests/test-math-c++.cc: Check the declaration of log2.
3618         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3619         and OSF/1 and Cygwin problems.
3620
3621 2012-03-11  Bruno Haible  <bruno@clisp.org>
3622
3623         exp2* tests: More tests.
3624         * tests/test-exp2.h (test_function): Test all integral arguments that
3625         don't need to overflow or denormalized numbers.
3626         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3627         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3628         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3629
3630 2012-03-10  Bruno Haible  <bruno@clisp.org>
3631
3632         log1pl-ieee: Work around test failure on AIX 7.1.
3633         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3634
3635         log1pl-ieee: Work around test failure on IRIX 6.5.
3636         * m4/log1pl-ieee.m4: New file.
3637         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3638         test whether log1pl works with a minus zero argument. Replace it if
3639         not.
3640         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3642         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3643         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3644         (Depends-on): Update conditions.
3645         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3646         m4/signbit.m4.
3647         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3648         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3649
3650         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3651         * m4/log1pf-ieee.m4: New file.
3652         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3653         test whether log1pf works with a minus zero argument. Replace it if
3654         not.
3655         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3656         m4/signbit.m4.
3657         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3658         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3659
3660         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3661         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3662         (configure.ac): Require gl_FUNC_LOG1PF.
3663
3664         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3665         * m4/log1p-ieee.m4: New file.
3666         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3667         whether log1p works with a minus zero argument. Replace it if not.
3668         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3670         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3671         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3672         (Depends-on): Update conditions.
3673         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3674         m4/signbit.m4.
3675         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3676         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3677
3678         Tests for module 'log1pl-ieee'.
3679         * modules/log1pl-ieee-tests: New file.
3680         * tests/test-log1pl-ieee.c: New file.
3681
3682         New module 'log1pl-ieee'.
3683         * modules/log1pl-ieee: New file.
3684
3685         Tests for module 'log1p-ieee'.
3686         * modules/log1p-ieee-tests: New file.
3687         * tests/test-log1p-ieee.c: New file.
3688
3689         New module 'log1p-ieee'.
3690         * modules/log1p-ieee: New file.
3691
3692         Tests for module 'log1pf-ieee'.
3693         * modules/log1pf-ieee-tests: New file.
3694         * tests/test-log1pf-ieee.c: New file.
3695         * tests/test-log1p-ieee.h: New file.
3696
3697         New module 'log1pf-ieee'.
3698         * modules/log1pf-ieee: New file.
3699
3700 2012-03-10  Bruno Haible  <bruno@clisp.org>
3701
3702         Tests for module 'log1pl'.
3703         * modules/log1pl-tests: New file.
3704         * tests/test-log1pl.c: New file.
3705
3706         New module 'log1pl'.
3707         * lib/math.in.h (log1pl): New declaration.
3708         * lib/log1pl.c: New file.
3709         * m4/log1pl.m4: New file.
3710         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3712         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3713         * modules/log1pl: New file.
3714         * tests/test-math-c++.cc: Check the declaration of log1pl.
3715         * doc/posix-functions/log1pl.texi: Mention the new module.
3716
3717 2012-03-10  Bruno Haible  <bruno@clisp.org>
3718
3719         Tests for module 'log1pf'.
3720         * modules/log1pf-tests: New file.
3721         * tests/test-log1pf.c: New file.
3722
3723         New module 'log1pf'.
3724         * lib/math.in.h (log1pf): New declaration.
3725         * lib/log1pf.c: New file.
3726         * m4/log1pf.m4: New file.
3727         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3729         REPLACE_LOG1PF.
3730         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3731         REPLACE_LOG1PF.
3732         * modules/log1pf: New file.
3733         * tests/test-math-c++.cc: Check the declaration of log1pf.
3734         * doc/posix-functions/log1pf.texi: Mention the new module.
3735
3736 2012-03-10  Bruno Haible  <bruno@clisp.org>
3737
3738         log1p tests: More tests.
3739         * tests/test-log1p.h: New file.
3740         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3741         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3742         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3743         (main): Invoke test_function.
3744
3745         log1p: Provide replacement for Minix and MSVC.
3746         * lib/math.in.h (log1p): New declaration.
3747         * lib/log1p.c: New file.
3748         * m4/log1p.m4: New file.
3749         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3751         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3752         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3753         (Depends-on): Add math, isnand, log, round.
3754         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3755         HAVE_LOG1P is 0.
3756         * tests/test-math-c++.cc: Check the declaration of log1p.
3757         * doc/posix-functions/log1p.texi: Mention the replacement.
3758
3759 2012-03-10  Bruno Haible  <bruno@clisp.org>
3760
3761         math tests: Small simplification.
3762         * tests/test-exp.h (test_function): Use the same err_bound for
3763         'double' on platforms with sizeof (long double) == sizeof (double)
3764         than on platforms with sizeof (long double) > sizeof (double).
3765         * tests/test-exp2.h (test_function): Likewise.
3766         * tests/test-expm1.h (test_function): Likewise.
3767         * tests/test-log.h (test_function): Likewise.
3768
3769 2012-03-10  Bruno Haible  <bruno@clisp.org>
3770
3771         Fix some comments.
3772         * lib/expl.c: Fix an ambiguous comment.
3773         * lib/expm1.c: Likewise.
3774         * lib/expm1l.c: Likewise.
3775         * lib/exp2.c: Likewise.
3776         * lib/exp2l.c: Likewise.
3777
3778 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         regex: allow inclusion of <regex.h> before <limits.h>
3781         Without this patch, portable programs had to include <limits.h> before
3782         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3783         I ran into this problem with a test version of GNU grep on Solaris 8.
3784         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3785         This is done conditionally so that this change can be merged
3786         back to glibc.
3787         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3788         using the included regex.
3789
3790         fts: depend on fdopendir
3791         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3792         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3793         problem was introduced when fdopendir was split out.
3794
3795 2012-03-10  Bruno Haible  <bruno@clisp.org>
3796
3797         Remove unused variables.
3798         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3799         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3800
3801 2012-03-10  Bruno Haible  <bruno@clisp.org>
3802
3803         isnanf-nolibm: Fix last commit.
3804         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3805
3806         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3807         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3808
3809 2012-03-10  Bruno Haible  <bruno@clisp.org>
3810
3811         logf-ieee: Work around test failure on NetBSD 5.1.
3812         * m4/logf-ieee.m4: New file.
3813         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3814         whether logf works with a negative argument. Replace it if not.
3815         * lib/logf.c (logf): For negative arguments, return NaN.
3816         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3817         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3818         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3819
3820         logf-ieee: Work around test failure on Solaris 9.
3821         * modules/logf-ieee (Depends-on): Add log-ieee.
3822         (configure.ac): Require gl_FUNC_LOGF.
3823
3824         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3825         * m4/log-ieee.m4: New file.
3826         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3827         log works with a negative argument. Replace it if not.
3828         * lib/log.c (log): For negative arguments, return NaN.
3829         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3830         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3831         * doc/posix-functions/log.texi: Mention the log-ieee module.
3832
3833         Tests for module 'logl-ieee'.
3834         * modules/logl-ieee-tests: New file.
3835         * tests/test-logl-ieee.c: New file.
3836
3837         New module 'logl-ieee'.
3838         * modules/logl-ieee: New file.
3839
3840         Tests for module 'log-ieee'.
3841         * modules/log-ieee-tests: New file.
3842         * tests/test-log-ieee.c: New file.
3843
3844         New module 'log-ieee'.
3845         * modules/log-ieee: New file.
3846
3847         Tests for module 'logf-ieee'.
3848         * modules/logf-ieee-tests: New file.
3849         * tests/test-logf-ieee.c: New file.
3850         * tests/test-log-ieee.h: New file.
3851
3852         New module 'logf-ieee'.
3853         * modules/logf-ieee: New file.
3854
3855 2012-03-10  Bruno Haible  <bruno@clisp.org>
3856
3857         log: Fix bug introduced on 2012-03-09.
3858         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3859
3860 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3861
3862         timer-time: link explicitly with pthreads on glibc
3863         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3864         to support static linking, when newer glibc is
3865         detected, as that contains pthread emulation of
3866         POSIX timer functions where required.
3867         * modules/timer-time: Depend on threadlib to
3868         pull in the appropriate library to link.
3869
3870 2012-03-10  Bruno Haible  <bruno@clisp.org>
3871
3872         log* tests: More tests.
3873         * tests/test-log.h: New file.
3874         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3875         (main): Invoke test_function.
3876         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3877         (main): Invoke test_function.
3878         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3879         (main): Invoke test_function.
3880         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3881         tests/randomd.c.
3882         (Makefile.am): Add randomd.c to test_log_SOURCES.
3883         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3884         tests/randomf.c.
3885         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3886         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3887         tests/randoml.c.
3888         (Depends-on): Add 'float'.
3889         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3890
3891 2012-03-09  Bruno Haible  <bruno@clisp.org>
3892
3893         logl: Work around OSF/1 5.1 bug.
3894         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3895         * lib/logl.c (logl): If logl exists, use it and provide just the
3896         workaround.
3897         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3898         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3900         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3901         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3902         (Depends-on): Update conditions.
3903         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3904
3905 2012-03-09  Bruno Haible  <bruno@clisp.org>
3906
3907         logf: Work around OSF/1 5.1 bug.
3908         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3909         * lib/logf.c (logf): If logf exists, use it and provide just the
3910         workaround.
3911         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3912         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3914         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3915         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3916         (Depends-on): Update conditions.
3917         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3918
3919 2012-03-09  Bruno Haible  <bruno@clisp.org>
3920
3921         log: Work around OSF/1 5.1 bug.
3922         * lib/math.in.h (log): New declaration.
3923         * lib/log.c: New file.
3924         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3925         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3926         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3928         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3929         * modules/log (Files): Add lib/log.c.
3930         (Depends-on): Add math.
3931         (configure.ac): If REPLACE_LOG is 1, compile an override.
3932         * tests/test-math-c++.cc: Check the declaration of log.
3933         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3934
3935 2012-03-09  Jim Meyering  <meyering@redhat.com>
3936
3937         readtokens.c: adjust wording in a comment
3938         * lib/readtokens.c: Insert omitted "that" in a comment.
3939
3940 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3941
3942         modechange: add notations +40, 00440, etc.
3943         * lib/modechange.c (mode_compile): Support new notations
3944         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3945
3946 2012-03-08  Bruno Haible  <bruno@clisp.org>
3947
3948         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3949         * m4/exp2l-ieee.m4: New file.
3950         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3951         test whether exp2l works with a NaN argument and with a negative
3952         infinity argument. Replace it if not.
3953         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3955         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3956         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3957         (Depends-on): Update conditions.
3958         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3959         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3960         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3961
3962         Tests for module 'exp2l-ieee'.
3963         * modules/exp2l-ieee-tests: New file.
3964         * tests/test-exp2l-ieee.c: New file.
3965
3966         New module 'exp2l-ieee'.
3967         * modules/exp2l-ieee: New file.
3968
3969         Tests for module 'exp2-ieee'.
3970         * modules/exp2-ieee-tests: New file.
3971         * tests/test-exp2-ieee.c: New file.
3972
3973         New module 'exp2-ieee'.
3974         * modules/exp2-ieee: New file.
3975
3976         Tests for module 'exp2f-ieee'.
3977         * modules/exp2f-ieee-tests: New file.
3978         * tests/test-exp2f-ieee.c: New file.
3979         * tests/test-exp2-ieee.h: New file.
3980
3981         New module 'exp2f-ieee'.
3982         * modules/exp2f-ieee: New file.
3983
3984 2012-03-08  Bruno Haible  <bruno@clisp.org>
3985
3986         Tests for module 'exp2l'.
3987         * modules/exp2l-tests: New file.
3988         * tests/test-exp2l.c: New file.
3989
3990         New module 'exp2l'.
3991         * lib/math.in.h (exp2l): New declaration.
3992         * lib/exp2l.c: New file.
3993         * lib/expl-table.c: New file, extracted from lib/expl.c.
3994         * lib/expl.c (gl_expl_table): New declaration.
3995         (expl): Remove expl_table. Update reference.
3996         * m4/exp2l.m4: New file.
3997         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3999         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4000         * modules/exp2l: New file.
4001         * modules/expl (Files): Add lib/expl-table.c.
4002         (configure.ac): Compile also expl-table.c.
4003         * tests/test-math-c++.cc: Check the declaration of exp2l.
4004         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4005         problem.
4006
4007 2012-03-08  Bruno Haible  <bruno@clisp.org>
4008
4009         Tests for module 'exp2f'.
4010         * modules/exp2f-tests: New file.
4011         * tests/test-exp2f.c: New file.
4012
4013         New module 'exp2f'.
4014         * lib/math.in.h (exp2f): New declaration.
4015         * lib/exp2f.c: New file.
4016         * m4/exp2f.m4: New file.
4017         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4019         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4020         * modules/exp2f: New file.
4021         * tests/test-math-c++.cc: Check the declaration of exp2f.
4022         * doc/posix-functions/exp2f.texi: Mention the new module and the
4023         IRIX problem.
4024
4025 2012-03-08  Bruno Haible  <bruno@clisp.org>
4026
4027         Tests for module 'exp2'.
4028         * modules/exp2-tests: New file.
4029         * tests/test-exp2.c: New file.
4030         * tests/test-exp2.h: New file.
4031
4032         New module 'exp2'.
4033         * lib/math.in.h (exp2): New declaration.
4034         * lib/exp2.c: New file.
4035         * m4/exp2.m4: New file.
4036         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4038         REPLACE_EXP2.
4039         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4040         REPLACE_EXP2.
4041         * modules/exp2: New file.
4042         * tests/test-math-c++.cc: Check the declaration of exp2.
4043         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4044         and OpenBSD problems.
4045
4046 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4047
4048         savedir: fix comment typo
4049         * lib/savedir.c (savedirstream): Fix typo in comment.
4050
4051 2012-03-08  Bruno Haible  <bruno@clisp.org>
4052
4053         test-readtokens.c: use const; remove unwarranted cast
4054         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4055
4056 2012-03-08  Bruno Haible  <bruno@clisp.org>
4057
4058         fmal: Avoid compilation error on AIX.
4059         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4060         AIX 5.2..7.1.
4061
4062 2012-03-08  Bruno Haible  <bruno@clisp.org>
4063
4064         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4065         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4066         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4067         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4068         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4069         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4070         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4071
4072 2012-03-08  Bruno Haible  <bruno@clisp.org>
4073
4074         remainderf: Override buggy system function on IRIX 6.5.
4075         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4076         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4077         when it exists.
4078         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4079
4080 2012-03-08  Jim Meyering  <meyering@redhat.com>
4081
4082         test-readtokens.c: avoid const-related compilation warnings
4083         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4084
4085 2012-03-07  Jim Meyering  <meyering@redhat.com>
4086             Bruno Haible  <bruno@clisp.org>
4087
4088         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4089         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4090         tests/randomd.c.
4091         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4092         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4093         tests/randoml.c.
4094         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4095
4096 2012-03-07  Bruno Haible  <bruno@clisp.org>
4097
4098         expm1l: Avoid compilation error on AIX.
4099         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4100         AIX 5.2..7.1.
4101
4102 2012-03-07  Bruno Haible  <bruno@clisp.org>
4103
4104         expm1l: Don't override undeclared system function on IRIX 6.5.
4105         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4106         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4107         it exists. Set HAVE_DECL_EXPM1L.
4108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4109         HAVE_EXPM1L.
4110         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4111         HAVE_EXPM1L.
4112         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4113
4114 2012-03-07  Bruno Haible  <bruno@clisp.org>
4115
4116         remainderl: Don't override undeclared system function on IRIX 6.5.
4117         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4118         HAVE_REMAINDERL.
4119         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4120         declared when it exists. Set HAVE_DECL_REMAINDERL.
4121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4122         not HAVE_REMAINDERL.
4123         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4124         HAVE_REMAINDERL.
4125         * doc/posix-functions/remainderl.texi: Mention missing declaration
4126         problem.
4127
4128 2012-03-07  Bruno Haible  <bruno@clisp.org>
4129
4130         rintf: Don't override undeclared system function on IRIX 6.5.
4131         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4132         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4133         exists. Set HAVE_DECL_RINTF.
4134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4135         HAVE_RINTF.
4136         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4137         HAVE_RINTF.
4138         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4139
4140 2012-03-07  Bruno Haible  <bruno@clisp.org>
4141
4142         roundl: Avoid compilation error on AIX.
4143         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4144         AIX 5.2..7.1.
4145
4146 2012-03-07  Bruno Haible  <bruno@clisp.org>
4147
4148         roundl: Don't override undeclared system function on IRIX 6.5.
4149         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4150         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4151         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4152         * modules/roundl (configure.ac): For replacement code, test
4153         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4154         (Depends-on): Update conditions.
4155         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4156
4157 2012-03-07  Bruno Haible  <bruno@clisp.org>
4158
4159         roundf: Don't override undeclared system function on IRIX 6.5.
4160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4161         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4162         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4163         * modules/roundf (configure.ac): For replacement code, test
4164         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4165         (Depends-on): Update conditions.
4166         * modules/roundf-ieee (Depends-on): Update conditions.
4167         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4168
4169 2012-03-07  Bruno Haible  <bruno@clisp.org>
4170
4171         round: Don't override undeclared system function on IRIX 6.5.
4172         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4173         argument.
4174         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4175         also when it is not declared. Set HAVE_ROUND. For replacement code,
4176         test HAVE_ROUND, not HAVE_DECL_ROUND.
4177         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4178         not HAVE_DECL_ROUND.
4179         (Depends-on): Update conditions.
4180         * modules/round-ieee (Depends-on): Update conditions.
4181         * doc/posix-functions/round.texi: Mention the IRIX problem.
4182
4183 2012-03-07  Bruno Haible  <bruno@clisp.org>
4184
4185         copysignf: Don't override undeclared system function on IRIX 6.5.
4186         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4187         HAVE_COPYSIGNF.
4188         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4189         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4191         not HAVE_COPYSIGNF.
4192         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4193         HAVE_COPYSIGNF.
4194         * doc/posix-functions/copysignf.texi: Mention missing declaration
4195         problem.
4196
4197 2012-03-07  Jim Meyering  <meyering@redhat.com>
4198
4199         readtokens: add tests
4200         * modules/readtokens-tests: New file.
4201         * tests/test-readtokens.c: New file.
4202
4203 2012-03-07  Jim Meyering  <meyering@redhat.com>
4204
4205         quotearg: the module must now include quote.h
4206         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4207         So must the module.
4208         * modules/quotearg (Files): Add quote.h.
4209
4210 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4211
4212         readtokens: avoid core dumps with unusual calling patterns
4213         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4214         * lib/readtokens.c: Include limits.h.
4215         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4216         (readtoken): Don't cache the delimiters; the cache code was buggy
4217         if !delim && saved_delim, or if the new n_delim differs from the old.
4218         Also, it wasn't thread-safe.
4219
4220 2012-03-07  Bruno Haible  <bruno@clisp.org>
4221
4222         quote: Adhere to common module description layout.
4223         * modules/quote (Makefile.am): Add back empty section.
4224
4225 2012-03-06  Akim Demaille  <demaille@gostai.com>
4226
4227         quote: fuse into quotearg
4228         This patch is made for the benefit of Bison.
4229         quote does not leave the choice of the quoting style to the user.
4230         quoting_style provides poor customizability, yet quoting_options,
4231         which is very rich, is hidden inside quotearg.c.  So in order to
4232         allow quote customization, move its implementation to quotearg.c.
4233         * lib/quote.c: Remove.
4234         * modules/quote: Adjust.
4235         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4236         warning: provide all the members of literal structs.
4237         (quote_quoting_options): New.
4238         (quote, quote_n): Import implementation from quote.c.
4239         * lib/quote.h: Import the comments from quote.c.
4240         (quote_quoting_options): New.
4241
4242 2012-03-06  Bruno Haible  <bruno@clisp.org>
4243
4244         Tests for module 'expm1l-ieee'.
4245         * modules/expm1l-ieee-tests: New file.
4246         * tests/test-expm1l-ieee.c: New file.
4247
4248         New module 'expm1l-ieee'.
4249         * modules/expm1l-ieee: New file.
4250
4251         Tests for module 'expm1f-ieee'.
4252         * modules/expm1f-ieee-tests: New file.
4253         * tests/test-expm1f-ieee.c: New file.
4254
4255         New module 'expm1f-ieee'.
4256         * modules/expm1f-ieee: New file.
4257
4258         Tests for module 'expm1-ieee'.
4259         * modules/expm1-ieee-tests: New file.
4260         * tests/test-expm1-ieee.c: New file.
4261         * tests/test-expm1-ieee.h: New file.
4262
4263         New module 'expm1-ieee'.
4264         * modules/expm1-ieee: New file.
4265         * m4/expm1-ieee.m4: New file.
4266         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4267         whether expm1 works with a minus zero argument. Replace it if not.
4268         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4270         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4271         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4272         (Depends-on): Update conditions.
4273         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4274         AIX problem.
4275
4276 2012-03-06  Bruno Haible  <bruno@clisp.org>
4277
4278         Work around expm1f bug on IRIX 6.5.
4279         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4280         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4281         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4282         not work.
4283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4284         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4285         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4286         (Depends-on): Update conditions.
4287         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4288
4289 2012-03-06  Bruno Haible  <bruno@clisp.org>
4290
4291         Tests for module 'expm1l'.
4292         * modules/expm1l-tests: New file.
4293         * tests/test-expm1l.c: New file.
4294
4295         New module 'expm1l'.
4296         * lib/math.in.h (expm1l): New declaration.
4297         * lib/expm1l.c: New file.
4298         * m4/expm1l.m4: New file.
4299         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4301         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4302         * modules/expm1l: New file.
4303         * tests/test-math-c++.cc: Check the declaration of expm1l.
4304         * doc/posix-functions/expm1l.texi: Mention the new module.
4305
4306 2012-03-06  Bruno Haible  <bruno@clisp.org>
4307
4308         Tests for module 'expm1f'.
4309         * modules/expm1f-tests: New file.
4310         * tests/test-expm1f.c: New file.
4311
4312         New module 'expm1f'.
4313         * lib/math.in.h (expm1f): New declaration.
4314         * lib/expm1f.c: New file.
4315         * m4/expm1f.m4: New file.
4316         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4318         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4319         * modules/expm1f: New file.
4320         * tests/test-math-c++.cc: Check the declaration of expm1f.
4321         * doc/posix-functions/expm1f.texi: Mention the new module.
4322
4323 2012-03-06  Bruno Haible  <bruno@clisp.org>
4324
4325         Tests for module 'expm1'.
4326         * modules/expm1-tests: New file.
4327         * tests/test-expm1.c: New file.
4328         * tests/test-expm1.h: New file.
4329
4330         New module 'expm1'.
4331         * lib/math.in.h (expm1): New declaration.
4332         * lib/expm1.c: New file.
4333         * m4/expm1.m4: New file.
4334         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4336         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4337         * modules/expm1: New file.
4338         * tests/test-math-c++.cc: Check the declaration of expm1.
4339         * doc/posix-functions/expm1.texi: Mention the new module.
4340
4341 2012-03-06  Bruno Haible  <bruno@clisp.org>
4342
4343         math: Ensure declarations of math functions.
4344         * modules/acosf (Depends-on): Add 'extensions'.
4345         * modules/asinf (Depends-on): Likewise.
4346         * modules/atan2f (Depends-on): Likewise.
4347         * modules/atanf (Depends-on): Likewise.
4348         * modules/cbrt (Depends-on): Likewise.
4349         * modules/cbrtf (Depends-on): Likewise.
4350         * modules/cbrtl (Depends-on): Likewise.
4351         * modules/copysignf (Depends-on): Likewise.
4352         * modules/copysignl (Depends-on): Likewise.
4353         * modules/cosf (Depends-on): Likewise.
4354         * modules/coshf (Depends-on): Likewise.
4355         * modules/expf (Depends-on): Likewise.
4356         * modules/fabsf (Depends-on): Likewise.
4357         * modules/fabsl (Depends-on): Likewise.
4358         * modules/fmaf (Depends-on): Likewise.
4359         * modules/fmal (Depends-on): Likewise.
4360         * modules/fmodf (Depends-on): Likewise.
4361         * modules/fmodl (Depends-on): Likewise.
4362         * modules/frexpf (Depends-on): Likewise.
4363         * modules/frexpl (Depends-on): Likewise.
4364         * modules/hypot (Depends-on): Likewise.
4365         * modules/hypotf (Depends-on): Likewise.
4366         * modules/hypotl (Depends-on): Likewise.
4367         * modules/ldexpf (Depends-on): Likewise.
4368         * modules/ldexpl (Depends-on): Likewise.
4369         * modules/log10f (Depends-on): Likewise.
4370         * modules/log10l (Depends-on): Likewise.
4371         * modules/log1p (Depends-on): Likewise.
4372         * modules/logb (Depends-on): Likewise.
4373         * modules/logf (Depends-on): Likewise.
4374         * modules/modff (Depends-on): Likewise.
4375         * modules/modfl (Depends-on): Likewise.
4376         * modules/powf (Depends-on): Likewise.
4377         * modules/remainderf (Depends-on): Likewise.
4378         * modules/remainderl (Depends-on): Likewise.
4379         * modules/rintf (Depends-on): Likewise.
4380         * modules/rintl (Depends-on): Likewise.
4381         * modules/sinf (Depends-on): Likewise.
4382         * modules/sinhf (Depends-on): Likewise.
4383         * modules/sqrtf (Depends-on): Likewise.
4384         * modules/tanf (Depends-on): Likewise.
4385         * modules/tanhf (Depends-on): Likewise.
4386         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4387         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4388         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4389         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4390         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4391         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4392         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4393         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4394         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4395         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4396         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4397         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4398         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4399         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4400         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4401         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4402         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4403         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4404         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4405         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4406         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4407         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4408         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4409         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4411         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4412         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4413         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4414         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4415         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4416         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4417         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4418         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4419         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4420         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4421         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4422         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4423         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4424         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4425         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4426         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4427
4428 2012-03-06  Bruno Haible  <bruno@clisp.org>
4429
4430         math: Update module names in warnings.
4431         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4432         tanl): Use specific module name in warn-on-use warning.
4433
4434 2012-03-06  Bruno Haible  <bruno@clisp.org>
4435
4436         expl: Simplify computation.
4437         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4438
4439 2012-03-05  Bruno Haible  <bruno@clisp.org>
4440
4441         exp* tests: More tests.
4442         * tests/test-exp.h: New file.
4443         * tests/test-exp.c: Include <float.h> and test-exp.h.
4444         (main): Invoke test_function.
4445         * tests/test-expf.c: Include <float.h> and test-exp.h.
4446         (main): Invoke test_function.
4447         * tests/test-expl.c: Include <float.h> and test-exp.h.
4448         (main): Invoke test_function.
4449         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4450         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4451         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4452         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4453         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4454         (Depends-on): Add 'float'.
4455         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4456
4457         expl: Fix precision of computed result.
4458         * lib/expl.c: Completely rewritten.
4459         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4460         (Maintainer): Add me.
4461         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4462
4463 2012-03-05  Bruno Haible  <bruno@clisp.org>
4464
4465         cbrt* tests: More tests.
4466         * tests/test-cbrt.h: New file.
4467         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4468         (main): Invoke test_function.
4469         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4470         (main): Invoke test_function.
4471         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4472         (main): Invoke test_function.
4473         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4474         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4475         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4476         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4477         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4478         (Depends-on): Add 'float'.
4479         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4480
4481 2012-03-05  Bruno Haible  <bruno@clisp.org>
4482
4483         hypot* tests: More tests.
4484         * tests/test-hypot.h: New file, partially extracted from
4485         tests/test-hypotl.c.
4486         * tests/test-hypot.c: Include test-hypot.h.
4487         (main): Invoke test_function.
4488         * tests/test-hypotf.c: Include test-hypot.h.
4489         (main): Invoke test_function.
4490         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4491         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4492         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4493         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4494         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4495         tests/randomf.c.
4496         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4497         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4498         tests/randoml.c.
4499         (Depends-on): Add 'fpucw', 'float'.
4500         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4501
4502 2012-03-05  Bruno Haible  <bruno@clisp.org>
4503
4504         fpucw: Doc about FreeBSD.
4505         * lib/fpucw.h: Mention FreeBSD in comments.
4506
4507 2012-03-04  Bruno Haible  <bruno@clisp.org>
4508
4509         sqrt* tests: More tests.
4510         * tests/test-sqrt.h: New file.
4511         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4512         (main): Invoke test_function.
4513         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4514         (main): Invoke test_function.
4515         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4516         (main): Invoke test_function.
4517         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4518         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4519         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4520         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4521         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4522         (Depends-on): Add 'float'.
4523         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4524
4525 2012-03-04  Bruno Haible  <bruno@clisp.org>
4526
4527         remainder* tests: More tests.
4528         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4529         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4530         (main): Invoke test_function.
4531         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4532         (main): Invoke test_function.
4533         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4534         (main): Invoke test_function.
4535         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4536         tests/randomd.c.
4537         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4538         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4539         tests/randomf.c.
4540         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4541         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4542         tests/randoml.c.
4543         (Depends-on): Add 'float'.
4544         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4545
4546 2012-03-04  Bruno Haible  <bruno@clisp.org>
4547
4548         remainder, remainderf, remainderl: Fix computation for large quotients.
4549         * lib/remainder.c: Completely rewritten.
4550         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4551         USE_FLOAT.
4552         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4553         USE_LONG_DOUBLE.
4554         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4555         isnand, isinf. Remove round, fma.
4556         * modules/remainderf (Files): Add lib/remainder.c.
4557         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4558         Remove roundf, fmaf.
4559         * modules/remainderl (Files): Add lib/remainder.c.
4560         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4561         isinf. Remove roundl, fmal.
4562         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4563         REMAINDER_LIBM.
4564         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4565         REMAINDERF_LIBM.
4566         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4567         REMAINDERL_LIBM.
4568
4569 2012-03-04  Bruno Haible  <bruno@clisp.org>
4570
4571         fmod* tests: More tests.
4572         * tests/test-fmod.h (my_ldexp): New function.
4573         (test_function): Reduce amount of random numbers to test. Add tests
4574         of very large quotients x / y.
4575         * tests/test-fmod.c (MAX_EXP): New macro.
4576         * tests/test-fmodf.c (MAX_EXP): Likewise.
4577         * tests/test-fmodl.c (MAX_EXP): Likewise.
4578
4579 2012-03-04  Bruno Haible  <bruno@clisp.org>
4580
4581         fmod, fmodl: Fix computation for large quotients x / y.
4582         * lib/fmod.c: Completely rewritten.
4583         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4584         USE_LONG_DOUBLE.
4585         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4586         isnand. Remove fma.
4587         * modules/fmodl (Files): Add lib/fmod.c.
4588         (Depends-on): Add float, isfinite, signbit, fabsl,
4589         frexpl, ldexpl, isnanl. Remove fma.
4590         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4591         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4592
4593 2012-03-03  Bruno Haible  <bruno@clisp.org>
4594
4595         fmod* tests: More tests.
4596         * tests/test-fmod.h: New file.
4597         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4598         (main): Invoke test_function.
4599         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4600         (main): Invoke test_function.
4601         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4602         (main): Invoke test_function.
4603         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4604         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4605         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4606         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4607         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4608         (Depends-on): Add 'float'.
4609         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4610
4611 2012-03-03  Bruno Haible  <bruno@clisp.org>
4612
4613         rint* tests: More tests.
4614         * tests/test-rint.h: New file, partially extracted from
4615         tests/test-rintl.c.
4616         * tests/test-rint.c: Include test-rint.h.
4617         (main): Invoke test_function.
4618         * tests/test-rintf.c: Include test-rint.h.
4619         (main): Invoke test_function.
4620         * tests/test-rintl.c: Include test-rint.h.
4621         (main): Invoke test_function.
4622         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4623         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4624         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4625         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4626         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4627         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4628
4629 2012-03-03  Bruno Haible  <bruno@clisp.org>
4630
4631         modf* tests: More tests.
4632         * tests/test-modf.h: New file.
4633         * tests/test-modf.c: Include <float.h> and test-modf.h.
4634         (main): Invoke test_function.
4635         * tests/test-modff.c: Include <float.h> and test-modf.h.
4636         (main): Invoke test_function.
4637         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4638         (main): Invoke test_function.
4639         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4640         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4641         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4642         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4643         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4644         (Depends-on): Add 'float'.
4645         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4646
4647 2012-03-03  Bruno Haible  <bruno@clisp.org>
4648
4649         fabs* tests: More tests.
4650         * tests/test-fabs.h: New file, partially extracted from
4651         tests/test-fabsl.c.
4652         * tests/test-fabs.c (RANDOM): New macro.
4653         * tests/test-fabsf.c (RANDOM): New macro.
4654         * tests/test-fabsl.c (RANDOM): New macro.
4655         * modules/fabs-tests (Files): Add tests/randomd.c.
4656         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4657         * modules/fabsf-tests (Files): Add tests/randomf.c.
4658         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4659         * modules/fabsl-tests (Files): Add tests/randoml.c.
4660         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4661
4662 2012-03-03  Bruno Haible  <bruno@clisp.org>
4663
4664         ldexp* tests: More tests.
4665         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4666         * tests/test-ldexp.c (RANDOM): New macro.
4667         * tests/test-ldexpf.c (RANDOM): New macro.
4668         * tests/test-ldexpl.c (RANDOM): New macro.
4669         * modules/ldexp-tests (Files): Add tests/randomd.c.
4670         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4671         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4672         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4673         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4674         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4675
4676 2012-03-03  Bruno Haible  <bruno@clisp.org>
4677
4678         frexp* tests: More tests.
4679         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4680         * tests/test-frexp.c (RANDOM): New macro.
4681         * tests/test-frexpf.c (RANDOM): New macro.
4682         * tests/test-frexpl.c (RANDOM): New macro.
4683         * modules/frexp-tests (Files): Add tests/randomd.c.
4684         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4685         * modules/frexpf-tests (Files): Add tests/randomf.c.
4686         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4687         * modules/frexpl-tests (Files): Add tests/randoml.c.
4688         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4689
4690 2012-03-03  Bruno Haible  <bruno@clisp.org>
4691
4692         Support for pseudo-random numbers in tests.
4693         * tests/randomf.c: New file.
4694         * tests/randomd.c: New file.
4695         * tests/randoml.c: New file.
4696         * tests/macros.h (randomf, randomd, randoml): New declarations.
4697
4698 2012-03-03  Bruno Haible  <bruno@clisp.org>
4699
4700         frexp* tests: Refactor.
4701         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4702         * tests/test-frexp.c: Include and use it.
4703         * tests/test-frexpf.c: Likewise.
4704         * tests/test-frexpl.c: Likewise.
4705         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4706         * modules/frexpf-tests (Files): Likewise.
4707         * modules/frexpl-tests (Files): Likewise.
4708
4709 2012-03-02  Jim Meyering  <meyering@redhat.com>
4710
4711         maint: don't specify XZ_OPT=-9ev in dist-related rule
4712         Using xz's -9 option is warranted only if you have a very large
4713         tarball (see xz's documentation for the sizes vs. presets), and
4714         requires 64MiB of memory at decompression time.
4715         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4716         Automake's default of just "-e" is fine.  Override on a
4717         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4718
4719 2012-03-01  Eric Blake  <eblake@redhat.com>
4720
4721         maint.mk: allow announcement for non-gnulib project
4722         * maint.mk (announcement): Skip gnulib version if not used.
4723
4724 2012-03-01  Jim Meyering  <meyering@redhat.com>
4725
4726         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4727         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4728         envvar settings cannot interfere.  Otherwise, setting envvars like
4729         prohibit=foo require=bar, etc. would cause spurious test failures.
4730
4731 2012-03-01  Eric Blake  <eblake@redhat.com>
4732
4733         maint.mk: add per-line exclusions to prohibitions
4734         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4735         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4736         (sc_const_long_option): Use it.
4737
4738 2012-03-01  Bruno Haible  <bruno@clisp.org>
4739
4740         Tests for module 'expl-ieee'.
4741         * modules/expl-ieee-tests: New file.
4742         * tests/test-expl-ieee.c: New file.
4743
4744         New module 'expl-ieee'.
4745         * modules/expl-ieee: New file.
4746
4747         Tests for module 'exp-ieee'.
4748         * modules/exp-ieee-tests: New file.
4749         * tests/test-exp-ieee.c: New file.
4750
4751         New module 'exp-ieee'.
4752         * modules/exp-ieee: New file.
4753
4754         Tests for module 'expf-ieee'.
4755         * modules/expf-ieee-tests: New file.
4756         * tests/test-expf-ieee.c: New file.
4757         * tests/test-exp-ieee.h: New file.
4758
4759         New module 'expf-ieee'.
4760         * modules/expf-ieee: New file.
4761
4762 2012-02-29  Bruno Haible  <bruno@clisp.org>
4763
4764         cbrtl-ieee: Work around test failure on IRIX 6.5.
4765         * m4/cbrtl-ieee.m4: New file.
4766         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4767         test whether cbrtl works with a minus zero argument. Replace it if not.
4768         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4770         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4771         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4772         (Depends-on): Update conditions.
4773         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4774         m4/signbit.m4.
4775         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4776         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4777         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4778
4779         Tests for module 'cbrtl-ieee'.
4780         * modules/cbrtl-ieee-tests: New file.
4781         * tests/test-cbrtl-ieee.c: New file.
4782
4783         New module 'cbrtl-ieee'.
4784         * modules/cbrtl-ieee: New file.
4785
4786         Tests for module 'cbrt-ieee'.
4787         * modules/cbrt-ieee-tests: New file.
4788         * tests/test-cbrt-ieee.c: New file.
4789
4790         New module 'cbrt-ieee'.
4791         * modules/cbrt-ieee: New file.
4792
4793         Tests for module 'cbrtf-ieee'.
4794         * modules/cbrtf-ieee-tests: New file.
4795         * tests/test-cbrtf-ieee.c: New file.
4796         * tests/test-cbrt-ieee.h: New file.
4797
4798         New module 'cbrtf-ieee'.
4799         * modules/cbrtf-ieee: New file.
4800
4801 2012-02-29  Bruno Haible  <bruno@clisp.org>
4802
4803         cbrtf: Work around bug in IRIX 6.5 system function.
4804         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4805         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4806         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4807         work.
4808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4809         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4810         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4811         (Depends-on): Update conditions.
4812         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4813
4814 2012-02-29  Bruno Haible  <bruno@clisp.org>
4815
4816         Tests for module 'cbrtl'.
4817         * modules/cbrtl-tests: New file.
4818         * tests/test-cbrtl.c: New file.
4819
4820         New module 'cbrtl'.
4821         * lib/math.in.h (cbrtl): New declaration.
4822         * lib/cbrtl.c: New file.
4823         * m4/cbrtl.m4: New file.
4824         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4826         HAVE_DECL_CBRTL.
4827         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4828         HAVE_DECL_CBRTL.
4829         * modules/cbrtl: New file.
4830         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4831         * doc/posix-functions/cbrtl.texi: Mention the new module.
4832
4833 2012-02-29  Bruno Haible  <bruno@clisp.org>
4834
4835         Tests for module 'cbrtf'.
4836         * modules/cbrtf-tests: New file.
4837         * tests/test-cbrtf.c: New file.
4838
4839         New module 'cbrtf'.
4840         * lib/math.in.h (cbrtf): New declaration.
4841         * lib/cbrtf.c: New file.
4842         * m4/cbrtf.m4: New file.
4843         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4845         HAVE_DECL_CBRTF.
4846         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4847         HAVE_DECL_CBRTF.
4848         * modules/cbrtf: New file.
4849         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4850         * doc/posix-functions/cbrtf.texi: Mention the new module.
4851
4852 2012-02-29  Bruno Haible  <bruno@clisp.org>
4853
4854         cbrt: Provide replacement on MSVC and Minix.
4855         * lib/math.in.h (cbrt): New declaration.
4856         * lib/cbrt.c: New file.
4857         * m4/cbrt.m4: New file.
4858         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4860         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4861         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4862         (Depends-on): Add dependencies.
4863         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4864         * tests/test-math-c++.cc: Check the declaration of cbrt.
4865         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4866         replacement.
4867
4868 2012-02-29  Bruno Haible  <bruno@clisp.org>
4869
4870         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4871         * m4/hypotl-ieee.m4: New file.
4872         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4873         test whether hypotl works with mixed NaN and Infinity arguments.
4874         Replace it if not.
4875         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4877         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4878         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4879         (Depends-on): Update conditions.
4880         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4881         (Depends-on): Add hypot-ieee.
4882         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4883         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4884
4885         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4886         * m4/hypotf-ieee.m4: New file.
4887         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4888         test whether hypotf works with mixed NaN and Infinity arguments.
4889         Replace it if not.
4890         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4891         (Depends-on): Add hypot-ieee.
4892         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4893         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4894
4895         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4896         * lib/math.in.h (hypot): New declaration.
4897         * lib/hypot.c: New file.
4898         * m4/hypot-ieee.m4: New file.
4899         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4900         whether hypot works with mixed NaN and Infinity arguments. Replace it
4901         if not.
4902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4903         REPLACE_HYPOT.
4904         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4905         * modules/hypot (Files): Add lib/hypot.c.
4906         (Depends-on): Add dependencies.
4907         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4908         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4909         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4910         * tests/test-math-c++.cc: Check the declaration of hypot.
4911         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4912
4913         Tests for module 'hypotl-ieee'.
4914         * modules/hypotl-ieee-tests: New file.
4915         * tests/test-hypotl-ieee.c: New file.
4916
4917         New module 'hypotl-ieee'.
4918         * modules/hypotl-ieee: New file.
4919
4920         Tests for module 'hypot-ieee'.
4921         * modules/hypot-ieee-tests: New file.
4922         * tests/test-hypot-ieee.c: New file.
4923
4924         New module 'hypot-ieee'.
4925         * modules/hypot-ieee: New file.
4926
4927         Tests for module 'hypotf-ieee'.
4928         * modules/hypotf-ieee-tests: New file.
4929         * tests/test-hypotf-ieee.c: New file.
4930         * tests/test-hypot-ieee.h: New file.
4931
4932         New module 'hypotf-ieee'.
4933         * modules/hypotf-ieee: New file.
4934
4935 2012-02-29  Bruno Haible  <bruno@clisp.org>
4936
4937         Remove unused variables.
4938         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4939         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4940         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4941         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4942
4943 2012-02-29  Eric Blake  <eblake@redhat.com>
4944
4945         termios: fix pid_t always, not just for tcgetsid
4946         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4947         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4948         just when building tcgetsid.
4949
4950 2012-02-29  Bruno Haible  <bruno@clisp.org>
4951
4952         Tests for module 'hypotl'.
4953         * modules/hypotl-tests: New file.
4954         * tests/test-hypotl.c: New file.
4955
4956         New module 'hypotl'.
4957         * lib/math.in.h (hypotl): New declaration.
4958         * lib/hypotl.c: New file.
4959         * m4/hypotl.m4: New file.
4960         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4962         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4963         * modules/hypotl: New file.
4964         * tests/test-math-c++.cc: Check the hypotl declaration.
4965         * doc/posix-functions/hypotl.texi: Mention the new module.
4966
4967 2012-02-29  Eric Blake  <eblake@redhat.com>
4968
4969         tcgetsid: fix cygwin header bug
4970         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4971
4972         docs: update cygwin progress
4973         * doc/posix-functions/llround.texi (llround): Added in cygwin
4974         1.7.8.
4975         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4976         * doc/glibc-functions/program_invocation_name.texi
4977         (program_invocation_name): Likewise.
4978         * doc/glibc-functions/program_invocation_short_name.texi
4979         (program_invocation_short_name): Likewise.
4980         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4981         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4982         Likewise.
4983         * doc/posix-functions/pthread_spin_destroy.texi
4984         (pthread_spin_destroy): Added in cygwin 1.7.10.
4985         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4986         Likewise.
4987         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4988         Likewise.
4989         * doc/posix-functions/pthread_spin_trylock.texi
4990         (pthread_spin_trylock): Likewise.
4991         * doc/posix-functions/pthread_spin_unlock.texi
4992         (pthread_spin_unlock): Likewise.
4993         * doc/posix-functions/pthread_setschedprio.texi
4994         (pthread_setschedprio): Likewise.
4995         * doc/posix-functions/pthread_attr_getstack.texi
4996         (pthread_attr_getstack): Likewise.
4997         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4998         (pthread_attr_getstackaddr): Likewise.
4999         * doc/glibc-functions/pthread_getattr_np.texi
5000         (pthread_getattr_np): Likewise.
5001         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5002         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5003         * doc/posix-functions/clock_settime.texi (clock_settime):
5004         Likewise.
5005         * doc/posix-functions/pthread_attr_getguardsize.texi
5006         (pthread_attr_getguardsize): Likewise.
5007         * doc/posix-functions/pthread_attr_setguardsize.texi
5008         (pthread_attr_setguardsize): Likewise.
5009         * doc/posix-functions/pthread_attr_setstack.texi
5010         (pthread_attr_setstack): Likewise.
5011         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5012         (pthread_attr_setstackaddr): Likewise.
5013         * doc/posix-functions/clock_getcpuclockid.texi
5014         (clock_getcpuclockid): Likewise.
5015         * doc/posix-functions/pthread_getcpuclockid.texi
5016         (pthread_getcpuclockid): Likewise.
5017         * doc/glibc-functions/error.texi (error): Likewise.
5018         * doc/glibc-functions/error_at_line.texi (error_at_line):
5019         Likewise.
5020         * doc/glibc-functions/error_message_count.texi
5021         (error_message_count): Likewise.
5022         * doc/glibc-functions/error_one_per_line.texi
5023         (error_one_per_line): Likewise.
5024         * doc/glibc-functions/error_print_progname.texi
5025         (error_print_progname): Likewise.
5026         * doc/posix-functions/pthread_condattr_getclock.texi
5027         (pthread_condattr_getclock): Likewise.
5028         * doc/posix-functions/pthread_condattr_setclock.texi
5029         (pthread_condattr_setclock): Likewise.
5030         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5031         Likewise.
5032         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5033         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5034         * doc/glibc-functions/get_current_dir_name.texi
5035         (get_current_dir_name): Likewise.
5036         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5037         Likewise.
5038         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5039         wrong return type.
5040         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5041         1.7.11.
5042
5043 2012-02-29  Bruno Haible  <bruno@clisp.org>
5044
5045         Tests for module 'hypotf'.
5046         * modules/hypotf-tests: New file.
5047         * tests/test-hypotf.c: New file.
5048
5049         New module 'hypotf'.
5050         * lib/math.in.h (hypotf): New declaration.
5051         * lib/hypotf.c: New file.
5052         * m4/hypotf.m4: New file.
5053         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5055         REPLACE_HYPOTF.
5056         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5057         REPLACE_HYPOTF.
5058         * modules/hypotf: New file.
5059         * tests/test-math-c++.cc: Check the hypotf declaration.
5060         * doc/posix-functions/hypotf.texi: Mention the new module.
5061
5062         hypot: Prepare for hypotf module.
5063         * m4/hypot.m4: New file.
5064         * modules/hypot (Files): Add m4/hypot.m4.
5065         (configure.ac): Invoke gl_FUNC_HYPOT.
5066
5067 2012-02-29  Bruno Haible  <bruno@clisp.org>
5068
5069         hypot tests: More tests.
5070         * tests/test-hypot.c: Include <float.h>.
5071         (main): Add tests about overflow and underflow.
5072
5073 2012-02-29  Bruno Haible  <bruno@clisp.org>
5074
5075         math code: Add comments.
5076         * lib/acosl.c: Add comment about related glibc source files.
5077         * lib/asinl.c: Likewise.
5078         * lib/atanl.c: Likewise.
5079         * lib/expl.c: Likewise.
5080         * lib/logl.c: Likewise.
5081         * lib/sincosl.c: Likewise.
5082         * lib/sinl.c: Likewise.
5083         * lib/tanl.c: Likewise.
5084         * lib/trigl.c: Likewise.
5085         * lib/cosl.c: Likewise. Fix comments.
5086
5087 2012-02-28  Bruno Haible  <bruno@clisp.org>
5088
5089         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5090         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5091         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5092         HUGE_VALL are defined.
5093         (numeric_equald): Renamed from numeric_equal.
5094         (numeric_equalf, numeric_equall): New functions.
5095         (main): Check also HUGE_VALF, HUGE_VALL.
5096         * modules/math-tests (Files): Add tests/macros.h.
5097         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5098         HUGE_VALL.
5099
5100 2012-02-28  Bruno Haible  <bruno@clisp.org>
5101
5102         doc: Move ISO C11 feature notes into POSIX chapters.
5103         * doc/posix-functions/aligned_alloc.texi: Renamed from
5104         doc/glibc-functions/aligned_alloc.texi.
5105         * doc/posix-functions/quick_exit.texi: Renamed from
5106         doc/glibc-functions/quick_exit.texi.
5107         * doc/posix-headers/uchar.texi: Renamed from
5108         doc/glibc-headers/uchar.texi.
5109         * doc/posix-functions/c16rtomb.texi: Renamed from
5110         doc/glibc-functions/c16rtomb.texi.
5111         * doc/posix-functions/c32rtomb.texi: Renamed from
5112         doc/glibc-functions/c32rtomb.texi.
5113         * doc/posix-functions/mbrtoc16.texi: Renamed from
5114         doc/glibc-functions/mbrtoc16.texi.
5115         * doc/posix-functions/mbrtoc32.texi: Renamed from
5116         doc/glibc-functions/mbrtoc32.texi.
5117         * doc/gnulib.texi: Update.
5118         (Glibc uchar.h): Remove section.
5119         Suggested by Eric Blake.
5120
5121 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5122
5123         stdnoreturn: port to MSVC better
5124         MSVC standard headers use __declspec(noreturn), so #define noreturn
5125         to empty on that platform.  Reported by Bruno Haible in
5126         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5127         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5128         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5129
5130 2012-02-28  Bruno Haible  <bruno@clisp.org>
5131
5132         doc: Mention new glibc headers and functions.
5133         * doc/glibc-headers/uchar.texi: New file.
5134         * doc/glibc-functions/aligned_alloc.texi: New file.
5135         * doc/glibc-functions/c16rtomb.texi: New file.
5136         * doc/glibc-functions/c32rtomb.texi: New file.
5137         * doc/glibc-functions/clock_adjtime.texi: New file.
5138         * doc/glibc-functions/fanotify_init.texi: New file.
5139         * doc/glibc-functions/fanotify_mark.texi: New file.
5140         * doc/glibc-functions/inet6_opt_append.texi: New file.
5141         * doc/glibc-functions/inet6_opt_find.texi: New file.
5142         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5143         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5144         * doc/glibc-functions/inet6_opt_init.texi: New file.
5145         * doc/glibc-functions/inet6_opt_next.texi: New file.
5146         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5147         * doc/glibc-functions/inet6_rth_add.texi: New file.
5148         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5149         * doc/glibc-functions/inet6_rth_init.texi: New file.
5150         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5151         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5152         * doc/glibc-functions/inet6_rth_space.texi: New file.
5153         * doc/glibc-functions/login.texi: New file.
5154         * doc/glibc-functions/mbrtoc16.texi: New file.
5155         * doc/glibc-functions/mbrtoc32.texi: New file.
5156         * doc/glibc-functions/name_to_handle_at.texi: New file.
5157         * doc/glibc-functions/ntp_gettimex.texi: New file.
5158         * doc/glibc-functions/open_by_handle_at.texi: New file.
5159         * doc/glibc-functions/prlimit.texi: New file.
5160         * doc/glibc-functions/process_vm_readv.texi: New file.
5161         * doc/glibc-functions/process_vm_writev.texi: New file.
5162         * doc/glibc-functions/recvmmsg.texi: New file.
5163         * doc/glibc-functions/scandirat.texi: New file.
5164         * doc/glibc-functions/sendmmsg.texi: New file.
5165         * doc/glibc-functions/setns.texi: New file.
5166         * doc/glibc-functions/timespec_get.texi: New file.
5167         * doc/gnulib.texi: Include them.
5168         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5169         sections.
5170         Reported by Eric Blake.
5171
5172 2012-02-28  Bruno Haible  <bruno@clisp.org>
5173
5174         Avoid compilation errors with MSVC option -fp:strict.
5175         * lib/floor.c: Use MSVC specific pragma fenv_access.
5176         * lib/ceil.c: Likewise.
5177         * lib/trunc.c: Likewise.
5178         * lib/round.c: Likewise.
5179         * lib/rint.c: Likewise.
5180         * lib/fma.c: Likewise.
5181         * lib/integer_length.c: Likewise.
5182         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5184         * tests/test-floor2.c: Likewise.
5185         * tests/test-floorf2.c: Likewise.
5186         * tests/test-ceil2.c: Likewise.
5187         * tests/test-ceilf2.c: Likewise.
5188         * tests/test-trunc2.c: Likewise.
5189         * tests/test-truncf2.c: Likewise.
5190         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5191
5192 2012-02-27  Bruno Haible  <bruno@clisp.org>
5193
5194         Tests for module 'sqrtl-ieee'.
5195         * modules/sqrtl-ieee-tests: New file.
5196         * tests/test-sqrtl-ieee.c: New file.
5197
5198         New module 'sqrtl-ieee'.
5199         * modules/sqrtl-ieee: New file.
5200
5201         Tests for module 'sqrt-ieee'.
5202         * modules/sqrt-ieee-tests: New file.
5203         * tests/test-sqrt-ieee.c: New file.
5204
5205         New module 'sqrt-ieee'.
5206         * modules/sqrt-ieee: New file.
5207
5208         Tests for module 'sqrtf-ieee'.
5209         * modules/sqrtf-ieee-tests: New file.
5210         * tests/test-sqrtf-ieee.c: New file.
5211         * tests/test-sqrt-ieee.h: New file.
5212
5213         New module 'sqrtf-ieee'.
5214         * modules/sqrtf-ieee: New file.
5215
5216 2012-02-27  Bruno Haible  <bruno@clisp.org>
5217
5218         remainderl-ieee: Work around test failure on OSF/1.
5219         * m4/remainderl-ieee.m4: New file.
5220         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5221         present, test whether remainderl works with a zero second argument.
5222         Replace it if not.
5223         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5225         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5226         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5227         (Depends-on): Update conditions.
5228         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5229         (Depends-on): Add remainder-ieee.
5230         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5231         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5232         module.
5233
5234         remainderf-ieee: Work around test failure on OSF/1.
5235         * m4/remainderf-ieee.m4: New file.
5236         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5237         present, test whether remainderf works with a zero second argument.
5238         Replace it if not.
5239         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5241         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5242         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5243         (Depends-on): Update conditions.
5244         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5245         (Depends-on): Add remainder-ieee.
5246         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5247         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5248         module.
5249
5250         remainder-ieee: Work around test failure on OSF/1.
5251         * m4/remainder-ieee.m4: New file.
5252         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5253         present, test whether remainder works with a zero second argument.
5254         Replace it if not.
5255         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5257         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5258         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5259         (Depends-on): Update dependencies.
5260         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5261         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5262         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5263
5264         Tests for module 'remainderl-ieee'.
5265         * modules/remainderl-ieee-tests: New file.
5266         * tests/test-remainderl-ieee.c: New file.
5267
5268         New module 'remainderl-ieee'.
5269         * modules/remainderl-ieee: New file.
5270
5271         Tests for module 'remainder-ieee'.
5272         * modules/remainder-ieee-tests: New file.
5273         * tests/test-remainder-ieee.c: New file.
5274
5275         New module 'remainder-ieee'.
5276         * modules/remainder-ieee: New file.
5277
5278         Tests for module 'remainderf-ieee'.
5279         * modules/remainderf-ieee-tests: New file.
5280         * tests/test-remainderf-ieee.c: New file.
5281         * tests/test-remainder-ieee.h: New file.
5282
5283         New module 'remainderf-ieee'.
5284         * modules/remainderf-ieee: New file.
5285
5286 2012-02-27  Bruno Haible  <bruno@clisp.org>
5287
5288         modff, modfl: Fix configure syntax error.
5289         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5290         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5291
5292 2012-02-27  Bruno Haible  <bruno@clisp.org>
5293
5294         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5295         * m4/fmodl-ieee.m4: New file.
5296         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5297         whether fmodl works with zero arguments. Replace it if not.
5298         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5299         (Depends-on): Add fmod-ieee.
5300         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5301         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5302
5303         fmodf-ieee: Work around test failure on OSF/1.
5304         * m4/fmodf-ieee.m4: New file.
5305         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5306         whether fmodf works with zero arguments. Replace it if not.
5307         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5309         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5310         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5311         (Depends-on): Update dependencies.
5312         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5313         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5314         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5315
5316         fmodf-ieee: Work around test failure on MSVC 9.
5317         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5318         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5319
5320         fmod-ieee: Work around test failures on OSF/1, mingw.
5321         * m4/fmod-ieee.m4: New file.
5322         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5323         whether fmod works with zero arguments. Replace it if not.
5324         * lib/math.in.h (fmod): New declaration.
5325         * lib/fmod.c: New file.
5326         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5328         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5329         * modules/fmod (Files): Add lib/fmod.c.
5330         (Depends-on): Add math, isinf, trunc, fma.
5331         (configure.ac): Arrange to compile lib/fmod.c if needed.
5332         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5333         m4/signbit.m4.
5334         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5335         * tests/test-math-c++.cc: Check the declaration of fmod.
5336         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5337
5338         fmodl-ieee: Fix test failures.
5339         * lib/fmodl.c (fmodl): Treat Inf specially.
5340         * modules/fmodl (Depends-on): Add isinf.
5341
5342         Tests for module 'fmodl-ieee'.
5343         * modules/fmodl-ieee-tests: New file.
5344         * tests/test-fmodl-ieee.c: New file.
5345
5346         New module 'fmodl-ieee'.
5347         * modules/fmodl-ieee: New file.
5348
5349         Tests for module 'fmod-ieee'.
5350         * modules/fmod-ieee-tests: New file.
5351         * tests/test-fmod-ieee.c: New file.
5352
5353         New module 'fmod-ieee'.
5354         * modules/fmod-ieee: New file.
5355
5356         Tests for module 'fmodf-ieee'.
5357         * modules/fmodf-ieee-tests: New file.
5358         * tests/test-fmodf-ieee.c: New file.
5359         * tests/test-fmod-ieee.h: New file.
5360
5361         New module 'fmodf-ieee'.
5362         * modules/fmodf-ieee: New file.
5363
5364 2012-02-27  Bruno Haible  <bruno@clisp.org>
5365
5366         Tests for module 'rintl-ieee'.
5367         * modules/rintl-ieee-tests: New file.
5368         * tests/test-rintl-ieee.c: New file.
5369
5370         New module 'rintl-ieee'.
5371         * modules/rintl-ieee: New file.
5372
5373         Tests for module 'rint-ieee'.
5374         * modules/rint-ieee-tests: New file.
5375         * tests/test-rint-ieee.c: New file.
5376
5377         New module 'rint-ieee'.
5378         * modules/rint-ieee: New file.
5379
5380         Tests for module 'rintf-ieee'.
5381         * modules/rintf-ieee-tests: New file.
5382         * tests/test-rintf-ieee.c: New file.
5383         * tests/test-rint-ieee.h: New file.
5384
5385         New module 'rintf-ieee'.
5386         * modules/rintf-ieee: New file.
5387
5388 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5389
5390         regex: re_search etc. should return -2 when memory exhausted
5391         This bug was uncovered when testing 'grep'.  Without the fix,
5392         re_search and friends return -1 when memory is exhausted, but -1
5393         means no match, and this causes grep to falsely report no-match
5394         instead of memory-exhaustion.  See
5395         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5396         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5397         trouble; this can occur if re_search_internal ran out of memory.
5398
5399 2012-02-26  Bruno Haible  <bruno@clisp.org>
5400
5401         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5402         * m4/modfl-ieee.m4: New file.
5403         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5404         whether modfl works with Inf. Replace it if not.
5405         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5407         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5408         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5409         (Depends-on): Update dependencies.
5410         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5411         m4/signbit.m4.
5412         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5413         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5414
5415         modfl-ieee: Fix dependencies.
5416         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5417
5418         modfl-ieee: Fix test failures.
5419         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5420         * modules/modfl (Depends-on): Add isfinite, isinf.
5421
5422         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5423         * m4/modff-ieee.m4: New file.
5424         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5425         whether modff works with NaN and Inf. Replace it if not.
5426         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5428         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5429         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5430         (Depends-on): Update dependencies.
5431         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5432         m4/signbit.m4.
5433         (Depends-on): Add modf-ieee.
5434         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5435         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5436
5437         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5438         * m4/modf-ieee.m4: New file.
5439         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5440         whether modf works with NaN and Inf. Replace it if not.
5441         * lib/math.in.h (modf): New declaration.
5442         * lib/modf.c: New file.
5443         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5445         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5446         * modules/modf (Files): Add lib/modf.c.
5447         (Depends-on): Add math, isfinite, trunc, isinf.
5448         (configure.ac): Addrange to compile lib/modf.c if needed.
5449         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5450         m4/signbit.m4.
5451         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5452         * tests/test-math-c++.cc: Check the declaration of modf.
5453         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5454
5455         Tests for module 'modfl-ieee'.
5456         * modules/modfl-ieee-tests: New file.
5457         * tests/test-modfl-ieee.c: New file.
5458
5459         New module 'modfl-ieee'.
5460         * modules/modfl-ieee: New file.
5461
5462         Tests for module 'modf-ieee'.
5463         * modules/modf-ieee-tests: New file.
5464         * tests/test-modf-ieee.c: New file.
5465
5466         New module 'modf-ieee'.
5467         * modules/modf-ieee: New file.
5468
5469         Tests for module 'modff-ieee'.
5470         * modules/modff-ieee-tests: New file.
5471         * tests/test-modff-ieee.c: New file.
5472         * tests/test-modf-ieee.h: New file.
5473
5474         New module 'modff-ieee'.
5475         * modules/modff-ieee: New file.
5476
5477 2012-02-26  Bruno Haible  <bruno@clisp.org>
5478
5479         Tests for module 'fabsl-ieee'.
5480         * modules/fabsl-ieee-tests: New file.
5481         * tests/test-fabsl-ieee.c: New file.
5482
5483         New module 'fabsl-ieee'.
5484         * modules/fabsl-ieee: New file.
5485
5486         Tests for module 'fabs-ieee'.
5487         * modules/fabs-ieee-tests: New file.
5488         * tests/test-fabs-ieee.c: New file.
5489
5490         New module 'fabs-ieee'.
5491         * modules/fabs-ieee: New file.
5492
5493         Tests for module 'fabsf-ieee'.
5494         * modules/fabsf-ieee-tests: New file.
5495         * tests/test-fabsf-ieee.c: New file.
5496         * tests/test-fabs-ieee.h: New file.
5497
5498         New module 'fabsf-ieee'.
5499         * modules/fabsf-ieee: New file.
5500
5501 2012-02-26  Bruno Haible  <bruno@clisp.org>
5502
5503         Tests for module 'fmal-ieee'.
5504         * modules/fmal-ieee-tests: New file.
5505         * tests/test-fmal-ieee.c: New file.
5506
5507         New module 'fmal-ieee'.
5508         * modules/fmal-ieee: New file.
5509
5510         Tests for module 'fma-ieee'.
5511         * modules/fma-ieee-tests: New file.
5512         * tests/test-fma-ieee.c: New file.
5513
5514         New module 'fma-ieee'.
5515         * modules/fma-ieee: New file.
5516
5517         Tests for module 'fmaf-ieee'.
5518         * modules/fmaf-ieee-tests: New file.
5519         * tests/test-fmaf-ieee.c: New file.
5520         * tests/test-fma-ieee.h: New file.
5521
5522         New module 'fmaf-ieee'.
5523         * modules/fmaf-ieee: New file.
5524
5525 2012-02-26  Bruno Haible  <bruno@clisp.org>
5526
5527         Tests for module 'ldexpl-ieee'.
5528         * modules/ldexpl-ieee-tests: New file.
5529         * tests/test-ldexpl-ieee.c: New file.
5530
5531         New module 'ldexpl-ieee'.
5532         * modules/ldexpl-ieee: New file.
5533
5534         Tests for module 'ldexp-ieee'.
5535         * modules/ldexp-ieee-tests: New file.
5536         * tests/test-ldexp-ieee.c: New file.
5537
5538         New module 'ldexp-ieee'.
5539         * modules/ldexp-ieee: New file.
5540
5541         Tests for module 'ldexpf-ieee'.
5542         * modules/ldexpf-ieee-tests: New file.
5543         * tests/test-ldexpf-ieee.c: New file.
5544         * tests/test-ldexp-ieee.h: New file.
5545
5546         New module 'ldexpf-ieee'.
5547         * modules/ldexpf-ieee: New file.
5548
5549 2012-02-26  Bruno Haible  <bruno@clisp.org>
5550
5551         Refactor frexp*-ieee tests.
5552         * tests/test-frexp-ieee.h: New file.
5553         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5554         (main): Just call test_function.
5555         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5556         (main): Just call test_function.
5557         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5558         (main): Just call test_function.
5559         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5560         * modules/frexp-ieee-tests (Files): Likewise.
5561         * modules/frexpl-ieee-tests (Files): Likewise.
5562
5563         Tests for module 'frexpl-ieee'.
5564         * modules/frexpl-ieee-tests: New file.
5565         * tests/test-frexpl-ieee.c: New file.
5566
5567         New module 'frexpl-ieee'.
5568         * modules/frexpl-ieee: New file.
5569
5570         Tests for module 'frexp-ieee'.
5571         * modules/frexp-ieee-tests: New file.
5572         * tests/test-frexp-ieee.c: New file.
5573
5574         New module 'frexp-ieee'.
5575         * modules/frexp-ieee: New file.
5576
5577         Tests for module 'frexpf-ieee'.
5578         * modules/frexpf-ieee-tests: New file.
5579         * tests/test-frexpf-ieee.c: New file.
5580
5581         New module 'frexpf-ieee'.
5582         * modules/frexpf-ieee: New file.
5583
5584 2012-02-26  Bruno Haible  <bruno@clisp.org>
5585
5586         roundl-ieee tests: More tests.
5587         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5588         (main): Add tests for [MX] shaded specification in POSIX.
5589         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5590         (Depends-on): Add isnanl-nolibm.
5591
5592         round-ieee tests: More tests.
5593         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5594         (main): Add tests for [MX] shaded specification in POSIX.
5595         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5596         (Depends-on): Add isnand-nolibm.
5597
5598         roundf-ieee tests: More tests.
5599         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5600         (main): Add tests for [MX] shaded specification in POSIX.
5601         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5602         (Depends-on): Add isnanf-nolibm.
5603
5604         truncl-ieee tests: More tests.
5605         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5606         (main): Add tests for [MX] shaded specification in POSIX.
5607         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5608         (Depends-on): Add isnanl-nolibm.
5609
5610         trunc-ieee tests: More tests.
5611         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5612         (main): Add tests for [MX] shaded specification in POSIX.
5613         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5614         (Depends-on): Add isnand-nolibm.
5615
5616         truncf-ieee tests: More tests.
5617         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5618         (main): Add tests for [MX] shaded specification in POSIX.
5619         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5620         (Depends-on): Add isnanf-nolibm.
5621
5622         ceill-ieee tests: More tests.
5623         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5624         (main): Add tests for [MX] shaded specification in POSIX.
5625         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5626         (Depends-on): Add isnanl-nolibm.
5627
5628         ceil-ieee tests: More tests.
5629         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5630         (main): Add tests for [MX] shaded specification in POSIX.
5631         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5632         (Depends-on): Add isnand-nolibm.
5633
5634         ceilf-ieee tests: More tests.
5635         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5636         (main): Add tests for [MX] shaded specification in POSIX.
5637         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5638         (Depends-on): Add isnanf-nolibm.
5639
5640         floorl-ieee tests: More tests.
5641         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5642         (main): Add tests for [MX] shaded specification in POSIX.
5643         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5644         (Depends-on): Add isnanl-nolibm.
5645
5646         floor-ieee tests: More tests.
5647         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5648         (main): Add tests for [MX] shaded specification in POSIX.
5649         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5650         (Depends-on): Add isnand-nolibm.
5651
5652         floorf-ieee tests: More tests.
5653         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5654         (main): Add tests for [MX] shaded specification in POSIX.
5655         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5656         (Depends-on): Add isnanf-nolibm.
5657
5658 2012-02-26  Bruno Haible  <bruno@clisp.org>
5659
5660         fpieee: More comments.
5661         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5662
5663 2012-02-25  Bruno Haible  <bruno@clisp.org>
5664
5665         Tests for module 'log10l'.
5666         * modules/log10l-tests: New file.
5667         * tests/test-log10l.c: New file.
5668         * tests/test-math-c++.cc: Check the declaration of log10l.
5669
5670         New module 'log10l'.
5671         * lib/math.in.h (log10l): New declaration.
5672         * lib/log10l.c: New file.
5673         * m4/log10l.m4: New file.
5674         * modules/log10l: New file.
5675         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5677         HAVE_DECL_LOG10L.
5678         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5679         HAVE_DECL_LOG10L.
5680         * doc/posix-functions/log10l.texi: Mention the new module.
5681
5682 2012-02-25  Bruno Haible  <bruno@clisp.org>
5683
5684         fmodl, remainder*: Avoid wrong results due to rounding errors.
5685         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5686         expected bounds.
5687         * lib/remainderf.c (remainderf): Likewise.
5688         * lib/remainder.c (remainder): Likewise.
5689         * lib/remainderl.c (remainderl): Likewise.
5690
5691 2012-02-25  Bruno Haible  <bruno@clisp.org>
5692
5693         Tests for module 'remainderl'.
5694         * modules/remainderl-tests: New file.
5695         * tests/test-remainderl.c: New file.
5696         * tests/test-math-c++.cc: Check the declaration of remainderl.
5697
5698         New module 'remainderl'.
5699         * lib/math.in.h (remainderl): New declaration.
5700         * lib/remainderl.c: New file.
5701         * m4/remainderl.m4: New file.
5702         * modules/remainderl: New file.
5703         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5705         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5706         HAVE_REMAINDERL.
5707         * doc/posix-functions/remainderl.texi: Mention the new module.
5708
5709 2012-02-25  Bruno Haible  <bruno@clisp.org>
5710
5711         Tests for module 'remainderf'.
5712         * modules/remainderf-tests: New file.
5713         * tests/test-remainderf.c: New file.
5714         * tests/test-math-c++.cc: Check the declaration of remainderf.
5715
5716         New module 'remainderf'.
5717         * lib/math.in.h (remainderf): New declaration.
5718         * lib/remainderf.c: New file.
5719         * m4/remainderf.m4: New file.
5720         * modules/remainderf: New file.
5721         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5723         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5724         HAVE_REMAINDERF.
5725         * doc/posix-functions/remainderf.texi: Mention the new module.
5726
5727 2012-02-25  Bruno Haible  <bruno@clisp.org>
5728
5729         remainder: Support for MSVC.
5730         * lib/math.in.h (remainder): New declaration.
5731         * lib/remainder.c: New file.
5732         * m4/remainder.m4: New file.
5733         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5734         (Depends-on): Add math, round, fma.
5735         (configure.ac): Use results of gl_FUNC_REMAINDER.
5736         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5738         HAVE_DECL_REMAINDER.
5739         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5740         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5741         * tests/test-math-c++.cc: Check the declaration of remainder.
5742         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5743         problems are fixed.
5744
5745 2012-02-25  Bruno Haible  <bruno@clisp.org>
5746
5747         Tests for module 'fmodl'.
5748         * modules/fmodl-tests: New file.
5749         * tests/test-fmodl.c: New file.
5750         * tests/test-math-c++.cc: Check the declaration of fmodl.
5751
5752         New module 'fmodl'.
5753         * lib/math.in.h (fmodl): New declaration.
5754         * lib/fmodl.c: New file.
5755         * m4/fmodl.m4: New file.
5756         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5758         REPLACE_FMODL.
5759         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5760         REPLACE_FMODL.
5761         * modules/fmodl: New file.
5762         * doc/posix-functions/fmodl.texi: Mention the new module.
5763
5764 2012-02-25  Bruno Haible  <bruno@clisp.org>
5765
5766         Tests for module 'modfl'.
5767         * modules/modfl-tests: New file.
5768         * tests/test-modfl.c: New file.
5769         * tests/test-math-c++.cc: Check the declaration of modfl.
5770
5771         New module 'modfl'.
5772         * lib/math.in.h (modfl): New declaration.
5773         * lib/modfl.c: New file.
5774         * m4/modfl.m4: New file.
5775         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5777         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5778         * modules/modfl: New file.
5779         * doc/posix-functions/modfl.texi: Mention the new module.
5780
5781 2012-02-25  Bruno Haible  <bruno@clisp.org>
5782
5783         Tests for module 'fabsl'.
5784         * modules/fabsl-tests: New file.
5785         * tests/test-fabsl.c: New file.
5786         * tests/test-math-c++.cc: Check the declaration of fabsl.
5787
5788         New module 'fabsl'.
5789         * lib/math.in.h (fabsl): New declaration.
5790         * lib/fabsl.c: New file.
5791         * m4/fabsl.m4: New file.
5792         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5794         REPLACE_FABSL.
5795         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5796         REPLACE_FABSL.
5797         * modules/fabsl: New file.
5798         * doc/posix-functions/fabsl.texi: Mention the new module.
5799
5800 2012-02-25  Bruno Haible  <bruno@clisp.org>
5801
5802         fabs tests: More tests.
5803         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5804         (zero): New variable.
5805         (main): Add tests for signed zero.
5806         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5807
5808         fabsf tests: More tests.
5809         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5810         (zero): New variable.
5811         (main): Add tests for signed zero.
5812         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5813
5814 2012-02-24  Bruno Haible  <bruno@clisp.org>
5815
5816         atanl: Provide function definition on MSVC.
5817         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5818         function pointer.
5819         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5820
5821 2012-02-24  Bruno Haible  <bruno@clisp.org>
5822
5823         acosl: Provide function definition on MSVC.
5824         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5825         function pointer.
5826         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5827
5828 2012-02-24  Bruno Haible  <bruno@clisp.org>
5829
5830         asinl: Provide function definition on MSVC.
5831         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5832         function pointer.
5833         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5834
5835 2012-02-24  Bruno Haible  <bruno@clisp.org>
5836
5837         tanl: Provide function definition on MSVC.
5838         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5839         function pointer.
5840         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5841
5842 2012-02-24  Bruno Haible  <bruno@clisp.org>
5843
5844         cosl: Provide function definition on MSVC.
5845         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5846         function pointer.
5847         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5848
5849 2012-02-24  Bruno Haible  <bruno@clisp.org>
5850
5851         sinl: Provide function definition on MSVC.
5852         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5853         function pointer.
5854         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5855
5856 2012-02-24  Bruno Haible  <bruno@clisp.org>
5857
5858         logl: Provide function definition on MSVC.
5859         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5860         function pointer.
5861         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5862
5863 2012-02-24  Bruno Haible  <bruno@clisp.org>
5864
5865         expl: Provide function definition on MSVC.
5866         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5867         function pointer.
5868         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5869
5870 2012-02-24  Bruno Haible  <bruno@clisp.org>
5871
5872         sqrtl: Provide function definition on MSVC.
5873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5874         a function pointer.
5875         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5876
5877 2012-02-24  Bruno Haible  <bruno@clisp.org>
5878
5879         ceill: Provide function definition on MSVC.
5880         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5881         used as a function pointer.
5882         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5883
5884 2012-02-24  Bruno Haible  <bruno@clisp.org>
5885
5886         floorl: Provide function definition on MSVC.
5887         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5888         used as a function pointer.
5889         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5890
5891 2012-02-24  Bruno Haible  <bruno@clisp.org>
5892
5893         ceilf: Provide function definition on MSVC.
5894         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5895         used as a function pointer.
5896         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5897
5898 2012-02-24  Bruno Haible  <bruno@clisp.org>
5899
5900         floorf: Provide function definition on MSVC.
5901         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5902         used as a function pointer.
5903         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5904
5905 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5906
5907         stdnoreturn: new module
5908         This implements a replacement for C11's <stdnoreturn.h>.
5909         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5910         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5911         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5912         * tests/test-stdnoreturn.c: New files.
5913
5914 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5915
5916         regex: fix false multibyte matches in some regular expressions
5917         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5918         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5919         * lib/regex_internal.c (re_string_skip_chars):
5920         Fix miscomputation of remain_len that may cause incomplete
5921         multi-byte character and false match.
5922
5923 2012-02-24  Jim Meyering  <meyering@redhat.com>
5924
5925         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5926         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5927         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5928         Remove now-unnecessary str''cmp obfuscation.
5929         Suggested by Akim Demaille.
5930
5931 2012-02-24  Bruno Haible  <bruno@clisp.org>
5932
5933         streq: Rename macro.
5934         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5935         * NEWS: Mention the change.
5936         * lib/mbrtowc.c (mbrtowc): Update.
5937         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5938         * lib/wcwidth.c (wcwidth): Update.
5939         Suggested by Akim Demaille and Jim Meyering.
5940
5941 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5942
5943         regex: fix typo in definition of MIN
5944         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5945         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5946
5947 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5948             Bruno Haible  <bruno@clisp.org>
5949
5950         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5951         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5952         entries into a stack-allocated buffer directly.
5953         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5954
5955 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5956             Bruno Haible  <bruno@clisp.org>
5957
5958         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5959
5960          - There were several instances of this pattern:
5961
5962              for (;;) {
5963                n = acl (f, GETACLCNT, 0, NULL);
5964                [ allocate an array A of size N ]
5965                if (acl (f, GETACL, n, a) == n)
5966                  break;
5967              }
5968
5969            This loop might never terminate if some other process is constantly
5970            manipulating the file's ACL.  The loop should be rewritten to
5971            terminate.
5972
5973          - The acl (... GETACLNT ...) call is merely an optimization; its value
5974            is merely a hint as to how big to make the array.  A better
5975            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5976            and just guess a reasonably-big size, growing the size and trying
5977            again if it's not large enough.  This guarantees termination, and
5978            saves a system call.
5979
5980         * lib/acl-internal.h: Include <limits.h>.
5981         (MIN, SIZE_MAX): New macros.
5982         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5983         a stack-allocated buffer, and use malloc if it does not fit. Don't
5984         use GETACLCNT.
5985         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5986
5987 2012-02-19  Bruno Haible  <bruno@clisp.org>
5988
5989         acl: Fix endless loop on Solaris with vxfs.
5990         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5991         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5992         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5993         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5994         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5995         Reported by Bill Jones in
5996         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5997
5998 2012-02-19  Bruno Haible  <bruno@clisp.org>
5999
6000         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6001         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6002         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6003         that this function returns 0 in some more cases.
6004
6005 2012-02-19  Bruno Haible  <bruno@clisp.org>
6006
6007         acl: Update doc references.
6008         * doc/acl-resources.txt: Update links to Solaris documentation.
6009
6010 2012-02-19  Bruno Haible  <bruno@clisp.org>
6011
6012         Fix test failure in many locales on Solaris 11.
6013         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6014         'tr' arguments.
6015         * tests/test-pipe-filter-ii1.c (main): Likewise.
6016         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6017         expressions in the C locale.
6018         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6019         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6020
6021 2012-02-19  Bruno Haible  <bruno@clisp.org>
6022
6023         gnulib-tool: Improve usage message.
6024         * gnulib-tool (func_usage): Move doc of --help and --version to the
6025         section "Operation modes".
6026
6027 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6028
6029         README-release: make it easier to execute commands
6030         * top/README-release: break commands out on to separate lines.
6031
6032 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6033
6034         GNUmakefile: simplify detection of unconfigured trees
6035         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6036         whether the tree make is being run from is already configured or
6037         not.  Related simplifications.
6038
6039 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6040
6041         * gnulib-tool (func_usage): Document --help and --version.
6042
6043 2012-02-11  Jim Meyering  <meyering@redhat.com>
6044
6045         bootstrap: don't exit 0 upon gnulib-tool failure
6046         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6047         its exit status, not 0.
6048
6049 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6050
6051         README-release: various improvements
6052         * top/README-release: Give a command to push changes for the
6053         release.  Add "distcheck" to list of other pre-release checks.
6054         Fix instance of "make stable" which should be "make TYPE".
6055
6056 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6057
6058         maint: replace FSF snail-mail addresses with URLs
6059         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6060         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6061         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6062         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6063         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6064         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6065         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6066         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6067         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6068         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6069         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6070         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6071         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6072         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6073         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6074         * lib/glthread/thread.c, lib/glthread/thread.h:
6075         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6076         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6077         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6078         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6079         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6080         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6081         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6082         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6083         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6084         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6085         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6086         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6087         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6088         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6089         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6090         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6091         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6092         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6093         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6094         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6095         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6096         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6097         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6098         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6099         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6100         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6101         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6102         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6103         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6104         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6105         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6106         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6107         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6108         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6109         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6110         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6111         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6112         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6113         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6114         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6115         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6116         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6117         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6118         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6119         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6120         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6121         * tests/test-poll.c, tests/test-quotearg-simple.c:
6122         * tests/test-quotearg.c, tests/test-quotearg.h:
6123         * tests/test-round-ieee.c, tests/test-round1.c:
6124         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6125         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6126         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6127         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6128         * tests/test-strerror.c, tests/test-strerror_r.c:
6129         * tests/test-strsignal.c, tests/test-strverscmp.c:
6130         * tests/test-xmemdup0.c:
6131         Replace FSF snail mail addresses with URLs, as per GNU coding
6132         standards.  See glibc bug
6133         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6134
6135 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6136
6137         README-release: capitalize a word and split a line
6138         * top/README-release: Fix punctuation and spacing.
6139
6140 2012-02-08  Akim Demaille  <demaille@gostai.com>
6141
6142         fatal-signal: use C prototypes (with explicit void).
6143         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6144         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6145
6146 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6147
6148         regex: spelling fix
6149         * lib/regexec.c: spelling fix
6150
6151         regex: rely on stdint.h for SIZE_MAX
6152         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6153
6154 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6155
6156         regex: merge glibc changes
6157
6158         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6159         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6160         (init_word_char): Work even if bitset words are not exactly 32 or
6161         64 bits wide.  Don't assume there are no padding bits.
6162         * lib/regex.c [_LIBC]: Do not include <config.h>.
6163         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6164         and -Wtype-limits.
6165         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6166         needless disagreement with glibc.  All uses changed.  Define it to
6167         1 only if _GNU_SOURCE, to match glibc.
6168         (_REG_RM_NAME): Remove; no longer needed, since the names in
6169         question are now all protected by __USE_GNU.
6170         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6171         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6172         * lib/regex_internal.h (MIN): New macro.
6173
6174         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6175         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6176
6177         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6178         * lib/regex_internal.c (re_string_fetch_byte_case):
6179         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6180         is miscompiled, and it turns out it is because of an incorrect
6181         attribute on re_string_fetch_byte_case.  Unlike
6182         re_string_peek_byte_case, this one is really not pure, it modifies
6183         memory (increments pstr->cur_idx), and with the pure attribute GCC
6184         assumed it doesn't and it cached the presumed value of
6185         regexp->cur_idx in a variable across the
6186          for (;; ++i)
6187            {
6188              if (i >= BRACKET_NAME_BUF_SIZE)
6189                return REG_EBRACK;
6190              if (token->type == OP_OPEN_CHAR_CLASS)
6191                ch = re_string_fetch_byte_case (regexp);
6192              else
6193                ch = re_string_fetch_byte (regexp);
6194              if (re_string_eoi(regexp))
6195                return REG_EBRACK;
6196              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6197                break;
6198              elem->opr.name[i] = ch;
6199            }
6200
6201         2011-11-29 Andreas Schwab <schwab@redhat.com>
6202         * lib/regcomp.c (build_equiv_class):
6203         Fix access after end of search string in regex matcher.
6204
6205         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6206         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6207
6208         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6209         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6210
6211         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6212         * lib/regcomp.c (parse_branch, parse_sub_exp):
6213         More regex memory leak fixes and tests.
6214         (parse_sub_exp, parse_bracket_exp):
6215         Fix memory leak for some invalid regular expressions.
6216
6217         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6218         * lib/regex_internal.c, lib/regexec.c:
6219         Fix unnecessary overallocation due to incomplete character.  When
6220         incomplete characters are found at the end of a string the code
6221         ran amok and allocated lots of memory.  Stricter limits are now in
6222         place.
6223
6224         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6225         * lib/regex.h: Update documentation.
6226
6227         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6228         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6229
6230         2010-05-05 Andreas Schwab <schwab@redhat.com>
6231         * lib/regexec.c (find_collation_sequence_value):
6232         Fix lookup of collation sequence value during regexp matching.
6233
6234         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6235         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6236
6237         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6238         * lib/regex.h: Cleanup namespace.
6239
6240         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6241         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6242
6243         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6244         * lib/regex_internal.h: Prevent some declarations and definitions
6245         to be seen when used in tests.
6246
6247         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6248         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6249         __libc_lock_* macros if not _LIBC.
6250         (struct re_dfa_t): Add lock.
6251
6252 2012-02-07  Eric Blake  <eblake@redhat.com>
6253
6254         maint.mk: also prohibit lower-case @var@
6255         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6256         lower case, like @top_srcdir@.
6257
6258 2012-02-04  Eric Blake  <eblake@redhat.com>
6259
6260         canonicalize: avoid uninitialized memory use
6261         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6262         random '/' left in dest.
6263         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6264
6265 2012-02-04  Bruno Haible  <bruno@clisp.org>
6266
6267         isatty: Fix test failure of ptsname_r on native Windows.
6268         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6269         and don't set errno.
6270         (isatty): Test first whether fd is valid. Set errno when returning 0.
6271
6272 2012-02-04  Bruno Haible  <bruno@clisp.org>
6273
6274         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6275         * tests/test-spawn-pipe-main.c: Include progname.h.
6276         (main): Invoke set_program_name.
6277         * modules/spawn-pipe-tests (Depends-on): Add progname.
6278
6279         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6280         * tests/test-nonblocking-socket-main.c: Include progname.h.
6281         (main): Invoke set_program_name.
6282         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6283
6284         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6285         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6286         (main): Invoke set_program_name.
6287         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6288
6289 2012-02-04  Eric Blake  <eblake@redhat.com>
6290
6291         canonicalize-lgpl: fix // handling
6292         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6293
6294         canonicalize: fix // handling
6295         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6296         /// to //, since only // is special.
6297
6298 2012-02-04  Bruno Haible  <bruno@clisp.org>
6299
6300         ioctl: Fix test failure on native Windows.
6301         * lib/ioctl.c: Include msvc-nothrow.h.
6302         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6303
6304 2012-02-04  Bruno Haible  <bruno@clisp.org>
6305
6306         fsync: Avoid test failure on native Windows.
6307         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6308         read-only.
6309
6310 2012-02-04  Bruno Haible  <bruno@clisp.org>
6311
6312         sys_select: Avoid syntax error on OpenBSD 5.0.
6313         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6314         currently being included, just include the system's <sys/select.h>.
6315
6316 2012-02-04  Bruno Haible  <bruno@clisp.org>
6317
6318         sys_select: Avoid syntax error on OpenBSD 5.0.
6319         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6320         <sys/select.h>, not before.
6321         Reported by Jiri B <jirib@devio.us>.
6322
6323 2012-02-04  Bruno Haible  <bruno@clisp.org>
6324
6325         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6326         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6327         global variables.
6328         * tests/test-get-rusage-data.c (main): Likewise.
6329         Reported by Jim Meyering.
6330
6331 2012-02-04  Bruno Haible  <bruno@clisp.org>
6332
6333         stdioext: Fix last commit.
6334         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6335
6336 2012-02-03  Bruno Haible  <bruno@clisp.org>
6337
6338         stdioext: Add tentative support for Plan9.
6339         * lib/stdio-impl.h: Include <errno.h>.
6340         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6341         * lib/freadable.c (freadable): Likewise.
6342         * lib/fwritable.c (fwritable): Likewise.
6343         * lib/fbufmode.c (fbufmode): Likewise.
6344         * lib/freading.c (freading): Likewise.
6345         * lib/fwriting.c (fwriting): Likewise.
6346         * lib/freadptr.c (freadptr): Likewise.
6347         * lib/freadseek.c (freadptrinc): Likewise.
6348         * lib/freadahead.c (freadahead): Likewise.
6349         * lib/fpurge.c (fpurge): Likewise.
6350         * lib/fseeko.c (rpl_fseeko): Likewise.
6351         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6352         Reported by Jens Staal <staal1978@gmail.com>.
6353
6354 2012-02-02  Jim Meyering  <meyering@redhat.com>
6355
6356         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6357         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6358         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6359         not even to try to add the attribute.  Instead, add a pragma to suppress
6360         the suggestion/warning.
6361
6362 2012-01-31  Karl Berry  <karl@gnu.org>
6363
6364         setstate doc: typo.
6365         * doc/posix-functions/setstate.texi (setstate): { not (.
6366
6367 2012-01-31  Bruno Haible  <bruno@clisp.org>
6368
6369         popen: Make more robust on Windows.
6370         * lib/popen.c: On native Windows, use the _popen based code even if
6371         HAVE_POPEN is set.
6372         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6373         environment variable on native Windows.
6374
6375 2012-01-30  Bruno Haible  <bruno@clisp.org>
6376
6377         pclose: Fix typo.
6378         * lib/stdio.in.h (pclose): Fix typo in warning message.
6379
6380 2012-01-30  Bruno Haible  <bruno@clisp.org>
6381
6382         doc about getlogin_r, setstate.
6383         * doc/posix-functions/getlogin_r.texi: List the incompatible
6384         declaration problem under "not fixed by gnulib".
6385         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6386         problem on Solaris 11 and other platforms.
6387
6388 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6389             Bruno Haible  <bruno@clisp.org>
6390
6391         poll tests: Make test more robust.
6392         * tests/test-poll.c: Include macros.h.
6393         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6394         return value of various I/O operations.
6395         * modules/poll-tests (Files): Add tests/macros.h.
6396
6397 2012-01-30  Bruno Haible  <bruno@clisp.org>
6398
6399         sys_stat: Fix support for mingw64 and MSVC.
6400         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6401         header files already do it.
6402         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6403         stat itself.
6404         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6405
6406 2012-01-30  Bruno Haible  <bruno@clisp.org>
6407
6408         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6410         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6411
6412 2012-01-29  Bruno Haible  <bruno@clisp.org>
6413
6414         quotearg: Fix test failure on MacOS X 10.5.
6415         * tests/test-quotearg-simple.c: Include localcharset.h.
6416         (main): If the locale encoding is not ASCII, bypass the tests of
6417         locale_quoting_style and clocale_quoting_style.
6418         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6419
6420 2012-01-29  Jim Meyering  <meyering@redhat.com>
6421
6422         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6423         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6424         detect uses of canonicalize_file_name.
6425
6426 2012-01-28  Bruno Haible  <bruno@clisp.org>
6427
6428         test-framework-sh: Fix test failure with AIX 7.1 diff.
6429         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6430         in column 1, like 'diff -c' does.
6431         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6432         whether 'diff -u' is used. Instead, test whether the output contains
6433         some '@' character.
6434
6435 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6436
6437         strtoimax: eliminate need for stdint.h, inttypes.h checks
6438         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6439         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6440         the prerequisites for a recently-introduced strtoimax test.
6441         I guess this might cause strtoimax to be replaced when not
6442         strictly necessary on older hosts, but this shouldn't introduce
6443         any bugs and it should make Emacs 'configure' faster on typical
6444         modern hosts.  Problem discovered when importing the latest gnulib
6445         to an Emacs test version.
6446         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6447
6448 2012-01-28  Bruno Haible  <bruno@clisp.org>
6449
6450         sys_time: Override 'struct timeval' on some native Windows platforms.
6451         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6452         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6453         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6454         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6455         needs to be overridden.
6456         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6457         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6458         * tests/test-sys_select.c: Check that the tv_sec member has the same
6459         size as a 'time_t'.
6460         * tests/test-sys_time.c: Likewise.
6461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6462         is set, set also REPLACE_GETTIMEOFDAY.
6463         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6464         convert the resulting 'struct timeval' before returning.
6465         * lib/select.c: Include <sys/time.h>.
6466         (select, timeval): Undefine at the right place.
6467         * modules/select (Depends-on): Add sys_time.
6468         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6469         some Windows platforms.
6470         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6471
6472 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6473
6474         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6475         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6476         an integer.
6477         * lib/fcntl.c (dupfd): Likewise.
6478         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6479
6480 2012-01-28  Bruno Haible  <bruno@clisp.org>
6481
6482         fcntl: Avoid compilation error on native Windows.
6483         * modules/fcntl (Depends-on): Add 'close'.
6484
6485 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6486
6487         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6488         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6489         pointer to an integer.
6490         * lib/poll.c (IsConsoleHandle): Likewise.
6491         * lib/isatty.c (IsConsoleHandle): Likewise.
6492
6493 2012-01-28  Jim Meyering  <meyering@redhat.com>
6494
6495         doc: clarify README-release
6496         * top/README-release: Clarify: you should make a point to have
6497         the latest stable versions of build tools in your PATH, and the
6498         reference to buildreq is solely for its list of tool names, not
6499         for its minimal-functional version numbers.
6500         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6501
6502         maint.mk: use more readable (yet functionally equivalent) quoting
6503         It is common to quote a single quote in a single quoted string like
6504         this:  '...'\''...'.  Unless you know the idiom, that looks like
6505         gibberish, so prefer to double-quote the string when possible.
6506         Then you can use a more readable, lone single quote: "...'..."
6507         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6508         "don't" is more readable than the equivalent 'don'\''t'.
6509         (sc_cast_of_x_alloc_return_value): Likewise.
6510         (sc_cast_of_alloca_return_value): Likewise.
6511         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6512         rather than '\'':'\''.
6513
6514 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         stdalign: relax _Alignof and tighten _Alignas test
6517         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6518         as it was too strict: alignof must divide offsetof, but it need
6519         not equal offsetof.  Inspired by Joseph S. Myers's comment
6520         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6521         Conversely, tighten the _Alignas test a bit, as the resulting
6522         alignment must be exactly 8.
6523
6524 2012-01-27  Bruno Haible  <bruno@clisp.org>
6525
6526         stdalign: Document the last change.
6527         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6528
6529 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6530
6531         stdalign: check that alignof and offsetof are consistent
6532         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6533         Problem reported for gnulib by Richard W.M. Jones in
6534         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6535
6536 2012-01-27  Jim Meyering  <meyering@redhat.com>
6537
6538         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6539         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6540         convert a sequence with gaps to the minimal containing range.
6541         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6542         * tests/test-update-copyright.sh: Test for this.
6543         The FSF confirmed it is ok to do this, assuming there is at
6544         least one significant change per year in the affected range:
6545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6546
6547 2012-01-26  Bruno Haible  <bruno@clisp.org>
6548
6549         pipe2: refine doc about thread-safety
6550         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6551         multithread-safety problem.
6552         * doc/glibc-functions/accept4.texi: Likewise.
6553
6554 2012-01-26  Bruno Haible  <bruno@clisp.org>
6555
6556         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6557         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6558         In the test program, include <fcntl.h>, for O_RDONLY.
6559
6560 2012-01-26  Eric Blake  <eblake@redhat.com>
6561
6562         pipe2: document lack of thread-safety in replacement
6563         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6564         issue in replacement.
6565         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6566         Based on a report by Eric Wong.
6567
6568 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6569             Bruno Haible  <bruno@clisp.org>
6570
6571         malloca: Avoid warnings on x86_64 mingw64.
6572         * lib/malloca.c: Include <stdint.h>.
6573         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6574         * modules/malloca (Depends-on): Add stdint.
6575         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6576
6577 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6578
6579         obstack: remove __STDC__ conditionals
6580         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6581         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6582         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6583         m4/include_next.m4 as the only gnulib-maintained places that still
6584         refer to __STDC__.
6585
6586 2012-01-24  Bruno Haible  <bruno@clisp.org>
6587
6588         havelib: Modern quoting.
6589         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6590         the recent change to the GNU coding standards.
6591
6592 2012-01-24  Bruno Haible  <bruno@clisp.org>
6593
6594         stdint: Improve support for Android.
6595         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6596         Reported by Simon Josefsson <simon@josefsson.org>.
6597
6598 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         doc: omit trailing empty lines from INSTALL etc.
6601         * doc/Makefile (INSTALL): Omit trailing empty lines.
6602         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6603         omit trailing empty lines.  This simplifies the build procedure.
6604
6605 2012-01-23  Jim Meyering  <meyering@redhat.com>
6606
6607         tests: avoid spurious warnings about gl_sockets_startup
6608         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6609         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6610         reporting a "statement with no effect".
6611         * tests/test-accept.c (main): Mark as "(void)".
6612         * tests/test-accept4.c (main): Likewise.
6613         * tests/test-bind.c (main): Likewise.
6614         * tests/test-connect.c (main): Likewise.
6615         * tests/test-getpeername.c (main): Likewise.
6616         * tests/test-getsockname.c (main): Likewise.
6617         * tests/test-getsockopt.c (main): Likewise.
6618         * tests/test-listen.c (main): Likewise.
6619         * tests/test-recv.c (main): Likewise.
6620         * tests/test-recvfrom.c (main): Likewise.
6621         * tests/test-send.c (main): Likewise.
6622         * tests/test-sendto.c (main): Likewise.
6623         * tests/test-setsockopt.c (main): Likewise.
6624         * tests/test-shutdown.c (main): Likewise.
6625
6626 2012-01-21  Bruno Haible  <bruno@clisp.org>
6627
6628         locale-fr.m4: Fix for Android.
6629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6630         failure of the test program on Bionic libc.
6631
6632 2012-01-21  Jim Meyering  <meyering@redhat.com>
6633
6634         bootstrap: fail when bootstrap_post_import_hook fails
6635         Otherwise, it's far too easy to miss diagnostics emitted
6636         between gnulib-tool's output and that of running configure.
6637         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6638
6639 2012-01-17  Jim Meyering  <meyering@redhat.com>
6640
6641         maint: enable sc_trailing_blank
6642         * build-aux/pmccabe.css: Remove trailing blanks.
6643         * doc/acl-cygwin.txt: Likewise.
6644         * doc/gnu-oids.texi: Likewise
6645         * cfg.mk: Enable sc_trailing_blank.
6646         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6647
6648 2012-01-17  Jim Meyering  <meyering@redhat.com>
6649
6650         maint: enable sc_prohibit_openat_without_use
6651         * cfg.mk: Enable sc_prohibit_openat_without_use.
6652         Exempt lib/selinux-at.c.
6653
6654 2012-01-17  Jim Meyering  <meyering@redhat.com>
6655
6656         maint: enable sc_prohibit_cloexec_without_use
6657         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6658         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6659
6660 2012-01-17  Jim Meyering  <meyering@redhat.com>
6661
6662         maint: enable sc_prohibit_intprops_without_use
6663         * cfg.mk: Enable sc_prohibit_intprops_without_use
6664         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6665
6666 2012-01-17  Jim Meyering  <meyering@redhat.com>
6667
6668         maint: enable sc_prohibit_hash_pjw_without_use
6669         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6670         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6671         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6672         following " (".
6673
6674 2012-01-17  Jim Meyering  <meyering@redhat.com>
6675
6676         maint: enable double-word-prohibiting rule
6677         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6678         Exempt three files.
6679
6680 2012-01-17  Jim Meyering  <meyering@redhat.com>
6681
6682         maint: remove empty lines at EOF, but excluding modules/*
6683         Apply syntax rules at home as well as abroad.  Most changes
6684         were induced by running this:
6685           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6686             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6687             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6688         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6689         Exempt modules/* and two binary files.
6690         Also exempt doc/INSTALL*, per request from Bruno Haible.
6691         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6692         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6693         * doc/Copyright/request-assign.future: Likewise.
6694         * doc/Copyright/request-disclaim.changes: Likewise.
6695         * doc/INSTALL: Likewise.
6696         * doc/INSTALL.ISO: Likewise.
6697         * doc/INSTALL.UTF-8: Likewise.
6698         * doc/acl-cygwin.txt: Likewise.
6699         * doc/acl-resources.txt: Likewise.
6700         * doc/fdl-1.2.texi: Likewise.
6701         * doc/fdl-1.3.texi: Likewise.
6702         * doc/fdl.texi: Likewise.
6703         * lib/argp-pin.c: Likewise.
6704         * lib/round.c: Likewise.
6705         * lib/unicase/u16-totitle.c: Likewise.
6706         * lib/unictype/block_test.c: Likewise.
6707         * lib/uninorm/canonical-decomposition.c: Likewise.
6708         * m4/README: Likewise.
6709         * m4/relocatable-lib.m4: Likewise.
6710         * tests/test-isnand-nolibm.c: Likewise.
6711         * tests/test-isnand.c: Likewise.
6712         * tests/uninorm/NormalizationTest.txt: Likewise.
6713
6714 2012-01-17  Jim Meyering  <meyering@redhat.com>
6715
6716         maint: add framework to run syntax-check rules against gnulib sources
6717         * cfg.mk: New file, to disable all currently-failing tests.
6718         We'll enable them one by one, as they are made to pass.
6719         * Makefile (sc_maint): New rule.
6720
6721 2012-01-21  Bruno Haible  <bruno@clisp.org>
6722
6723         stdint: Add support for Android.
6724         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6725         include the system's <stdint.h>.
6726         Reported by Simon Josefsson <simon@josefsson.org>.
6727
6728 2012-01-19  Jim Meyering  <meyering@redhat.com>
6729
6730         bootstrap: add bootstrap_post_import_hook
6731         Bison does still need something like the gnulib_mk_hook whose
6732         invocation I had to remove along with slurp in commit 767ccd40.
6733         Technically, we could get along without it, but doing so would
6734         have required living with a warning and a mandatory post-bootstrap
6735         automake rerun.
6736         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6737         (bootstrap_post_import_hook): New function.
6738         Invoke it after gnulib-tool --import and before autoreconf.
6739
6740 2012-01-18  Jim Meyering  <meyering@redhat.com>
6741
6742         gitlog-to-changelog: don't use "no_"-prefixed variable name
6743         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6744         to enable both --cluster and --no-cluster.  Change variable name,
6745         s/\$no_cluster/$cluster/, and reverse usage to match.
6746
6747         gitlog-to-changelog: use "||", not "or" in expressions
6748         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6749         expressions.
6750
6751 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6752
6753         gitlog-to-changelog: new option --no-cluster
6754         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6755         clustering of adjacent commit messages.
6756
6757 2012-01-17  Jim Meyering  <meyering@redhat.com>
6758
6759         maint: spell file systems with two words, not one
6760         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6761         two words, not one.
6762
6763 2012-01-16  Jim Meyering  <meyering@redhat.com>
6764
6765         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6766         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6767
6768 2012-01-16  Eric Blake  <eblake@redhat.com>
6769
6770         bootstrap: cater to autoconf 2.59
6771         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6772         is not available.
6773
6774         bootstrap: properly check for libtool
6775         * build-aux/bootstrap (libtoolize): Also run libtool when older
6776         usage is detected.
6777
6778 2012-01-15  Bruno Haible  <bruno@clisp.org>
6779
6780         Improve support for MSVC 9.
6781         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6782         clashes on MSVC.
6783         * lib/fcntl.in.h: Likewise.
6784         * lib/stdlib.in.h: Likewise.
6785         * lib/sys_stat.in.h: Likewise.
6786
6787 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6788
6789         gnupload: we hold the master copy of this script now
6790         For motivation and more information, see:
6791         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6792         * build-aux/gnupload: Make it clear in the heading comments that the
6793         master copy of this file is maintained by gnulib.  Since we are at
6794         it, bump its copyright year and ...
6795         ($scriptversion): ... the date in its version.
6796         ($usage): Patches and bug reports should be sent to the gnulib list,
6797         not the automake one.
6798         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6799         anymore.
6800
6801 2012-01-15  Bruno Haible  <bruno@clisp.org>
6802
6803         Fix module 'random'.
6804         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6805         initstate, setstate are declared.
6806
6807 2012-01-14  Bruno Haible  <bruno@clisp.org>
6808
6809         Tests for module 'random'.
6810         * modules/random-tests: New file.
6811         * tests/test-random.c: New file, based on tests/test-random_r.c.
6812
6813         New module 'random'.
6814         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6815         declarations.
6816         * lib/random.c: New file, based on glibc/stdlib/random.c.
6817         * m4/random.m4: New file.
6818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6819         HAVE_RANDOM.
6820         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6821         * modules/random: New file.
6822         * config/srclist.txt: Add an entry for random.c.
6823         * doc/posix-functions/random.texi: Mention the 'random' module.
6824         * doc/posix-functions/initstate.texi: Likewise.
6825         * doc/posix-functions/setstate.texi: Likewise.
6826         * doc/posix-functions/srandom.texi: Likewise.
6827
6828 2012-01-12  Bruno Haible  <bruno@clisp.org>
6829
6830         random_r: Use common idioms.
6831         * lib/random_r.c: Include <stdlib.h> first.
6832
6833         random_r: Override incompatible API on AIX, OSF/1.
6834         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6835         Override the system function if REPLACE_RANDOM_R is 1.
6836         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6837         and OSF/1, set REPLACE_RANDOM_R.
6838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6839         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6840         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6841         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6842         * doc/glibc-functions/random_r.texi: Likewise.
6843         * doc/glibc-functions/setstate_r.texi: Likewise.
6844
6845         random_r: Support for MSVC 9.
6846         * lib/random_r.c: Include stdint.h, not inttypes.h.
6847
6848 2012-01-12  Eric Blake  <eblake@redhat.com>
6849
6850         inet_ntop: guard extra work by IF_LINT
6851         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6852         better code generation when not checking for warnings.
6853         Suggested by Paul Eggert and Jim Meyering.
6854
6855         strptime: fix regression on mingw
6856         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6857         Fix regression.  Reported by Bruno Haible.
6858
6859 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6860             Bruno Haible  <bruno@clisp.org>
6861
6862         copy-file: add error-code-returning variant.
6863         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6864         (qcopy_file_preserving): New declaration.
6865         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6866         copy_file_preserving. Change return type to 'int'. Don't emit an error
6867         message here.
6868         (copy_file_preserving): New function.
6869         * tests/test-copy-file.c: Include <stdlib.h>.
6870         (main): Test qcopy_file_preserving if the environment variable
6871         NO_STDERR_OUTPUT is set.
6872         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6873         with NO_STDERR_OUTPUT
6874         * tests/test-copy-file-2.sh: Likewise.
6875
6876 2012-01-10  Bruno Haible  <bruno@clisp.org>
6877
6878         copy-file: Use 'quote' module consistently.
6879         * lib/copy-file.c (copy_file_preserving): Use quote().
6880
6881         copy-file: Refactor.
6882         * lib/copy-file.c: Include quote.h.
6883         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6884         message here.
6885         * modules/copy-file (Depends-on): Add quote.
6886
6887         acl: Export qcopy_acl.
6888         * lib/acl.h (qcopy_acl): New declaration.
6889         * lib/copy-acl.c (qcopy_acl): Make non-static.
6890
6891         acl: Rename a local variable.
6892         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6893
6894         acl: Align return values of copy_acl and qcopy_acl.
6895         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6896         maybe < -1.
6897
6898 2012-01-11  Eric Blake  <eblake@redhat.com>
6899
6900         strptime: silence gcc warnings
6901         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6902         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6903         Reported by Daniel P. Berrange.
6904
6905         inet_ntop: silence gcc warning
6906         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6907         Reported by Daniel P. Berrange.
6908
6909 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6910
6911         getloadavg test: skip the test on GNU/Linux without /proc mounted
6912         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6913         file.  When /proc is not mounted, it always fails with ENOENT.
6914         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6915         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6916
6917 2012-01-10  Bruno Haible  <bruno@clisp.org>
6918
6919         regex: Avoid link error on MSVC 9.
6920         * modules/regex (Depends-on): Add wctype.
6921
6922 2012-01-10  Bruno Haible  <bruno@clisp.org>
6923
6924         doc: Mention --with-tests option.
6925         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6926         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6927         --with-tests.
6928         Reported by Reuben Thomas.
6929
6930 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6931
6932         users.txt: order package names lexicographically.
6933         * users.txt: Order package names lexicographically.
6934
6935 2012-01-10  Jim Meyering  <meyering@redhat.com>
6936
6937         maint.mk: fix description in comment
6938         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6939
6940         ignore-value: remove deprecated ignore_ptr function
6941         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6942         * NEWS: Note this.
6943
6944 2012-01-09  Jim Meyering  <meyering@redhat.com>
6945
6946         test-init.sh: avoid a subshell
6947         * tests/test-init.sh: Remove protective subshell.
6948         Suggested by Bernhard Voelker.  While a subshell is normally
6949         required to protect against older shells (Solaris, FreeBSD) that
6950         warn about a missing program before performing redirection, the
6951         shell-selection tests performed by init.sh probably exclude any
6952         offending shell.
6953
6954 2012-01-08  Bruno Haible  <bruno@clisp.org>
6955
6956         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6957         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6958         variable.
6959
6960 2012-01-08  Bruno Haible  <bruno@clisp.org>
6961
6962         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6963         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6964         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6965         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6966         macro.
6967         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6968         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6969         * lib/spawn_faction_addopen.c: Add workaround implementation if
6970         HAVE_WORKING_POSIX_SPAWN.
6971         * modules/spawn (Makefile): Substitute
6972         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6973         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6974         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6975         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6976         (Depends-on): Update conditions.
6977         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6978         the Solaris 11 bug.
6979
6980 2012-01-08  Bruno Haible  <bruno@clisp.org>
6981
6982         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6983         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6985         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6986         macro.
6987         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6988         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6989         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6990         HAVE_WORKING_POSIX_SPAWN.
6991         * modules/spawn (Makefile): Substitute
6992         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6993         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6994         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6996         (Depends-on): Update conditions.
6997         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6998         the Solaris 11 bug.
6999
7000 2012-01-08  Bruno Haible  <bruno@clisp.org>
7001
7002         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7003         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7004         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7006         HAVE_WORKING_POSIX_SPAWN.
7007         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7008         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7009         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7010         * lib/spawn_faction_addclose.c: Add workaround implementation if
7011         HAVE_WORKING_POSIX_SPAWN.
7012         * modules/spawn (Makefile): Substitute
7013         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7014         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7015         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7016         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7017         (Depends-on): Update conditions.
7018         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7019         the Solaris 11 bug.
7020
7021 2012-01-08  Bruno Haible  <bruno@clisp.org>
7022
7023         doc: Update for Solaris 11 2011-11.
7024         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7025         * m4/printf.m4: Update comments.
7026
7027 2012-01-08  Bruno Haible  <bruno@clisp.org>
7028
7029         mktime: Avoid compilation error on Solaris 11.
7030         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7031
7032 2012-01-08  Bruno Haible  <bruno@clisp.org>
7033
7034         doc: Small fix.
7035         * doc/posix-headers/nl_types.texi: Correct platforms list.
7036
7037 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7038
7039         Add lgpl-3.0 module.
7040         * MODULES.html.sh (Support for building documentation): Add
7041         lgpl-3.0.
7042         * modules/lgpl-3.0: New file.
7043
7044 2012-01-08  Jim Meyering  <meyering@redhat.com>
7045
7046         select.c: indent with spaces, not TABs
7047         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7048
7049 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7050
7051         quotearg: do not use grave accent for left quote
7052         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7053         locale_quoting_style.
7054         (quotearg_buffer_restyled): Fix example.
7055         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7056
7057 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7058
7059         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7060         Most programs do not have translation catalogs for English and much
7061         less separate catalogs for British and American English.  Drop the
7062         suggestion to translators about these two, and provide it
7063         automatically for Unicode locales.  Like most programs, even those
7064         using American English, we use single quotation marks.  This conflicts
7065         with the American typographic convention, but works better when you
7066         cite the entire error message within double quotes.  It also tries not
7067         to clash with established practice and with what non-gnulib programs
7068         will usually do.
7069         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7070         using an UTF-8 or GB-18030 locale.  The list of other locales with
7071         quotes was provided by Bruno Haible.
7072         (quotearg_buffer_restyled): Adjust instructions to translators.
7073         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7074         text, since this would be wrong when using Unicode.
7075         * modules/quotearg: Depend on c-strcaseeq.
7076
7077 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7078
7079         quotearg: fix Wikipedia link
7080         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7081
7082 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7083
7084         Fix for mingw with MSVC9.
7085         * m4/ld-version-script.m4: Check that compiler rejects version
7086         scripts with syntax errors.  Reported by Bruno Haible
7087         <bruno@clisp.org>.
7088
7089 2012-01-06  Bruno Haible  <bruno@clisp.org>
7090
7091         Talk about "native Windows API", not "Woe32".
7092         * lib/accept4.c: Update comments to mention native Windows.
7093         * lib/execute.c: Likewise.
7094         * lib/fatal-signal.c: Likewise.
7095         * lib/localcharset.c: Likewise.
7096         * lib/nanosleep.c: Likewise.
7097         * lib/nl_langinfo.c: Likewise.
7098         * lib/pclose.c: Likewise.
7099         * lib/pipe-filter-gi.c: Likewise.
7100         * lib/pipe-filter-ii.c: Likewise.
7101         * lib/pipe.c: Likewise.
7102         * lib/pipe2.c: Likewise.
7103         * lib/popen.c: Likewise.
7104         * lib/progreloc.c: Likewise.
7105         * lib/relocatable.c: Likewise.
7106         * lib/sigaction.c: Likewise.
7107         * lib/sigprocmask.c: Likewise.
7108         * lib/spawn-pipe.h: Likewise.
7109         * lib/spawn-pipe.c: Likewise.
7110         * lib/spawni.c: Likewise.
7111         * lib/stat-time.h: Likewise.
7112         * lib/w32spawn.h: Likewise.
7113         * tests/test-isatty.c: Likewise.
7114         * lib/config.charset: More comments.
7115         * doc/gnulib-intro.texi: Mention native Windows.
7116         * doc/posix-functions/_Exit_C99.texi: Likewise.
7117         * doc/posix-headers/fcntl.texi: Likewise.
7118
7119 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7120
7121         argp: Avoid crash if translator uses % characters in a translation.
7122         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7123         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7124
7125 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7126
7127         doc: C11 and C++11 are now official
7128         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7129         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7130         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7131         * modules/stdalign:
7132         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7133
7134 2012-01-06  Bruno Haible  <bruno@clisp.org>
7135
7136         uc-is-grapheme-break tests: Tweak.
7137         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7138         message.
7139
7140 2012-01-06  Bruno Haible  <bruno@clisp.org>
7141
7142         test-init.sh: correct the test for diff -u
7143         * tests/test-init.sh: Also redirect stdout to /dev/null.
7144
7145 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7146
7147         Use ', not `, for quoting output.
7148         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7149         (print_changelog_deltas, get_tool_versions, main program):
7150         * build-aux/git-version-gen:
7151         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7152         * build-aux/move-if-change (help):
7153         * build-aux/useless-if-before-free (usage, main program):
7154         * check-module (parse_module_file, usage)
7155         (find_included_lib_files, check_module):
7156         * lib/argmatch.c (main) [TEST]:
7157         * lib/argp-help.c (_help):
7158         * lib/getopt1.c (main) [TEST]:
7159         * lib/git-merge-changelog.c (usage):
7160         * lib/xstrtol-error.c (xstrtol_error):
7161         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7162         * m4/argz.m4 (gl_FUNC_ARGZ):
7163         * m4/bison.m4 (gl_BISON):
7164         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7166         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7167         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7168         * m4/gc-random.m4 (gl_GC_RANDOM):
7169         * m4/intl.m4 (gt_CHECK_DECL):
7170         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7171         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7172         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7174         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7175         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7176         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7177         * tests/test-dirname.c (main):
7178         * tests/test-getpass.c (main):
7179         * tests/test-iconvme.c (main):
7180         * tests/test-parse-datetime.c (LOG):
7181         * tests/test-xstrtoimax.sh:
7182         * tests/test-xstrtol.sh:
7183         * tests/test-xstrtoll.sh:
7184         * tests/test-xstrtoumax.sh:
7185         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7186         * top/GNUmakefile (abort-due-to-no-makefile):
7187         Quote 'like this', not `like this', as per the recent change to
7188         the GNU coding standards.
7189
7190 2012-01-05  Bruno Haible  <bruno@clisp.org>
7191
7192         strtoimax: Don't force a replacement on systems where intmax_t is int.
7193         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7194         'intmax_t' is not larger than 'int'.
7195         Reported by Pádraig Brady <P@draigBrady.com>.
7196
7197 2012-01-05  Bruno Haible  <bruno@clisp.org>
7198
7199         doc: Mention NetBSD bugs.
7200         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7201         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7202
7203 2012-01-05  Bruno Haible  <bruno@clisp.org>
7204
7205         strtoumax tests: Enhance tests.
7206         * tests/test-strtoumax.c (main): Add tests for large values.
7207
7208 2012-01-05  Bruno Haible  <bruno@clisp.org>
7209
7210         strtoimax: Work around AIX 5.1 bug.
7211         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7212         definition.
7213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7214         Set HAVE_STRTOIMAX.
7215         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7216         REPLACE_STRTOIMAX.
7217         * modules/inttypes-incomplete (Makefile.am): Substitute
7218         REPLACE_STRTOIMAX.
7219         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7220         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7221         (Depends-on): Update conditions.
7222         * tests/test-strtoimax.c (main): Add tests for large values.
7223         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7224
7225 2012-01-05  Bruno Haible  <bruno@clisp.org>
7226
7227         inttypes: Modernize.
7228         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7229         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7230         (Makefile.am): Update inttypes.h rule.
7231
7232 2012-01-05  Jim Meyering  <meyering@redhat.com>
7233
7234         init.sh: don't waste a subshell just to redirect stderr
7235         * tests/init.sh: In testing for diff -u and diff -c, use a
7236         stderr-redirecting exec inside `...` rather than a subshell.
7237
7238         test-init.sh: avoid failure on HP-UX 11.00
7239         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7240         resolves to diff -c or cmp.  Reported by Bruno Haible.
7241
7242 2012-01-05  Bruno Haible  <bruno@clisp.org>
7243
7244         Tests for module 'strtoull'.
7245         * modules/strtoull-tests: New file.
7246         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7247
7248 2012-01-05  Bruno Haible  <bruno@clisp.org>
7249
7250         Tests for module 'strtoll'.
7251         * modules/strtoll-tests: New file.
7252         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7253
7254 2012-01-05  Bruno Haible  <bruno@clisp.org>
7255
7256         Tests for module 'strtoul'.
7257         * modules/strtoul-tests: New file.
7258         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7259
7260 2012-01-05  Bruno Haible  <bruno@clisp.org>
7261
7262         Tests for module 'strtol'.
7263         * modules/strtol-tests: New file.
7264         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7265
7266 2012-01-04  Jim Meyering  <meyering@redhat.com>
7267
7268         test-init.sh: accommodate Solaris 5.10's different diff -u output
7269         * tests/test-init.sh: Also exempt @@ lines from the comparison
7270         of diff output, since Solaris 5.10 and GNU diff formats differ.
7271         Reported by Stefano Lattarini.
7272
7273 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7274
7275         test-posixtm: don't assume signed integer wraparound
7276         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7277         after signed integer overflow.  Inspired by (though it may not
7278         fix) Bruno Haible's bug report in
7279         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7280
7281         Spell out "Windows 9x" and "Windows XP".
7282         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7283         "Windows 9x" and "WinXP" with "Windows XP".
7284
7285 2012-01-04  Jim Meyering  <meyering@redhat.com>
7286
7287         test-vc-list-files-cvs.sh: remove obsolete comment
7288         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7289         double exit.  Now that's all encapsulated via skip_ and Exit.
7290
7291 2012-01-04  Bruno Haible  <bruno@clisp.org>
7292
7293         Talk about "native Windows API", not "Win32".
7294         * lib/classpath.c: Update comments to mention native Windows.
7295         * lib/csharpexec.c: Likewise.
7296         * lib/dup2.c: Likewise.
7297         * lib/error.c: Likewise.
7298         * lib/fcntl.c: Likewise.
7299         * lib/filename.h: Likewise.
7300         * lib/findprog.c: Likewise.
7301         * lib/get-rusage-as.c: Likewise.
7302         * lib/get-rusage-data.c: Likewise.
7303         * lib/getpagesize.c: Likewise.
7304         * lib/javaexec.c: Likewise.
7305         * lib/msvc-inval.c: Likewise.
7306         * lib/msvc-nothrow.c: Likewise.
7307         * lib/nanosleep.c: Likewise.
7308         * lib/nonblocking.c: Likewise.
7309         * lib/printf-parse.c: Likewise.
7310         * lib/setlocale.c: Likewise.
7311         * lib/sigaction.c: Likewise.
7312         * lib/strerror_r.c: Likewise.
7313         * lib/tmpdir.c: Likewise.
7314         * lib/vasnprintf.c: Likewise.
7315         * lib/w32spawn.h: Likewise.
7316         * lib/waitpid.c: Likewise.
7317         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7318         * m4/locale-ar.m4: Likewise.
7319         * m4/locale-fr.m4: Likewise.
7320         * m4/locale-ja.m4: Likewise.
7321         * m4/locale-tr.m4: Likewise.
7322         * m4/locale-zh.m4: Likewise.
7323         * m4/printf.m4: Likewise.
7324         * tests/test-cloexec.c: Likewise.
7325         * tests/test-copy-acl.sh: Likewise.
7326         * tests/test-copy-file.sh: Likewise.
7327         * tests/test-file-has-acl.sh: Likewise.
7328         * tests/test-set-mode-acl.sh: Likewise.
7329         * tests/test-dup-safer.c: Likewise.
7330         * tests/test-dup2.c: Likewise.
7331         * tests/test-dup3.c: Likewise.
7332         * tests/test-fcntl.c: Likewise.
7333         * tests/test-nonblocking-pipe.h: Likewise.
7334         * tests/test-nonblocking-socket.h: Likewise.
7335         * tests/test-pipe.c: Likewise.
7336         * tests/test-pipe2.c: Likewise.
7337         * tests/test-spawn-pipe-child.c: Likewise.
7338         * doc/acl-resources.txt: Likewise.
7339         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7340         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7341         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7342         * lib/localcharset.c: Update comments to mention native Windows.
7343         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7344         * lib/localename.c: Likewise.
7345         * lib/progreloc.c: Likewise.
7346         * lib/relocatable.c: Likewise.
7347         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7348         (windows_compute_revents): Renamed from win32_compute_revents.
7349         (windows_compute_revents_socket): Renamed from
7350         win32_compute_revents_socket.
7351         * lib/select.c: Update comments to mention native Windows.
7352         (windows_poll_handle): Renamed from win32_poll_handle.
7353         * m4/threadlib.m4: Update comments to mention native Windows.
7354         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7355         --enable-threads=windows instead of --enable-threads=win32. Set
7356         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7357         * lib/glthread/lock.h: Update comments to mention native Windows.
7358         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7359         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7360         USE_WIN32_THREADS.
7361         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7362         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7363         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7364         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7365         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7366         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7367         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7368         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7369         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7370         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7371         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7372         * tests/test-tls.c: Likewise.
7373         Rationale:
7374         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7375         on both 32-bit and 64-bit Windows systems.
7376         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7377         line of distinction is between "native Windows" on one side and Unix/
7378         POSIX systems on the other side. More details in
7379         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7380         Suggested by Paul Eggert.
7381
7382 2012-01-03  Bruno Haible  <bruno@clisp.org>
7383
7384         isatty: Support for MSVC 9.
7385         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7386         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7387         (_isatty_nothrow): New function.
7388         (isatty): Use it instead of _isatty.
7389         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7390         * lib/poll.c (IsConsoleHandle): Likewise.
7391         * lib/select.c (IsConsoleHandle): Likewise.
7392         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7393         (gl_PREREQ_ISATTY): New macro.
7394         * modules/isatty (Depends-on): Add msvc-inval.
7395         (configure.ac): Invoke gl_PREREQ_ISATTY.
7396
7397 2012-01-03  Jim Meyering  <meyering@redhat.com>
7398
7399         maint.mk: remove temporary transition aid from over 1.5 years ago
7400         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7401         purpose was to aid in the transition (avoiding silent malfunction)
7402         from that old name to the new _sc_search_regexp.  This shim was
7403         added by commit 219c504b.
7404
7405         init.sh: do not try to accommodate compare arguments starting with "-"
7406         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7407         compare arguments that start with "-".  Besides, we do not worry
7408         about this when invoking diff or cmp; why start now with sed?
7409         Using "--" to separate options from argument would trigger sed
7410         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7411         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7412
7413 2012-01-02  Bruno Haible  <bruno@clisp.org>
7414
7415         Enhance tests for module 'isatty'.
7416         * modules/isatty-tests (Depends-on): Add pipe-posix.
7417         * tests/test-isatty.c: Include <fcntl.h>.
7418         (DEV_NULL): New macro.
7419         (main): Test the resut of isatty() also on regular files, pipes, and
7420         /dev/null.
7421
7422         New module 'isatty'.
7423         * lib/unistd.in.h (isatty): New declaration.
7424         * lib/isatty.c: New file, based on an idea of
7425         Bastien Roucariès <roucaries.bastien@gmail.com>.
7426         * m4/isatty.m4: New file.
7427         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7428         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7429         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7430         REPLACE_ISATTY.
7431         * modules/isatty: New file.
7432         * doc/posix-functions/isatty.texi: Mention the new module.
7433         Suggested by Paolo Bonzini.
7434
7435 2012-01-02  Bruno Haible  <bruno@clisp.org>
7436
7437         canonicalize: Tweak 2011-12-29 commit.
7438         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7439         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7440
7441 2012-01-02  Jim Meyering  <meyering@redhat.com>
7442
7443         gitlog-to-changelog: describe input syntax in --help output
7444         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7445
7446         gitlog-to-changelog: fix typo in --help: show backslash before email @
7447         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7448         in sources, but not in actual output.
7449
7450 2011-12-30  Jim Meyering  <meyering@redhat.com>
7451
7452         gitlog-to-changelog: don't malfunction when name contains %-directive
7453         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7454         in a name string cause trouble.  E.g., with a user name of "%s",
7455         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7456
7457 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7458
7459         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7460         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7461         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7462         the "  (tiny change)" notation that is appended to the standard
7463         ChangeLog "date  name  email" header line.
7464
7465 2012-01-01  Jim Meyering  <meyering@redhat.com>
7466
7467         test-framework-sh: init.sh: fix "make dist" failure
7468         When using gnulib-tool's --with-tests option and any module that
7469         depends on test-framework-sh, "make dist" would fail due to the
7470         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7471         in the gltests directory, and not in the gllib/ directory.
7472         One way to work around that is to move the EXTRA_DIST += init.sh
7473         from the primary module to the -tests one:
7474         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7475         * modules/test-framework-sh (Makefile.am): ...not here.
7476         Reported by Tom G. Christensen in
7477         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7478
7479         version-etc: update copyright year reported by --version
7480         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7481
7482 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7483
7484         canonicalize: only stat() if required
7485         * lib/canonicalize.c (canonicalize_filename_mode):
7486         Avoid calling l?stat() when both CAN_MISSING,
7487         and CAN_NOLINKS are set, as we neither need
7488         to resolve symlinks or test component existence.
7489
7490 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7491
7492         doc: cover st_ino issues once; add OpenVMS etc.
7493         * doc/posix-functions/stat.texi (stat):
7494         * doc/posix-functions/lstat.texi (lstat):
7495         * doc/posix-functions/fstatat.texi (fstatat):
7496         * doc/posix-functions/fstat.texi (fstat):
7497         Move general 'struct stat' stuff to sys_stat.texi,
7498         leaving behind a pointer.
7499         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7500         Merge duplicate info about 'struct stat' problems into here.
7501         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7502         and suggest partial workarounds.
7503
7504         same-inode: port to OpenVMS
7505         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7506         three st_ino values.
7507
7508 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7509
7510         canonicalize: fix references to stat() and lstat()
7511         * lib/canonicalize.c (canonicalize_filename_mode):
7512         Ensure references always resolve to a replacement
7513         function if required (even via a macro).
7514
7515 2011-12-30  Jim Meyering  <meyering@redhat.com>
7516
7517         gitlog-to-changelog: remove a little duplication
7518         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7519         rather than twice.
7520
7521 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7522
7523         canonicalize: add support for not resolving symlinks
7524         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7525         indicate we don't want to follow symlinks.  Also
7526         provide CAN_MODE_MASK to aid setting these existing
7527         mutually exclusive values.
7528         * lib/canonicalize.c (canonicalize_filename_mode):
7529         Extract the flags from can_mode parameter, which
7530         are currently just used to select between stat()
7531         and lstat().  Also ensure that mutually exclusive
7532         values are flagged immediately as invalid.
7533         * tests/test-canonicalize.c: Verify symlinks are
7534         not followed, and that invalid flag combinations
7535         are diagnosed.
7536
7537 2011-12-25  Jim Meyering  <meyering@redhat.com>
7538
7539         gitlog-to-changelog: do not clump multi-paragraph entries
7540         Identical header lines (date,name,email+coauthors) are suppressed,
7541         thus putting all entries with those same characteristics under
7542         a single header.  However, when a log entry consists of two or
7543         more paragraphs, it may not be clear where it starts and ends.
7544         This change makes it so that such an entry is always separated
7545         from others by a header line, even when that header would
7546         otherwise be suppressed.
7547         * build-aux/gitlog-to-changelog: Implement the above.
7548         Inspired by a related request from Stefano Lattarini in
7549         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7550
7551 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         announce-gen: fix `cmd' typo in diagnostic
7554         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7555         diagnostic: a missing '$' meant that the command was not output.
7556
7557 2011-12-23  Jim Meyering  <meyering@redhat.com>
7558
7559         test-framework-sh: distribute init.sh
7560         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7561         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7562         fail due to the lack of init.sh.
7563
7564         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7565         * modules/atexit-tests: Rather than listing tests/init.sh,
7566         now that there's a module for it, simply depend on that new module.
7567         * modules/closein-tests: Likewise.
7568         * modules/exclude-tests: Likewise.
7569         * modules/getcwd-tests: Likewise.
7570         * modules/perror-tests: Likewise.
7571         * modules/pread-tests: Likewise.
7572         * modules/pwrite-tests: Likewise.
7573         * modules/vc-list-files-tests: Likewise.
7574         * modules/verify-tests: Likewise.
7575         * modules/xalloc-die-tests: Likewise.
7576         * modules/xstrtoimax-tests: Likewise.
7577         * modules/xstrtol-tests: Likewise.
7578         * modules/xstrtoll-tests: Likewise.
7579         * modules/xstrtoumax-tests: Likewise.
7580         * modules/yesno-tests: Likewise.
7581
7582 2011-12-22  Jim Meyering  <meyering@redhat.com>
7583
7584         test-framework-sh: add minimal tests of init.sh's compare function
7585         * modules/test-framework-sh-tests: New file.
7586         * tests/test-init.sh: New file.
7587
7588         test-framework-sh: new module
7589         * modules/test-framework-sh: New file.
7590         * MODULES.html.sh (Support for maintaining and releasing projects):
7591         List it.
7592
7593         init.sh: do not emit simulated diff output to stderr
7594         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7595
7596 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7597
7598         .gitignore: ignore gnulib.dvi and regex.info
7599         * doc/.gitignore:add gnulib.dvi and regex.info
7600
7601 2011-12-22  Jim Meyering  <meyering@redhat.com>
7602
7603         init.sh: correct previous change
7604         * tests/init.sh (compare): My previous change was wrong.
7605         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7606
7607         init.sh: avoid unwarranted test failure when using "set -e"
7608         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7609         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7610         a use like "compare exp out" would get evoke an unconditional failure.
7611
7612 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7613
7614         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7615         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7616         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7617         autoreconf that did not.
7618         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7619         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7620
7621 2011-12-17  Jim Meyering  <meyering@redhat.com>
7622
7623         bootstrap: remove some now-unneeded code
7624         This script arose back when gnulib-tool was young.
7625         Since then, it has seen improvements that render much of this
7626         script unnecessary.  In particular, it can now make symlinks
7627         to the files it uses.  Also, I no longer see as much value in
7628         marking files as read-only via comments.
7629         If you relied on the symlink-creation feature of the preceding
7630         version of this script, you can get most of that functionality
7631         by adding the --symlink option to the definition of
7632         gnulib_tool_option_extras in your bootstrap.conf file.
7633         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7634         Run autopoint and libtoolize *before* gnulib-tool.
7635         After it, run an abbreviated autoreconf, rather than a loop around
7636         all tools.
7637         (slirp, bt_mark_as_generated): Remove functions.
7638
7639 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         ftoastr: fix typo
7642         * lib/ftoastr.h: Fix misspelling in comment.
7643
7644 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7645
7646         * top/README-release: fix punctuation.
7647
7648 2011-12-17  Jim Meyering  <meyering@redhat.com>
7649
7650         bootstrap: correct the recent buildreq change
7651         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7652         had no effect.
7653         * build-aux/bootstrap (buildreq): Bracket each search term with
7654         "*...*", so that the shell "case" statement works as intended.
7655         Add comments.
7656
7657 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7658
7659         build: let bootstrap resort to wget when downloading .po files
7660         * build-aux/bootstrap (download_po_files): Fallback to wget when
7661         downloading the .po files via rsync fails.  This is necessary to
7662         bootstrap from behind a strict firewall.
7663
7664 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7665
7666         stdint: don't assume C++11 when compiling with g++
7667         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7669         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7670         work also in C++ before C++11, as that improperly inhibits
7671         generating a substitute stdint.h for that case.
7672
7673 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7674
7675         alloca: protect comment from gnulib-tool
7676         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7677         that gnulib-tool doesn't think it's a license, and munge it to
7678         say "GCC version 3".
7679
7680 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7681
7682         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7683         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7684         $(abs_top_builddir) instead of $(top_builddir).
7685
7686 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7687
7688         strftime-tests: also test nanoseconds
7689         * tests/test-strftime.c (T): Add a test of %N.
7690
7691 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         inttypes, stdint: add C++11 support
7694         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7695         when including inttypes.h and stdint.h.  Support this change to
7696         the standard.
7697         * doc/posix-headers/inttypes.texi (inttypes.h):
7698         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7699         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7700         Define if not defined already, for the benefit of pre-C++11 hosts.
7701         Define the standard format macros (e.g., PRId8) always.
7702         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7703         Likewise, if __cpluspus.  Define the standard constant and limit
7704         macros (e.g., INT8_C, INT8_MAX) always.
7705         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7706         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7707         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7708         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7709         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7710         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7711         Likewise.
7712
7713 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7714
7715         nonblocking tests: Fix test failure on Linux/PPC.
7716         Suggested by Prerna Saxena in
7717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7718         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7719         Set to 1100000.
7720
7721 2011-12-12  Jim Meyering  <meyering@redhat.com>
7722
7723         argmatch: don't hard-code `' when listing valid option arguments
7724         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7725         use the quote function to add quotes.  Use fputs rather than
7726         fprintf for the format string with no format directive.
7727
7728 2011-12-07  Eric Blake  <eblake@redhat.com>
7729
7730         bootstrap: detect tools required by gnulib-tool
7731         * build-aux/bootstrap (buildreq): Provide minimum implicit
7732         dependencies.
7733         * DEPENDENCIES: Mention patch as a prereq.
7734
7735 2011-12-04  Bruno Haible  <bruno@clisp.org>
7736
7737         sethostname: Port to Windows platforms.
7738         * lib/sethostname.c: Provide an alternate implementation for Windows
7739         platforms.
7740         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7741         (main): Skip the test if sethostname() fails with EPERM. On Windows
7742         platforms, don't check the result of gethostname().
7743
7744 2011-12-04  Bruno Haible  <bruno@clisp.org>
7745             Jim Meyering  <meyering@redhat.com>
7746
7747         tests: Avoid spurious error message on platforms without mktemp program.
7748         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7749
7750 2011-12-04  Bruno Haible  <bruno@clisp.org>
7751
7752         sethostname: Fix documentation.
7753         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7754         "not fixed" section.
7755
7756 2011-12-03  Bruno Haible  <bruno@clisp.org>
7757
7758         gnulib-tool: Verify that the License field is present and non-empty.
7759         * gnulib-tool (func_get_license_raw): New function, extracted from
7760         func_get_license.
7761         (func_get_license): Use it. Warn if the module is not a test module and
7762         has no license.
7763         Suggested by Jim Meyering.
7764
7765 2011-12-03  Bruno Haible  <bruno@clisp.org>
7766
7767         sethostname tests: Fix link error on mingw.
7768         * tests/test-sethostname1.c: New file, extracted from
7769         tests/test-sethostname.c.
7770         * tests/test-sethostname2.c: New file, extracted from
7771         tests/test-sethostname.c.
7772         * tests/test-sethostname.c: Remove file.
7773         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7774         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7775         (Depends-on): Add gethostname.
7776         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7777         Link the latter with $(GETHOSTNAME_LIB).
7778
7779         sethostname tests: Fix compilation error on mingw.
7780         * tests/test-sethostname.c: Don't include <sys/types.h>.
7781         (geteuid): Use a dummy value without uid_t.
7782         * modules/sethostname-tests (Depends-on): Remove sys_types.
7783
7784         sethostname tests: Avoid a gcc warning.
7785         * tests/test-sethostname.c (main): Remove an unused variable.
7786
7787         Tweak last commit.
7788         * modules/sethostname-tests (Files): Sort by decreasing importance.
7789         (configure.ac): Check for geteuid.
7790         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7791         the test when there's nothing to test. Drop an unnecessary cast.
7792         Improve an error message. Verify that the final sethostname() call
7793         succeeds.
7794
7795 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7796
7797         Add a test suite for the sethostname module.
7798         * modules/sethostname-tests: New file.  A test program
7799         for the sethostname module.
7800         * tests/test-sethostname.c: Likewise.
7801
7802 2011-12-03  Bruno Haible  <bruno@clisp.org>
7803
7804         Tweak last commit.
7805         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7806         Fix preprocessor directives indentation. Fix typos.
7807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7808         * modules/unistd (Makefile): Likewise.
7809
7810 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7811
7812         Integrate the sethostname module into unistd.
7813         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7814         into the unistd.h header.
7815         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7816         preprocessor directives.
7817         * modules/unistd: Setup the Makefile substitutions of the
7818         SETHOSTNAME preprocessor directives.
7819
7820 2011-12-03  Bruno Haible  <bruno@clisp.org>
7821
7822         Tweak last commit.
7823         * lib/sethostname.c: Don't include <string.h>.
7824         (sethostname): No need to copy the argument string to the stack. Don't
7825         call clearerr. Preserve errno when fprintf failed.
7826         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7827         Don't invoke AC_REPLACE_FUNCS.
7828         * modules/sethostname (Link): Remove empty section.
7829         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7830         failure problem.
7831
7832 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7833
7834         New module 'sethostname'.
7835         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7836         for systems that lack it.
7837         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7838         sethostname declaration and function.
7839         * modules/sethostname: New file.  Define the sethostname module.
7840
7841 2011-12-03  Bruno Haible  <bruno@clisp.org>
7842
7843         Tweak last commit.
7844         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7845
7846 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7847
7848         Split the HOST_NAME_MAX detection into a separate m4 macro.
7849         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7850         macro so it can be used by the pending sethostname module.
7851
7852 2011-12-03  Bruno Haible  <bruno@clisp.org>
7853
7854         Fix module descriptions syntax.
7855         * modules/argv-iter (License): Fix syntax.
7856         * modules/di-set (License): Likewise.
7857         * modules/ino-map (License): Likewise.
7858         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7859
7860 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7861
7862         stdalign: port to Clang 3.0
7863         Problem reported by Simon Josefsson in
7864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7865         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7866         which has <stdalign.h> but which does not define alignof.
7867         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7868
7869 2011-12-01  Eric Blake  <eblake@redhat.com>
7870
7871         mktempd: silence dd usage
7872         * build-aux/mktempd (rand_bytes): Silence dd.
7873
7874 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7875
7876         manywarnings: Don't mention gcc version in docstring.
7877         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7878         Jim Meyering <meyering@redhat.com>.
7879
7880 2011-11-30  Jim Meyering  <meyering@redhat.com>
7881
7882         hash: mark a few floating point constants with "f" suffix
7883         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7884         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7885         floating point constants with "f", since they're destined to be
7886         saved/used as "float"s.
7887
7888 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7889
7890         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7891         * tests/test-float.c (test_long_double): Correct and re-enable the
7892         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7893
7894 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7895
7896         Avoid subtracting two pointers that don't point into the same block.
7897         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7898         only pointers into the same memory block are subtracted. We cannot
7899         assume that sizeof (ptrdiff_t) == sizeof (void *).
7900
7901 2011-11-29  Eric Blake  <eblake@redhat.com>
7902
7903         maint.mk: add syntax check for use of compare from init.sh
7904         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7905         moved here from coreutils.
7906
7907         manywarnings: drop -Wunsuffixed-float-constants
7908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7909         '1.0D', which is the only way to silence this warning for 'double'.
7910
7911 2011-11-29  Jim Meyering  <meyering@redhat.com>
7912
7913         hash: mark compute_bucket_size with the pure attribute
7914         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7915
7916         quotearg, propername: correct pragma guard expression
7917         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7918         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7919
7920 2011-11-28  Jim Meyering  <meyering@redhat.com>
7921
7922         propername: do not mark proper_name with the const attribute
7923         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7924         since it examines data pointed to by its parameter.
7925         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7926         the suggestion from -Wsuggest-attribute=const.
7927
7928         propername: mark one more function as const
7929         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7930
7931 2011-11-27  Jim Meyering  <meyering@redhat.com>
7932
7933         mark functions with const and pure attributes
7934
7935         Mark functions per suggestions from gcc-4.6 when using these options:
7936         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7937         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7938         Follow these guidelines: when possible, apply the attribute to
7939         an extern declaration, not to its definition.  Apply it to the
7940         definition only when the definition is static.
7941         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7942         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7943         * lib/base64.h (isbase64): Likewise.
7944         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7945         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7946         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7947         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7948         (c_tolower, c_toupper): Likewise.
7949         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7950         * lib/chdir-long.c (find_non_slash): Likewise.
7951         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7952         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7953         * lib/file-type.h (file_type): Likewise.
7954         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7955         * lib/filevercmp.c (verrevcmp): Likewise.
7956         * lib/freadahead.h (freadahead): Likewise.
7957         * lib/fts.c (fts_maxarglen): Likewise.
7958         * lib/hash-pjw.h (hash_pjw): Likewise.
7959         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7960         * lib/hash.c (is_prime, next_prime): Likewise.
7961         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7962         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7963         (hash_table_ok, hash_get_first, hash_string): Likewise.
7964         (compute_bucket_size): Likewise.
7965         * lib/i-ring.h (i_ring_empty): Likewise.
7966         * lib/isnan.c (isnanl): Likewise.
7967         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7968         * lib/memcasecmp.h (memcasecmp): Likewise.
7969         * lib/memchr2.h (memchr2): Likewise.
7970         * lib/memcmp2.h (memcmp2): Likewise.
7971         * lib/parse-datetime.y (lookup_zone): Likewise.
7972         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7973         [!WINDOWS_SOCKETS]: Likewise.
7974         * lib/strnlen1.h (strnlen1): Likewise.
7975         * lib/uniwidth.in.h (uc_width): Likewise.
7976         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7977         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7978         (quoting_options_from_style): Add a comment.
7979         * lib/propername.h (proper_name): Add a comment.
7980
7981 2011-11-27  Bruno Haible  <bruno@clisp.org>
7982
7983         Remove unused macros from !_LIBC code in glibc-borrowed files.
7984         * lib/fnmatch.c (STRCOLL): Remove macro.
7985         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7986         * lib/glob.c (__stat, __readdir64): Remove macros.
7987         * lib/tempname.c (__open64, __xstat64): Remove macros.
7988         Suggested by Paul Eggert.
7989
7990 2011-11-27  Bruno Haible  <bruno@clisp.org>
7991
7992         getcwd: Fix link error on MSVC 9.
7993         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7994
7995 2011-11-27  Bruno Haible  <bruno@clisp.org>
7996
7997         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7998         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7999         HAVE_OPENDIR is 0.
8000         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8001         HAVE_CLOSEDIR is 0.
8002         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8003         is 0.
8004         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8005
8006 2011-11-27  Bruno Haible  <bruno@clisp.org>
8007
8008         getcwd: Fix bug from 2011-08-17.
8009         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8010         platforms that need it.
8011         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8012         code of 4 to be a failure, not a success. This ensures that
8013         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8014
8015 2011-11-27  Bruno Haible  <bruno@clisp.org>
8016
8017         binary-io tests: Avoid test failure on mingw when libtool is used.
8018         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8019         Don't verify the size of t-bin-out1.tmp here.
8020         * tests/test-binary-io.sh: Verify it here.
8021         Reported by Simon Josefsson.
8022
8023 2011-11-26  Bruno Haible  <bruno@clisp.org>
8024
8025         Fix conflict between two instantiations of module 'unistd'.
8026         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8027         ${include_guard_prefix} also in the autoconf snippet.
8028         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8030         GNULIB_UNISTD_H_GETOPT.
8031         * modules/getopt-posix (configure.ac): Set the
8032         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8033         * modules/getopt-gnu (configure.ac): Likewise.
8034         * modules/unistd (Makefile.am): Change the substitution value of
8035         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8036         Reported by Simon Josefsson.
8037
8038 2011-11-25  Bruno Haible  <bruno@clisp.org>
8039
8040         pagealign_alloc: Doc and comments.
8041         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8042         module.
8043         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8044
8045 2011-11-25  Jim Meyering  <meyering@redhat.com>
8046
8047         test-update-copyright.sh: avoid false-positive failure
8048         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8049         around false positive failure on Cygwin/Windows.  The latter was
8050         matching erroneously-created files with names like
8051         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8052
8053 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8054
8055         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8056         * m4/valgrind-tests.m4: Check that the parameters that will be
8057         used works, not just a subset of them.  Reported by Bruno Haible
8058         <bruno@clisp.org>.
8059
8060 2011-11-24  Jim Meyering  <meyering@redhat.com>
8061
8062         test-stdalign.c: comment out long double tests
8063         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8064         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8065         error: '_Alignas' specifiers cannot reduce alignment of \
8066         'static_longdouble_alignas'.
8067
8068 2011-11-22  Jim Meyering  <meyering@redhat.com>
8069
8070         init.sh: make "compare /dev/null FILE" output more readable
8071         * tests/init.sh (compare_): Document the preferred order of arguments.
8072         (emit_diff_u_header_): New function.
8073         (compare_dev_null_): Emit a simulated diff, rather than just the
8074         contents of the unexpected file.  Suggestion from Bruno Haible.
8075
8076 2011-11-21  Jim Meyering  <meyering@redhat.com>
8077             Eric Blake  <eblake@redhat.com>
8078
8079         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8080         * tests/init.sh: Make our compare function slightly more portable.
8081         Reported by Bruno Haible in
8082         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8083
8084 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8085
8086         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8087         before using it, in code that ends up in config.h.
8088
8089 2011-11-20  Bruno Haible  <bruno@clisp.org>
8090
8091         getcwd: Work around getcwd bug on AIX 5..7.
8092         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8093         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8094         Use a different value for gl_cv_func_getcwd_path_max. Move the
8095         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8096         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8097         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8098         Define HAVE_MINIMALLY_WORKING_GETCWD.
8099         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8100         where it is not even minimally working, that is, on AIX.
8101         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8102         m4/getcwd-path-max.m4.
8103         (main): Update exit code computation.
8104         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8105         getcwd does not handle long file names.
8106
8107 2011-11-20  Bruno Haible  <bruno@clisp.org>
8108
8109         getcwd: Fix bug from 2009-09-10.
8110         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8111         like "no".
8112
8113 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8114
8115         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8116
8117 2011-11-20  Bruno Haible  <bruno@clisp.org>
8118
8119         fma tests: Avoid shadowing local variables.
8120         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8121         expected.
8122
8123 2011-11-20  Bruno Haible  <bruno@clisp.org>
8124
8125         copysignf tests: Fix.
8126         * tests/test-copysignf.c: Fix signature check.
8127
8128 2011-11-20  Bruno Haible  <bruno@clisp.org>
8129
8130         fma: Remove unused code.
8131         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8132         unused macros.
8133
8134 2011-11-20  Bruno Haible  <bruno@clisp.org>
8135
8136         sethostname: Fix doc about AIX.
8137         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8138         sethostname; it has it.
8139
8140         sethostname: Mention more portability problems.
8141         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8142         problem.
8143         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8144
8145 2011-11-19  Bruno Haible  <bruno@clisp.org>
8146
8147         Depend on module fcntl-h when AT_FDCWD is used.
8148         * modules/utimens (Depends-on): Add fcntl-h.
8149         * modules/areadlinkat (Depends-on): Likewise.
8150         * modules/areadlinkat-with-size (Depends-on): Likewise.
8151         * modules/faccessat (Depends-on): Likewise.
8152         * modules/fchmodat (Depends-on): Likewise.
8153         * modules/fchownat (Depends-on): Likewise.
8154         * modules/getcwd (Depends-on): Likewise.
8155         * modules/mkdirat (Depends-on): Likewise.
8156         * modules/mkfifoat (Depends-on): Likewise.
8157         * modules/readlinkat (Depends-on): Likewise.
8158         * modules/symlinkat (Depends-on): Likewise.
8159         * modules/dup2-tests (Depends-on): Likewise.
8160         * modules/fdutimensat-tests (Depends-on): Likewise.
8161         * modules/futimens-tests (Depends-on): Likewise.
8162
8163 2011-11-19  Bruno Haible  <bruno@clisp.org>
8164
8165         euidaccess: Update a comment.
8166         * lib/euidaccess.c: Update comment about platforms with faccessat.
8167
8168 2011-11-19  Bruno Haible  <bruno@clisp.org>
8169
8170         openat: Fix file list.
8171         * modules/openat (Files): Remove lib/at-func.c.
8172
8173 2011-11-19  Bruno Haible  <bruno@clisp.org>
8174
8175         fstatat: Simplify.
8176         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8177         gnulib should define rpl_fstatat, there is a
8178         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8179
8180 2011-11-19  Bruno Haible  <bruno@clisp.org>
8181
8182         Ensure 'inline' can be used in tests/test-utimens-common.h.
8183         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8184         * modules/futimens-tests (configure.ac): Likewise.
8185         * modules/utimens-tests (configure.ac): Likewise.
8186         * modules/utimensat-tests (configure.ac): Likewise.
8187
8188 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8189
8190         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8191         not hash_insert0.
8192         (hash_insert_if_absent): Doc fix.
8193
8194 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8195
8196         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8197
8198 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         test-getcwd: disambiguate exit status
8201         * tests/test-getcwd.c (test_long_name): Return 0..7.
8202         (main): Exit with an unambiguous exit status.  The old
8203         code yielded a mysterious mixture of two failure codes.
8204
8205         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8206         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8207         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8208         rpl_fstatat or fstatat.  This should fix the other problem
8209         reported by Kai Habel in
8210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8211         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8213         and I reproduced it on a Solaris 8 host we still have in production.
8214
8215 2011-11-18  Jim Meyering  <meyering@redhat.com>
8216
8217         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8218         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8219         Add a sentence to the comment.
8220         (hash_insert0): New function that simply calls hash_insert_if_absent.
8221         * lib/hash.h (hash_insert_if_absent): Declare it.
8222         (hash_insert0): Add deprecation attribute.
8223         (_GL_ATTRIBUTE_DEPRECATED): Define.
8224         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8225         not hash_insert0.
8226         * NEWS: Mention it, even though it's not really an incompatible change.
8227
8228 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8229
8230         openat: avoid compilation failure due to lack of <errno.h> inclusion
8231         * lib/openat.c: Include <errno.h>.
8232
8233 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         * modules/getcwd (Depends-on): Add fdopendir.
8236         This fixes one of the two problems reported by Kai Habel in
8237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8238
8239         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8240         stdalign problem reported by Ian Beckwith in
8241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8242         * modules/crypto/gc-arcfour (Depends-on):
8243         Depend conditionally on crypto/arcfour.
8244         * modules/crypto/gc-arctwo (Depends-on):
8245         Depend conditionally on crypto/arctwo.
8246         * modules/crypto/gc-des (Depends-on):
8247         Depend conditionally on crypto/des.
8248         * modules/crypto/gc-hmac-md5 (Depends-on):
8249         Depend conditionally on crypto/hmac-md5.
8250         * modules/crypto/gc-hmac-sha1 (Depends-on):
8251         Depend conditionally on crypto/hmac-sha1.
8252         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8253         * modules/crypto/gc-md4 (Depends-on):
8254         Depend conditionally on crypto/md4.
8255         * modules/crypto/gc-md5 (Depends-on):
8256         Depend conditionally on crypto/md5.
8257         * modules/crypto/gc-rijndael (Depends-on):
8258         Depend conditionally on crypto/rijndael.
8259         * modules/crypto/gc-sha1 (Depends-on):
8260         Depend conditionally on crypto/sha1.
8261         * modules/crypto/gc-arcfour:
8262         * modules/crypto/gc-arctwo:
8263         * modules/crypto/gc-des:
8264         * modules/crypto/gc-hmac-md5:
8265         * modules/crypto/gc-hmac-sha1:
8266         * modules/crypto/gc-md2:
8267         * modules/crypto/gc-md4:
8268         * modules/crypto/gc-md5:
8269         * modules/crypto/gc-rijndael:
8270         * modules/crypto/gc-sha1:
8271         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8272         now that the conditional dependencies do the work for us.
8273
8274 2011-11-17  Jim Meyering  <meyering@redhat.com>
8275
8276         tests: factor st_ctime-comparison out of two headers
8277         * tests/test-utimens-common.h (ctime_compare): Define.
8278         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8279         * tests/test-lutimens.h (test_lutimens): Likewise.
8280         * tests/test-utimens.h (test_utimens): Likewise.
8281
8282         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8283         Invoke the test program via an init.sh-using wrapper.
8284         * tests/test-getcwd.sh: New file.
8285         * modules/getcwd-tests (Files): Add it.
8286         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8287
8288 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8289
8290         gitlog-to-changelog: support multi-author commits.
8291         The FSF cares about keeping track of all authors of patches to its
8292         projects, but Git doesn't provide obvious support for multi-author
8293         changesets. Consensus seems to be forming around the use of extra
8294         Signed-off-by inspired lines in the log message formatted as
8295         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8296         multi-author commits between version control systems.
8297         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8298         log message and output in standard ChangeLog multi-author format.
8299         Reported by Peter Rosin <peda@lysator.liu.se>
8300
8301 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8302             Bruno Haible  <bruno@clisp.org>
8303
8304         Fix some modules' file list.
8305         * modules/fstatat (Files): Add m4/lstat.m4.
8306         * modules/openat (Files): Likewise.
8307         * modules/unlinkat (Files): Likewise.
8308
8309 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8310
8311         maint.mk: fix tight-scope.mk generation in VPATH builds.
8312         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8313         reference with $(srcdir) so that the file is found correctly even
8314         when running `make syntax-check' in a VPATH build.
8315
8316 2011-11-13  Bruno Haible  <bruno@clisp.org>
8317             Jim Meyering  <meyering@redhat.com>
8318
8319         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8320         * tests/init.sh (compare): Remove "No differences encountered" or
8321         synonymous output from the 'diff' program.
8322
8323 2011-11-13  Bruno Haible  <bruno@clisp.org>
8324
8325         Makefile: Tweak indentation.
8326         * Makefile: Use tab as first character in every line that contains rule
8327         commands.
8328
8329 2011-11-13  Bruno Haible  <bruno@clisp.org>
8330
8331         Syntax check for copyright statements.
8332         * check-copyright: New file.
8333         * Makefile (sc_check_copyright): New rule.
8334
8335 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8336
8337         * build-aux/git-version-gen: Add --prefix to configure the tag
8338         match string.
8339
8340 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8341
8342         * build-aux/git-version-gen: Add --help and --version.
8343
8344 2011-11-12  Jim Meyering  <meyering@redhat.com>
8345
8346         revamp the other test-exclude?.sh scripts to use init.sh, too
8347         * tests/test-exclude1.sh: Use init.sh.
8348         * tests/test-exclude2.sh: Likewise.
8349         * tests/test-exclude3.sh: Likewise.
8350         * tests/test-exclude4.sh: Likewise.
8351         * tests/test-exclude5.sh: Likewise.
8352         * tests/test-exclude6.sh: Likewise.
8353         * tests/test-exclude7.sh: Likewise.
8354         * tests/test-exclude8.sh: Likewise.
8355         * modules/exclude-tests (Files): List init.sh.
8356
8357         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8358         These shell scripts ignored failure of the binary test-exclude,
8359         so making the latter return 77 didn't cause them to be skipped.
8360         * tests/test-exclude5.sh: Exit with test-exclude's error status
8361         when that program fails.  Revamp to use init.sh.
8362         * tests/test-exclude2.sh: Likewise.
8363
8364         test-exclude: fix a typo
8365         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8366
8367 2011-11-11  Bruno Haible  <bruno@clisp.org>
8368
8369         obstack: Fix compilation error on MSVC 9.
8370         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8371
8372 2011-11-11  Jim Meyering  <meyering@redhat.com>
8373
8374         test-exclude: skip tests rather than failing on deficient systems
8375         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8376         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8377         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8378         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8379
8380 2011-11-10  Bruno Haible  <bruno@clisp.org>
8381
8382         ptsname_r test: Avoid gcc warning on glibc systems.
8383         * tests/test-ptsname_r.c (null_ptr): New function.
8384         (test_errors): Use it.
8385
8386 2011-11-10  Bruno Haible  <bruno@clisp.org>
8387
8388         ptsname_r: Avoid compilation error on OSF/1 5.1.
8389         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8391         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8392         function is not declared or incompatibly declared.
8393         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8394         * modules/ptsname_r (Depends-on, configure.ac): Update.
8395         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8396
8397 2011-11-10  Bruno Haible  <bruno@clisp.org>
8398
8399         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8400         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8401         When cross-compiling, guess yes on all platforms except AIX.
8402         Reported by Ludovic Courtès <ludo@gnu.org>.
8403
8404 2011-11-09  Bruno Haible  <bruno@clisp.org>
8405
8406         ptsname_r tests: Fix bugs.
8407         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8408         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8409
8410 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8411
8412         fstatat: work with cross-compilation
8413         Problem reported by Ludovic Courtès in
8414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8415         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8416         "cross-compiling" and assume the bug is present.  Replace
8417         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8418         an inverted sense, to be more conservative about our assumptions.
8419         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8420
8421 2011-11-09  Bruno Haible  <bruno@clisp.org>
8422
8423         Improve MODULES.html output.
8424         * modules/mkfifoat (Description): Use the word "function".
8425         * modules/readlinkat (Description): Likewise.
8426         * modules/symlinkat (Description): Likewise.
8427
8428 2011-11-09  Eric Blake  <eblake@redhat.com>
8429
8430         ptsname_r-tests: new test module
8431         * modules/ptsname_r-tests: New module.
8432         * tests/test-ptsname_r.c: New file.
8433
8434         ptsname_r: new module
8435         * modules/ptsname_r: New module.
8436         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8437         * lib/ptsname.c (__ptsname_r): Split...
8438         * lib/ptsname_r.c: ...into new file.
8439         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8440         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8441         * modules/stdlib (Makefile.am): Substitute witnesses.
8442         * lib/stdlib.in.h (ptsname_r): Declare it.
8443         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8444         * MODULES.html.sh (Misc): Likewise.
8445         * modules/ptsname (Depends-on): Alter dependency.
8446         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8447
8448 2011-11-09  Jim Meyering  <meyering@redhat.com>
8449
8450         announce-gen: be more concise when there's only one URL+tarball
8451         * build-aux/announce-gen (get_tool_versions): When you distribute
8452         only one type of tarball, combine the first two "Here are..."
8453         sections and make the key-checking grammar independent of
8454         how many tarballs there are.
8455
8456 2011-11-09  Eric Blake  <eblake@redhat.com>
8457
8458         openpty: provide a stub on mingw
8459         * lib/pty.in.h (includes): Provide forward declarations.
8460         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8461
8462         raise: fix mingw handling of SIGPIPE
8463         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8464
8465 2011-11-08  Bruno Haible  <bruno@clisp.org>
8466
8467         More conditional dependencies.
8468         * modules/faccessat (Depends-on): Add conditions.
8469         * modules/fchmodat (Depends-on): Likewise.
8470         * modules/fchownat (Depends-on): Likewise.
8471         * modules/fstatat (Depends-on): Likewise.
8472         * modules/mkfifoat (Depends-on): Likewise.
8473         * modules/readlinkat (Depends-on): Likewise.
8474         * modules/symlinkat (Depends-on): Likewise.
8475         * modules/unlinkat (Depends-on): Likewise.
8476         * modules/utimensat (Depends-on): Likewise.
8477         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8478         * modules/linkat (Depends-on): Refine the conditions.
8479         * modules/renameat (Depends-on): Likewise.
8480
8481 2011-11-08  Bruno Haible  <bruno@clisp.org>
8482
8483         faccessat: Move AC_LIBOBJ invocation to module description.
8484         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8485         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8486         invocation from here...
8487         * modules/faccessat (configure.ac): ... to here. Invoke
8488         gl_PREREQ_FACCESSAT.
8489
8490 2011-11-08  Bruno Haible  <bruno@clisp.org>
8491
8492         faccessat: Simplify autoconf macro.
8493         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8494         gl_FUNC_EUIDACCESS.
8495
8496 2011-11-08  Bruno Haible  <bruno@clisp.org>
8497
8498         renameat: Fix dependencies.
8499         * modules/renameat (Depends-on): Add stdbool.
8500
8501 2011-11-08  Bruno Haible  <bruno@clisp.org>
8502
8503         mkfifoat: Fix module description.
8504         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8505         not gl_UNISTD_MODULE_INDICATOR.
8506
8507 2011-11-08  Bruno Haible  <bruno@clisp.org>
8508
8509         fstatat: Remove unused dependency.
8510         * modules/fstatat (Depends-on): Remove fstat.
8511
8512 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8513
8514         GNUmakefile: behave when Makefile is missing.
8515         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8516
8517 2011-11-08  Bruno Haible  <bruno@clisp.org>
8518
8519         openat: Conditionalize dependencies.
8520         * lib/openat.c: Reduce the scope of some #includes.
8521         * modules/openat (Depends-on): Add conditions.
8522
8523 2011-11-07  Jim Meyering  <meyering@redhat.com>
8524
8525         maint.mk: extract GPG key ID without using a temporary file
8526         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8527         without using a temporary file.  Based on a suggestion from Werner Koch
8528         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8529
8530 2011-11-07  Eric Blake  <eblake@redhat.com>
8531
8532         grantpt: fix typo
8533         * lib/stdlib.in.h (grantpt): Check correct function.
8534
8535         maint.mk: silence new syntax check
8536         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8537
8538 2011-11-06  Bruno Haible  <bruno@clisp.org>
8539
8540         Doc about floating-point and math API.
8541         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8542         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8543
8544 2011-11-06  Bruno Haible  <bruno@clisp.org>
8545
8546         stdalign tests: Skip the test when compiled by Sun C.
8547         * tests/test-stdalign.c (main): Skip the test on Sun C.
8548
8549 2011-11-06  Bruno Haible  <bruno@clisp.org>
8550
8551         ansi-c++-opt: Complete the 2011-06-05 change.
8552         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8553         does not support namespaces, set the variable to "no", not to ":".
8554
8555 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8556
8557         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8558
8559 2011-11-06  Bruno Haible  <bruno@clisp.org>
8560
8561         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8562         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8563         (minus_zerol) [HP-UX]: New macro.
8564         (unary_minus) [HP-UX]: New function.
8565         (copysignl) [HP-UX]: Use unary_minus function.
8566
8567 2011-11-06  Bruno Haible  <bruno@clisp.org>
8568
8569         ldexp, ldexpf, ldexpl: Enhance tests.
8570         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8571         and tests/test-ldexpl.c.
8572         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8573         LDEXP, MIN_EXP, MAX_EXP): New macros.
8574         Include test-ldexp.h.
8575         (main): Just call test_function.
8576         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8577         infinity.h, nan.h.
8578         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8579         MAX_EXP): New macros.
8580         Include test-ldexp.h.
8581         (x, y): Remove variables.
8582         (main): Just call test_function.
8583         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8584         infinity.h, nan.h.
8585         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8586         MAX_EXP): New macros.
8587         Include test-ldexp.h.
8588         (x, y): Remove variables.
8589         (main): Just call test_function.
8590         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8591         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8592         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8593         (Depends-on): Add isnand-nolibm, signbit, float.
8594         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8595         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8596         (Depends-on): Add isnanf-nolibm, signbit, float.
8597
8598 2011-11-06  Bruno Haible  <bruno@clisp.org>
8599
8600         math tests: Cosmetics.
8601         * tests/test-math-c++.cc: Reorder declarations.
8602
8603 2011-11-05  Bruno Haible  <bruno@clisp.org>
8604
8605         fma*: Simplify test.
8606         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8607         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8608
8609         Tests for module 'fmal'.
8610         * modules/fmal-tests: New file.
8611         * tests/test-fmal1.c: New file.
8612         * tests/test-fmal2.c: New file.
8613
8614         New module 'fmal'.
8615         * lib/math.in.h (fmal): New declaration.
8616         * lib/fmal.c: New file.
8617         * m4/fmal.m4: New file.
8618         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8620         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8621         REPLACE_FMAL.
8622         * modules/fmal: New file.
8623         * doc/posix-functions/fmal.texi: Mention the new module and the various
8624         bugs.
8625
8626         Tests for module 'fmaf'.
8627         * modules/fmaf-tests: New file.
8628         * tests/test-fmaf1.c: New file.
8629         * tests/test-fmaf2.c: New file.
8630
8631         New module 'fmaf'.
8632         * lib/math.in.h (fmaf): New declaration.
8633         * lib/fmaf.c: New file.
8634         * m4/fmaf.m4: New file.
8635         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8637         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8638         REPLACE_FMAF.
8639         * modules/fmaf: New file.
8640         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8641         bugs.
8642
8643         Tests for module 'fma'.
8644         * modules/fma-tests: New file.
8645         * tests/test-fma1.c: New file.
8646         * tests/test-fma1.h: New file.
8647         * tests/test-fma2.c: New file.
8648         * tests/test-fma2.h: New file.
8649
8650         New module 'fma'.
8651         * lib/math.in.h (fma): New declaration.
8652         * lib/fma.c: New file.
8653         * m4/fma.m4: New file.
8654         * m4/fegetround.m4: New file.
8655         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8657         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8658         REPLACE_FMA.
8659         * modules/fma: New file.
8660         * doc/posix-functions/fma.texi: Mention the new module and the various
8661         bugs.
8662
8663         Extend gl_MATHFUNC.
8664         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8665         Support 'void' as argument type.
8666         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8667
8668 2011-11-05  Jim Meyering  <meyering@redhat.com>
8669
8670         maint.mk: also prohibit inclusion of dirent.h without use
8671         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8672
8673 2011-11-05  Bruno Haible  <bruno@clisp.org>
8674
8675         ldexpl tests: Avoid test failure on MSVC 9.
8676         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8677         value. Needed in order to enforce the conversion from a value greater
8678         than LDBL_MAX to Infinity.
8679
8680 2011-11-05  Bruno Haible  <bruno@clisp.org>
8681
8682         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8683         * modules/at-internal: New file, extracted from modules/openat.
8684         * modules/openat-h: New file.
8685         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8686         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8687         * modules/openat (Description): Add reference to POSIX function.
8688         (Files): Remove lib/openat.h, lib/openat-proc.c.
8689         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8690         intprops, unistd.
8691         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8692         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8693         gl_FCNTL_MODULE_INDICATOR.
8694         (Include): Remove unistd.h, openat.h.
8695         * modules/areadlinkat (Files): Add lib/at-func.c.
8696         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8697         openat-die, openat-h, save-cwd.
8698         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8699         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8700         openat-die, openat-h, save-cwd, unistd.
8701         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8702         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8703         openat-h, save-cwd. Remove fcntl-h, openat.
8704         * modules/fchmodat (Files): Remove lib/openat.h.
8705         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8706         openat, stdbool, unistd.
8707         * modules/fchownat (Files): Remove lib/openat.h.
8708         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8709         openat, stdbool, sys_stat.
8710         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8711         lib/openat-proc.c.
8712         (Depends-on): Add at-internal.
8713         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8714         * modules/fstatat (Files): Remove lib/openat.h.
8715         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8716         stdbool, unistd.
8717         * modules/fts (Depends-on): Add openat-h.
8718         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8719         openat.
8720         * modules/mkdirat (Files): Remove lib/openat.h.
8721         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8722         openat, stdbool, sys_stat.
8723         * modules/mkfifoat (Files): Add lib/at-func.c.
8724         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8725         openat-h, save-cwd. Remove fcntl-h, openat.
8726         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8727         * modules/readlinkat (Files): Add lib/at-func.c.
8728         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8729         openat-h, save-cwd. Remove fcntl-h, openat.
8730         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8731         openat.
8732         * modules/selinux-at (Files): Add lib/at-func.c.
8733         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8734         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8735         * modules/symlinkat (Files): Add lib/at-func.c.
8736         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8737         openat-h, save-cwd. Remove fcntl-h, openat.
8738         * modules/unlinkat (Files): Remove lib/openat.h.
8739         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8740         stdbool.
8741         * modules/utimensat (Files): Add lib/at-func.c.
8742         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8743         openat-die, openat-h, save-cwd.
8744         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8745         * modules/fdutimensat-tests (Depends-on): Add openat.
8746         * modules/fstatat-tests (Depends-on): Add openat-h.
8747         * modules/readlinkat-tests (Depends-on): Add openat.
8748         * modules/symlinkat-tests (Depends-on): Add openat.
8749
8750 2011-11-05  Bruno Haible  <bruno@clisp.org>
8751
8752         openat: Include <stdbool.h>.
8753         * lib/openat.c: Include <stdbool.h>.
8754
8755 2011-11-04  Bruno Haible  <bruno@clisp.org>
8756
8757         fchownat, renameat, unlinkat: Fix dependencies.
8758         * modules/fchownat (Depends-on): Add fstatat.
8759         * modules/renameat (Depends-on): Likewise.
8760         * modules/unlinkat (Depends-on): Likewise.
8761
8762 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8763
8764         openat: remove direct dependency on dirent
8765         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8766         and hasn't been needed ever since fdopendir was split into its own
8767         module on 2009-08-31.
8768         * modules/openat (Depends-on): Remove dirent.
8769
8770 2011-11-04  Bruno Haible  <bruno@clisp.org>
8771
8772         renameat: Optimize code size.
8773         * modules/renameat (configure.ac): Don't compile at-func2.c if
8774         REPLACE_RENAMEAT is 1.
8775
8776 2011-11-04  Bruno Haible  <bruno@clisp.org>
8777
8778         openat tests: Fix file list.
8779         * modules/openat-tests (Files): Add tests/test-open.h.
8780
8781 2011-11-04  Bruno Haible  <bruno@clisp.org>
8782
8783         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8784         * modules/fchmodat (Depends-on): Add openat-die.
8785         * modules/fchownat (Depends-on): Likewise.
8786         * modules/linkat (Depends-on): Likewise.
8787         * modules/renameat (Depends-on): Likewise.
8788         * modules/openat (Depends-on): Add dirent.
8789
8790 2011-11-04  Jim Meyering  <meyering@redhat.com>
8791
8792         at-func*.c: fix comments
8793         * lib/at-func2.c: Correct/improve first-line comment.
8794         * lib/at-func.c: Correct grammar in first-line comment.
8795
8796 2011-11-04  Bruno Haible  <bruno@clisp.org>
8797
8798         New module 'mkdirat', split off from module 'openat'.
8799         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8800         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8801         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8802         * modules/mkdirat: New file, extracted from modules/openat.
8803         * modules/openat (Files): Remove lib/mkdirat.c.
8804         (Depends-on): Remove mkdir.
8805         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8806         (Include): Remove <sys/stat.h>.
8807         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8808         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8809         tests/test-mkdir.h.
8810         (Depends-on): Remove ignore-value.
8811         (Makefile.am): Remove rules for test-mkdirat.
8812         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8813         of module 'openat'.
8814         * NEWS: Mention the change.
8815
8816 2011-11-04  Bruno Haible  <bruno@clisp.org>
8817
8818         closedir: Avoid warning on mingw.
8819         * lib/closedir.c: Include <unistd.h>.
8820
8821 2011-11-04  Bruno Haible  <bruno@clisp.org>
8822
8823         New module 'fstatat', split off from module 'openat'.
8824         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8825         defined.
8826         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8827         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8828         gl_FUNC_FSTATAT.
8829         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8830         * modules/fstatat: New file, extracted from modules/openat.
8831         * modules/openat (Files): Remove lib/fstatat.c.
8832         (Depends-on): Remove lstat.
8833         (configure.ac): Remove AC_LIBOBJ of fstatat.
8834         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8835         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8836         tests/test-lstat.h, tests/test-stat.h.
8837         (Depends-on): Remove getcwd-lgpl.
8838         (Makefile.am): Remove rules for test-fstatat.
8839         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8840         of module 'openat'.
8841         * NEWS: Mention the change.
8842         * modules/getcwd (Depends-on): Add fstatat.
8843         * modules/linkat (Depends-on): Likewise.
8844         * modules/mkfifoat-tests (Depends-on): Likewise.
8845         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8846
8847 2011-11-03  Bruno Haible  <bruno@clisp.org>
8848
8849         New module 'unlinkat', split off from module 'openat'.
8850         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8851         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8852         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8853         * modules/unlinkat: New file, extracted from modules/openat. Correct
8854         the dependency conditions.
8855         * modules/openat (Files): Remove lib/unlinkat.c.
8856         (Depends-on): Remove rmdir, unlink.
8857         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8858         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8859         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8860         tests/test-rmdir.h, tests/test-unlink.h.
8861         (Depends-on): Remove unlinkdir.
8862         (Makefile.am): Remove rules for test-unlinkat.
8863         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8864         of module 'openat'.
8865         * NEWS: Mention the change.
8866         * modules/linkat-tests (Depends-on): Add unlinkat.
8867         * modules/mkfifoat-tests (Depends-on): Likewise.
8868         * modules/readlinkat-tests (Depends-on): Likewise.
8869
8870 2011-11-02  Bruno Haible  <bruno@clisp.org>
8871
8872         New module 'fchmodat', split off from module 'openat'.
8873         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8874         defined.
8875         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8876         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8877         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8878         * modules/fchmodat: New file, extracted from modules/openat.
8879         * modules/openat (Files): Remove lib/fchmodat.c.
8880         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8881         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8882         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8883         (Makefile.am): Remove rules for test-fchmodat.
8884         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8885         of module 'openat'.
8886         * NEWS: Mention the change.
8887
8888 2011-11-02  Jim Meyering  <meyering@redhat.com>
8889
8890         putenv: indent #definition of "environ" to placate cppi
8891         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8892
8893         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8894         Git logs are often treated as immutable, because editing them
8895         changes the SHA1 checksums of all descendants.  Thus, errors in
8896         git logs tend to stay there forever.  However, when we generate
8897         a ChangeLog file -- typically for distribution -- from that git log,
8898         we can actually make corrections in the generated file.  The key
8899         lies in recording in machine-readable/applicable form the desired
8900         corrections.  See --help for description and an example.
8901         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8902         (usage): Describe it; alphabetize option descriptions.
8903         (main): Honor the new option, carefully.
8904
8905 2011-11-01  Jim Meyering  <meyering@redhat.com>
8906
8907         gitlog-to-changelog: avoid an infloop
8908         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8909         that ends up being empty.
8910
8911 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8912
8913         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8914         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8915         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8916         contains (possibly-quoted) backslashes.  This should avoid
8917         all-too-common shell bugs if COMPLICATED contains backslashes in
8918         the "wrong" places.  Reported by David Evans in
8919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8920         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8921         because we want ASCII ranges.  Is there some reason we don't use
8922         the C locale everywhere in this script?
8923         (func_module, top level): Avoid unwanted pathname expansion when
8924         $repo_url_prefix or $repo_url_suffix_repl contain shell
8925         metacharacters like '?' and '*'.
8926
8927 2011-11-01  Bruno Haible  <bruno@clisp.org>
8928
8929         fchownat: Improve description.
8930         * modules/fchownat (Description): Add link to function.
8931
8932 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8933
8934         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8935         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8937         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8938
8939 2011-11-01  Bruno Haible  <bruno@clisp.org>
8940
8941         alignof: Avoid collision with stdalign module.
8942         * lib/alignof.h (alignof): Remove macro.
8943         * NEWS: Mention the change.
8944         Reported by Paul Eggert.
8945
8946 2011-11-01  Bruno Haible  <bruno@clisp.org>
8947
8948         New module 'fchownat', split off from module 'openat'.
8949         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8950         defined.
8951         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8953         invoke gl_FUNC_FCHOWNAT.
8954         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8955         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8956         * modules/fchownat: New file, extracted from modules/openat.
8957         * modules/openat (Files): Remove lib/fchownat.c.
8958         (Depends-on): Remove lchown.
8959         (configure.ac): Remove AC_LIBOBJ of fchownat.
8960         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8961         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8962         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8963         (Depends-on): Remove mgetgroups, usleep, stat-time.
8964         (configure.ac): Remove test for getegid.
8965         (Makefile.am): Remove rules for test-fchownat.
8966         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8967         of module 'openat'.
8968         * NEWS: Mention the change.
8969
8970 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8971
8972         stdalign: port better to MSVC and to Sun C 5.11
8973         This fixes some of the problems reported by Bruno Haible in
8974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8975         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8976         shortcomings of MSVC and of Sun C 5.11.
8977         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8978         around __declspec arg.
8979         * modules/stdalign-tests (Files): Add tests/macros.h.
8980         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8981         Include macros.h, for ASSERT.
8982         (DECLARE_ALIGNED): Remove.
8983         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8984         to catch bug), and to 1 if not (simplifies the rest of the code).
8985         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8986         (CHECK_AUTO): Remove.
8987         (CHECK_ALIGNED): Check only the alignment of the static vars,
8988         since auto var alignment isn't supported by Sun C 5.11.
8989         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8990         ASSERT failures are easier to diagnose.
8991
8992 2011-10-31  Bruno Haible  <bruno@clisp.org>
8993
8994         doc about some IRIX 5.3 problems.
8995         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8996         on IRIX 5.3.
8997         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8998         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8999         5.3.
9000         * doc/posix-functions/grantpt.texi: Likewise.
9001         * doc/posix-functions/unlockpt.texi: Likewise.
9002         * doc/posix-functions/lgamma.texi: Likewise.
9003         * doc/posix-functions/nextafter.texi: Likewise.
9004         * doc/posix-functions/remainder.texi: Likewise.
9005         * doc/posix-functions/select.texi: Mention misplaced declaration on
9006         IRIX 5.3.
9007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9008
9009 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9010
9011         gitlog-to-changelog: fix git-log invocation.
9012         git-log mishandles date strings before 1970-01-01 UTC, and there is
9013         no use to specify --since=1970-01-01 by default anyway.
9014         * build-aux/gitlog-to-changelog: By default, when no --since option
9015         was given, do not specify explicit --since option to git-log.
9016
9017 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9018
9019         gitlog-to-changelog: new option --append-dot.
9020         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9021         first non-blank line of each commit message terminated with a dot.
9022
9023 2011-10-30  Bruno Haible  <bruno@clisp.org>
9024
9025         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9026         * lib/ffsl.h: Include <config.h>.
9027         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9028
9029 2011-10-30  Jim Meyering  <meyering@redhat.com>
9030
9031         GNUmakefile: reenable "make syntax-check" for most projects
9032         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9033         build-aux variable", "syntax-check" would do nothing but succeed with
9034         the "No version control files detected..." diagnostic (unless you
9035         happened to override _build-aux via cfg.mk).
9036         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9037         to precede inclusion of maint.mk.  Otherwise, these variables would
9038         be used undefined in any project that does not override the default.
9039
9040 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9041
9042         gitlog-to-changelog: treat a message with only blank lines as empty.
9043         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9044         trailing blank lines before the code that issues a warning about an
9045         empty commit message.
9046
9047 2011-10-30  Jim Meyering  <meyering@redhat.com>
9048
9049         test-parse-datetime.c: avoid new DST-related false positive test failure
9050         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9051         based on the time/date we'll convert, not the current time.
9052         Otherwise, the moment we cross a DST boundary like today's in
9053         Europe, (CEST to CET), that offset ends up being one hour off.
9054
9055 2011-10-27  Bruno Haible  <bruno@clisp.org>
9056
9057         fstat: Tweak documentation.
9058         * modules/fstat (Description): More precise description.
9059
9060 2011-10-27  Bruno Haible  <bruno@clisp.org>
9061
9062         Update documentation regarding 'largefile' module.
9063         * doc/posix-functions/fstat.texi: Tweak wording.
9064         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9065         problems with huge directories and/or small ino_t types.
9066         * doc/posix-functions/readdir.texi: Likewise.
9067         * doc/posix-functions/rewinddir.texi: Likewise.
9068
9069 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9070
9071         maint.mk: don't maintain a second build-aux variable.
9072         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9073         depends on GNUmakefile, which already maintains a cfg.mk
9074         overridable $(_build-aux) for projects with a non-standard
9075         build-aux directory location, although without the $(srcdir)
9076         prefix.  Use that variable consistently instead of introducing a
9077         second one.  Adjust all call sites.
9078
9079 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9080
9081         Add stdalign module and use it in other modules.
9082         This is based on a previous proposal by Bruno Haible
9083         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9084
9085         stdalign: new module
9086         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9087         * modules/stdalign: New files.
9088         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9089         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9090
9091         stdalign-tests: new module
9092         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9093
9094         argp: use stdalign
9095         * lib/argp-parse.c: Include <stdalign.h>.
9096         (alignof): Remove.
9097         * modules/argp (Depends-on): Add stdalign.
9098
9099         crypto libraries: use stdalign
9100         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9101         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9102         Do not include <stdlib.h> twice, in md4.c.
9103         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9104         because we are accessing a pointer's bit-pattern, not a size.
9105         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9106         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9107         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9108         * modules/crypto/sha512: Likewise.
9109
9110         sys_socket: use stdalign, not alignof
9111         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9112         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9113
9114 2011-10-27  Bruno Haible  <bruno@clisp.org>
9115
9116         raise test: Avoid a test failure on Linux/MIPS.
9117         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9118         because 99 is a valid signal on Linux/MIPS.
9119
9120 2011-10-27  Bruno Haible  <bruno@clisp.org>
9121
9122         nonblocking tests: Fix test failure on Linux/MIPS.
9123         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9124         Set to 270000.
9125
9126 2011-10-27  Bruno Haible  <bruno@clisp.org>
9127
9128         utimensat: Work around problem on Linux/hppa.
9129         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9130         values.
9131         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9132
9133 2011-10-25  Jim Meyering  <meyering@redhat.com>
9134
9135         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9136         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9137         after symbols like NULL, size_t, etc.
9138         Reported by Alfred M. Szmidt.
9139
9140         maint.mk: exempt ENODATA from a syntax-check rule
9141         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9142         from the sc_prohibit_always-defined_macros syntax-check rule.
9143         Add a comment.  See this for more details:
9144         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9145
9146 2011-10-23  Jim Meyering  <meyering@redhat.com>
9147
9148         fts: close parent dir FD before returning from post-traversal fts_read
9149         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9150         unlink A, even though an FD open on A remained.  This is suboptimal
9151         (holding a file descriptor open longer than needed), but otherwise not
9152         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9153         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9154         that represents a real problem: it causes the removal of A to fail
9155         with e.g., "rm: cannot remove `A': Device or resource busy"
9156
9157         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9158         directory file descriptors.  After completing the final, FTS_DP,
9159         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9160         cache, but then proceeded to add a new FD to it via the subsequent
9161         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9162         final file descriptor would be closed only via fts_close's call to
9163         fd_ring_clear.  Now, it is usually closed earlier, via the final
9164         FTS_DP-returning fts_read call.
9165         * lib/fts.c (restore_initial_cwd): New function, converted from
9166         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9167         Update callers.
9168         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9169         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9170
9171 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9172             Bruno Haible  <bruno@clisp.org>
9173             Jim Meyering  <jim@meyering.net>
9174
9175         readme-release: improve safety of release prep instructions.
9176         * README-release: Don't git pull all branches when only master
9177         is needed for the release process.
9178         Run make maintainer-clean before changing trees and merging.
9179         Don't try to run ./configure right after git pull in case files
9180         that influence the bootstrap process have changed, move the
9181         ./configure step to after running ./bootstrap.
9182         Don't bootstrap "one last time"... it's the first time!
9183
9184 2011-10-22  Bruno Haible  <bruno@clisp.org>
9185
9186         errno, strerror-override: Support for MSVC 10.
9187         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9188         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9189         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9190         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9191         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9192         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9193         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9194         Assign values compatible with MSVC 10.
9195         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9196         New macros.
9197         (GNULIB_defined_EWINSOCK): New macro.
9198         * lib/strerror-override.c (strerror_override): Update accordingly.
9199         * lib/strerror-override.h: Likewise.
9200         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9201         longer equal to the corresponding errno value.
9202         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9203
9204 2011-10-22  Bruno Haible  <bruno@clisp.org>
9205
9206         perror: Recognize when test program crashes.
9207         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9208         strerror, set gl_cv_func_perror_works to no.
9209         Reported by Daniel Richard G. <skunk@iskunk.org>.
9210
9211         perror: Fix indentation.
9212         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9213
9214 2011-10-22  Bruno Haible  <bruno@clisp.org>
9215
9216         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9217         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9218         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9219         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9220         functions, not as a macro.
9221         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9222         macros.
9223         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9224         absence of macro.
9225         Suggested by Eric Blake.
9226         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9227
9228 2011-10-21  Bruno Haible  <bruno@clisp.org>
9229
9230         relocatable-prog-wrapper: Don't leave object files behind.
9231         * build-aux/install-reloc: Re-synchronize list of .o files to be
9232         removed with list of compilation units.
9233
9234 2011-10-20  Bruno Haible  <bruno@clisp.org>
9235
9236         openpty, posix_openpt: Remove code duplication.
9237         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9238         * lib/openpty.c: Include <stdlib.h>.
9239         (openpty): Use posix_openpt on all platforms except IRIX.
9240         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9241
9242 2011-10-20  Bruno Haible  <bruno@clisp.org>
9243
9244         unlockpt: Detect invalid argument.
9245         * lib/unlockpt.c: Include <fcntl.h>.
9246         (unlockpt): Check whether fd is valid, using fcntl().
9247         * modules/unlockpt (Depends-on): Add fcntl-h.
9248
9249 2011-10-20  Bruno Haible  <bruno@clisp.org>
9250
9251         openpty: Avoid compilation error on AIX 6.1.
9252         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9253
9254 2011-10-20  Bruno Haible  <bruno@clisp.org>
9255
9256         posix_openpt: Support for OpenBSD.
9257         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9258         (posix_openpt) [OpenBSD]: New code.
9259         * lib/grantpt.c: Include <fcntl.h>.
9260         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9261         * modules/grantpt (Depends-on): Add fcntl-h.
9262
9263 2011-10-20  Bruno Haible  <bruno@clisp.org>
9264
9265         posix_openpt test: Coding style.
9266         * tests/test-posix_openpt.c: Use GNU coding style.
9267
9268 2011-10-20  Bruno Haible  <bruno@clisp.org>
9269
9270         grantpt: Support --avoid=pt_chown.
9271         * modules/grantpt (Files): Add lib/pty-private.h.
9272
9273 2011-10-20  Bruno Haible  <bruno@clisp.org>
9274
9275         posix_openpt: Fix autoconf macro.
9276         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9277         unneeded check for _getpty.
9278
9279 2011-10-20  Bruno Haible  <bruno@clisp.org>
9280
9281         openpty: Update comments.
9282         * lib/openpty.c: Add comments about Minix.
9283
9284 2011-10-19  Eric Blake  <eblake@redhat.com>
9285
9286         openpty: relax license
9287         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9288
9289         pt_chown: use configmake to simplify build
9290         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9291
9292         ptsname and others: relax license
9293         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9294         * modules/unlockpt (License): Likewise.
9295         * modules/pt_chown (License): Likewise.
9296         * modules/ptsname (License): Likewise.
9297         * modules/ttyname_r (License): Likewise.
9298
9299 2011-10-19  Jim Meyering  <meyering@redhat.com>
9300
9301         posix_openpt: remove spurious #endif
9302         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9303
9304 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9305
9306         maint.mk: Respect $(build_aux) in web-manual rule.
9307         * top/maint.mk (web-manual): Find gen-announce script in user's
9308         $(build_aux) directory instead of hard-coding 'build-aux'.
9309
9310 2011-10-19  Bruno Haible  <bruno@clisp.org>
9311
9312         posix_openpt: Fix compilation error.
9313         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9314         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9315         Mention the openpty module as an alternative.
9316
9317 2011-10-19  Bruno Haible  <bruno@clisp.org>
9318
9319         Support for old NeXTstep 3.3 frexp().
9320         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9321         execution time of the test to 5 seconds.
9322         Reported by Daniel Richard G. <skunk@iskunk.org>.
9323
9324 2011-10-19  Bruno Haible  <bruno@clisp.org>
9325
9326         Support for old NeXTstep 3.3 sed.
9327         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9328         part, use /.../, not \|...|. Escape periods in the header file name.
9329         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9330         Reported by Daniel Richard G. <skunk@iskunk.org>.
9331
9332 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9333
9334         Support for old NeXTstep 3.3 gcc.
9335         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9336         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9337         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9338         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9339         * lib/regex.h (_Restrict_arr_): Likewise.
9340         * lib/regex_internal.h (re_token_t): Likewise.
9341         * lib/regexec.c (check_node_accept_bytes): Likewise.
9342         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9343
9344 2011-10-18  Eric Blake  <eblake@redhat.com>
9345
9346         posix_openpt: new module
9347         * modules/posix_openpt: New module.
9348         * m4/posix_openpt.m4: New file.
9349         * lib/posix_openpt.c: Likewise.
9350         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9351         (gl_STDLIB_H_DEFAULTS): Set defaults.
9352         * modules/stdlib (Makefile.am): Substitute macros.
9353         * lib/stdlib.in.h (posix_openpt): Declare.
9354         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9355         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9356         * modules/posix_openpt-tests: New test module.
9357         * tests/test-posix_openpt.c: New test.
9358
9359 2011-10-15  Bruno Haible  <bruno@clisp.org>
9360
9361         xstrtoll: Fix compilation failure.
9362         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9363         from lib/strtol.c.
9364         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9365         some platforms.
9366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9367
9368 2011-10-15  Bruno Haible  <bruno@clisp.org>
9369
9370         vasnprintf: Optimize bit search operation.
9371         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9373         gl_DOUBLE_EXPONENT_LOCATION.
9374         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9375         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9376         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9377         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9378         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9379         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9380         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9381         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9382         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9383
9384 2011-10-15  Bruno Haible  <bruno@clisp.org>
9385
9386         vasnprintf: Fix comments.
9387         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9388
9389 2011-10-14  Bruno Haible  <bruno@clisp.org>
9390
9391         Tests for module 'integer_length_ll'.
9392         * modules/integer_length_ll-tests: New file.
9393         * tests/test-integer_length_ll.c: New file.
9394
9395         New module 'integer_length_ll'.
9396         * lib/integer_length_ll.c: New file.
9397         * modules/integer_length_ll: New file.
9398
9399 2011-10-14  Bruno Haible  <bruno@clisp.org>
9400
9401         Tests for module 'integer_length_l'.
9402         * modules/integer_length_l-tests: New file.
9403         * tests/test-integer_length_l.c: New file.
9404
9405         New module 'integer_length_l'.
9406         * lib/integer_length_l.c: New file.
9407         * modules/integer_length_l: New file.
9408
9409 2011-10-14  Bruno Haible  <bruno@clisp.org>
9410
9411         Tests for module 'integer_length'.
9412         * modules/integer_length-tests: New file.
9413         * tests/test-integer_length.c: New file.
9414
9415         New module 'integer_length'.
9416         * lib/integer_length.h: New file.
9417         * lib/integer_length.c: New file.
9418         * modules/integer_length: New file.
9419
9420 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9421
9422         popen: Fix dependency conditions.
9423         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9424
9425 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9426
9427         perror: Fix autoconf test.
9428         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9429         <stdlib.h> and <string.h>.
9430
9431 2011-10-14  Bruno Haible  <bruno@clisp.org>
9432
9433         ffsl: Optimize on 64-bit platforms.
9434         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9435         unrolling.
9436
9437 2011-10-13  Bruno Haible  <bruno@clisp.org>
9438
9439         ffsl: Optimize on 32-bit platforms.
9440         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9441         use ffs() without a loop.
9442
9443         ffsl, ffsll: Optimize for GCC.
9444         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9445         * lib/ffsl.c (GCC_BUILTIN): New macro.
9446         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9447
9448 2011-10-13  Bruno Haible  <bruno@clisp.org>
9449
9450         ffs, bcopy, memset: Support symbol renaming via config.h.
9451         * lib/ffs.c: Include <config.h>.
9452         * lib/bcopy.c: Likewise.
9453         * lib/memset.c: Likewise.
9454
9455 2011-10-10  Bruno Haible  <bruno@clisp.org>
9456
9457         atanl: Simplify for platforms where 'long double' == 'double'.
9458         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9459         alternative implementation.
9460         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9461         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9462         * modules/atanl (Depends-on): Add atan. Update conditions.
9463
9464 2011-10-10  Bruno Haible  <bruno@clisp.org>
9465
9466         acosl: Simplify for platforms where 'long double' == 'double'.
9467         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9468         alternative implementation.
9469         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9470         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9471         * modules/acosl (Depends-on): Add acos. Update conditions.
9472
9473 2011-10-10  Bruno Haible  <bruno@clisp.org>
9474
9475         asinl: Simplify for platforms where 'long double' == 'double'.
9476         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9477         alternative implementation.
9478         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9479         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9480         * modules/asinl (Depends-on): Add asin. Update conditions.
9481
9482 2011-10-10  Bruno Haible  <bruno@clisp.org>
9483
9484         tanl: Simplify for platforms where 'long double' == 'double'.
9485         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9486         implementation.
9487         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9488         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9489         * modules/tanl (Depends-on): Add tan. Update conditions.
9490         (configure.ac): Don't compile trigl.c if
9491         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9492
9493 2011-10-10  Bruno Haible  <bruno@clisp.org>
9494
9495         cosl: Simplify for platforms where 'long double' == 'double'.
9496         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9497         implementation.
9498         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9499         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9500         * modules/cosl (Depends-on): Add cos. Update conditions.
9501         (configure.ac): Don't compile sincosl.c and trigl.c if
9502         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9503
9504 2011-10-10  Bruno Haible  <bruno@clisp.org>
9505
9506         sinl: Simplify for platforms where 'long double' == 'double'.
9507         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9508         implementation.
9509         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9510         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9511         * modules/sinl (Depends-on): Add sin. Update conditions.
9512         (configure.ac): Don't compile sincosl.c and trigl.c if
9513         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9514
9515 2011-10-10  Bruno Haible  <bruno@clisp.org>
9516
9517         logl: Simplify for platforms where 'long double' == 'double'.
9518         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9519         implementation.
9520         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9521         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9522         * modules/logl (Depends-on): Add log. Update conditions.
9523
9524 2011-10-10  Bruno Haible  <bruno@clisp.org>
9525
9526         expl: Simplify for platforms where 'long double' == 'double'.
9527         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9528         implementation.
9529         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9530         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9531         * modules/expl (Depends-on): Add exp. Update conditions.
9532
9533 2011-10-10  Bruno Haible  <bruno@clisp.org>
9534
9535         sqrtl: Simplify for platforms where 'long double' == 'double'.
9536         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9537         alternative implementation.
9538         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9539         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9540         * modules/sqrtl (Depends-on): Update conditions.
9541
9542 2011-10-10  Bruno Haible  <bruno@clisp.org>
9543
9544         ldexpl: Simplify for platforms where 'long double' == 'double'.
9545         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9546         alternative implementation.
9547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9548         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9549         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9550
9551 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9552
9553         ffsll: set correct witness
9554         * modules/ffsll (configure.ac): Fix typo.
9555
9556 2011-10-10  Bruno Haible  <bruno@clisp.org>
9557
9558         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9559         * lib/printf-frexpl.c: Include <config.h>.
9560         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9561         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9562         second time.
9563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9564         gl_LONG_DOUBLE_VS_DOUBLE.
9565         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9566         conditions.
9567
9568 2011-10-10  Bruno Haible  <bruno@clisp.org>
9569
9570         frexpl: Simplify for platforms where 'long double' == 'double'.
9571         * lib/frexpl.c: Include <config.h>.
9572         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9573         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9574         time.
9575         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9576         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9577         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9578         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9579         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9580         conditions.
9581
9582 2011-10-10  Jim Meyering  <meyering@redhat.com>
9583
9584         test-renameat: don't leave behind a temporary file
9585         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9586           ERROR: files left in build directory after distclean:
9587           ./gltests/test-renameat.too
9588           make[1]: *** [distcleancheck] Error 1
9589         Reported by Tom G. Christensen.
9590
9591 2011-10-09  Bruno Haible  <bruno@clisp.org>
9592
9593         rint: Determine RINT_LIBM correctly on AIX 7.
9594         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9595         directly, not only through a function pointer. Also accept an optional
9596         4th argument with extra code.
9597         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9598         rintf() call by gcc when optimizing.
9599
9600         mathfunc.m4: Refactor.
9601         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9602         m4 variable.
9603
9604 2011-10-09  Bruno Haible  <bruno@clisp.org>
9605
9606         rintl: Simplify for platforms where 'long double' == 'double'.
9607         * lib/rintl.c: Include <config.h>.
9608         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9609         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9610         time.
9611         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9612         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9613         * modules/rintl (Depends-on): Add rint. Update conditions.
9614
9615 2011-10-09  Bruno Haible  <bruno@clisp.org>
9616
9617         roundl: Simplify for platforms where 'long double' == 'double'.
9618         * lib/roundl.c: Include <config.h>.
9619         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9620         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9621         time.
9622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9623         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9624         * modules/roundl (Depends-on): Add round. Update conditions.
9625
9626 2011-10-09  Bruno Haible  <bruno@clisp.org>
9627
9628         truncl: Simplify for platforms where 'long double' == 'double'.
9629         * lib/truncl.c: Include <config.h>.
9630         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9631         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9632         time.
9633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9634         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9635         * modules/truncl (Depends-on): Add trunc. Update conditions.
9636
9637 2011-10-09  Bruno Haible  <bruno@clisp.org>
9638
9639         ceill: Simplify for platforms where 'long double' == 'double'.
9640         * lib/ceill.c: Include <config.h>.
9641         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9642         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9643         time.
9644         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9645         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9646         * modules/ceill (Depends-on): Add ceil. Update conditions.
9647
9648 2011-10-09  Bruno Haible  <bruno@clisp.org>
9649
9650         floorl: Simplify for platforms where 'long double' == 'double'.
9651         * lib/floorl.c: Include <config.h>.
9652         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9653         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9654         time.
9655         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9656         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9657         * modules/floorl (Depends-on): Add floor. Update conditions.
9658
9659 2011-10-09  Bruno Haible  <bruno@clisp.org>
9660
9661         rint: Fix ordering constraints.
9662         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9663         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9664         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9665
9666 2011-10-09  Bruno Haible  <bruno@clisp.org>
9667
9668         copysignl: Simplify for platforms where 'long double' == 'double'.
9669         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9670         alternative.
9671         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9672         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9673         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9674
9675 2011-10-09  Bruno Haible  <bruno@clisp.org>
9676
9677         Tests for module 'rintl'.
9678         * modules/rintl-tests: New file.
9679         * tests/test-rintl.c: New file.
9680
9681         New module 'rintl'.
9682         * lib/math.in.h (rintl): New declaration.
9683         * lib/rintl.c: New file.
9684         * m4/rintl.m4: New file.
9685         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9687         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9688         * modules/rintl: New file.
9689         * tests/test-math-c++.cc: Check the declaration of rintl.
9690         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9691         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9692         * doc/posix-functions/rintl.texi: Mention the new module.
9693
9694 2011-10-09  Bruno Haible  <bruno@clisp.org>
9695
9696         Tests for module 'rintf'.
9697         * modules/rintf-tests: New file.
9698         * tests/test-rintf.c: New file.
9699
9700         New module 'rintf'.
9701         * lib/math.in.h (rintf): New declaration.
9702         * lib/rintf.c: New file.
9703         * m4/rintf.m4: New file.
9704         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9706         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9707         * modules/rintf: New file.
9708         * tests/test-math-c++.cc: Check the declaration of rintf.
9709         * doc/posix-functions/rintf.texi: Mention the new module.
9710
9711 2011-10-09  Bruno Haible  <bruno@clisp.org>
9712
9713         rint: Support for MSVC.
9714         * lib/math.in.h (rint): New declaration.
9715         * lib/rint.c: New file.
9716         * m4/rint.m4: New file.
9717         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9719         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9720         * modules/rint (Description): Fix.
9721         (Files): Add lib/rint.c, m4/rint.m4.
9722         (Depends-on): Add math.
9723         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9724         gl_MATH_MODULE_INDICATOR.
9725         * tests/test-math-c++.cc: Check the declaration of rint.
9726         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9727         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9728         * doc/posix-functions/rint.texi: Mention the replacement provided by
9729         the module.
9730
9731         rint tests: More tests.
9732         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9733         minus-zero.h, infinity.h, nan.h.
9734         (main): Skip the test if the current rounding mode is not standard. Add
9735         tests for negative numbers, minus zero, infinity, NaN.
9736         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9737         tests/nan.h.
9738         (Depends-on): Add isnand-nolibm.
9739
9740 2011-10-09  Bruno Haible  <bruno@clisp.org>
9741
9742         Tests for module 'copysignl'.
9743         * modules/copysignl-tests: New file.
9744         * tests/test-copysignl.c: New file.
9745
9746         New module 'copysignl'.
9747         * lib/math.in.h (copysignl): New declaration.
9748         * lib/copysignl.c: New file.
9749         * m4/copysignl.m4: New file.
9750         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9752         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9753         HAVE_COPYSIGNL.
9754         * modules/copysignl: New file.
9755         * tests/test-math-c++.cc: Check the declaration of copysignl.
9756         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9757         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9758         * doc/posix-functions/copysignl.texi: Mention the new module.
9759
9760 2011-10-09  Bruno Haible  <bruno@clisp.org>
9761
9762         Tests for module 'copysignf'.
9763         * modules/copysignf-tests: New file.
9764         * tests/test-copysignf.c: New file.
9765
9766         New module 'copysignf'.
9767         * lib/math.in.h (copysignf): New declaration.
9768         * lib/copysignf.c: New file.
9769         * m4/copysignf.m4: New file.
9770         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9772         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9773         HAVE_COPYSIGNF.
9774         * modules/copysignf: New file.
9775         * tests/test-math-c++.cc: Check the declaration of copysignf.
9776         * doc/posix-functions/copysignf.texi: Mention the new module.
9777
9778 2011-10-09  Bruno Haible  <bruno@clisp.org>
9779
9780         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9781         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9782         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9783         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9784         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9785         gl_SIGNAL_H_DEFAULTS.
9786
9787 2011-10-09  Bruno Haible  <bruno@clisp.org>
9788
9789         poll: Make macro safer.
9790         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9791         ac_cv_header_poll_h is not set.
9792
9793 2011-10-09  Bruno Haible  <bruno@clisp.org>
9794
9795         copysign: Provide replacement.
9796         * lib/math.in.h (copysign): New declaration.
9797         * lib/copysign.c: New file.
9798         * m4/copysign.m4: New file.
9799         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9801         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9802         HAVE_COPYSIGN.
9803         * modules/copysign (Description): Clarify.
9804         (Files): Add lib/copysign.c, m4/copysign.m4.
9805         (Depends-on): Add math, signbit.
9806         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9807         gl_MATH_MODULE_INDICATOR.
9808         * tests/test-math-c++.cc: Check the declaration of copysign.
9809         * doc/posix-functions/copysign.texi: Mention the effects of the module
9810         on Minix and MSVC.
9811
9812 2011-10-09  Bruno Haible  <bruno@clisp.org>
9813
9814         isinf: Ensure macro on AIX 5.1.
9815         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9816         macro.
9817         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9818
9819 2011-10-09  Bruno Haible  <bruno@clisp.org>
9820
9821         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9822         * modules/snprintf-posix-tests (configure.ac): Require
9823         gl_LONG_DOUBLE_VS_DOUBLE.
9824         * modules/sprintf-posix-tests (configure.ac): Likewise.
9825         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9826         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9827         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9828         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9829         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9830         tests on platforms where 'long double' is the same as 'double'.
9831         * tests/test-sprintf-posix.h (test_function): Likewise.
9832         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9833         * tests/test-vasprintf-posix.c (test_function): Likewise.
9834
9835         *printf: Fix for platforms where 'long double' == 'double'.
9836         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9837         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9838         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9839         * modules/fprintf-posix (Files): Likewise.
9840         * modules/obstack-printf-posix (Files): Likewise.
9841         * modules/snprintf-posix (Files): Likewise.
9842         * modules/sprintf-posix (Files): Likewise.
9843         * modules/vasnprintf (Files): Likewise.
9844         * modules/vasnprintf-posix (Files): Likewise.
9845         * modules/vasprintf-posix (Files): Likewise.
9846         * modules/vdprintf-posix (Files): Likewise.
9847         * modules/vfprintf-posix (Files): Likewise.
9848         * modules/vsnprintf-posix (Files): Likewise.
9849         * modules/vsprintf-posix (Files): Likewise.
9850         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9851         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9852         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9853         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9854         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9855         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9856         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9857
9858         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9859         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9860         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9861         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9862         'long double'.
9863         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9864
9865         isinf: Fix for platforms where 'long double' == 'double'.
9866         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9867         Don't blindly assume 80-bit 'long double'.
9868
9869         isfinite: Fix for platforms where 'long double' == 'double'.
9870         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9871         Don't blindly assume 80-bit 'long double'.
9872
9873         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9874         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9875         * modules/isfinite-tests (configure.ac): Require
9876         gl_LONG_DOUBLE_VS_DOUBLE.
9877         * modules/isinf-tests (configure.ac): Likewise.
9878         * modules/isnan-tests (configure.ac): Likewise.
9879         * modules/isnanl-tests (configure.ac): Likewise.
9880         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9881         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9882         tests on platforms where 'long double' is the same as 'double'.
9883         * tests/test-isinf.c (test_isinfl): Likewise.
9884         * tests/test-isnan.c (test_long_double): Likewise.
9885         * tests/test-isnanl.h (main): Likewise.
9886
9887 2011-10-08  Bruno Haible  <bruno@clisp.org>
9888
9889         Tests for module 'tanhf'.
9890         * modules/tanhf-tests: New file.
9891         * tests/test-tanhf.c: New file.
9892
9893         New module 'tanhf'.
9894         * lib/math.in.h (tanhf): New declaration.
9895         * lib/tanhf.c: New file.
9896         * m4/tanhf.m4: New file.
9897         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9899         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9900         * modules/tanhf: New file.
9901         * tests/test-math-c++.cc: Check the declaration of tanhf.
9902         * doc/posix-functions/tanhf.texi: Mention the new module.
9903
9904         tanh: Use a .m4 file.
9905         * m4/tanh.m4: New file.
9906         * modules/tanh (Files): Add it.
9907         (configure.ac): Just invoke gl_FUNC_TANH.
9908
9909 2011-10-08  Bruno Haible  <bruno@clisp.org>
9910
9911         Tests for module 'coshf'.
9912         * modules/coshf-tests: New file.
9913         * tests/test-coshf.c: New file.
9914
9915         New module 'coshf'.
9916         * lib/math.in.h (coshf): New declaration.
9917         * lib/coshf.c: New file.
9918         * m4/coshf.m4: New file.
9919         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9921         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9922         * modules/coshf: New file.
9923         * tests/test-math-c++.cc: Check the declaration of coshf.
9924         * doc/posix-functions/coshf.texi: Mention the new module.
9925
9926         cosh: Use a .m4 file.
9927         * m4/cosh.m4: New file.
9928         * modules/cosh (Files): Add it.
9929         (configure.ac): Just invoke gl_FUNC_COSH.
9930
9931 2011-10-08  Bruno Haible  <bruno@clisp.org>
9932
9933         Tests for module 'sinhf'.
9934         * modules/sinhf-tests: New file.
9935         * tests/test-sinhf.c: New file.
9936
9937         New module 'sinhf'.
9938         * lib/math.in.h (sinhf): New declaration.
9939         * lib/sinhf.c: New file.
9940         * m4/sinhf.m4: New file.
9941         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9943         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9944         * modules/sinhf: New file.
9945         * tests/test-math-c++.cc: Check the declaration of sinhf.
9946         * doc/posix-functions/sinhf.texi: Mention the new module.
9947
9948         sinh: Use a .m4 file.
9949         * m4/sinh.m4: New file.
9950         * modules/sinh (Files): Add it.
9951         (configure.ac): Just invoke gl_FUNC_SINH.
9952
9953 2011-10-08  Bruno Haible  <bruno@clisp.org>
9954
9955         Tests for module 'atan2f'.
9956         * modules/atan2f-tests: New file.
9957         * tests/test-atan2f.c: New file.
9958
9959         New module 'atan2f'.
9960         * lib/math.in.h (atan2f): New declaration.
9961         * lib/atan2f.c: New file.
9962         * m4/atan2f.m4: New file.
9963         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9965         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9966         * modules/atan2f: New file.
9967         * tests/test-math-c++.cc: Check the declaration of atan2f.
9968         * doc/posix-functions/atan2f.texi: Mention the new module.
9969
9970         atan2: Use a .m4 file.
9971         * m4/atan2.m4: New file.
9972         * modules/atan2 (Files): Add it.
9973         (configure.ac): Just invoke gl_FUNC_ATAN2.
9974
9975 2011-10-08  Bruno Haible  <bruno@clisp.org>
9976
9977         Tests for module 'atanf'.
9978         * modules/atanf-tests: New file.
9979         * tests/test-atanf.c: New file.
9980
9981         New module 'atanf'.
9982         * lib/math.in.h (atanf): New declaration.
9983         * lib/atanf.c: New file.
9984         * m4/atanf.m4: New file.
9985         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9987         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9988         * modules/atanf: New file.
9989         * tests/test-math-c++.cc: Check the declaration of atanf.
9990         * doc/posix-functions/atanf.texi: Mention the new module.
9991
9992         atan: Use a .m4 file.
9993         * m4/atan.m4: New file.
9994         * modules/atan (Files): Add it.
9995         (configure.ac): Just invoke gl_FUNC_ATAN.
9996
9997 2011-10-08  Bruno Haible  <bruno@clisp.org>
9998
9999         Tests for module 'acosf'.
10000         * modules/acosf-tests: New file.
10001         * tests/test-acosf.c: New file.
10002
10003         New module 'acosf'.
10004         * lib/math.in.h (acosf): New declaration.
10005         * lib/acosf.c: New file.
10006         * m4/acosf.m4: New file.
10007         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10009         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10010         * modules/acosf: New file.
10011         * tests/test-math-c++.cc: Check the declaration of acosf.
10012         * doc/posix-functions/acosf.texi: Mention the new module.
10013
10014         acos: Use a .m4 file.
10015         * m4/acos.m4: New file.
10016         * modules/acos (Files): Add it.
10017         (configure.ac): Just invoke gl_FUNC_ACOS.
10018
10019 2011-10-08  Bruno Haible  <bruno@clisp.org>
10020
10021         Tests for module 'asinf'.
10022         * modules/asinf-tests: New file.
10023         * tests/test-asinf.c: New file.
10024
10025         New module 'asinf'.
10026         * lib/math.in.h (asinf): New declaration.
10027         * lib/asinf.c: New file.
10028         * m4/asinf.m4: New file.
10029         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10031         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10032         * modules/asinf: New file.
10033         * tests/test-math-c++.cc: Check the declaration of asinf.
10034         * doc/posix-functions/asinf.texi: Mention the new module.
10035
10036         asin: Use a .m4 file.
10037         * m4/asin.m4: New file.
10038         * modules/asin (Files): Add it.
10039         (configure.ac): Just invoke gl_FUNC_ASIN.
10040
10041 2011-10-08  Bruno Haible  <bruno@clisp.org>
10042
10043         Tests for module 'tanf'.
10044         * modules/tanf-tests: New file.
10045         * tests/test-tanf.c: New file.
10046
10047         New module 'tanf'.
10048         * lib/math.in.h (tanf): New declaration.
10049         * lib/tanf.c: New file.
10050         * m4/tanf.m4: New file.
10051         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10053         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10054         * modules/tanf: New file.
10055         * tests/test-math-c++.cc: Check the declaration of tanf.
10056         * doc/posix-functions/tanf.texi: Mention the new module.
10057
10058         tan: Use a .m4 file.
10059         * m4/tan.m4: New file.
10060         * modules/tan (Files): Add it.
10061         (configure.ac): Just invoke gl_FUNC_TAN.
10062
10063 2011-10-08  Bruno Haible  <bruno@clisp.org>
10064
10065         Tests for module 'cosf'.
10066         * modules/cosf-tests: New file.
10067         * tests/test-cosf.c: New file.
10068
10069         New module 'cosf'.
10070         * lib/math.in.h (cosf): New declaration.
10071         * lib/cosf.c: New file.
10072         * m4/cosf.m4: New file.
10073         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10075         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10076         * modules/cosf: New file.
10077         * tests/test-math-c++.cc: Check the declaration of cosf.
10078         * doc/posix-functions/cosf.texi: Mention the new module.
10079
10080         cos: Use a .m4 file.
10081         * m4/cos.m4: New file.
10082         * modules/cos (Files): Add it.
10083         (configure.ac): Just invoke gl_FUNC_COS.
10084
10085 2011-10-08  Bruno Haible  <bruno@clisp.org>
10086
10087         Tests for module 'sinf'.
10088         * modules/sinf-tests: New file.
10089         * tests/test-sinf.c: New file.
10090
10091         New module 'sinf'.
10092         * lib/math.in.h (sinf): New declaration.
10093         * lib/sinf.c: New file.
10094         * m4/sinf.m4: New file.
10095         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10097         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10098         * modules/sinf: New file.
10099         * tests/test-math-c++.cc: Check the declaration of sinf.
10100         * doc/posix-functions/sinf.texi: Mention the new module.
10101
10102         sin: Use a .m4 file.
10103         * m4/sin.m4: New file.
10104         * modules/sin (Files): Add it.
10105         (configure.ac): Just invoke gl_FUNC_SIN.
10106
10107 2011-10-08  Bruno Haible  <bruno@clisp.org>
10108
10109         Tests for module 'powf'.
10110         * modules/powf-tests: New file.
10111         * tests/test-powf.c: New file.
10112
10113         New module 'powf'.
10114         * lib/math.in.h (powf): New declaration.
10115         * lib/powf.c: New file.
10116         * m4/powf.m4: New file.
10117         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10119         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10120         * modules/powf: New file.
10121         * tests/test-math-c++.cc: Check the declaration of powf.
10122         * doc/posix-functions/powf.texi: Mention the new module.
10123
10124         pow: Use a .m4 file.
10125         * m4/pow.m4: New file.
10126         * modules/pow (Files): Add it.
10127         (configure.ac): Just invoke gl_FUNC_POW.
10128
10129 2011-10-08  Bruno Haible  <bruno@clisp.org>
10130
10131         Tests for module 'log10f'.
10132         * modules/log10f-tests: New file.
10133         * tests/test-log10f.c: New file.
10134
10135         New module 'log10f'.
10136         * lib/math.in.h (log10f): New declaration.
10137         * lib/log10f.c: New file.
10138         * m4/log10f.m4: New file.
10139         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10141         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10142         * modules/log10f: New file.
10143         * tests/test-math-c++.cc: Check the declaration of log10f.
10144         * doc/posix-functions/log10f.texi: Mention the new module.
10145
10146         log10: Use a .m4 file.
10147         * m4/log10.m4: New file.
10148         * modules/log10 (Files): Add it.
10149         (configure.ac): Just invoke gl_FUNC_LOG10.
10150
10151 2011-10-08  Bruno Haible  <bruno@clisp.org>
10152
10153         Tests for module 'logf'.
10154         * modules/logf-tests: New file.
10155         * tests/test-logf.c: New file.
10156
10157         New module 'logf'.
10158         * lib/math.in.h (logf): New declaration.
10159         * lib/logf.c: New file.
10160         * m4/logf.m4: New file.
10161         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10163         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10164         * modules/logf: New file.
10165         * tests/test-math-c++.cc: Check the declaration of logf.
10166         * doc/posix-functions/logf.texi: Mention the new module.
10167
10168         log: Use a .m4 file.
10169         * m4/log.m4: New file.
10170         * modules/log (Files): Add it.
10171         (configure.ac): Just invoke gl_FUNC_LOG.
10172
10173 2011-10-08  Bruno Haible  <bruno@clisp.org>
10174
10175         Tests for module 'expf'.
10176         * modules/expf-tests: New file.
10177         * tests/test-expf.c: New file.
10178
10179         New module 'expf'.
10180         * lib/math.in.h (expf): New declaration.
10181         * lib/expf.c: New file.
10182         * m4/expf.m4: New file.
10183         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10185         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10186         * modules/expf: New file.
10187         * tests/test-math-c++.cc: Check the declaration of expf.
10188         * doc/posix-functions/expf.texi: Mention the new module.
10189
10190         exp: Use a .m4 file.
10191         * m4/exp.m4: New file.
10192         * modules/exp (Files): Add it.
10193         (configure.ac): Just invoke gl_FUNC_EXP.
10194
10195 2011-10-08  Bruno Haible  <bruno@clisp.org>
10196
10197         Tests for module 'sqrtf'.
10198         * modules/sqrtf-tests: New file.
10199         * tests/test-sqrtf.c: New file.
10200
10201         New module 'sqrtf'.
10202         * lib/math.in.h (sqrtf): New declaration.
10203         * lib/sqrtf.c: New file.
10204         * m4/sqrtf.m4: New file.
10205         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10207         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10208         * modules/sqrtf: New file.
10209         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10210         * doc/posix-functions/sqrtf.texi: Mention the new module.
10211
10212 2011-10-08  Bruno Haible  <bruno@clisp.org>
10213
10214         Tests: Avoid link failures w.r.t. libintl.
10215         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10216         $(LIBINTL).
10217         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10218         $(LIBINTL).
10219         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10220         against $(LIBINTL).
10221         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10222         $(LIBINTL).
10223         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10224         $(LIBINTL).
10225         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10226
10227 2011-10-08  Bruno Haible  <bruno@clisp.org>
10228
10229         pow tests: Defeat compiler optimizations.
10230         * tests/test-pow.c (main): Assign arguments to x and y before use.
10231
10232 2011-10-08  Bruno Haible  <bruno@clisp.org>
10233
10234         gnulib-tool: Improve last commit.
10235         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10236         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10237         ignore dependencies that are not among the modules list.
10238
10239 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10240
10241         gnulib-tool: don't follow dependencies to avoided modules
10242         This fixes a bug that is related to the previous one.
10243         * gnulib-tool (func_modules_transitive_closure)
10244         (func_emit_autoconf_snippets):
10245         Check whether a dependency is acceptable before using it.
10246         (--extract-dependencies): Report an error if --avoid is also used,
10247         since this combination of options is not yet supported.
10248
10249         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10250         Problem reported by Peter Dyballa in
10251         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10252         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10253         when echoing "$condition".
10254
10255 2011-10-07  Bruno Haible  <bruno@clisp.org>
10256
10257         Fix documentation about math functions on MacOS X.
10258         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10259         MacOS X 10.5.
10260         * doc/posix-functions/fdim.texi: Likewise.
10261         * doc/posix-functions/feclearexcept.texi: Likewise.
10262         * doc/posix-functions/fegetenv.texi: Likewise.
10263         * doc/posix-functions/fegetround.texi: Likewise.
10264         * doc/posix-functions/feholdexcept.texi: Likewise.
10265         * doc/posix-functions/feraiseexcept.texi: Likewise.
10266         * doc/posix-functions/fesetenv.texi: Likewise.
10267         * doc/posix-functions/fesetround.texi: Likewise.
10268         * doc/posix-functions/fetestexcept.texi: Likewise.
10269         * doc/posix-functions/feupdateenv.texi: Likewise.
10270         * doc/posix-functions/fmax.texi: Likewise.
10271         * doc/posix-functions/fmin.texi: Likewise.
10272         * doc/posix-functions/log2.texi: Likewise.
10273         * doc/posix-functions/modff.texi: Likewise.
10274         * doc/posix-functions/nan.texi: Likewise.
10275         * doc/posix-functions/nanf.texi: Likewise.
10276         * doc/posix-functions/nextafterf.texi: Likewise.
10277         * doc/posix-functions/remquo.texi: Likewise.
10278
10279 2011-10-07  Bruno Haible  <bruno@clisp.org>
10280
10281         modff: Drop assumption about library that defines modff.
10282         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10283         AC_CHECK_FUNCS.
10284         * modules/modff (Files): Add m4/mathfunc.m4.
10285
10286 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10287
10288         raise tests: Avoid a GCC warning.
10289         * tests/test-raise.c (handler): Use _Noreturn.
10290
10291 2011-10-07  Bruno Haible  <bruno@clisp.org>
10292
10293         Tests for module 'ldexpf'.
10294         * modules/ldexpf-tests: New file.
10295         * tests/test-ldexpf.c: New file.
10296
10297         New module 'ldexpf'.
10298         * lib/math.in.h (ldexpf): New declaration.
10299         * lib/ldexpf.c: New file.
10300         * m4/ldexpf.m4: New file.
10301         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10303         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10304         * modules/ldexpf: New file.
10305         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10306         * doc/posix-functions/ldexpf.texi: Mention the new module.
10307
10308 2011-10-06  Bruno Haible  <bruno@clisp.org>
10309
10310         frexpf: Work around problems on IRIX and mingw.
10311         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10313         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10314         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10315         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10316         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10317         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10318
10319 2011-10-06  Bruno Haible  <bruno@clisp.org>
10320
10321         fabsf: Drop assumption about library that defines fabsf.
10322         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10323         AC_CHECK_FUNCS.
10324         * modules/fabsf (Files): Add m4/mathfunc.m4.
10325
10326 2011-10-06  Bruno Haible  <bruno@clisp.org>
10327
10328         frexpf: Drop assumption about library that defines frexpf.
10329         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10330         'int *', 'float *', 'long double *', 'float', 'long double'.
10331         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10332         AC_CHECK_FUNCS.
10333         * modules/frexpf (Files): Add m4/mathfunc.m4.
10334
10335         Tests for module 'frexpf'.
10336         * modules/frexpf-tests: New file.
10337         * tests/test-frexpf.c: New file.
10338
10339         New module 'frexpf'.
10340         * lib/math.in.h (frexpf): New declaration.
10341         * lib/frexpf.c: New file.
10342         * m4/frexpf.m4: New file.
10343         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10345         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10346         * modules/frexpf: New file.
10347         * tests/test-math-c++.cc: Check the declaration of frexpf.
10348         * doc/posix-functions/frexpf.texi: Mention the new module.
10349
10350 2011-10-06  Bruno Haible  <bruno@clisp.org>
10351
10352         math: Sort function declarations of math.in.h.
10353         * lib/math.in.h (frexp, logb): Move declarations.
10354
10355 2011-10-05  Bruno Haible  <bruno@clisp.org>
10356
10357         Tests for module 'modff'.
10358         * modules/modff-tests: New file.
10359         * tests/test-modff.c: New file.
10360
10361         New module 'modff'.
10362         * lib/math.in.h (modff): New declaration.
10363         * lib/modff.c: New file.
10364         * m4/modff.m4: New file.
10365         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10367         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10368         * modules/modff: New file.
10369         * tests/test-math-c++.cc: Check the declaration of modff.
10370         * doc/posix-functions/modff.texi: Mention the new module.
10371
10372         modf tests: Make test sharper.
10373         * tests/test-modf.c (main): Strengthen upper bound.
10374
10375         modf: Use a .m4 file.
10376         * m4/modf.m4: New file.
10377         * modules/modf (Files): Add it.
10378         (configure.ac): Just invoke gl_FUNC_MODF.
10379
10380 2011-10-05  Bruno Haible  <bruno@clisp.org>
10381
10382         Tests for module 'fmodf'.
10383         * modules/fmodf-tests: New file.
10384         * tests/test-fmodf.c: New file.
10385
10386         New module 'fmodf'.
10387         * lib/math.in.h (fmodf): New declaration.
10388         * lib/fmodf.c: New file.
10389         * m4/fmodf.m4: New file.
10390         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10392         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10393         * modules/fmodf: New file.
10394         * tests/test-math-c++.cc: Check the declaration of fmodf.
10395         * doc/posix-functions/fmodf.texi: Mention the new module.
10396
10397         fmod: Use a .m4 file.
10398         * m4/fmod.m4: New file.
10399         * modules/fmod (Files): Add it.
10400         (configure.ac): Just invoke gl_FUNC_FMOD.
10401
10402 2011-10-05  Bruno Haible  <bruno@clisp.org>
10403
10404         Tests for module 'fabsf'.
10405         * modules/fabsf-tests: New file.
10406         * tests/test-fabsf.c: New file.
10407
10408         New module 'fabsf'.
10409         * lib/math.in.h (fabsf): New declaration.
10410         * lib/fabsf.c: New file.
10411         * m4/fabsf.m4: New file.
10412         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10414         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10415         * modules/fabsf: New file.
10416         * tests/test-math-c++.cc: Check the declaration of fabsf.
10417         * doc/posix-functions/fabsf.texi: Mention the new module.
10418
10419         fabs: Use a .m4 file.
10420         * m4/fabs.m4: New file.
10421         * modules/fabs (Files): Add it.
10422         (configure.ac): Just invoke gl_FUNC_FABS.
10423
10424 2011-10-05  Jim Meyering  <meyering@redhat.com>
10425
10426         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10427         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10428         ls -lL regression introduced in coreutils-8.12, it does so at the
10429         cost of an additional stat call in the common case.  Besides, now
10430         that the kernel change that prompted commit 95f7c57f has been reverted
10431         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10432         we have no use for commit 95f7c57f, "file-has-acl: use
10433         acl_extended_file_nofollow if available".
10434
10435 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10436
10437         file-has-acl: revert unintended change in behavior of ls -L
10438         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10439         derived from...
10440         (file_has_acl): ...code here.  Call it.
10441         This problem was introduced with 2011-07-22 commit 95f7c57f,
10442         "file-has-acl: use acl_extended_file_nofollow if available".
10443         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10444
10445 2011-10-03  Bruno Haible  <bruno@clisp.org>
10446
10447         poll: Avoid link errors on MSVC.
10448         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10449         * modules/poll (Depends-on): Add sockets.
10450         (Link): New section.
10451         * NEWS: Mention the change.
10452         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10453         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10454         $(LIB_POLL) instead of $(LIBSOCKET).
10455
10456 2011-10-03  Bruno Haible  <bruno@clisp.org>
10457
10458         sys_select tests: Fix link error on MSVC 9.
10459         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10460         with $(LIB_SELECT) instead of $(LIBSOCKET).
10461
10462 2011-10-03  Bruno Haible  <bruno@clisp.org>
10463
10464         sys_select: Fix compilation error on mingw.
10465         * lib/sys_select.in.h: On native Windows, include <io.h>.
10466
10467 2011-10-03  Bruno Haible  <bruno@clisp.org>
10468
10469         wmemset: Support for MSVC.
10470         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10471         whether wmemset() exists.
10472
10473 2011-10-03  Bruno Haible  <bruno@clisp.org>
10474
10475         wmemmove: Support for MSVC.
10476         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10477         whether wmemmove() exists.
10478
10479 2011-10-03  Bruno Haible  <bruno@clisp.org>
10480
10481         wmemcpy: Support for MSVC.
10482         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10483         whether wmemcpy() exists.
10484
10485 2011-10-03  Bruno Haible  <bruno@clisp.org>
10486
10487         wmemcmp: Support for MSVC.
10488         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10489         whether wmemcmp() exists.
10490
10491 2011-10-03  Bruno Haible  <bruno@clisp.org>
10492
10493         wmemchr: Support for MSVC.
10494         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10495         whether wmemchr() exists.
10496
10497 2011-10-03  Bruno Haible  <bruno@clisp.org>
10498
10499         glthread/*, strsignal: Support for MSVC.
10500         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10501         including <winsock.h> on MSVC 9.
10502         * lib/glthread/lock.h: Likewise.
10503         * lib/glthread/thread.h: Likewise.
10504         * lib/glthread/tls.h: Likewise.
10505         * lib/glthread/yield.h: Likewise.
10506         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10507         if HAVE_UNISTD_H is false.
10508         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10509
10510 2011-10-03  Bruno Haible  <bruno@clisp.org>
10511
10512         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10513         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10514         Set to 100000.
10515
10516 2011-10-03  Bruno Haible  <bruno@clisp.org>
10517
10518         acl: Fix specification.
10519         * lib/file-has-acl.c (file_has_acl): Fix specification.
10520
10521 2011-10-03  Bruno Haible  <bruno@clisp.org>
10522
10523         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10524         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10525         (compute_curr_prefix, shared_library_fullname,
10526         find_shared_library_fullname, get_shared_library_fullname, relocate):
10527         Use it together with PIC && INSTALLDIR.
10528         Reported by <jojelino@gmail.com>
10529         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10530
10531 2011-10-01  Jim Meyering  <meyering@redhat.com>
10532
10533         maint.mk: adjust a release-related rule not to require use of gzip
10534         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10535         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10536         projects that build only .tar.xz files.  Also fix an erroneous test.
10537
10538         test-linkat: don't leave behind a temporary file
10539         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10540         Otherwise, coreutils' "make distcheck" would fail with this:
10541           Only in /c/cu/tests/torture/coreutils/test/\
10542             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10543           make[2]: *** [my-distcheck] Error 1
10544
10545         float, math: add omitted file
10546         * lib/itold.c: Add file, required for yesterday's float change.
10547
10548 2011-10-01  Bruno Haible  <bruno@clisp.org>
10549
10550         isinf: Fix for OpenBSD/x86.
10551         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10552         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10553         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10554
10555 2011-10-01  Bruno Haible  <bruno@clisp.org>
10556
10557         isfinite: Fix syntax error in configure test.
10558         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10559
10560         isfinite: Fix typo.
10561         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10562         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10563
10564 2011-10-01  Bruno Haible  <bruno@clisp.org>
10565
10566         nonblocking tests: Fix test failure on Linux/IA-64.
10567         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10568         Set to 270000.
10569
10570 2011-10-01  Bruno Haible  <bruno@clisp.org>
10571
10572         mkfifoat tests: Fix a test failure on mingw.
10573         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10574         with error ENOSYS.
10575
10576 2011-09-30  Bruno Haible  <bruno@clisp.org>
10577
10578         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10579         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10580         'long double'. Set REPLACE_ITOLD.
10581         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10582         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10583         * lib/itold.c: New file.
10584         * modules/float (Files): Add lib/itold.c.
10585         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10586         (Makefile.am): Substitute REPLACE_ITOLD.
10587         * modules/math (Depends-on): Add float.
10588         (Makefile.am): Substitute REPLACE_ITOLD.
10589         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10590         * doc/posix-headers/math.texi: Likewise.
10591         * doc/posix-functions/logl.texi: Likewise.
10592
10593 2011-09-30  Bruno Haible  <bruno@clisp.org>
10594
10595         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10596         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10597         Set to 140000.
10598
10599 2011-09-30  Bruno Haible  <bruno@clisp.org>
10600
10601         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10602         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10603         invocation, say "right after AC_PROG_CC_STDC", not "right after
10604         AC_PROG_CC".
10605         Reported by Gary V. Vaughan <gary@gnu.org>.
10606
10607 2011-09-30  Bruno Haible  <bruno@clisp.org>
10608
10609         Centralize C99 requirement.
10610         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10611         * modules/stdarg (configure.ac-early): Invoke it instead of
10612         AC_PROG_CC_STDC.
10613         Reported by Gary V. Vaughan and Paul Eggert.
10614
10615 2011-09-29  Bruno Haible  <bruno@clisp.org>
10616
10617         float: Fix LDBL_MAX value on Linux/PowerPC.
10618         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10619         on Linux/PowerPC.
10620         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10621         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10622         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10623         platform.
10624         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10625
10626 2011-09-29  Bruno Haible  <bruno@clisp.org>
10627
10628         doc: Improve doc about gl_EARLY.
10629         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10630         AC_PROG_CC_STDC invocation.
10631         Reported by Gary V. Vaughan <gary@gnu.org>.
10632
10633 2011-09-28  Bruno Haible  <bruno@clisp.org>
10634
10635         fgetc, fputc, fread, fwrite tests: Fix link error.
10636         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10637         on non-MSVC platforms.
10638         * tests/test-fputc.c (main): Likewise.
10639         * tests/test-fread.c (main): Likewise.
10640         * tests/test-fwrite.c (main): Likewise.
10641         Reported by Jim Meyering.
10642
10643 2011-09-27  Bruno Haible  <bruno@clisp.org>
10644
10645         fputc, fwrite tests: Avoid test failure on MSVC.
10646         * tests/test-fgetc.c: Include msvc-inval.h.
10647         (main): Invoke gl_msvc_inval_ensure_handler.
10648         * tests/test-fputc.c: Include msvc-inval.h.
10649         (main): Invoke gl_msvc_inval_ensure_handler.
10650         * tests/test-fread.c: Include msvc-inval.h.
10651         (main): Invoke gl_msvc_inval_ensure_handler.
10652         * tests/test-fwrite.c: Include msvc-inval.h.
10653         (main): Invoke gl_msvc_inval_ensure_handler.
10654         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10655         * modules/fputc-tests (Depends-on): Likewise.
10656         * modules/fread-tests (Depends-on): Likewise.
10657         * modules/fwrite-tests (Depends-on): Likewise.
10658
10659 2011-09-27  Bruno Haible  <bruno@clisp.org>
10660
10661         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10662         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10663         (raise): Remove older, duplicated declaration.
10664         (_gl_raise_SIGPIPE): New declaration.
10665         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10666         (rpl_raise): Remove function.
10667         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10668         a gnulib-defined SIGPIPE here.
10669         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10670         'sigprocmask' has detected missing signal-blocking and the module
10671         'sigpipe' is enabled.
10672         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10673
10674 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10675
10676         base64-tests: avoid memory leak
10677         * tests/test-base64.c (main): Plug memory leak.
10678
10679         base32: new module
10680         * modules/base32: New module.
10681         * lib/base32.c: New file.
10682         * lib/base32.h: Likewise.
10683         * m4/base32.m4: Likewise.
10684         * modules/base32-tests: New test.
10685         * tests/test-base32.c: Likewise.
10686         * MODULES.html.sh (Misc): Mention it.
10687
10688 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         gnulib: use more-standard license notice wording
10691         * gnulib-tool (func_emit_copyright_notice): When emitting a
10692         license notice into a file, use the standard wording as suggested
10693         by the current information for GNU maintainers, except say "file"
10694         rather than "program".  The new wording gives a license version
10695         number, which addresses an issue raised by Glenn Morris in
10696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10697         * m4/onceonly.m4: Use that same wording here, too.
10698
10699         dup2: minor simplification
10700         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10701         as lib/dup2.c no longer uses 'inline'.
10702
10703 2011-09-25  Bruno Haible  <bruno@clisp.org>
10704
10705         strings: Fix compilation error on MSVC.
10706         * lib/strings.in.h: Include <stddef.h> for size_t.
10707
10708 2011-09-25  Bruno Haible  <bruno@clisp.org>
10709
10710         fflush et al.: Document limitation on MSVC.
10711         * doc/posix-functions/fflush.texi: Document possible crash in handling
10712         mode other than DEFAULT_HANDLING.
10713         * doc/posix-functions/fgetc.texi: Likewise.
10714         * doc/posix-functions/fputc.texi: Likewise.
10715         * doc/posix-functions/fread.texi: Likewise.
10716         * doc/posix-functions/fwrite.texi: Likewise.
10717
10718 2011-09-25  Bruno Haible  <bruno@clisp.org>
10719
10720         msvc-inval: Allow three invalid parameter handling modes.
10721         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10722         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10723         macros.
10724         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10725         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10726         SANE_LIBRARY_HANDLING as a no-op.
10727         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10728         <stdlib.h>.
10729         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10730
10731 2011-09-25  Bruno Haible  <bruno@clisp.org>
10732
10733         msvc-inval: Make handler multithread-safe.
10734         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10735         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10736         declarations.
10737         (gl_msvc_inval_current): New declaration.
10738         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10739         Operate on the structure returned by gl_msvc_inval_current().
10740         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10741         Remove varaiables.
10742         (tls_index, tls_initialized): New variables.
10743         (not_per_thread): New variable.
10744         (gl_msvc_inval_current): New function.
10745         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10746         returned by gl_msvc_inval_current().
10747
10748 2011-09-25  Bruno Haible  <bruno@clisp.org>
10749
10750         msvc-inval: Install handler globally.
10751         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10752         !_MSC_VER.
10753         (gl_msvc_invalid_parameter_handler): Remove declaration.
10754         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10755         declarations.
10756         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10757         Install the handler globally, don't uninstall it.
10758         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10759         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10760         currently valid, call RaiseException instead.
10761         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10762         for !_MSC_VER.
10763
10764 2011-09-25  Bruno Haible  <bruno@clisp.org>
10765
10766         strerror_r-posix: Fix for MSVC 9.
10767         * lib/strerror_r.c (local_snprintf): New function.
10768         (snprintf): Define to local_snprintf, not to _snprintf.
10769
10770 2011-09-25  Bruno Haible  <bruno@clisp.org>
10771
10772         ftruncate: Support for MSVC 9.
10773         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10774         (chsize_nothrow): New function.
10775         (chsize): Redefine as a macro.
10776         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10777         * modules/ftruncate (Depends-on): Add msvc-inval.
10778
10779 2011-09-25  Bruno Haible  <bruno@clisp.org>
10780
10781         New module 'fstat'.
10782         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10783         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10784         * lib/fchdir.c (rpl_fstat): Remove function.
10785         * m4/fstat.m4: New file.
10786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10788         declared.
10789         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10790         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10791         * modules/fstat: New file.
10792         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10793         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10794         is set.
10795         * doc/posix-functions/fstat.texi: Mention the new module and the
10796         problem on MSVC.
10797         * NEWS: Mention the change.
10798         * modules/acl (Depends-on): Add fstat.
10799         * modules/chdir-safer (Depends-on): Likewise.
10800         * modules/chown (Depends-on): Likewise.
10801         * modules/copy-file (Depends-on): Likewise.
10802         * modules/fchdir (Depends-on): Likewise.
10803         * modules/fdopendir (Depends-on): Likewise.
10804         * modules/fopen (Depends-on): Likewise.
10805         * modules/fts (Depends-on): Likewise.
10806         * modules/getcwd (Depends-on): Likewise.
10807         * modules/isapipe (Depends-on): Likewise.
10808         * modules/linkat (Depends-on): Likewise.
10809         * modules/lseek (Depends-on): Likewise.
10810         * modules/mkdir-p (Depends-on): Likewise.
10811         * modules/open (Depends-on): Likewise.
10812         * modules/openat (Depends-on): Likewise.
10813         * modules/read-file (Depends-on): Likewise.
10814         * modules/renameat (Depends-on): Likewise.
10815         * modules/utimens (Depends-on): Likewise.
10816
10817 2011-09-25  Bruno Haible  <bruno@clisp.org>
10818
10819         linkat: Fix compilation on MSVC 9.
10820         * lib/linkat.c: Don't include <stdint.h>.
10821
10822 2011-09-25  Bruno Haible  <bruno@clisp.org>
10823
10824         fclose: Support for MSVC 9.
10825         * lib/fclose.c: Include msvc-inval.h.
10826         (fclose_nothrow): New function.
10827         (rpl_fclose): Use it.
10828         * modules/fclose (Depends-on): Add msvc-inval.
10829         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10830
10831 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10832
10833         dup2: minor simplifications
10834         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10835         that it's a performance win.
10836         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10837         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10838
10839 2011-09-24  Jim Meyering  <meyering@redhat.com>
10840
10841         test-futimens: avoid a warning from gcc -Wshadow
10842         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10843         to avoid a shadowing warning.
10844
10845 2011-09-24  Bruno Haible  <bruno@clisp.org>
10846
10847         fdopen: Support for MSVC 9.
10848         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10849         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10850         * lib/fdopen.c: Include msvc-inval.h.
10851         (fdopen_nothrow): New function.
10852         (rpl_fdopen): Use it.
10853         * modules/fdopen (Depends-on): Add msvc-inval.
10854         * modules/fclose-tests (Depends-on): Add fdopen.
10855         * modules/fflush-tests (Depends-on): Likewise.
10856         * modules/fgetc-tests (Depends-on): Likewise.
10857         * modules/fputc-tests (Depends-on): Likewise.
10858         * modules/fread-tests (Depends-on): Likewise.
10859         * modules/freopen-tests (Depends-on): Likewise.
10860         * modules/fseeko-tests (Depends-on): Likewise.
10861         * modules/ftello-tests (Depends-on): Likewise.
10862         * modules/fwrite-tests  (Depends-on): Likewise.
10863         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10864
10865 2011-09-24  Bruno Haible  <bruno@clisp.org>
10866
10867         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10868         * modules/fgetc-tests (Depends-on): Add unistd.
10869         * modules/fputc-tests (Depends-on): Likewise.
10870         * modules/fread-tests (Depends-on): Likewise.
10871         * modules/fwrite-tests (Depends-on): Likewise.
10872
10873 2011-09-24  Bruno Haible  <bruno@clisp.org>
10874
10875         dup: Simplify autoconf test.
10876         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10877         on gl_MSVC_INVAL's result.
10878
10879 2011-09-24  Bruno Haible  <bruno@clisp.org>
10880
10881         Tests for function fwrite().
10882         * modules/fwrite-tests: New file.
10883         * tests/test-fwrite.c: New file.
10884         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10885
10886         Tests for function fread().
10887         * modules/fread-tests: New file.
10888         * tests/test-fread.c: New file.
10889         * modules/stdio-tests (Depends-on): Add fread-tests.
10890
10891         Activate fputc tests.
10892         * modules/stdio-tests (Depends-on): Add fputc-tests.
10893
10894         Enhance fgetc, fputc tests.
10895         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10896         * tests/test-fputc.c (main): Likewise.
10897
10898 2011-09-24  Bruno Haible  <bruno@clisp.org>
10899
10900         write: Support for MSVC 9.
10901         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10902         is not 1.
10903         * lib/write.c (write_nothrow): New function.
10904         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10905         not 1. Use write_nothrow.
10906         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10907         invalid parameter handler.
10908         (gl_PREREQ_WRITE): New macro.
10909         * modules/write (Depends-on): Add msvc-inval.
10910         (configure.ac): Invoke gl_PREREQ_WRITE.
10911         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10912
10913 2011-09-24  Bruno Haible  <bruno@clisp.org>
10914
10915         read: Fix last commit.
10916         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10917
10918 2011-09-24  Bruno Haible  <bruno@clisp.org>
10919
10920         dup2: Fix last commit.
10921         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10922         (rpl_dup2): Disable fcntl workaround on native Windows.
10923
10924         sigprocmask: Make code safer.
10925         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10926         section that changes macro definitions for this compilation unit.
10927
10928 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10929
10930         dup2: clarify by coalescing Windows-specific material
10931         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10932         "msvc-nothrow.h"' to the Windows-specific section, so that the
10933         Emacs source need not contain these include files.
10934         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10935         Windows-specific fixes into this function rather than just the
10936         nothrow fix, as this shortens and clarifies the code.  Always
10937         define as a function, as that's a bit cleaner than having it be
10938         sometimes a function and sometimes a macro.
10939         (rpl_dup2): Move the Windows-specific stuff out of here and into
10940         ms_windows_dup2.  Don't protect the Haiku-related fix with
10941         "#if !defined __linux__", as the same code also works around
10942         a Linux kernel bug, and it doesn't add any system calls on any
10943         platform.  Add comment about FreeBSD 6.1.
10944
10945         sigprocmask: move #include directive
10946         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10947         Windows-specific section, so that the Emacs source need not
10948         contain msvc-inval.h.
10949
10950 2011-09-23  Bruno Haible  <bruno@clisp.org>
10951
10952         read: Support for MSVC 9.
10953         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10954         is not 1.
10955         * lib/read.c (read_nothrow): New function.
10956         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10957         read_nothrow.
10958         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10959         invalid parameter handler.
10960         (gl_PREREQ_READ): New macro.
10961         * modules/read (Depends-on): Add msvc-inval.
10962         (configure.ac): Invoke gl_PREREQ_READ.
10963         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10964
10965 2011-09-23  Bruno Haible  <bruno@clisp.org>
10966
10967         close: Support for MSVC 9.
10968         * lib/close.c: Include <errno.h>, msvc-inval.h.
10969         (close_nothrow): New function.
10970         (rpl_close): Use it.
10971         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10972         invalid parameter handler.
10973         * modules/close (Depends-on): Add msvc-inval.
10974         * modules/dup2-tests (Depends-on): Add close.
10975         * modules/dup3-tests (Depends-on): Likewise.
10976         * modules/fcntl-tests (Depends-on): Likewise.
10977         * modules/spawn-pipe-tests (Depends-on): Likewise.
10978         * modules/unistd-safer-tests (Depends-on): Likewise.
10979         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10980
10981 2011-09-23  Bruno Haible  <bruno@clisp.org>
10982
10983         New module 'dup'.
10984         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10985         Allow replacement.
10986         * lib/dup.c: New file.
10987         * lib/fchdir.c (rpl_dup): Remove function.
10988         * m4/dup.m4: New file.
10989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10990         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10991         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10992         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10993         * modules/dup: New file.
10994         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10995         'dup' module is in use.
10996         * modules/fdopendir (Depends-on): Add dup.
10997         * modules/fdutimensat-tests (Depends-on): Likewise.
10998         * modules/fts (Depends-on): Likewise.
10999         * modules/futimens-tests (Depends-on): Likewise.
11000         * modules/posix_spawnp-tests (Depends-on): Likewise.
11001         * modules/unistd-safer-tests (Depends-on): Likewise.
11002         * modules/utimens-tests (Depends-on): Likewise.
11003         * doc/posix-functions/dup.texi: Mention the new module and the problem
11004         on MSVC.
11005
11006 2011-09-23  Bruno Haible  <bruno@clisp.org>
11007
11008         getdtablesize: Support for MSVC 9.
11009         * lib/getdtablesize.c: Include msvc-inval.h.
11010         (_setmaxstdio_nothrow): New function.
11011         (_setmaxstdio): Redefine it.
11012         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11013         * modules/getdtablesize (Depends-on): Add msvc-inval.
11014         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11015
11016 2011-09-23  Bruno Haible  <bruno@clisp.org>
11017
11018         signal-h: Rename from signal.
11019         * modules/signal-h: Renamed from modules/signal.
11020         * modules/pthread_sigmask (Depends-on): Update.
11021         * modules/raise (Depends-on): Likewise.
11022         * modules/sigaction (Depends-on): Likewise.
11023         * modules/sigpipe (Depends-on): Likewise.
11024         * modules/sigprocmask (Depends-on): Likewise.
11025         * modules/sys_select (Depends-on): Likewise.
11026         * modules/signal-h-tests: Renamed from modules/signal-tests.
11027         (Files, Depends-on, Makefile.am): Update.
11028         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11029         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11030         (Files, Makefile.am): Update.
11031         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11032         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11033         * modules/signal: New placeholder file.
11034         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11035         * doc/posix-headers/signal.texi: Update.
11036         * NEWS: Mention the change.
11037
11038 2011-09-23  Bruno Haible  <bruno@clisp.org>
11039
11040         sigprocmask: Avoid crashes through signal() on MSVC 9.
11041         * lib/sigprocmask.c: Include msvc-inval.h.
11042         (signal_nothrow): New function.
11043         (signal): Redefine it.
11044         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11045         * modules/sigprocmask (Depends-on): Add msvc-inval.
11046         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11047
11048 2011-09-23  Bruno Haible  <bruno@clisp.org>
11049
11050         Tests for module 'raise'.
11051         * modules/raise-tests: New file.
11052         * tests/test-raise.c: New file.
11053
11054         raise: Support for MSVC.
11055         * lib/signal.in.h (raise): New declaration.
11056         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11057         for native Windows platforms.
11058         * m4/raise.m4: New file.
11059         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11060         HAVE_RAISE, REPLACE_RAISE.
11061         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11062         REPLACE_RAISE.
11063         * modules/raise (Status, Notice): Remove fields.
11064         (Files): Add m4/raise.m4.
11065         (Depends-on): Add signal, msvc-inval.
11066         (configure.ac): Use the common idioms.
11067         (Maintainer): Add me.
11068         * tests/test-signal-c++.cc: Check the signature of raise.
11069         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11070
11071 2011-09-23  Bruno Haible  <bruno@clisp.org>
11072
11073         pipe2: Fix compilation on pre-C99 compilers.
11074         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11075
11076 2011-09-23  Bruno Haible  <bruno@clisp.org>
11077
11078         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11079         * lib/msvc-nothrow.h: New file.
11080         * lib/msvc-nothrow.c: New file.
11081         * m4/msvc-nothrow.m4: New file.
11082         * modules/msvc-nothrow: New file.
11083         * lib/dup2.c: Include msvc-nothrow.h.
11084         (rpl_dup2): No need to protect _get_osfhandle call here.
11085         * lib/accept4.c: Include msvc-nothrow.h.
11086         * lib/error.c: Likewise.
11087         * lib/fcntl.c: Likewise.
11088         * lib/lseek.c: Likewise.
11089         * lib/nonblocking.c: Likewise.
11090         * lib/poll.c: Likewise.
11091         * lib/read.c: Likewise.
11092         * lib/select.c: Likewise.
11093         * lib/sockets.h: Likewise.
11094         * lib/sockets.c: Likewise.
11095         * lib/stdio-read.c: Likewise.
11096         * lib/stdio-write.c: Likewise.
11097         * lib/write.c: Likewise.
11098         * lib/w32sock.h: Likewise.
11099         * lib/w32spawn.h: Likewise.
11100         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11101         * lib/fsync.c: Likewise.
11102         * lib/isapipe.c: Likewise.
11103         * modules/dup2 (Depends-on): Add msvc-nothrow.
11104         * modules/accept4 (Depends-on): Likewise.
11105         * modules/error (Depends-on): Likewise.
11106         * modules/fcntl (Depends-on): Likewise.
11107         * modules/lseek (Depends-on): Likewise.
11108         * modules/nonblocking (Depends-on): Likewise.
11109         * modules/poll (Depends-on): Likewise.
11110         * modules/read (Depends-on): Likewise.
11111         * modules/select (Depends-on): Likewise.
11112         * modules/sockets (Depends-on): Likewise.
11113         * modules/sigpipe (Depends-on): Likewise.
11114         * modules/write (Depends-on): Likewise.
11115         * modules/accept (Depends-on): Likewise.
11116         * modules/bind (Depends-on): Likewise.
11117         * modules/connect (Depends-on): Likewise.
11118         * modules/gethostname (Depends-on): Likewise.
11119         * modules/getpeername (Depends-on): Likewise.
11120         * modules/getsockname (Depends-on): Likewise.
11121         * modules/getsockopt (Depends-on): Likewise.
11122         * modules/ioctl (Depends-on): Likewise.
11123         * modules/listen (Depends-on): Likewise.
11124         * modules/recv (Depends-on): Likewise.
11125         * modules/recvfrom (Depends-on): Likewise.
11126         * modules/send (Depends-on): Likewise.
11127         * modules/sendto (Depends-on): Likewise.
11128         * modules/setsockopt (Depends-on): Likewise.
11129         * modules/shutdown (Depends-on): Likewise.
11130         * modules/socket (Depends-on): Likewise.
11131         * modules/execute (Depends-on): Likewise.
11132         * modules/spawn-pipe (Depends-on): Likewise.
11133         * modules/flock (Depends-on): Likewise.
11134         * modules/fsync (Depends-on): Likewise.
11135         * modules/isapipe (Depends-on): Likewise.
11136         * tests/test-cloexec.c: Include msvc-nothrow.h.
11137         * tests/test-dup-safer.c: Likewise.
11138         * tests/test-dup2.c: Likewise.
11139         * tests/test-dup3.c: Likewise.
11140         * tests/test-fcntl.c: Likewise.
11141         * tests/test-pipe.c: Likewise.
11142         * tests/test-pipe2.c: Likewise.
11143         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11144         * modules/unistd-safer-tests (Depends-on): Likewise.
11145         * modules/dup2-tests (Depends-on): Likewise.
11146         * modules/dup3-tests (Depends-on): Likewise.
11147         * modules/fcntl-tests (Depends-on): Likewise.
11148         * modules/pipe-posix-tests (Depends-on): Likewise.
11149         * modules/pipe2-tests (Depends-on): Likewise.
11150
11151 2011-09-23  Bruno Haible  <bruno@clisp.org>
11152
11153         dup2: Make code more maintainable.
11154         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11155         (rpl_dup2): Use it.
11156         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11157         * modules/dup2 (configure.ac): Invoke it.
11158         Reported by Paul Eggert.
11159
11160 2011-09-23  Bruno Haible  <bruno@clisp.org>
11161
11162         msvc-inval: Fix compilation error.
11163         * lib/msvc-inval.h: Include <excpt.h>.
11164
11165 2011-09-23  Bruno Haible  <bruno@clisp.org>
11166
11167         mkdir: Tweak for MSVC 9.
11168         * lib/sys_stat.in.h: Update comments.
11169         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11170
11171         Tests for module 'chdir'.
11172         * modules/chdir-tests: New file.
11173         * tests/test-chdir.c: New file.
11174
11175         New module 'chdir'.
11176         * modules/chdir: New file.
11177         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11178         (chdir): New declaration.
11179         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11180         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11181         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11182         * tests/test-unistd-c++.cc: Check signature of chdir.
11183         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11184         * modules/chdir-long (Depends-on): Add chdir.
11185         * modules/fchdir (Depends-on): Likewise.
11186         * modules/rename (Depends-on): Likewise.
11187         * modules/savewd (Depends-on): Likewise.
11188
11189         rmdir: Support for mingw, MSVC 9.
11190         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11191         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11192
11193         getcwd: Tweak for MSVC 9.
11194         * lib/unistd.in.h: Update comments.
11195         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11196
11197 2011-09-22  Bruno Haible  <bruno@clisp.org>
11198
11199         strerror_r-posix: Avoid a link error on MSVC.
11200         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11201         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11202
11203 2011-09-22  Bruno Haible  <bruno@clisp.org>
11204
11205         select: Avoid link errors on MSVC.
11206         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11207         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11208         * modules/pselect (Link): Likewise.
11209         * NEWS: Mention the change.
11210         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11211         test-select-stdin against $(LIB_SELECT).
11212         * modules/pselect-tests (Makefile.am): Link test-pselect against
11213         $(LIB_SELECT).
11214
11215 2011-09-22  Bruno Haible  <bruno@clisp.org>
11216
11217         select: Avoid compilation error on MSVC.
11218         * lib/select.c: Don't include <stdbool.h>.
11219
11220 2011-09-21  Bruno Haible  <bruno@clisp.org>
11221
11222         Consolidate all uses of PATH_MAX in *.m4 files.
11223         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11224         macros.
11225         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11226         and gl_PATHMAX_SNIPPET.
11227         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11228         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11229         * modules/chdir-long (Files): Add m4/pathmax.m4.
11230         * modules/getcwd (Files): Likewise.
11231
11232 2011-09-21  Bruno Haible  <bruno@clisp.org>
11233
11234         ftruncate: Un-deprecate, concentrate on Win32 support.
11235         * modules/ftruncate (Status, Notice): Remove sections.
11236         (Depends-on): Add largefile.
11237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11238         non-mingw platforms.
11239         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11240         include <io.h>.
11241         * modules/perror-tests (Depends-on): Add ftruncate.
11242         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11243         'ftruncate' module.
11244
11245 2011-09-21  Bruno Haible  <bruno@clisp.org>
11246
11247         Add dependencies to new dirent related modules.
11248         * modules/opendir (Depends-on): Add closedir.
11249         * modules/getcwd (Depends-on): Add opendir, closedir.
11250         * modules/dirent-safer-tests (Depends-on): Likewise.
11251         * modules/fdopendir-tests (Depends-on): Likewise.
11252         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11253         * modules/renameat-tests (Depends-on): Likewise.
11254
11255 2011-09-21  Bruno Haible  <bruno@clisp.org>
11256
11257         opendir: Avoid compilation error on mingw.
11258         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11259         * modules/opendir (Depends-on): Add unistd.
11260
11261 2011-09-21  Bruno Haible  <bruno@clisp.org>
11262
11263         ftruncate tests: Avoid a test failure on mingw.
11264         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11265
11266 2011-09-21  Bruno Haible  <bruno@clisp.org>
11267
11268         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11269         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11270         native Windows.
11271
11272 2011-09-21  Bruno Haible  <bruno@clisp.org>
11273
11274         New module 'fdopen'.
11275         * lib/stdio.in.h (fdopen): New declaration.
11276         * lib/fdopen.c: New file.
11277         * m4/fdopen.m4: New file.
11278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11279         REPLACE_FDOPEN.
11280         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11281         REPLACE_FDOPEN.
11282         * modules/fdopen: New file.
11283         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11284         * tests/test-stdio-c++.cc: Check signature of fdopen.
11285         * doc/posix-functions/fdopen.texi: Mention the new module.
11286
11287 2011-09-21  Bruno Haible  <bruno@clisp.org>
11288
11289         unlockpt tests: Avoid test failure on NetBSD 5.1.
11290         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11291         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11292
11293 2011-09-21  Bruno Haible  <bruno@clisp.org>
11294
11295         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11296         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11297         * tests/test-getlogin_r.c (main): Likewise.
11298
11299 2011-09-20  Bruno Haible  <bruno@clisp.org>
11300
11301         time tests: Don't require pid_t.
11302         * doc/posix-headers/time.texi: Revert last change.
11303         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11304         * tests/test-time.c: Comment out the check for pid_t.
11305
11306 2011-09-20  Bruno Haible  <bruno@clisp.org>
11307
11308         fsync tests: Avoid a test failure on mingw.
11309         * tests/test-fsync.c (main): Allow a failure with EIO.
11310
11311 2011-09-20  Bruno Haible  <bruno@clisp.org>
11312
11313         euidaccess: Update comments.
11314         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11315
11316 2011-09-20  Bruno Haible  <bruno@clisp.org>
11317
11318         Ensure EBADF returns for socket functions on mingw.
11319         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11320         descriptor is invalid.
11321         * lib/bind.c (rpl_bind): Likewise.
11322         * lib/connect.c (rpl_connect): Likewise.
11323         * lib/getpeername.c (rpl_getpeername): Likewise.
11324         * lib/getsockname.c (rpl_getsockname): Likewise.
11325         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11326         * lib/listen.c (rpl_listen): Likewise.
11327         * lib/recv.c (rpl_recv): Likewise.
11328         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11329         * lib/send.c (rpl_send): Likewise.
11330         * lib/sendto.c (rpl_sendto): Likewise.
11331         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11332         * lib/shutdown.c (rpl_shutdown): Likewise.
11333
11334 2011-09-20  Bruno Haible  <bruno@clisp.org>
11335
11336         select tests: EBADF tests.
11337         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11338         test_bad_fd): New functions.
11339         (test_function): Invoke also test_bad_fd.
11340
11341 2011-09-20  Bruno Haible  <bruno@clisp.org>
11342
11343         Tests for module 'posix_spawn_file_actions_addopen.
11344         * modules/posix_spawn_file_actions_addopen-tests: New file.
11345         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11346
11347         Tests for module 'posix_spawn_file_actions_adddup2'.
11348         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11349         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11350
11351         Tests for module 'posix_spawn_file_actions_addclose'.
11352         * modules/posix_spawn_file_actions_addclose-tests: New file.
11353         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11354
11355 2011-09-20  Bruno Haible  <bruno@clisp.org>
11356
11357         Tests for module 'unlockpt'.
11358         * modules/unlockpt-tests: New file.
11359         * tests/test-unlockpt.c: New file.
11360         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11361
11362         Tests for module 'grantpt'.
11363         * modules/grantpt-tests: New file.
11364         * tests/test-grantpt.c: New file.
11365         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11366
11367 2011-09-20  Bruno Haible  <bruno@clisp.org>
11368
11369         freopen tests: EBADF tests.
11370         * tests/test-freopen.c: Include errno.h, unistd.h.
11371         (main): Add tests for EBADF, commented out for the moment.
11372
11373         fclose tests: EBADF tests.
11374         * tests/test-fclose.c (main): Add tests for EBADF.
11375
11376         fflush tests: EBADF tests.
11377         * tests/test-fflush.c: Include errno.h, macros.h.
11378         (main): Add tests for EBADF.
11379
11380         ftello tests: EBADF tests.
11381         * tests/test-ftello4.sh: New file.
11382         * tests/test-ftello4.c: New file.
11383         * modules/ftello-tests (Files): Add them.
11384         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11385
11386         fseeko tests: EBADF tests.
11387         * tests/test-fseeko4.sh: New file.
11388         * tests/test-fseeko4.c: New file.
11389         * modules/fseeko-tests (Files): Add them.
11390         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11391
11392         Tests for function fputc().
11393         * modules/fputc-tests: New file.
11394         * tests/test-fputc.c: New file.
11395         * modules/stdio-tests (Depends-on): Add fputc-tests.
11396
11397         Tests for function fgetc().
11398         * modules/fgetc-tests: New file.
11399         * tests/test-fgetc.c: New file.
11400         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11401
11402         Tests for function fdopen().
11403         * modules/fdopen-tests: New file.
11404         * tests/test-fdopen.c: New file.
11405         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11406
11407         Tests for module 'vdprintf'.
11408         * modules/vdprintf-tests: New file.
11409         * tests/test-vdprintf.c: New file.
11410
11411         Tests for module 'dprintf'.
11412         * modules/dprintf-tests: New file.
11413         * tests/test-dprintf.c: New file.
11414
11415 2011-09-20  Bruno Haible  <bruno@clisp.org>
11416
11417         Tests for module 'ioctl'.
11418         * modules/ioctl-tests: New file.
11419         * tests/test-ioctl.c: New file.
11420
11421 2011-09-20  Bruno Haible  <bruno@clisp.org>
11422
11423         fcntl tests: EBADF tests.
11424         * tests/test-fcntl.c (main): Add more tests for EBADF.
11425
11426 2011-09-20  Bruno Haible  <bruno@clisp.org>
11427
11428         utimensat tests: EBADF tests.
11429         * tests/test-utimensat.c (main): Add tests for EBADF.
11430
11431         renameat tests: EBADF tests.
11432         * tests/test-renameat.c (main): Add tests for EBADF.
11433
11434         mkfifoat tests: EBADF tests.
11435         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11436
11437         readlinkat tests: EBADF tests.
11438         * tests/test-readlinkat.c (main): Add tests for EBADF.
11439
11440         symlinkat tests: EBADF tests.
11441         * tests/test-symlinkat.c (main): Add tests for EBADF.
11442
11443         linkat tests: EBADF tests.
11444         * tests/test-linkat.c (main): Add tests for EBADF.
11445
11446         Tests for module 'faccessat'.
11447         * modules/faccessat-tests: New file.
11448         * tests/test-faccessat.c: New file.
11449
11450         fdopendir tests: EBADF tests.
11451         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11452
11453         openat tests: EBADF tests.
11454         * tests/test-fchownat.c (main): Add tests for EBADF.
11455         * tests/test-fstatat.c (main): Likewise.
11456         * tests/test-mkdirat.c (main): Likewise.
11457         * tests/test-openat.c (main): Likewise.
11458         * tests/test-unlinkat.c (main): Likewise.
11459         * tests/test-fchmodat.c: New file.
11460         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11461         (Makefile.am): Also run 'test-fchmodat'.
11462
11463 2011-09-20  Bruno Haible  <bruno@clisp.org>
11464
11465         utimens, futimens, fdutimensat tests: EBADF tests.
11466         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11467
11468         Tests for function fstat().
11469         * modules/fstat-tests: New file.
11470         * tests/test-fstat.c: New file.
11471         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11472
11473 2011-09-20  Bruno Haible  <bruno@clisp.org>
11474
11475         test-ttyname_r tests: EBADF tests.
11476         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11477
11478         Tests for module 'isatty'.
11479         * modules/isatty-tests: New file.
11480         * tests/test-isatty.c: New file.
11481
11482         Tests for module 'write'.
11483         * modules/write-tests: New file.
11484         * tests/test-write.c: New file.
11485
11486         Tests for module 'read'.
11487         * modules/read-tests: New file.
11488         * tests/test-read.c: New file.
11489
11490         pwrite tests: EBADF tests.
11491         * tests/test-pwrite.c (main): Add tests for EBADF.
11492
11493         pread tests: EBADF tests.
11494         * tests/test-pread.c (main): Add tests for EBADF.
11495
11496         lseek tests: EBADF tests.
11497         * tests/test-lseek.c (main): Add more tests for EBADF.
11498
11499         Tests for module 'ftruncate'.
11500         * modules/ftruncate-tests: New file.
11501         * tests/test-ftruncate.sh: New file.
11502         * tests/test-ftruncate.c: New file.
11503
11504         fsync tests: EBADF tests.
11505         * tests/test-fsync.c (main): Add more tests for EBADF.
11506
11507         fdatasync tests: EBADF tests.
11508         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11509
11510         Tests for module 'fchown'.
11511         * modules/fchown-tests: New file.
11512         * tests/test-fchown.c: New file.
11513
11514         Tests for module 'fchmod'.
11515         * modules/fchmod-tests: New file.
11516         * tests/test-fchmod.c: New file.
11517
11518         fchdir tests: EBADF tests.
11519         * tests/test-fchdir.c (main): Add more tests for EBADF.
11520
11521         dup2 tests: EBADF tests.
11522         * tests/test-dup2.c (main): Add more tests for EBADF.
11523
11524         Tests for module 'dup'.
11525         * modules/dup-tests: New file.
11526         * tests/test-dup.c: New file.
11527
11528         Tests for module 'close'.
11529         * modules/close-tests: New file.
11530         * tests/test-close.c: New file.
11531
11532 2011-09-20  Bruno Haible  <bruno@clisp.org>
11533
11534         Tests for module 'shutdown'.
11535         * modules/shutdown-tests: New file.
11536         * tests/test-shutdown.c: New file.
11537
11538         Tests for module 'setsockopt'.
11539         * modules/setsockopt-tests: New file.
11540         * tests/test-setsockopt.c: New file.
11541
11542         Tests for module 'sendto'.
11543         * modules/sendto-tests: New file.
11544         * tests/test-sendto.c: New file.
11545
11546         Tests for module 'send'.
11547         * modules/send-tests: New file.
11548         * tests/test-send.c: New file.
11549
11550         Tests for module 'recvfrom'.
11551         * modules/recvfrom-tests: New file.
11552         * tests/test-recvfrom.c: New file.
11553
11554         Tests for module 'recv'.
11555         * modules/recv-tests: New file.
11556         * tests/test-recv.c: New file.
11557
11558         Tests for module 'listen'.
11559         * modules/listen-tests: New file.
11560         * tests/test-listen.c: New file.
11561
11562         Tests for module 'getsockopt'.
11563         * modules/getsockopt-tests: New file.
11564         * tests/test-getsockopt.c: New file.
11565
11566         Tests for module 'getsockname'.
11567         * modules/getsockname-tests: New file.
11568         * tests/test-getsockname.c: New file.
11569
11570         Tests for module 'getpeername'.
11571         * modules/getpeername-tests: New file.
11572         * tests/test-getpeername.c: New file.
11573
11574         Tests for module 'connect'.
11575         * modules/connect-tests: New file.
11576         * tests/test-connect.c: New file.
11577
11578         Tests for module 'bind'.
11579         * modules/bind-tests: New file.
11580         * tests/test-bind.c: New file.
11581
11582         accept4 tests: Fix for native Windows.
11583         * tests/test-accept4.c: Include sockets.h.
11584         (main): Invoke gl_sockets_startup.
11585         * modules/accept4-tests (Depends-on): Add sockets.
11586
11587         accept tests: Fix for native Windows.
11588         * tests/test-accept.c: Include sockets.h.
11589         (main): Invoke gl_sockets_startup.
11590         * modules/accept-tests (Depends-on): Add sockets.
11591
11592 2011-09-19  Bruno Haible  <bruno@clisp.org>
11593
11594         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11595         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11596         do...while(0).
11597         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11598         Suggested by Paul Eggert.
11599
11600 2011-09-19  Bruno Haible  <bruno@clisp.org>
11601
11602         sched: Ensure pid_t is defined.
11603         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11604         not define pid_t.
11605         * lib/sched.in.h: Include <sys/types.h>.
11606         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11608
11609 2011-09-19  Bruno Haible  <bruno@clisp.org>
11610
11611         msvc-inval: Ensure the entire expansion is a single statement.
11612         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11613         of braces.
11614
11615 2011-09-19  Jim Meyering  <meyering@redhat.com>
11616
11617         tests: use printf, not echo in init.sh's warn_ function
11618         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11619         misbehave when given strings containing a backslash or starting
11620         with e.g., -n.  James Youngman suggested setting IFS.
11621
11622 2011-09-19  Eric Blake  <eblake@redhat.com>
11623
11624         futimens: enhance test
11625         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11626         closed non-negative fd.
11627
11628         date: accept 'hence' as opposite of 'ago'
11629         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11630         * tests/test-parse-datetime.c (main): Enhance test.
11631         Suggested by Jesse Wilson.
11632
11633 2011-09-19  Jim Meyering  <meyering@redhat.com>
11634
11635         getcwd: don't fail in a deep directory on a system without openat
11636         Before this change, getcwd would fail when called from a directory
11637         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11638         the non-openat implementation used "..", "../..", "../../..", etc.
11639         to access ancestor directories.  With too many, that string would
11640         be longer than PATH_MAX.
11641         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11642         using gnulib's openat replacement.
11643         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11644         we're using the replacement function.
11645
11646 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11647
11648         maint.mk: avoid warnings from perl about missing files
11649         * top/maint.mk (def_sym_regex): Ignore files listed in
11650         $(gl_other_headers_) that do not exist, say because a project
11651         does not use a corresponding module.
11652
11653 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11654
11655         stat: use pathmax.h only if needed
11656         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11657         This is better for Emacs, which does not have a mingw port and
11658         therefore can avoid the pathmax module.
11659
11660         utimens: remove dependency on dup2
11661         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11662         to work around the Linux kernel bug.
11663         * modules/utimens (Depends-on): Remove dup2.
11664
11665 2011-09-18  Bruno Haible  <bruno@clisp.org>
11666
11667         inet_ntop, inet_pton: Look for it also in libresolv.
11668         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11669         libnsl, search for it in libresolv.
11670         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11671         Needed on Solaris 7.
11672
11673 2011-09-18  Bruno Haible  <bruno@clisp.org>
11674
11675         accept, accept4 tests: Avoid link error on Solaris.
11676         * modules/accept-tests (Makefile.am): Link test-accept against
11677         $(LIBSOCKET).
11678         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11679         $(LIBSOCKET).
11680
11681         accept4: Avoid link error on Solaris.
11682         * modules/accept4 (Link): New section.
11683
11684         socket functions: Avoid link errors on Solaris.
11685         * modules/accept (Depends-on): Add socketlib.
11686         (Link): New section.
11687         * modules/bind (Depends-on): Add socketlib.
11688         (Link): New section.
11689         * modules/connect (Depends-on): Add socketlib.
11690         (Link): New section.
11691         * modules/getpeername (Depends-on): Add socketlib.
11692         (Link): New section.
11693         * modules/getsockname (Depends-on): Add socketlib.
11694         (Link): New section.
11695         * modules/getsockopt (Depends-on): Add socketlib.
11696         (Link): New section.
11697         * modules/listen (Depends-on): Add socketlib.
11698         (Link): New section.
11699         * modules/recv (Depends-on): Add socketlib.
11700         (Link): New section.
11701         * modules/recvfrom (Depends-on): Add socketlib.
11702         (Link): New section.
11703         * modules/send (Depends-on): Add socketlib.
11704         (Link): New section.
11705         * modules/sendto (Depends-on): Add socketlib.
11706         (Link): New section.
11707         * modules/setsockopt (Depends-on): Add socketlib.
11708         (Link): New section.
11709         * modules/shutdown (Depends-on): Add socketlib.
11710         (Link): New section.
11711         * modules/socket (Depends-on): Add socketlib.
11712         (Link): New section.
11713
11714 2011-09-18  Bruno Haible  <bruno@clisp.org>
11715
11716         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11717         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11718         than 5 seconds.
11719         * modules/ptsname-tests (configure.ac): Test for alarm.
11720
11721 2011-09-18  Bruno Haible  <bruno@clisp.org>
11722
11723         posix_spawn_file_actions_add*: Fix module dependencies.
11724         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11725         posix_spawn_file_actions_init.
11726         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11727         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11728
11729 2011-09-18  Bruno Haible  <bruno@clisp.org>
11730
11731         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11732         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11733         * tests/test-renameat.c (main): Likewise.
11734
11735 2011-09-18  Bruno Haible  <bruno@clisp.org>
11736
11737         Tests for module 'accept4'.
11738         * modules/accept4-tests: New file.
11739         * tests/test-accept4.c: New file.
11740
11741 2011-09-18  Bruno Haible  <bruno@clisp.org>
11742
11743         Tests for module 'accept'.
11744         * modules/accept-tests: New file.
11745         * tests/test-accept.c: New file.
11746
11747 2011-09-18  Bruno Haible  <bruno@clisp.org>
11748
11749         dup2: Support for MSVC.
11750         * lib/dup2.c: Include msvc-inval.h.
11751         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11752         _get_osfhandle calls.
11753         * modules/dup2 (Depends-on): Add msvc-inval.
11754         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11755
11756         New module 'msvc-inval'.
11757         * lib/msvc-inval.h: New file.
11758         * lib/msvc-inval.c: New file.
11759         * m4/msvc-inval.m4: New file.
11760         * modules/msvc-inval: New file.
11761
11762 2011-09-17  Bruno Haible  <bruno@clisp.org>
11763
11764         Tests for module 'pclose'.
11765         * modules/pclose-tests: New file.
11766
11767         New module 'pclose'.
11768         * lib/stdio.in.h (pclose): New declaration.
11769         * lib/pclose.c: New file.
11770         * m4/pclose.m4: New file.
11771         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11772         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11773         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11774         * modules/pclose: New file.
11775         * modules/popen-tests (Depends-on): Add pclose.
11776         * modules/popen-safer-tests (Depends-on): Likewise.
11777         * doc/posix-functions/pclose.texi: Mention the new module.
11778
11779 2011-09-17  Bruno Haible  <bruno@clisp.org>
11780
11781         popen: Support for MSVC.
11782         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11783         * lib/popen.c (popen): Provide alternate definition for native Windows.
11784         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11786         * modules/popen (Depends-on, configure.ac): Update condition.
11787         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11788         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11789         fixed.
11790
11791 2011-09-17  Bruno Haible  <bruno@clisp.org>
11792
11793         isnanl, isnand, isnanf: Work around MSVC bug.
11794         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11795
11796 2011-09-17  Bruno Haible  <bruno@clisp.org>
11797
11798         sys_socket tests: Fix recent mistake.
11799         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11800
11801 2011-09-17  Bruno Haible  <bruno@clisp.org>
11802
11803         putenv: Support for MSVC.
11804         * modules/putenv (Depends-on): Add environ.
11805         * lib/putenv.c (environ): Disable declaration.
11806         * lib/unistd.in.h: Update comment.
11807
11808 2011-09-17  Bruno Haible  <bruno@clisp.org>
11809
11810         math: Avoid macro redefinition warnings on MSVC.
11811         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11812         Undefine before redefining.
11813
11814 2011-09-17  Bruno Haible  <bruno@clisp.org>
11815
11816         doc: Mention functions which are declared as macros.
11817         * doc/posix-functions/*[fl].texi: Mention that some functions are
11818         defined as macros with arguments only.
11819
11820 2011-09-17  Bruno Haible  <bruno@clisp.org>
11821
11822         Add dependencies to new dirent related modules.
11823         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11824         * modules/fts (Depends-on): Likewise.
11825         * modules/glob (Depends-on): Likewise.
11826         * modules/savedir (Depends-on): Likewise.
11827         * modules/scandir (Depends-on): Likewise.
11828         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11829         * modules/fdopendir (Depends-on): Add opendir.
11830
11831 2011-09-17  Bruno Haible  <bruno@clisp.org>
11832
11833         inet_pton: Support for MSVC on Windows Vista or newer.
11834         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11835         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11836         HAVE_DECL_INET_PTON is defined.
11837         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11838         On platforms with <winsock2.h>, test whether inet_pton is declared in
11839         <ws2tcpip.h>. If so, arrange to replace it.
11840         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11841         REPLACE_INET_PTON.
11842         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11843         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11844         (Depends-on, configure.ac): Update condition.
11845         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11846
11847 2011-09-17  Bruno Haible  <bruno@clisp.org>
11848
11849         inet_ntop: Support for MSVC on Windows Vista or newer.
11850         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11851         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11852         HAVE_DECL_INET_NTOP is defined.
11853         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11854         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11855         <ws2tcpip.h>. If so, arrange to replace it.
11856         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11857         REPLACE_INET_NTOP.
11858         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11859         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11860         (Depends-on, configure.ac): Update condition.
11861         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11862
11863 2011-09-16  Eric Blake  <eblake@redhat.com>
11864
11865         test-fsync: yet another enhancement
11866         * tests/test-fsync.c (main): Also test behavior on read-only text
11867         file.
11868
11869 2011-09-16  Bruno Haible  <bruno@clisp.org>
11870
11871         Enhance fsync, fdatasync tests.
11872         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11873         * tests/test-fdatasync.c (main): Likewise.
11874
11875 2011-09-16  Bruno Haible  <bruno@clisp.org>
11876
11877         Support for MSVC compiler: Ensure mode_t gets defined.
11878         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11879         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11881         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11882         * tests/test-fcntl-h.c: Check that mode_t is defined.
11883         * tests/test-sys_stat.c: Likewise.
11884         * tests/test-sys_types.c: Likewise.
11885         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11886         * doc/posix-headers/sys_stat.texi: Likewise.
11887         * doc/posix-headers/sys_types.texi: Likewise.
11888
11889 2011-09-16  Bruno Haible  <bruno@clisp.org>
11890
11891         sys_stat: Support for MSVC.
11892         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11893         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11894         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11895         MSVC.
11896
11897 2011-09-16  Bruno Haible  <bruno@clisp.org>
11898
11899         Support for MSVC compiler: Ensure off_t gets defined.
11900         * lib/unistd.in.h: Include <sys/types.h>.
11901         * tests/test-fcntl-h.c: Check that off_t is defined.
11902         * tests/test-sys_stat.c: Likewise.
11903         * tests/test-sys_types.c: Likewise.
11904
11905 2011-09-16  Eric Blake  <eblake@redhat.com>
11906
11907         fdatasync: port to Solaris
11908         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11909         * modules/fdatasync (Link): Document it.
11910         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11911
11912         fdatasync: port to MacOS X 10.7
11913         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11914         declared.
11915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11916         * modules/unistd (Makefile.am): Substitute it.
11917         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11918         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11919
11920         fdatasync: minor improvements
11921         * modules/fdatasync (Depends-on): Add condition for fsync.
11922         * lib/fdatasync.c (fdatasync): Add comment.
11923         * tests/test-unistd-c++.cc: Test fdatasync.
11924
11925         unistd: update refs to newer POSIX
11926         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11927         Suggested by Bruno Haible.
11928
11929         fdatasync: new module
11930         * modules/fsync (Description): Document difference to fdatasync.
11931         * modules/fdatasync: New module.
11932         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11933         * lib/fdatasync.c (fdatasync): Likewise.
11934         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11935         defaults.
11936         * modules/unistd (Makefile.am): Set witnesses.
11937         * lib/unistd.in.h (fdatasync): Declare.
11938         * MODULES.html.sh: Document it.
11939         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11940         * modules/fdatasync-tests: New test.
11941         * tests/test-fdatasync.c: Likewise.
11942
11943 2011-09-16  Eric Blake  <eblake@redhat.com>
11944
11945         test-fsync: enhance tests
11946         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11947         * tests/test-fsync.c (main): Enhance test.
11948
11949 2011-09-15  Bruno Haible  <bruno@clisp.org>
11950
11951         Support for MSVC compiler: Ensure ssize_t gets defined.
11952         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11953         * doc/posix-headers/stdio.texi: Likewise.
11954         * modules/stdio (Depends-on): Add ssize_t.
11955         * modules/sys_socket (Depends-on): Likewise.
11956         * modules/sys_types (Depends-on): Likewise.
11957         * modules/sys_uio (Depends-on): Likewise.
11958         * modules/unistd (Depends-on): Likewise.
11959         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11960         * tests/test-sys_types.c: Check that ssize_t is defined.
11961
11962 2011-09-14  Bruno Haible  <bruno@clisp.org>
11963
11964         Avoid using #, the m4 comment starter character, near brackets.
11965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11966         delimiter character in sed expressions.
11967         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11968         Suggested by Eric Blake.
11969
11970         Properly quote AC_CHECK_DECLS' 4th argument.
11971         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11972         argument.
11973         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11974         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11976         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11977         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11978         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11980         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11981         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11982         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11983         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11984         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11985         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11986         * m4/isinf.m4 (gl_ISINF): Likewise.
11987         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11988         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11989         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11990         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11993         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11994         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11995         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11996         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11997         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11998         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12000         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12002         Reported by Eric Blake.
12003
12004         Properly quote AC_CHECK_DECL's 4th argument.
12005         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12006         argument.
12007         * m4/argp.m4 (gl_ARGP): Likewise.
12008         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12009         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12010         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12011         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12012         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12013         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12014         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12015         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12016         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12017         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12019         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12020         Reported by Eric Blake.
12021
12022 2011-09-14  Eric Blake  <eblake@redhat.com>
12023
12024         opendir: avoid compile warning
12025         * lib/opendir.c (includes): Always include errno.h.
12026         Reported by Tatsuro MATSUOKA.
12027
12028 2011-09-14  Jim Meyering  <meyering@redhat.com>
12029
12030         maint.mk: sc_tight_scope: propagate failure from sub-make
12031         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12032         Reported by Martin von Gagern.
12033
12034 2011-09-13  Bruno Haible  <bruno@clisp.org>
12035
12036         tempname: Support for MSVC.
12037         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12038         MSVC.
12039         * modules/tempname (Depends-on): Add fcntl-h.
12040
12041 2011-09-13  Bruno Haible  <bruno@clisp.org>
12042
12043         sys_time: Support for MSVC.
12044         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12045         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12046         include <winsock2.h>.
12047         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12048         function declarations that collide with POSIX.
12049         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12050         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12051
12052 2011-09-13  Bruno Haible  <bruno@clisp.org>
12053
12054         stat: Support for MSVC.
12055         * lib/stat.c: Include pathmax.h.
12056         * modules/stat (Depends-on): Add pathmax.
12057
12058         pathmax: Support for native Windows.
12059         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12060
12061 2011-09-12  Bruno Haible  <bruno@clisp.org>
12062
12063         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12064         * lib/dirent.in.h (struct dirent): New type.
12065         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12066         DT_WHT): New macros.
12067         (DIR): New type.
12068         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12069         (readdir, rewinddir): New declarations.
12070         * lib/dirent-private.h: New file.
12071         * lib/opendir.c: New file.
12072         * lib/readdir.c: New file.
12073         * lib/rewinddir.c: New file.
12074         * lib/closedir.c: New file.
12075         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12076         * m4/opendir.m4: New file.
12077         * m4/readdir.m4: New file.
12078         * m4/rewinddir.m4: New file.
12079         * m4/closedir.m4: New file.
12080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12081         REPLACE_CLOSEDIR here.
12082         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12083         readdir, rewinddir are declared.
12084         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12085         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12086         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12087         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12088         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12089         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12090         * modules/opendir: New file.
12091         * modules/readdir: New file.
12092         * modules/rewinddir: New file.
12093         * modules/closedir: New file.
12094         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12095         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12096         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12097         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12098         * NEWS: Mention the 'fchdir' change.
12099
12100 2011-09-11  Bruno Haible  <bruno@clisp.org>
12101
12102         asm-underscore.m4: Support for MSVC.
12103         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12104         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12105
12106 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12107
12108         Doc about crypt functions.
12109         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12110         needing for _GNU_SOURCE to get crypt.
12111         * doc/posix-functions/encrypt.texi: Likewise.
12112         * doc/posix-functions/setkey.texi: Likewise.
12113
12114 2011-09-11  Bruno Haible  <bruno@clisp.org>
12115
12116         doc: Update regarding MSVC 9.
12117         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12118         tested".
12119         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12120         * doc/posix-headers/*.texi: Likewise.
12121         * doc/pastposix-functions/*.texi: Likewise.
12122         * doc/glibc-functions/*.texi: Likewise.
12123         * doc/glibc-headers/*.texi: Likewise.
12124
12125 2011-09-11  Bruno Haible  <bruno@clisp.org>
12126
12127         unistd et al.: Don't assume <unistd.h> exists.
12128         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12129         does not exist.
12130         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12131         exist. But include <stdlib.h>.
12132         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12133         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12134         symlink() does not exist.
12135         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12136         include <io.h> instead.
12137         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12138         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12139         include <direct.h> instead.
12140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12142         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12143         <io.h> instead.
12144         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12145         correctly if the system does not have hard links.
12146         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12147         <direct.h> instead.
12148         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12149         it when looking for function declarations.
12150         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12151         <direct.h> and <io.h> instead.
12152         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12153
12154 2011-09-11  Bruno Haible  <bruno@clisp.org>
12155
12156         strcase: Support for MSVC.
12157         * modules/strcase (Status, Notice): Remove obsoletion mark.
12158         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12159         * doc/posix-functions/strncasecmp.texi: Likewise.
12160
12161         strings: Don't assume <strings.h> exists.
12162         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12163         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12164         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12165         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12166
12167 2011-09-11  Bruno Haible  <bruno@clisp.org>
12168
12169         dirent: Don't assume <dirent.h> exists.
12170         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12171         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12172         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12173         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12174
12175 2011-09-11  Bruno Haible  <bruno@clisp.org>
12176
12177         Fix wint_t on MSVC.
12178         * lib/wchar.in.h (wint_t): On MSVC, override it.
12179         * lib/wctype.in.h (wint_t): Likewise.
12180         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12181         MSVC.
12182         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12183         * doc/posix-headers/wctype.texi: Likewise.
12184
12185 2011-09-11  Bruno Haible  <bruno@clisp.org>
12186
12187         sys_types: Fix typo.
12188         * lib/sys_types.in.h: Fix typo in comment.
12189         Reported by Paul Eggert.
12190
12191         Support for MSVC compiler: Ensure size_t gets defined.
12192         * modules/strings (Depends-on): Add 'sys_types'.
12193         * modules/sys_uio (Depends-on): Likewise.
12194         * lib/sys_uio.in.h: Update comment.
12195
12196         C++ tests for module 'sys_types'.
12197         * modules/sys_types-c++-tests: New file.
12198         * tests/test-sys_types-c++.cc: New file.
12199
12200         Tests for module 'sys_types'.
12201         * modules/sys_types-tests: New file.
12202         * tests/test-sys_types.c: New file.
12203
12204         New module 'sys_types'.
12205         * lib/sys_types.in.h: New file.
12206         * m4/sys_types_h.m4: New file.
12207         * modules/sys_types: New file.
12208         * doc/posix-headers/sys_types.texi: Mention the new module and the
12209         size_t problem on MSVC 9.
12210
12211 2011-09-11  Bruno Haible  <bruno@clisp.org>
12212
12213         Support for MSVC compiler: Avoid division by a literal 0.
12214         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12215         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12216         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12217         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12218         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12219         * tests/infinity.h: New file.
12220         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12221         on MSVC.
12222         * tests/test-ceilf1.c: Include infinity.h.
12223         (main): Use Infinityf.
12224         * tests/test-ceil1.c: Include infinity.h.
12225         (main): Use Infinityd.
12226         * tests/test-ceill.c: Include infinity.h.
12227         (main): Use Infinityl.
12228         * tests/test-dprintf-posix.c: Include infinity.h.
12229         (test_function): Use Infinityd.
12230         * tests/test-floorf1.c: Include infinity.h.
12231         (main): Use Infinityf.
12232         * tests/test-floor1.c: Include infinity.h.
12233         (main): Use Infinityd.
12234         * tests/test-floorl.c: Include infinity.h.
12235         (main): Use Infinityl.
12236         * tests/test-fprintf-posix.c: Include infinity.h.
12237         (test_function): Use Infinityd.
12238         * tests/test-frexp.c: Include infinity.h.
12239         (main): Use Infinityd.
12240         * tests/test-frexpl.c: Include infinity.h.
12241         (main): Use Infinityl.
12242         * tests/test-isfinite.c: Include infinity.h.
12243         (test_isfinitef): Use Infinityf.
12244         (test_isfinited): Use Infinityd.
12245         (test_isfinitel): Use Infinityl.
12246         * tests/test-isinf.c: Include infinity.h.
12247         (test_isinff): Use Infinityf.
12248         (test_isinfd): Use Infinityd.
12249         (test_isinfl): Use Infinityl.
12250         * tests/test-isnan.c: Include infinity.h.
12251         (test_float): Use Infinityf.
12252         (test_double): Use Infinityd.
12253         (test_long_double): Use Infinityl.
12254         * tests/test-isnanf.h: Include infinity.h.
12255         (main): Use Infinityf.
12256         * tests/test-isnand.h: Include infinity.h.
12257         (main): Use Infinityd.
12258         * tests/test-isnanl.h: Include infinity.h.
12259         (main): Use Infinityl.
12260         * tests/test-ldexpl.c: Include infinity.h.
12261         (main): Use Infinityl.
12262         * tests/test-printf-posix.h: Include infinity.h.
12263         (test_function): Use Infinityd.
12264         * tests/test-roundf1.c: Include infinity.h.
12265         (main): Use Infinityf.
12266         * tests/test-round1.c: Include infinity.h.
12267         (main): Use Infinityd.
12268         * tests/test-roundl.c: Include infinity.h.
12269         (main): Use Infinityl.
12270         * tests/test-signbit.c: Include infinity.h.
12271         (test_signbitf): Use Infinityf.
12272         (test_signbitd): Use Infinityd.
12273         (test_signbitl): Use Infinityl.
12274         * tests/test-snprintf-posix.h: Include infinity.h.
12275         (test_function): Use Infinityd, Infinityl.
12276         * tests/test-sprintf-posix.h: Include infinity.h.
12277         (test_function): Use Infinityd, Infinityl.
12278         * tests/test-truncf1.c: Include infinity.h.
12279         (main): Use Infinityf.
12280         * tests/test-trunc1.c: Include infinity.h.
12281         (main): Use Infinityd.
12282         * tests/test-truncl.c: Include infinity.h.
12283         (main): Use Infinityl.
12284         * tests/test-vasnprintf-posix.c: Include infinity.h.
12285         (test_function): Use Infinityd, Infinityl.
12286         * tests/test-vasprintf-posix.c: Include infinity.h.
12287         (test_function): Use Infinityd, Infinityl.
12288         * modules/ceilf-tests (Files): Add tests/infinity.h.
12289         * modules/ceil-tests (Files): Likewise.
12290         * modules/ceill-tests (Files): Likewise.
12291         * modules/dprintf-posix-tests (Files): Likewise.
12292         * modules/floorf-tests (Files): Likewise.
12293         * modules/floor-tests (Files): Likewise.
12294         * modules/floorl-tests (Files): Likewise.
12295         * modules/fprintf-posix-tests (Files): Likewise.
12296         * modules/frexp-tests (Files): Likewise.
12297         * modules/frexp-nolibm-tests (Files): Likewise.
12298         * modules/frexpl-tests (Files): Likewise.
12299         * modules/frexpl-nolibm-tests (Files): Likewise.
12300         * modules/isfinite-tests (Files): Likewise.
12301         * modules/isinf-tests (Files): Likewise.
12302         * modules/isnan-tests (Files): Likewise.
12303         * modules/isnanf-tests (Files): Likewise.
12304         * modules/isnanf-nolibm-tests (Files): Likewise.
12305         * modules/isnand-tests (Files): Likewise.
12306         * modules/isnand-nolibm-tests (Files): Likewise.
12307         * modules/isnanl-tests (Files): Likewise.
12308         * modules/isnanl-nolibm-tests (Files): Likewise.
12309         * modules/ldexpl-tests (Files): Likewise.
12310         * modules/printf-posix-tests (Files): Likewise.
12311         * modules/roundf-tests (Files): Likewise.
12312         * modules/round-tests (Files): Likewise.
12313         * modules/roundl-tests (Files): Likewise.
12314         * modules/signbit-tests (Files): Likewise.
12315         * modules/snprintf-posix-tests (Files): Likewise.
12316         * modules/sprintf-posix-tests (Files): Likewise.
12317         * modules/truncf-tests (Files): Likewise.
12318         * modules/trunc-tests (Files): Likewise.
12319         * modules/truncl-tests (Files): Likewise.
12320         * modules/vasnprintf-posix-tests (Files): Likewise.
12321         * modules/vasprintf-posix-tests (Files): Likewise.
12322         * modules/vdprintf-posix-tests (Files): Likewise.
12323         * modules/vfprintf-posix-tests (Files): Likewise.
12324         * modules/vprintf-posix-tests (Files): Likewise.
12325         * modules/vsnprintf-posix-tests (Files): Likewise.
12326         * modules/vsprintf-posix-tests (Files): Likewise.
12327         * modules/xprintf-posix-tests (Files): Likewise.
12328
12329 2011-09-11  Bruno Haible  <bruno@clisp.org>
12330
12331         Ensure pid_t gets defined.
12332         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12333         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12334         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12335         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12336         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12337         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12338         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12339         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12340         * tests/test-fcntl-h.c: Check that pid_t is defined.
12341         * tests/test-sched.c: Likewise.
12342         * tests/test-termios.c: Likewise.
12343         * tests/test-time.c: Likewise.
12344         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12345         * doc/posix-headers/signal.texi: Likewise.
12346         * doc/posix-headers/sys_types.texi: Likewise.
12347         * doc/posix-headers/time.texi: Likewise.
12348
12349 2011-09-11  Bruno Haible  <bruno@clisp.org>
12350
12351         acl: Fix compilation on Solaris 10 (older version).
12352         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12353         of ACE_EVERYONE.
12354         * lib/set-mode-acl.c (qset_acl): Likewise.
12355         Reported by Christian Jullien <eligis@orange.fr>.
12356
12357 2011-09-10  Bruno Haible  <bruno@clisp.org>
12358
12359         iconv, unsetenv: Add support for MSVC compiler.
12360         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12361         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12362
12363 2011-09-10  Bruno Haible  <bruno@clisp.org>
12364
12365         *printf: Add support for MSVC compiler.
12366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12367         handles the exception caused by the %n directive. When cross-compiling,
12368         guess no on native Windows.
12369         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12370         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12371         emulate it through vsnprintf.
12372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12373         * doc/posix-functions/dprintf.texi: Update documentation regarding
12374         MSVC 9.
12375         * doc/posix-functions/fprintf.texi: Likewise.
12376         * doc/posix-functions/printf.texi: Likewise.
12377         * doc/posix-functions/snprintf.texi: Likewise.
12378         * doc/posix-functions/sprintf.texi: Likewise.
12379         * doc/posix-functions/swprintf.texi: Likewise.
12380         * doc/posix-functions/vdprintf.texi: Likewise.
12381         * doc/posix-functions/vfprintf.texi: Likewise.
12382         * doc/posix-functions/vprintf.texi: Likewise.
12383         * doc/posix-functions/vsnprintf.texi: Likewise.
12384         * doc/posix-functions/vsprintf.texi: Likewise.
12385         * doc/glibc-functions/asprintf.texi: Likewise.
12386         * doc/glibc-functions/obstack_printf.texi: Likewise.
12387         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12388         * doc/glibc-functions/vasprintf.texi: Likewise.
12389
12390 2011-09-10  Bruno Haible  <bruno@clisp.org>
12391
12392         nocrash: Add support for native Windows.
12393         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12394
12395 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12396             Bruno Haible  <bruno@clisp.org>
12397
12398         absolute-header, include-next: Add support for MSVC compiler.
12399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12400         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12401         directory separator in #line directives.
12402         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12403         recognize also backslash as directory separator in #line directives.
12404
12405 2011-09-08  Jim Meyering  <meyering@redhat.com>
12406
12407         maint.mk: mark the post-release commit log with "maint: " prefix
12408         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12409         one-line commit-log summary.
12410
12411 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12412             Bruno Haible  <bruno@clisp.org>
12413
12414         Doc about crypt functions.
12415         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12416         systems.
12417         * doc/posix-functions/encrypt.texi: Likewise.
12418         * doc/posix-functions/setkey.texi: Likewise.
12419
12420 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12421
12422         * lib/gc.h: Fix copyright header.
12423
12424 2011-09-07  Bruno Haible  <bruno@clisp.org>
12425
12426         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12427         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12428         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12429
12430 2011-09-07  Bruno Haible  <bruno@clisp.org>
12431
12432         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12433         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12434         * lib/freopen.c: Likewise.
12435         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12436         * lib/lstat.c: Likewise.
12437         * lib/stat.c: Likewise.
12438         * lib/open.c: Use different syntax for include of <fcntl.h>.
12439         * lib/openat.c: Include fcntl.h again, explicitly.
12440
12441 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12442
12443         parse-datetime: document the newly accepted format
12444         * doc/parse-datetime.texi (Combined date and time of day items):
12445         New section.
12446
12447 2011-09-06  Bruno Haible  <bruno@clisp.org>
12448
12449         acl: Fix a test failure on newer Solaris 10 with ZFS.
12450         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12451         ENOSYS as no ACL.
12452         Reported by Jim Meyering.
12453
12454 2011-09-06  Bruno Haible  <bruno@clisp.org>
12455
12456         acl: Update for AIX >= 5.3 with NFS.
12457         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12458         ENOSYS as no ACL.
12459
12460         acl: Fix a test failure on AIX >= 5.3 with NFS.
12461         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12462         as no ACL.
12463
12464 2011-09-06  Bruno Haible  <bruno@clisp.org>
12465
12466         acl: Fix a test failure on IRIX 6.5 with NFS.
12467         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12468         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12469         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12470         * lib/copy-acl.c (qcopy_acl): Likewise.
12471
12472 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12473
12474         openat: port to AIX 7.1 with large files
12475         AIX 7.1 does a "#define openat open64at" if large files are in use,
12476         so we can't simply #undef openat.  Use the orig_openat trick (similar
12477         to orig_open in lib/open.c) to work around the problem.  Problem
12478         reported by Kevin Brott for GNU tar, in the thread containing
12479         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12480         * lib/openat.c (__need_system_fcntl_h): Define first.
12481         Include <fcntl.h> and <sys/types.h> before undefining.
12482         (orig_openat) [HAVE_OPENAT]: New inline function.
12483         (openat) [HAVE_OPENAT]: Do not undef.
12484         (rpl_openat): Use orig_openat, not openat.
12485
12486 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12487             Bruno Haible  <bruno@clisp.org>
12488
12489         acl: Avoid errors on NonStop Kernel.
12490         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12491         ENOTSUP errors.
12492
12493 2011-09-05  Bruno Haible  <bruno@clisp.org>
12494
12495         acl: Clean up Solaris code.
12496         * lib/acl-internal.h: Remove no-op #if.
12497         * lib/file-has-acl.c: Likewise.
12498         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12499         * lib/copy-acl.c (qcopy_acl): Likewise.
12500
12501 2011-09-05  Bruno Haible  <bruno@clisp.org>
12502
12503         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12504         binaries built on the original Solaris 10.
12505         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12506         trivial.
12507
12508 2011-09-05  Bruno Haible  <bruno@clisp.org>
12509
12510         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12511         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12512         10.
12513         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12514         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12515         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12516         instead of acl_get, facl_get, acl_set, facl_set.
12517
12518 2011-09-05  Bruno Haible  <bruno@clisp.org>
12519
12520         copy-file: Try unit tests on more file systems.
12521         * tests/test-copy-file-1.sh: New file.
12522         * tests/test-copy-file-2.sh: New file.
12523         * modules/copy-file-tests (Files): Add them.
12524         (Makefile.am): Add them to TESTS.
12525
12526         acl: Try unit tests on more file systems.
12527         * tests/test-file-has-acl-1.sh: New file.
12528         * tests/test-file-has-acl-2.sh: New file.
12529         * tests/test-set-mode-acl-1.sh: New file.
12530         * tests/test-set-mode-acl-2.sh: New file.
12531         * tests/test-copy-acl-1.sh: New file.
12532         * tests/test-copy-acl-2.sh: New file.
12533         * modules/acl-tests (Files): Add them.
12534         (Makefile.am): Add them to TESTS.
12535
12536 2011-09-04  Bruno Haible  <bruno@clisp.org>
12537
12538         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12539         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12540         10.
12541         (OLD_ALLOW, OLD_DENY): New macros.
12542         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12543         ACE_ACCESS_ALLOWED_ACE_TYPE.
12544         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12545         ACE_ACCESS_DENIED_ACE_TYPE.
12546         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12547         (NEW_ACE_EXECUTE): Fix value.
12548         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12549         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12550         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12551         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12552         NEW_ACE_SYNCHRONIZE): New macros.
12553         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12554         instead of acl_fromtext, acl_set, facl_set.
12555         Fixes a coreutils/tests/cp/perm failure.
12556
12557 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12558
12559         openat: test for fstatat (..., 0) bug
12560         Further testing with tar suggests that fstatat (..., 0)
12561         does not work in general, on AIX 7.1; see
12562         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12563         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12564         replacement fstatat (which is what older AIX releases were using
12565         anyway).
12566         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12567         use is now changed to orig_fstatat.  This was probably the right
12568         thing to do anyway.
12569         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12570         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12571         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12572         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12573         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12574         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12575         if the bug is found.
12576
12577         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12578         This tests for another fstatat bug on AIX 7.1:
12579         fstatat (AT_FDCWD, ..., 0) does not work.  See
12580         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12581         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12582         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12583         (rpl_fstatat): Adjust so that it works around either (or both)
12584         bugs if present.
12585         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12586
12587 2011-09-03  Karl Berry  <karl@gnu.org>
12588
12589         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12590         in index entries.
12591
12592 2011-09-02  Bruno Haible  <bruno@clisp.org>
12593
12594         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12595         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12596         values of AR, ARFLAGS, RANLIB.
12597         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12598
12599 2011-09-02  Bruno Haible  <bruno@clisp.org>
12600
12601         Find 'ar' program that fits with --host argument.
12602         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12603
12604 2011-09-02  Bruno Haible  <bruno@clisp.org>
12605
12606         tests: init.sh: Support any non-GNU diff.
12607         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12608         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12609         Solaris 8.
12610
12611 2011-09-02  Bruno Haible  <bruno@clisp.org>
12612
12613         tests: init.sh: work also with any non-GNU diff that supports -u
12614         * tests/init.sh: Relax check for diff -u support.
12615         Rather than checking for GNU diff via --version, simply check
12616         for support for -u itself.  Useful at least on OpenBSD 4.9,
12617         AIX 7.1, IRIX 6.5, and Solaris 10.
12618
12619 2011-09-01  Bruno Haible  <bruno@clisp.org>
12620
12621         strtoimax, strtoumax: Document problem on HP-UX 11.
12622         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12623         * doc/posix-functions/strtoumax.texi: Likewise.
12624
12625 2011-09-01  Bruno Haible  <bruno@clisp.org>
12626
12627         strtoumax: Avoid link error on OSF/1 with DTK cc.
12628         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12629         defined as a function.
12630         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12631         strtoumax is defined, not whether it is declared.
12632
12633 2011-09-01  Bruno Haible  <bruno@clisp.org>
12634
12635         strtoimax: Avoid link error on OSF/1 with DTK cc.
12636         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12637         defined as a function.
12638         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12639         strtoimax is defined, not whether it is declared.
12640
12641 2011-09-01  Bruno Haible  <bruno@clisp.org>
12642
12643         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12644         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12645         as a function.
12646         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12647         whether it is declared.
12648
12649 2011-09-01  Bruno Haible  <bruno@clisp.org>
12650
12651         imaxabs: Avoid link error on OSF/1 with DTK cc.
12652         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12653         as a function.
12654         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12655         whether it is declared.
12656
12657 2011-09-01  Bruno Haible  <bruno@clisp.org>
12658
12659         Tests for module 'strtoumax'.
12660         * modules/strtoumax-tests: New file.
12661         * tests/test-strtoumax.c: New file.
12662
12663         Tests for module 'strtoimax'.
12664         * modules/strtoimax-tests: New file.
12665         * tests/test-strtoimax.c: New file.
12666
12667         Tests for module 'imaxdiv'.
12668         * modules/imaxdiv-tests: New file.
12669         * tests/test-imaxdiv.c: New file.
12670
12671         Tests for module 'imaxabs'.
12672         * modules/imaxabs-tests: New file.
12673         * tests/test-imaxabs.c: New file.
12674
12675 2011-09-01  Bruno Haible  <bruno@clisp.org>
12676
12677         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12678         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12679         pthread_create.
12680
12681 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         openat: work around AIX 7.1 fstatat issue
12684         This should fix the problem that was not properly fixed
12685         in the previous change, dated 2011-08-30.
12686         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12687         __need_system_stat_h defined.
12688         (orig_fstatat) [HAVE_FSTATAT]: New function.
12689         (rpl_fstatat): Go back to the old way of doing things,
12690         except call orig_fstatat instead of fstatat.
12691         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12692         Remove unnecessary check whether fstatat fills in st_size etc.
12693
12694 2011-09-01  Bruno Haible  <bruno@clisp.org>
12695
12696         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12697         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12698         just include the system's header.
12699
12700 2011-08-31  Jim Meyering  <meyering@redhat.com>
12701
12702         tests: avoid spurious assertion failure in test-float.c on ppc64
12703         * tests/test-float.c (test_long_double): Comment out an assertion,
12704         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12705         with gcc-4.4.4.
12706
12707         maint: indent with spaces, not TABs
12708         I need to get in the habit of running gnulib's "make check".
12709         Both of these would have been caught.
12710         * m4/largefile.m4: Indent with spaces, not TABs.
12711         * lib/parse-datetime.y (iso_8601_time): Likewise.
12712         Spotted by Pádraig Brady.
12713
12714         test-parse-datetime.c: accommodate a relatively strict gcc warning
12715         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12716         to avoid a warning from gcc's -Werror=missing-declarations.
12717         Insert a few spaces-before-funcall-parenthesis.
12718
12719 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12720
12721         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12722         The parser now accepts ISO 8601 date-time strings with "T" as the
12723         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12724         with a space between the date and time strings.  Now it also parses
12725         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12726         variants like "2004-02-29T16:21:42.333-07:00"
12727         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12728         of day representation using the 'T' separator character.
12729         * doc/parse-datetime.texi (General date syntax): replace use of
12730         deprecated --iso-8601 option with --rfc-3339 in example of date
12731         command output formats that can be parsed.
12732         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12733         lib/parse-datetime.y.
12734         (gmt_offset): New function.
12735         (main): Add additional test cases to validate ISO8601 extended
12736         date and time of day parsing.
12737
12738 2011-08-31  Bruno Haible  <bruno@clisp.org>
12739
12740         freopen: Documentation.
12741         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12742         name.
12743         Reported by Claudio Bley <claudio.bley@gmail.com>.
12744
12745 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12746
12747         freopen: Don't crash if the filename argument is NULL.
12748         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12749         NULL.
12750
12751 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12752
12753         openat: work around AIX 7.1 fstatat bug
12754         Problem reported by Kevin Brott for GNU tar, in the thread containing
12755         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12756         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12757         FSTATAT_ST_SIZE_ETC_BROKEN.
12758         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12759         rpl_fstatat.
12760         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12761         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12762         AC_CHECK_FUNCS_ONCE for fstatat.
12763         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12764         fchmodat, mkdirat, openat and unlinkat.
12765
12766 2011-08-30  Bruno Haible  <bruno@clisp.org>
12767
12768         Avoid endless recursions if config.h includes some header files.
12769         * lib/fopen.c (__need_FILE): Define already before including config.h.
12770         * lib/freopen.c (__need_FILE): Likewise.
12771         * lib/open.c (__need_system_fcntl_h): Likewise.
12772         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12773         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12774         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12775
12776 2011-08-25  Karl Berry  <karl@gnu.org>
12777
12778         * config/srclist.txt (ylwrap): new try.
12779         * build-aux/ylwrap: new file.
12780
12781 2011-08-23  Bruno Haible  <bruno@clisp.org>
12782
12783         tmpdir: Use a good default directory on native Windows.
12784         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12785         (P_tmpdir): Default to _P_tmpdir on native Windows.
12786         (path_search): On native Windows, try the value returned by GetTempPath
12787         before trying P_tmpdir.
12788         * modules/tmpdir (Depends-on): Add pathmax.
12789         Suggested by John Darrington <john@darrington.wattle.id.au>.
12790
12791 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12792
12793         doc: fix typo in README-release
12794         * top/README-release: Capitalize first word of a sentence.
12795
12796 2011-08-19  Jim Meyering  <meyering@redhat.com>
12797
12798         fts: do not exhaust memory when processing million-entry directories
12799         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12800         directory would require about 256*N bytes of memory.  Thus, it was
12801         easy to construct a directory too large to be processed by any of
12802         those tools.  With this change, fts' maximum memory utilization is
12803         now limited to around 30MB.
12804         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12805         (fts_read): When we've processed the final entry (i.e., when
12806         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12807         using the parent entry to read any remaining entries.  Dispatch
12808         depending on what fts_build returns:
12809         - NULL+stop, aka failure: stop
12810         - NULL otherwise: move up in the dir hierarchy
12811         - non-NULL: handle this new entry
12812         (fts_build): Declare and use new local, continue_readdir.
12813         Prepare to be called from fts_read, when the entries
12814         from a partially-read directory have just been exhausted.
12815         In that case, we'll skip the opendir and instead use the parent's
12816         fts_dirp and derive dir_fd from that.
12817         Finally, in the readdir loop, if we read max_entries entries,
12818         exit the loop ensuring *not* to call closedir.  This is required
12819         so that fts_dirp can be reused on a subsequent call.
12820         Prompted by Ben England's report of memory exhaustion in find
12821         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12822
12823         maint: fts: move decl of `dp' down into while loop; split a long line
12824         * lib/fts.c (fts_build): No semantic change.
12825
12826         fts: add/use new struct member, fts_dirp
12827         We are about to use this to manage any directory with
12828         too many entries to read all of them into memory at once.
12829         To do that, we'll need to save the DIR* pointer in each
12830         affected FTSENT struct.
12831         * lib/fts_.h: Include <dirent.h>.
12832         (struct FTSENT) [fts_dirp]: New member.
12833         * lib/fts.c (closedir_and_clear): Define.
12834         Use it in place of closedir so that we are sure to
12835         clear the new fts_dirp member when done with it.
12836         (fts_alloc): Initialize the new member.
12837         (fts_lfree): Free, if needed.
12838
12839         maint: fts: give __opendir2 a new parameter and rename
12840         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12841         than surreptitiously using sole caller's "dir_fd".
12842         (fts_opendir): Rename from __opendir2.
12843
12844         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12845         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12846
12847         maint: fts.c: correct off-by-one indentation
12848         * lib/fts.c (fts_build): Correct indentation, change style
12849         of a couple of block comments, and bracing style.
12850
12851         maint: fts.c: move __opendir2 #define "up" out of function body
12852         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12853
12854         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12855         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12856         out for a long time and besides was useful only on BSD systems.
12857
12858 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12859
12860         regex: port to Stratus OpenVOS
12861         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12862         define to empty, rather than attempting nonportable optimizations.
12863         Problem reported by Paul Green in:
12864         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12865         and fix suggested by Eric Blake in:
12866         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12867
12868 2011-08-17  Eric Blake  <eblake@redhat.com>
12869
12870         getcwd: fix test failures on mingw
12871         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12872         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12873         test if long directory cannot be created, and allow mingw errno.
12874
12875         getcwd-lgpl: fix m4 to match relaxed test for BSD
12876         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12877         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12878         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12879         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12880         signature problem.
12881
12882         getcwd: fix compilation on mingw64
12883         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12884         getcwd.
12885         Reported by Marc-André Lureau.
12886
12887         pipe2: silence compiler warning
12888         * lib/pipe2.c (pipe2): Hide label if it is not used.
12889
12890 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12891
12892         relocatable-prog: fix link error
12893         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12894         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12895         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12896         into modules/relocatable-lib without noticing that
12897         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12898         also needs to build relocatable.c.
12899
12900 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12904         shell code: it contained a 'break' that was not in a loop.
12905         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12906         via a shell-language loop; this may have been true in old Autoconf
12907         versions, but it's not true in Autoconf 2.68.  I found this bug
12908         when testing coreutils git on Solaris 8, whose shell complains
12909         about the syntax error.
12910
12911 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12912
12913         * lib/base64.c: Fix comment to reference RFC 4648.
12914         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12915         <gvtulder@gmail.com>.
12916
12917 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12918
12919         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12920
12921         po/Makefile.in.in: fix make -q problem
12922         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12923         rule, since there's no file named 'check-macro-version' and its
12924         use as a file breaks make -q.
12925         (all): Don't depend on check-macro-version.
12926         (CHECK_MACRO_VERSION): New macro.
12927         (stamp-po): Use it.
12928
12929         configmake: fix make -q problem
12930         * modules/configmake (configmake.h): Update configmake.h's time stamp
12931         even if the file does not change.  Otherwise, 'make -q' fails.
12932         Problem reported by Simon Josefsson in
12933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12934
12935 2011-08-11  Jim Meyering  <meyering@redhat.com>
12936
12937         git-version-gen: correct the advice in a comment
12938         * build-aux/git-version-gen: Correct comment.
12939         Don't recommend to list .tarball-version in .gitignore.
12940
12941 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12942
12943         base64: fix off-by-one buffer size bug
12944         Problem and (trivial) fix reported by Gijs van Tulder in
12945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12946         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12947         * tests/test-base64.c (main): Catch the bug.
12948
12949 2011-08-10  Eric Blake  <eblake@redhat.com>
12950
12951         closein: correct comments
12952         * lib/closein.c (close_stdin): Improve comments.
12953
12954 2011-08-09  Bruno Haible  <bruno@clisp.org>
12955
12956         More tests for 'fseeko'.
12957         * tests/test-fseeko3.c: New file, from Eric Blake.
12958         * tests/test-fseeko3.sh: New file.
12959         * modules/fseeko-tests (Files): Add them.
12960         (TESTS): Add test-fseeko3.sh.
12961         (check_PROGRAMS): Add test-fseeko3.
12962
12963 2011-08-09  Eric Blake  <eblake@redhat.com>
12964
12965         fseeko: remove unneeded hack
12966         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12967
12968         fseeko: fix bug on glibc
12969         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12970         Reported by John W. Eaton.
12971
12972 2011-08-08  Bruno Haible  <bruno@clisp.org>
12973
12974         unictype/base: Fix interoperability with preinstalled libunistring.
12975         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12976         Reported by Simon Josefsson.
12977
12978 2011-08-08  Bruno Haible  <bruno@clisp.org>
12979
12980         iswblank: Detect declaration correctly.
12981         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12982         AC_CHECK_DECLS invocation.
12983
12984 2011-08-08  Bruno Haible  <bruno@clisp.org>
12985
12986         tcgetsid: Detect declaration correctly.
12987         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12988         AC_CHECK_DECLS invocation.
12989         Reported by Simon Josefsson.
12990
12991 2011-08-08  Eric Blake  <eblake@redhat.com>
12992
12993         largefile: fix typo that regressed large file support
12994         * modules/largefile (configure.ac-early): Fix section name.
12995
12996 2011-08-06  Karl Berry  <karl@gnu.org>
12997
12998         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12999         a separate module.
13000
13001 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13002
13003         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13004         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13005         get prototype for free.
13006
13007 2011-08-04  Bruno Haible  <bruno@clisp.org>
13008
13009         Tests for module 'pathmax'.
13010         * modules/pathmax-tests: New file.
13011         * tests/test-pathmax.c: New file.
13012
13013         canonicalize-lgpl: Support larger filenames on the Hurd.
13014         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13015         Reported by Paul Eggert.
13016
13017         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13018         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13019         * lib/chdir-long.h: Include pathmax.h.
13020         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13021         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13022         (PATH_MAX): Remove code that is done by pathmax.h.
13023         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13024         * lib/tmpfile.c: Add a comment.
13025         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13026         * modules/chdir-long (Depends-on): Add pathmax.
13027         * modules/getcwd (Depends-on): Add pathmax.
13028         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13029         is not defined.
13030         * doc/posix-headers/limits.texi: Mention the pathmax module.
13031         * NEWS: Mention the change.
13032
13033 2011-08-02  Bruno Haible  <bruno@clisp.org>
13034
13035         pthread_sigmask: Actually use results of gl_THREADLIB.
13036         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13037         gl_THREADLIB, not gl_[]THREADLIB.
13038         Reported by Eric Blake.
13039
13040 2011-08-02  Jim Meyering  <meyering@redhat.com>
13041
13042         maint.mk: relax the default _gl_TS_function_match regexp
13043         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13044         space between function name and "(" in an "extern" declaration.
13045         That would fail to match a decl with no space there: extern void foo();
13046
13047 2011-07-31  Iain Nicol  <iain@thenicols.net>
13048
13049         git-version-gen: document that EXTRA_DIST must include .version
13050         * build-aux/git-version-gen: In the how-to-use comment, document
13051         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13052         will fail when run from an unpacked distribution tarball.
13053
13054 2011-08-01  Bruno Haible  <bruno@clisp.org>
13055
13056         wctype-h: Fix last change.
13057         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13058         REPLACE_TOWLOWER to 0.
13059         Reported by Sam Steingold <sds@gnu.org>.
13060
13061 2011-07-31  Bruno Haible  <bruno@clisp.org>
13062
13063         frexpl: Update autoconf test.
13064         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13065         according to changes of 2011-06-20.
13066
13067 2011-07-31  Bruno Haible  <bruno@clisp.org>
13068
13069         sys_utsname: Add support for Minix.
13070         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13071         <sys/utsname.h>.
13072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13073         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13074
13075 2011-07-31  Bruno Haible  <bruno@clisp.org>
13076
13077         strings: Add support for Minix.
13078         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13079         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13080         * doc/posix-headers/strings.texi: Document the Minix problem.
13081
13082 2011-07-31  Bruno Haible  <bruno@clisp.org>
13083
13084         wctype-h: Add support for Minix.
13085         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13086         REPLACE_TOWLOWER.
13087         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13088         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13089         REPLACE_ISWCNTRL.
13090
13091 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13092
13093         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13094         This is a performance improvement for 64-bit hosts: it causes the
13095         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13096
13097 2011-07-31  Bruno Haible  <bruno@clisp.org>
13098
13099         stdioext: Add support for Minix.
13100         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13101         * lib/fpurge.c (fpurge): Likewise.
13102         * lib/freadahead.c (freadahead): Likewise.
13103         * lib/freadable.c (freadable): Likewise.
13104         * lib/freading.c (freading): Likewise.
13105         * lib/freadptr.c (freadptr): Likewise.
13106         * lib/freadseek.c (freadptrinc): Likewise.
13107         * lib/fseeko.c (rpl_fseeko): Likewise.
13108         * lib/fseterr.c (fseterr): Likewise.
13109         * lib/fwritable.c (fwritable): Likewise.
13110         * lib/fwriting.c (fwriting): Likewise.
13111         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13112         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13113
13114 2011-07-31  Bruno Haible  <bruno@clisp.org>
13115
13116         errno: Port to Minix.
13117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13118         ECONNABORTED are defined.
13119         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13120         GNULIB_defined_ECONNABORTED): New macros.
13121         * lib/strerror-override.h (strerror_override): Test also
13122         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13123         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13124         ECONNABORTED.
13125         * doc/posix-headers/errno.texi: Mention the Minix problem.
13126
13127 2011-07-31  Bruno Haible  <bruno@clisp.org>
13128
13129         Work around declaration collisions on Minix.
13130         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13131         defined, set REPLACE_MBSINIT.
13132         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13133         defined, set REPLACE_MBRTOWC.
13134         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13135         set REPLACE_MBRLEN.
13136         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13137         defined, set REPLACE_MBSRTOWCS.
13138         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13139         defined, set REPLACE_WCRTOMB.
13140         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13141         defined, set REPLACE_WCSRTOMBS.
13142
13143 2011-07-31  Bruno Haible  <bruno@clisp.org>
13144
13145         Add support for Minix with ACK compiler.
13146         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13147         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13148         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13149
13150 2011-07-31  Bruno Haible  <bruno@clisp.org>
13151
13152         Documentation about Minix.
13153         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13154         * doc/glibc-headers/*.texi: Likewise.
13155         * doc/posix-functions/*.texi: Likewise.
13156         * doc/glibc-functions/*.texi: Likewise.
13157
13158 2011-07-31  Bruno Haible  <bruno@clisp.org>
13159
13160         snippet/warn-on-use: Fix indentation.
13161         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13162
13163 2011-07-25  Jim Meyering  <meyering@redhat.com>
13164
13165         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13166         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13167         commands.
13168
13169 2011-07-27  Jim Meyering  <meyering@redhat.com>
13170
13171         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13172         * top/maint.mk (gl_extract_significant_defines_): Now that
13173         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13174         gnulib/lib/signal.in.h, and now that we recommend to
13175         define-if-undefined those two symbols in application code,
13176         we must filter them out of the "significant" list.
13177         This avoids a "make syntax-check" failure in coreutils.
13178
13179 2011-07-26  Eric Blake  <eblake@redhat.com>
13180
13181         warnings: add comments about previous patch
13182         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13183         * m4/include_next.m4: Likewise.
13184         * m4/warn-on-use.m4: Likewise.
13185         * m4/warnings.m4: Likewise, and simplify use.
13186         Suggested by Stefano Lattarini.
13187
13188         include-next, warnings: support older autoconf
13189         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13190         AS_VAR_PUSHDEF in a way that works with older autoconf.
13191         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13192         Reported by Daniel P. Berrange.
13193
13194 2011-07-25  Bruno Haible  <bruno@clisp.org>
13195
13196         fseek, ftell: Fix doc.
13197         * doc/posix-functions/fseek.texi: Reword statement about
13198         AC_SYS_LARGEFILE.
13199         * doc/posix-functions/ftell.texi: Likewise.
13200
13201 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13202             Bruno Haible  <bruno@clisp.org>
13203
13204         Add dependencies to the 'largefile' module.
13205         * modules/fopen (Depends-on): Add 'largefile'.
13206         * modules/freopen (Depends-on): Likewise.
13207         * modules/fseeko (Depends-on): Likewise.
13208         * modules/ftello (Depends-on): Likewise.
13209         * modules/glob (Depends-on): Likewise.
13210         * modules/lseek (Depends-on): Likewise.
13211         * modules/lstat (Depends-on): Likewise.
13212         * modules/mkostemp (Depends-on): Likewise.
13213         * modules/mkostemps (Depends-on): Likewise.
13214         * modules/mkstemp (Depends-on): Likewise.
13215         * modules/mkstemps (Depends-on): Likewise.
13216         * modules/open (Depends-on): Likewise.
13217         * modules/openat (Depends-on): Likewise.
13218         * modules/pread (Depends-on): Likewise.
13219         * modules/pwrite (Depends-on): Likewise.
13220         * modules/scandir (Depends-on): Likewise.
13221         * modules/stat (Depends-on): Likewise.
13222         * modules/tmpfile (Depends-on): Likewise.
13223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13224         since the containing module now depends on the largefile module.
13225         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13226         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13227         off_t is fixed by gnulib.
13228         * doc/posix-functions/freopen.texi: Likewise.
13229         * doc/posix-functions/fseeko.texi: Likewise.
13230         * doc/posix-functions/fstatat.texi: Likewise.
13231         * doc/posix-functions/ftello.texi: Likewise.
13232         * doc/posix-functions/glob.texi: Likewise.
13233         * doc/posix-functions/lseek.texi: Likewise.
13234         * doc/posix-functions/lstat.texi: Likewise.
13235         * doc/posix-functions/mkstemp.texi: Likewise.
13236         * doc/posix-functions/open.texi: Likewise.
13237         * doc/posix-functions/openat.texi: Likewise.
13238         * doc/posix-functions/pread.texi: Likewise.
13239         * doc/posix-functions/pwrite.texi: Likewise.
13240         * doc/posix-functions/scandir.texi: Likewise.
13241         * doc/posix-functions/stat.texi: Likewise.
13242         * doc/posix-functions/tmpfile.texi: Likewise.
13243         * doc/glibc-functions/mkostemp.texi: Likewise.
13244         * doc/glibc-functions/mkostemps.texi: Likewise.
13245         * doc/glibc-functions/mkstemps.texi: Likewise.
13246
13247 2011-07-25  Bruno Haible  <bruno@clisp.org>
13248
13249         fcntl: Move AC_LIBOBJ invocation to module description.
13250         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13251         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13252
13253         fcntl: Remove call-in from fchdir.m4.
13254         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13256
13257         dup3: Remove potential call-in from fchdir.m4.
13258         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13260
13261         dup2: Move AC_LIBOBJ invocation to module description.
13262         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13263         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13264         Don't invoke AC_LIBOBJ.
13265         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13266
13267         dup2: Remove call-in from fchdir.m4.
13268         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13270
13271         fclose: Move AC_LIBOBJ invocation to module description.
13272         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13273         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13274         to 1.
13275         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13276
13277         fclose: Remove call-in from close.m4.
13278         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13279         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13280
13281         close: Move AC_LIBOBJ invocation to module description.
13282         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13283         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13284         1.
13285         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13286
13287         close: Remove call-in from fchdir.m4.
13288         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13290
13291         open: Move AC_LIBOBJ invocation to module description.
13292         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13293         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13294         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13295
13296         open: Remove call-in from fchdir.m4.
13297         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13299
13300         fchdir: Start to remove gl_REPLACE_* idiom.
13301         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13302         (gl_FUNC_FCHDIR): Invoke it.
13303
13304 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         * lib/ftell.c (ftell): Comment out cast.
13307
13308         close: use gl_REPLACE_FCLOSE only if defined
13309         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13310         is defined.  The close module doesn't depend on the fclose module
13311         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13313         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13314
13315 2011-07-24  Jim Meyering  <meyering@redhat.com>
13316
13317         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13318         * tests/test-select.h (test_function): Declare as "static".
13319
13320 2011-07-24  Bruno Haible  <bruno@clisp.org>
13321
13322         doc: Mention the effects of AC_SYS_LARGEFILE.
13323         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13324         on this function.
13325         * doc/posix-functions/aio_error.texi: Likewise.
13326         * doc/posix-functions/aio_fsync.texi: Likewise.
13327         * doc/posix-functions/aio_read.texi: Likewise.
13328         * doc/posix-functions/aio_return.texi: Likewise.
13329         * doc/posix-functions/aio_suspend.texi: Likewise.
13330         * doc/posix-functions/aio_write.texi: Likewise.
13331         * doc/posix-functions/fgetpos.texi: Likewise.
13332         * doc/posix-functions/fopen.texi: Likewise.
13333         * doc/posix-functions/freopen.texi: Likewise.
13334         * doc/posix-functions/fsetpos.texi: Likewise.
13335         * doc/posix-functions/fstatvfs.texi: Likewise.
13336         * doc/posix-functions/ftruncate.texi: Likewise.
13337         * doc/posix-functions/ftw.texi: Likewise.
13338         * doc/posix-functions/getrlimit.texi: Likewise.
13339         * doc/posix-functions/glob.texi: Likewise.
13340         * doc/posix-functions/lio_listio.texi: Likewise.
13341         * doc/posix-functions/lockf.texi: Likewise.
13342         * doc/posix-functions/mkstemp.texi: Likewise.
13343         * doc/posix-functions/mmap.texi: Likewise.
13344         * doc/posix-functions/nftw.texi: Likewise.
13345         * doc/posix-functions/openat.texi: Likewise.
13346         * doc/posix-functions/opendir.texi: Likewise.
13347         * doc/posix-functions/posix_fadvise.texi: Likewise.
13348         * doc/posix-functions/posix_fallocate.texi: Likewise.
13349         * doc/posix-functions/pread.texi: Likewise.
13350         * doc/posix-functions/pwrite.texi: Likewise.
13351         * doc/posix-functions/readdir.texi: Likewise.
13352         * doc/posix-functions/readdir_r.texi: Likewise.
13353         * doc/posix-functions/rewinddir.texi: Likewise.
13354         * doc/posix-functions/scandir.texi: Likewise.
13355         * doc/posix-functions/seekdir.texi: Likewise.
13356         * doc/posix-functions/setrlimit.texi: Likewise.
13357         * doc/posix-functions/statvfs.texi: Likewise.
13358         * doc/posix-functions/telldir.texi: Likewise.
13359         * doc/posix-functions/tmpfile.texi: Likewise.
13360         * doc/posix-functions/truncate.texi: Likewise.
13361         * doc/glibc-functions/fallocate.texi: Likewise.
13362         * doc/glibc-functions/fstatfs.texi: Likewise.
13363         * doc/glibc-functions/fts_children.texi: Likewise.
13364         * doc/glibc-functions/fts_read.texi: Likewise.
13365         * doc/glibc-functions/getdirentries.texi: Likewise.
13366         * doc/glibc-functions/mkostemp.texi: Likewise.
13367         * doc/glibc-functions/mkostemps.texi: Likewise.
13368         * doc/glibc-functions/mkstemps.texi: Likewise.
13369         * doc/glibc-functions/preadv.texi: Likewise.
13370         * doc/glibc-functions/pwritev.texi: Likewise.
13371         * doc/glibc-functions/sendfile.texi: Likewise.
13372         * doc/glibc-functions/statfs.texi: Likewise.
13373
13374 2011-07-24  Bruno Haible  <bruno@clisp.org>
13375
13376         doc: Fix typo.
13377         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13378
13379 2011-07-24  Bruno Haible  <bruno@clisp.org>
13380
13381         doc: Mention fsusage.
13382         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13383
13384 2011-07-24  Bruno Haible  <bruno@clisp.org>
13385
13386         doc: Mention new glibc headers and functions.
13387         * doc/glibc-headers/gshadow.texi: New file.
13388         * doc/glibc-functions/endsgent.texi: New file.
13389         * doc/glibc-functions/fgetsgent.texi: New file.
13390         * doc/glibc-functions/fgetsgent_r.texi: New file.
13391         * doc/glibc-functions/getsgent.texi: New file.
13392         * doc/glibc-functions/getsgent_r.texi: New file.
13393         * doc/glibc-functions/getsgnam.texi: New file.
13394         * doc/glibc-functions/getsgnam_r.texi: New file.
13395         * doc/glibc-functions/putsgent.texi: New file.
13396         * doc/glibc-functions/setsgent.texi: New file.
13397         * doc/glibc-functions/sgetsgent.texi: New file.
13398         * doc/glibc-functions/sgetsgent_r.texi: New file.
13399         * doc/glibc-functions/malloc_info.texi: New file.
13400         * doc/glibc-functions/preadv.texi: New file.
13401         * doc/glibc-functions/pwritev.texi: New file.
13402         * doc/glibc-functions/register_printf_modifier.texi: New file.
13403         * doc/glibc-functions/register_printf_specifier.texi: New file.
13404         * doc/glibc-functions/register_printf_type.texi: New file.
13405         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13406         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13407         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13408         * doc/glibc-functions/pthread_getname_np.texi: New file.
13409         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13410         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13411         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13412         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13413         * doc/glibc-functions/pthread_setname_np.texi: New file.
13414         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13415         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13416         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13417         * doc/glibc-functions/qsort_r.texi: New file.
13418         * doc/glibc-functions/quick_exit.texi: New file.
13419         * doc/glibc-functions/syncfs.texi: New file.
13420         * doc/gnulib.texi: Include them.
13421         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13422         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13423         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13424         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13425         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13426         * doc/glibc-functions/execvpe.texi: Likewise.
13427
13428 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13429
13430         ftell: don't include <unistd.h>
13431         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13432         guaranteed to define off_t, and the ftell module depends on the
13433         stdio module.
13434
13435         ftell: do not assume wraparound signed arithmetic
13436         * lib/ftell.c: Include <limits.h>.
13437         (ftell): Don't assume wraparound signed arithmetic.
13438
13439 2011-07-24  Bruno Haible  <bruno@clisp.org>
13440
13441         close: No longer depend on module 'fclose'.
13442         * modules/close (Depends-on): Remove fclose.
13443         * NEWS: Mention the change.
13444         Suggested by Sam Steingold <sds@gnu.org>.
13445
13446 2011-07-24  Bruno Haible  <bruno@clisp.org>
13447
13448         fsusage: Enable large volume support on AIX >= 5.2.
13449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13450         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13451         instead of STAT_STATVFS.
13452         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13453
13454         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13456         f_blocks field only on MacOS X.
13457
13458         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13459         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13460         * modules/fsusage (Depends-on): Add largefile.
13461
13462 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13463
13464         * README: Modernize discussion of signed integers.
13465         Assuming overflow wraparound is no longer safe.
13466         Mention ones' complement and signed magnitude.
13467
13468 2011-07-22  Bruno Haible  <bruno@clisp.org>
13469
13470         select tests, pselect tests: Refactor.
13471         * tests/test-select.h: New file, extracted from tests/test-select.c.
13472         (select_fn): New type.
13473         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13474         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13475         test_pipe): Add my_select argument.
13476         (test_function): Renamed from main. Add my_select argument.
13477         * tests/test-select.c: Move most code to tests/test-select.h. Include
13478         test-select.h.
13479         * modules/select-tests (Files): Add tests/test-select.h.
13480         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13481         (my_select, main): New functions.
13482         * modules/pselect-tests (Files): Add tests/test-select.h,
13483         tests/macros.h, tests/signature.h.
13484         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13485         (configure.ac): Check for <sys/wait.h>.
13486
13487 2011-07-22  Bruno Haible  <bruno@clisp.org>
13488
13489         sys_select tests: Check the signature of FD_*.
13490         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13491         signature tests from here...
13492         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13493         here.
13494         * modules/sys_select-tests (Files): Add tests/signature.h.
13495
13496 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         largefile: new module, replacing large-inode
13499         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13500         * MODULES.html.sh: Add largefile, remove large-inode.
13501         * modules/largefile, m4/largefile.m4: New files.
13502         * modules/large-inode, m4/large-inode.m4: Remove.
13503
13504         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13505         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13506         implementations that use only 32 bits to count blocks.
13507         On typical hosts with 1024-byte blocks, this fails with file
13508         systems as small as 4 TiB.  Problem reported by Herb Wartens
13509         <http://debbugs.gnu.org/9140> and this should also fix a similar
13510         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13511
13512         large-inode: New module
13513         * MODULES.html.sh: Add it.
13514         * modules/large-inode, m4/large-inode.m4: New files.
13515
13516         extensions: Enable extensions on MacOS X 10.5 and later.
13517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13518
13519 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13520
13521         file-has-acl: use acl_extended_file_nofollow if available
13522         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13523         (acl_extended_file): New macro.
13524         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13525         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13526
13527 2011-07-21  Bruno Haible  <bruno@clisp.org>
13528
13529         Declare system functions in a way that works with C++.
13530         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13531         declare fdopendir as extern "C".
13532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13533         declare frexpl as extern "C".
13534         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13535         declare gai_strerror as extern "C".
13536         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13537         programs, declare gai_strerror as extern "C".
13538         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13539         declare getlogin_r as extern "C".
13540         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13541         as extern "C".
13542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13543         declare ldexpl as extern "C".
13544         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13545         as extern "C".
13546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13547         program, declare getmntinfo as extern "C".
13548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13549         stpncpy as extern "C".
13550         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13551         program, declare __xpg_strerror_r as extern "C".
13552         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13553         strndup as extern "C".
13554         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13555         declare memset and bzero as extern "C".
13556         Reported by Sam Steingold <sds@gnu.org>.
13557
13558 2011-07-12  Jim Meyering  <meyering@redhat.com>
13559
13560         maint.mk: prohibit inclusion of "verify.h" without use
13561         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13562
13563 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13564
13565         timer-time: A new module to check for timer_settime()
13566         * m4/timer_time.m4: Check for the posix function.
13567         * modules/timer-time: Add the new module.
13568         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13569         Mention it.
13570
13571 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13572             Bruno Haible  <bruno@clisp.org>
13573
13574         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13575         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13576         not defined, assume POSIX threads and look for pthread_sigmask in
13577         $LIBS, without changing $CPPFLAGS.
13578
13579 2011-07-19  Bruno Haible  <bruno@clisp.org>
13580
13581         strstr: Update cross-compilation guess.
13582         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13583         CPUs, guess no, in view of glibc
13584         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13585         Suggested by Eric Blake. Reported by Reuben Thomas.
13586
13587 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13588
13589         getopt-gnu: suppress core dumps from detection code
13590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13591         to suppress core dumps that may well occur on glibc systems.
13592         * modules/getopt-gnu: Depend on nocrash.
13593
13594 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13595
13596         pthread_sigmask: ensure usleep is declared
13597         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13598         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13599
13600 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13601
13602         doc: Document NonStop portability issues.
13603         * doc/posix-functions/sigaction.texi (sigaction):
13604         * doc/posix-headers/signal.texi (signal.h):
13605         Document NonStop.  See Joachim Schmitz in
13606         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13607
13608 2011-07-15  Bruno Haible  <bruno@clisp.org>
13609
13610         ffsl, ffsll: Avoid unportable behaviour.
13611         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13612
13613 2011-07-15  Bruno Haible  <bruno@clisp.org>
13614
13615         ffs: More tests.
13616         * tests/test-ffs.c (NBITS): New macro.
13617         (main): Add more tests.
13618         * tests/test-ffsl.c (NBITS): New macro.
13619         (main): Add more tests.
13620         * tests/test-ffsll.c (NBITS): New macro.
13621         (main): Add more tests.
13622
13623 2011-07-15  Eric Blake  <eblake@redhat.com>
13624
13625         ffsl, ffsll: new modules
13626         * modules/ffsl: New file.
13627         * modules/ffsll: Likewise.
13628         * m4/ffsl.m4: Likewise.
13629         * m4/ffsll.m4: Likewise.
13630         * lib/ffsl.c: Likewise.
13631         * lib/ffsl.h: Likewise.
13632         * lib/ffsll.c: Likewise.
13633         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13634         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13635         * modules/string (Makefile.am): Substitute witnesses.
13636         * lib/strings.in.h (ffsl, ffsll): Declare.
13637         * modules/ffsl-tests: New test file.
13638         * modules/ffsll-tests: Likewise.
13639         * tests/test-ffsl.c: Likewise.
13640         * tests/test-ffsll.c: Likewise.
13641         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13642         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13643         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13644
13645         ffs: fix m4 prerequisite
13646         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13647
13648         ffs: avoid undefined behavior
13649         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13650         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13651         Reported by Bruno Haible.
13652
13653 2011-07-12  Bruno Haible  <bruno@clisp.org>
13654
13655         pthread_sigmask: Rely on module 'threadlib'.
13656         * modules/pthread_sigmask (Depends-on): Add threadlib.
13657         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13658         is defined.
13659
13660 2011-07-12  Bruno Haible  <bruno@clisp.org>
13661
13662         regex: Depend on module 'strcase'.
13663         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13664
13665 2011-07-12  Jim Meyering  <meyering@redhat.com>
13666
13667         warn-on-use: fix typo in file name
13668         * modules/snippet/warn-on-use (Files): Correct file name:
13669         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13670
13671 2011-07-12  Bruno Haible  <bruno@clisp.org>
13672
13673         strings: Document module.
13674         * doc/posix-headers/strings.texi: Mention module 'strings'.
13675
13676 2011-07-12  Bruno Haible  <bruno@clisp.org>
13677
13678         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13679         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13680         (Files, Makefile.am): Update.
13681         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13682         * modules/stdlib (Depends-on): Update.
13683
13684 2011-07-12  Bruno Haible  <bruno@clisp.org>
13685
13686         * NEWS: Mention the changes.
13687
13688         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13689         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13690         (Files, Makefile.am): Update.
13691         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13692         * modules/arpa_inet (Depends-on): Update.
13693         * modules/ctype (Depends-on): Update.
13694         * modules/dirent (Depends-on): Update.
13695         * modules/fcntl-h (Depends-on): Update.
13696         * modules/glob (Depends-on): Update.
13697         * modules/iconv-h (Depends-on): Update.
13698         * modules/inttypes-incomplete (Depends-on): Update.
13699         * modules/langinfo (Depends-on): Update.
13700         * modules/locale (Depends-on): Update.
13701         * modules/math (Depends-on): Update.
13702         * modules/netdb (Depends-on): Update.
13703         * modules/poll-h (Depends-on): Update.
13704         * modules/pty (Depends-on): Update.
13705         * modules/search (Depends-on): Update.
13706         * modules/signal (Depends-on): Update.
13707         * modules/spawn (Depends-on): Update.
13708         * modules/stdio (Depends-on): Update.
13709         * modules/stdlib (Depends-on): Update.
13710         * modules/string (Depends-on): Update.
13711         * modules/strings (Depends-on): Update.
13712         * modules/sys_file (Depends-on): Update.
13713         * modules/sys_ioctl (Depends-on): Update.
13714         * modules/sys_select (Depends-on): Update.
13715         * modules/sys_socket (Depends-on): Update.
13716         * modules/sys_stat (Depends-on): Update.
13717         * modules/sys_time (Depends-on): Update.
13718         * modules/sys_times (Depends-on): Update.
13719         * modules/sys_utsname (Depends-on): Update.
13720         * modules/sys_wait (Depends-on): Update.
13721         * modules/termios (Depends-on): Update.
13722         * modules/time (Depends-on): Update.
13723         * modules/unistd (Depends-on): Update.
13724         * modules/wchar (Depends-on): Update.
13725         * modules/wctype-h (Depends-on): Update.
13726         * MODULES.html.sh (Support for building libraries and executables):
13727         Update.
13728
13729         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13730         * modules/snippet/unused-parameter: Renamed from
13731         modules/unused-parameter.
13732         (Files, Makefile.am): Update.
13733         * build-aux/snippet/unused-parameter.h: Renamed from
13734         build-aux/unused-parameter.h.
13735         * modules/selinux-h (Depends-on): Update.
13736         * modules/unistr/base (Depends-on): Update.
13737         * MODULES.html.sh (Core language properties): Update.
13738
13739         Rename module 'link-warning' to 'snippet/link-warning'.
13740         * modules/snippet/link-warning: Renamed from modules/link-warning.
13741         (Files, Makefile.am): Update.
13742         * build-aux/snippet/link-warning.h: Renamed from
13743         build-aux/link-warning.h.
13744         * MODULES.html.sh (Support for building libraries and executables):
13745         Update.
13746
13747         Rename module 'c++defs' to 'snippet/c++defs'.
13748         * modules/snippet/c++defs: Renamed from modules/c++defs.
13749         (Files, Makefile.am): Update.
13750         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13751         * modules/arpa_inet (Depends-on): Update.
13752         * modules/ctype (Depends-on): Update.
13753         * modules/dirent (Depends-on): Update.
13754         * modules/fcntl-h (Depends-on): Update.
13755         * modules/glob (Depends-on): Update.
13756         * modules/iconv-h (Depends-on): Update.
13757         * modules/langinfo (Depends-on): Update.
13758         * modules/locale (Depends-on): Update.
13759         * modules/math (Depends-on): Update.
13760         * modules/netdb (Depends-on): Update.
13761         * modules/poll-h (Depends-on): Update.
13762         * modules/pty (Depends-on): Update.
13763         * modules/search (Depends-on): Update.
13764         * modules/signal (Depends-on): Update.
13765         * modules/spawn (Depends-on): Update.
13766         * modules/stdio (Depends-on): Update.
13767         * modules/stdlib (Depends-on): Update.
13768         * modules/string (Depends-on): Update.
13769         * modules/strings (Depends-on): Update.
13770         * modules/sys_ioctl (Depends-on): Update.
13771         * modules/sys_select (Depends-on): Update.
13772         * modules/sys_socket (Depends-on): Update.
13773         * modules/sys_stat (Depends-on): Update.
13774         * modules/sys_time (Depends-on): Update.
13775         * modules/sys_wait (Depends-on): Update.
13776         * modules/termios (Depends-on): Update.
13777         * modules/time (Depends-on): Update.
13778         * modules/unistd (Depends-on): Update.
13779         * modules/wchar (Depends-on): Update.
13780         * modules/wctype-h (Depends-on): Update.
13781
13782         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13783         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13784         (Files, Makefile.am): Update.
13785         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13786         * modules/argv-iter (Depends-on): Update.
13787         * modules/arpa_inet (Depends-on): Update.
13788         * modules/dirent (Depends-on): Update.
13789         * modules/fcntl-h (Depends-on): Update.
13790         * modules/fnmatch (Depends-on): Update.
13791         * modules/getopt-posix (Depends-on): Update.
13792         * modules/glob (Depends-on): Update.
13793         * modules/iconv-h (Depends-on): Update.
13794         * modules/inttypes-incomplete (Depends-on): Update.
13795         * modules/locale (Depends-on): Update.
13796         * modules/math (Depends-on): Update.
13797         * modules/netdb (Depends-on): Update.
13798         * modules/search (Depends-on): Update.
13799         * modules/signal (Depends-on): Update.
13800         * modules/spawn (Depends-on): Update.
13801         * modules/stdio (Depends-on): Update.
13802         * modules/stdlib (Depends-on): Update.
13803         * modules/string (Depends-on): Update.
13804         * modules/strings (Depends-on): Update.
13805         * modules/sys_socket (Depends-on): Update.
13806         * modules/sys_stat (Depends-on): Update.
13807         * modules/sys_time (Depends-on): Update.
13808         * modules/sys_times (Depends-on): Update.
13809         * modules/sys_utsname (Depends-on): Update.
13810         * modules/time (Depends-on): Update.
13811         * modules/unistd (Depends-on): Update.
13812         * modules/wchar (Depends-on): Update.
13813         * MODULES.html.sh (Support for building libraries and executables):
13814         Update.
13815
13816 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13817
13818         Improvements on _Noreturn and related modules.
13819
13820         modules/_Exit-tests: test _Noreturn too
13821         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13822         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13823         (main): Use them.
13824
13825         stdnoreturn, stdnoreturn-tests: remove modules
13826         They're not needed here and a bit premature for use elsewhere.  See
13827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13828         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13829         * tests/test-stdnoreturn.c: Remove files.
13830         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13831         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13832         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13833         and using noreturn.
13834         * modules/openat, modules/sigpipe-die, modules/xalloc:
13835         * modules/xmemdup0, modules/xstrtol:
13836         Remove dependency on stdnoreturn.
13837
13838         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13839         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13840         Reparenthesize to avoid GCC warning.
13841         Support Microsoft's syntax.
13842         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13843
13844         _Noreturn-tests: remove module
13845         * modules/_Noreturn-tests: Remove.
13846         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13847         * tests/test-_Noreturn.c: Remove.
13848         * tests/test-stdnoreturn.c: Merge from the old
13849         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13850
13851 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13852
13853         _Noreturn, stdnoreturn, and related modules.
13854
13855         * top/maint.mk: Adjust to new noreturn support.
13856         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13857         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13858
13859         xalloc: use stdnoreturn.h
13860         * lib/xalloc.h: Include <stdnoreturn.h>.
13861         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13862         * modules/xalloc (Depends-on): Add stdnoreturn.
13863
13864         xstrtol: use stdnoreturn.h
13865         * lib/xstrtol.h: Include <stdnoreturn.h>.
13866         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13867         * modules/xstrtol (Depends-on): Add stdnoreturn.
13868
13869         xmemdup0: use stdnoreturn.h
13870         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13871         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13872         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13873
13874         sigpipe-die: use stdnoreturn.h
13875         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13876         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13877         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13878
13879         openat: use stdnoreturn.h
13880         * lib/openat.h: Include <stdnoreturn.h>.
13881         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13882         * modules/openat (Depends-on): Add stdnoreturn.
13883
13884         * lib/openat-die.c (openat_save_fail): Modernize comment.
13885
13886         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13887
13888         * lib/glthread/thread.h: Modernize comment.
13889
13890         obstack: use _Noreturn
13891         * lib/obstack.c (__attribute__): Remove macro.
13892         (print_and_abort): Use _Noreturn.
13893
13894         c-stack: use _Noreturn
13895         * lib/c-stack.c (die, overflow_handler, segv_handler):
13896         Use _Noreturn rather than __attribute__((noreturn)).
13897
13898         argmatch-tests, exclude_tests: use _Noreturn
13899         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13900         Remove.
13901         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13902
13903         stdlib: use _Noreturn
13904         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13905         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13906         * modules/stdlib (Depends-on): Add _Noreturn.
13907         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13908
13909         stdnoreturn-tests: new module
13910         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13911
13912         stdnoreturn: new module
13913         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13914         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13915
13916         _Noreturn-tests: new module
13917         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13918
13919         _Noreturn: new module
13920         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13921         New section, mentioning it.
13922         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13923
13924         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13925
13926 2011-07-11  Eric Blake  <eblake@redhat.com>
13927
13928         ffs: new module
13929         * modules/ffs: New file.
13930         * m4/ffs.m4: Likewise.
13931         * lib/ffs.c: Likewise.
13932         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13933         * modules/strings (Makefile.am): Substitute witness.
13934         (Depends-on): Add c++defs.
13935         * lib/strings.in.h (ffs): Declare.
13936         * modules/ffs-tests: New test file.
13937         * tests/test-ffs.c: Test new module.
13938         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13939         * doc/posix-functions/ffs.texi (ffs): Likewise.
13940
13941         regex: avoid compiler warning
13942         * lib/regex.c (includes): Include <strings.h>, for use of
13943         strcasecmp in regcomp.c.
13944         Reported by Joachim Schmitz.
13945
13946 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13947
13948         stdint: respect system's intmax_t if INTMAX_MAX
13949         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13950         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13951         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13952         long but int64_t is long long, and where we will clash with the
13953         system intmax_t if we override it.  See
13954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13955         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13956         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13957         similarly for UINTMAX_C.
13958
13959 2011-07-08  Bruno Haible  <bruno@clisp.org>
13960
13961         pthread_sigmask tests: Avoid a compiler warning.
13962         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13963         non-zero.
13964
13965         sigprocmask tests: A better way to avoid a compiler warning.
13966         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13967         (main): Complain if system() returns non-zero.
13968         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13969
13970 2011-07-08  Bruno Haible  <bruno@clisp.org>
13971
13972         pthread_sigmask: Work around IRIX bug.
13973         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13974         bug.
13975         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13976         there may be unblocked pending signals.
13977         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13978
13979 2011-07-08  Bruno Haible  <bruno@clisp.org>
13980
13981         pthread_sigmask: Work around Cygwin bug.
13982         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13983         bug.
13984         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13985         the system's pthread_sigmask function.
13986         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13987
13988 2011-07-08  Bruno Haible  <bruno@clisp.org>
13989
13990         pthread_sigmask: Work around bug in single-threaded implementation.
13991         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13992         FreeBSD, HP-UX, Solaris bug.
13993         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13994         * lib/pthread_sigmask.c: Include <stddef.h>.
13995         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13996         the system's pthread_sigmask function.
13997         * modules/pthread_sigmask (configure.ac): Invoke
13998         gl_PREREQ_PTHREAD_SIGMASK.
13999         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14000         HP-UX, Solaris.
14001
14002 2011-07-08  Eric Blake  <eblake@redhat.com>
14003
14004         test-sigprocmask: avoid compiler warning
14005         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14006         * tests/test-sigprocmask.c (main): Use it to silence warning.
14007         Reported by Jim Meyering.
14008
14009         test-snprintf: avoid compiler warning
14010         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14011         * tests/test-vsnprintf.c (main): Likewise.
14012         Reported by Jim Meyering.
14013
14014 2011-07-08  Bruno Haible  <bruno@clisp.org>
14015
14016         Tests for module 'pthread_sigmask'.
14017         * modules/pthread_sigmask-tests: New file.
14018         * tests/test-pthread_sigmask1.c: New file, based on
14019         tests/test-sigprocmask.c.
14020         * tests/test-pthread_sigmask2.c: New file.
14021
14022 2011-07-08  Jim Meyering  <meyering@redhat.com>
14023
14024         test-getopt.h: avoid warning about an unused variable
14025         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14026
14027 2011-07-07  Jim Meyering  <meyering@redhat.com>
14028
14029         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14030         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14031         now that it no longer contains leading TABs.
14032         Remove unused "url=FIXME" statement.
14033
14034 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14035
14036         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14038         When gl_THREADLIB is not in use, assume that the POSIX sematics
14039         are desired.  This is better for Emacs, which uses POSIX semantics
14040         on GNUish and/or POSIXish platforms, and does not use threads at
14041         all otherwise.
14042
14043         pthread_sigmask: fix typo when testing for libraries
14044         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14045         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14046
14047 2011-07-08  Eric Blake  <eblake@redhat.com>
14048
14049         fts: introduce FTS_NOATIME
14050         * lib/fts_.h (FTS_NOATIME): New bit flag.
14051         (FTS_OPTIONMASK): Adjust.
14052         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14053         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14054
14055 2011-07-08  Bruno Haible  <bruno@clisp.org>
14056
14057         Tests for module 'thread'.
14058         * modules/thread-tests: New file.
14059         * tests/test-thread_self.c: New file.
14060         * tests/test-thread_create.cc: New file.
14061
14062 2011-07-08  Bruno Haible  <bruno@clisp.org>
14063
14064         thread: Avoid gcc warnings when using gl_thread_self().
14065         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14066         'void *'.
14067         (gl_thread_self_pointer): Update.
14068
14069 2011-07-07  Bruno Haible  <bruno@clisp.org>
14070
14071         signal-c++-tests: Check declaration of pthread_sigmask.
14072         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14073         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14074         $(LIB_PTHREAD_SIGMASK).
14075
14076 2011-07-07  Bruno Haible  <bruno@clisp.org>
14077
14078         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14079         * lib/signal.in.h (pthread_sigmask): Override if
14080         REPLACE_PTHREAD_SIGMASK is 1.
14081         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14082         REPLACE_PTHREAD_SIGMASK.
14083         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14084         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14085         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14086         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14087         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14088
14089 2011-07-07  Bruno Haible  <bruno@clisp.org>
14090
14091         pthread_sigmask: Ensure declaration in <signal.h>.
14092         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14093         include <pthread.h>.
14094         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14095         problem.
14096
14097 2011-07-07  Bruno Haible  <bruno@clisp.org>
14098
14099         pthread_sigmask: Document the module.
14100         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14101
14102 2011-07-07  Bruno Haible  <bruno@clisp.org>
14103
14104         pthread_sigmask: Follow gnulib conventions.
14105         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14106         gl_PTHREAD_SIGMASK.
14107         * modules/pthread_sigmask (configure.ac): Update.
14108
14109 2011-07-07  Bruno Haible  <bruno@clisp.org>
14110
14111         pthread_sigmask: Make declaration C++ safe.
14112         * lib/signal.in.h: In two special conditions, just do an #include_next.
14113         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14114         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14115         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14116         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14117         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14118         not REPLACE_PTHREAD_MASK.
14119         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14120         not REPLACE_PTHREAD_MASK.
14121         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14122
14123 2011-07-07  Bruno Haible  <bruno@clisp.org>
14124
14125         pthread_sigmask: Fix return value.
14126         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14127         * lib/pthread_sigmask.c: New file.
14128         * modules/pthread_sigmask (Files): Add it.
14129         (configure.ac): Invoke AC_LIBOBJ.
14130
14131 2011-07-07  Eric Blake  <eblake@redhat.com>
14132
14133         getopt: more portable argv creation
14134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14135         const, use char arrays rather than strings.
14136         Suggested by Paul Eggert.
14137
14138 2011-07-07  Bruno Haible  <bruno@clisp.org>
14139
14140         Tests for module 'sigprocmask'.
14141         * modules/sigprocmask-tests: New file.
14142         * tests/test-sigprocmask.c: New file.
14143
14144 2011-07-07  Bruno Haible  <bruno@clisp.org>
14145
14146         float tests: Tweak.
14147         * tests/test-float.c (main): Tweak skip message.
14148
14149 2011-07-07  Eric Blake  <eblake@redhat.com>
14150
14151         getopt: avoid compiler warning during configure
14152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14153         assigning string literals to non-const pointer.
14154
14155         getopt-gnu: avoid crash in glibc getopt
14156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14157         * tests/test-getopt.h (test_getopt): Enhance test.
14158         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14159         * doc/posix-functions/getopt.texi (getopt): Document it.
14160         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14161         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14162         Likewise.
14163
14164 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14165
14166         getopt: handle W; without long options in getopt [BZ #12922]
14167         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14168         but no long options are defined, just return 'W'.
14169
14170 2011-07-07  Bruno Haible  <bruno@clisp.org>
14171
14172         Avoid literal tabs.
14173         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14174         variable containing a tab instead of a literal tab.
14175         Reported by Jim Meyering.
14176
14177 2011-07-07  Bruno Haible  <bruno@clisp.org>
14178
14179         Comments.
14180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14181
14182 2011-07-06  Bruno Haible  <bruno@clisp.org>
14183
14184         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14185         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14186         <winsock2.h>.
14187         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14188         lib/sys_socket.in.h.
14189         (close, gethostname): Hide declarations from <winsock2.h>.
14190         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14191         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14192         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14193         (select): Don't override if gnulib's <sys/select.h> was already
14194         included.
14195         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14196         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14197         setsockopt, shutdown, select): Tweak indentation.
14198
14199 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14200
14201         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14202         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14203         in an application that does not use the sys_select module.
14204
14205 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14206
14207         poll: do not return 0 on timeout=-1
14208         * lib/poll.c: Loop with yield if no events occured
14209
14210 2011-07-06  Eric Blake  <eblake@redhat.com>
14211
14212         pthread_sigmask: always replace when not using pthread
14213         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14214         replacement when using some threading other than pthread.  Fix
14215         logic bug.
14216
14217 2011-07-06  Bruno Haible  <bruno@clisp.org>
14218
14219         Comments.
14220         * m4/printf.m4: Update comments about mingw.
14221
14222 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14223
14224         sys_select: define sigset_t more portably
14225         * lib/sys_select.in.h: Always include <sys/types.h>, since
14226         we now need sigset_t and mingw defines it there.
14227         Include <signal.h> before split inclusion guard, to avoid
14228         mishaps on Solaris, whose <signal.h> eventually includes us.
14229         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14230         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14231         which come from ...
14232         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14233         gl_CHECK_TYPE_SIGSET_T.
14234         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14235         does the real work.
14236         * modules/sys_select (Depends-on): Add 'signal'.
14237
14238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14239         Suggested by Bruno Haible.
14240
14241         pselect: Use pthread_sigmask, not sigprocmask.
14242         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14243         multithreaded apps better than sigprocmask does.
14244         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14245         sigprocmask directly.
14246
14247 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14248
14249         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14250         Don't #undef,  since we don't need any underlying pselect.
14251         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14252         (Depends-on): Add select.
14253         (Link): Add $(LIBSOCKET).
14254         These changes suggested by Bruno Haible.
14255
14256         pselect: document better
14257         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14258         * doc/posix-functions/pselect.texi (pselect): Document new module.
14259
14260         pthread_sigmask: new module
14261         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14262         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14263         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14264         This is done only as a macro; I don't know how well that'll
14265         work for C++.  Move <sys/types.h> include before the include_next,
14266         to avoid mishap on Solaris.
14267         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14268         * modules/signal (Makefile.am): Substitute the check's results.
14269         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14270
14271         test-pselect: new module
14272         * modules/pselect-tests, tests/test-pselect.c: New files.
14273         * tests/test-select.c, tests/test-sys_select-c++.cc:
14274         If TEST_PSELECT is defined, test pselect instead of testing select.
14275
14276         * tests/test-sys_select.c (sigset_t): Test for it, too.
14277         Suggested by Bruno Haible.
14278
14279 2011-07-05  Eric Blake  <eblake@redhat.com>
14280
14281         snprintf: guarantee %1$d, for libintl
14282         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14283         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14284         * doc/posix-functions/snprintf.texi (snprintf): Update.
14285         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14286         * tests/test-snprintf.c (main): Enhance test.
14287         * tests/test-vsnprintf.c (main): Likewise.
14288
14289 2011-07-05  Jim Meyering  <meyering@redhat.com>
14290
14291         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14292         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14293         per Bruno's request, to accommodate this idiom (no space after "#")
14294         even when the function is inside an #if block:
14295         char *
14296         gets (char *s)
14297         #undef gets
14298         {
14299           ...
14300         }
14301
14302 2011-07-04  Jim Meyering  <meyering@redhat.com>
14303
14304         maint: indent with spaces, not TABs, and add a rule to check this
14305         * tests/test-userspec.c: Indent with spaces, not TABs.
14306         * tests/test-argp.c: Likewise.
14307         * tests/test-c-stack2.sh: Likewise.
14308         * tests/test-parse-duration.sh: Likewise
14309         * m4/strtod.m4: Likewise.
14310         * m4/alloca.m4: Likewise.
14311         * m4/pselect.m4: Likewise.
14312         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14313
14314 2011-07-03  Jim Meyering  <meyering@redhat.com>
14315
14316         maint.mk: correct omissions in prohibit_argmatch_without_use check
14317         This rule would mistakenly report that argmatch.h is included without
14318         use even when both the argmatch and invalid_arg macro were used.
14319         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14320         of argmatch and invalid_arg.
14321
14322 2011-07-03  Bruno Haible  <bruno@clisp.org>
14323
14324         Comments about EINTR.
14325         * lib/safe-read.h: Explain the purpose of this module.
14326         * lib/safe-write.h: Likewise.
14327         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14328         module.
14329         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14330         module.
14331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14332
14333 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         xnanosleep: Rewrite to use new dtotimespec module.
14336         It has the conversion code that used to be in xnanosleep.
14337         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14338         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14339         (TIME_T_MAX): Remove.
14340         (xnanosleep): Rewrite in terms of dtotimespec.
14341         * modules/xnanosleep (Depends-on): Add dtotimespec.
14342         Remove intprops, stdbool.
14343
14344         timespec-add, timespec-sub: new modules
14345         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14346         * lib/timespec-add.c, lib/timespec-sub.c:
14347         * modules/timespec-add, modules/timespec-sub: New files.
14348
14349         dtotimespec: new module
14350         * lib/timespec.h (dtotimespec): New decl.
14351         * lib/dtotimespec.c, modules/dtotimespec: New files.
14352
14353         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14354
14355         pselect: new module
14356         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14357         (pselect): New decls.
14358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14359         since the standard pselect decl uses 'restrict'.
14360         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14361         HAVE_PSELECT, REPLACE_PSELECT.
14362         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14363         HAVE_PSELECT, REPLACE_PSELECT.
14364         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14365
14366         sys_select: don't depend on sys_socket
14367         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14369         This fix works on GNU and GNU-like platforms, but has not been tested
14370         on native Windows.
14371         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14373         gl_HEADER_SYS_SOCKET.
14374         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14375         gl_PREREQ_SYS_H_WINSOCK2.
14376
14377 2011-06-29  Eric Blake  <eblake@redhat.com>
14378
14379         pipe2: fix C89 compile problem
14380         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14381         Reported by Bruno Haible.
14382
14383         pipe, pipe2: don't corrupt fd on error
14384         * lib/pipe.c (pipe): Leave fd unchanged on error.
14385         * lib/pipe2.c (pipe2): Likewise.
14386         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14387         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14388
14389 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14390
14391         mmap-anon: do not use regular expressions inadvertently
14392         * m4/mmap-anon.m4: Remove trailing period from strings sought
14393         in the output.
14394
14395 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14396
14397         nanosleep: fix integer overflow problem
14398         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14399         arithmetic wraps around on overflow.
14400
14401         nanosleep: simplify carrying
14402         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14403         first call to the underyling nanosleep, not for the last one.
14404         This doesn't fix any bugs, but it simplifies the computation of
14405         the remaining delay.  Found while auditing integer overflow issues.
14406
14407         dup2: remove test for existence of fcntl
14408         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14409         "#if HAVE_FCNTL", in the configure-time test program.
14410         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14411         and therefore speeds up "configure" a bit.  Found while
14412         adding the dup2 module to Emacs.
14413
14414 2011-06-24  Eric Blake  <eblake@redhat.com>
14415
14416         maint.mk: enhance useless header checks
14417         * top/maint.mk (_sc_header_without_use): Check both include
14418         styles.
14419         (sc_prohibit_assert_without_use)
14420         (sc_prohibit_close_stream_without_use)
14421         (sc_prohibit_getopt_without_use)
14422         (sc_prohibit_quotearg_without_use)
14423         (sc_prohibit_quote_without_use)
14424         (sc_prohibit_long_options_without_use)
14425         (sc_prohibit_inttostr_without_use)
14426         (sc_prohibit_ignore_value_without_use)
14427         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14428         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14429         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14430         (sc_prohibit_hash_pjw_without_use)
14431         (sc_prohibit_safe_read_without_use)
14432         (sc_prohibit_argmatch_without_use)
14433         (sc_prohibit_canonicalize_without_use)
14434         (sc_prohibit_root_dev_ino_without_use)
14435         (sc_prohibit_openat_without_use)
14436         (sc_prohibit_c_ctype_without_use)
14437         (sc_prohibit_signal_without_use)
14438         (sc_prohibit_stdio--_without_use)
14439         (sc_prohibit_stdio-safer_without_use)
14440         (sc_prohibit_strings_without_use)
14441         (sc_prohibit_intprops_without_use)
14442         (sc_prohibit_stddef_without_use)
14443         (sc_prohibit_xfreopen_without_use): Update clients.
14444
14445 2011-06-24  Jim Meyering  <meyering@redhat.com>
14446
14447         syntax-check: keep one maint.mk rule in sync with its header
14448         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14449         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14450         I prefer to avoid temporary files here, so use <(...), but that
14451         is not supported by /bin/sh, so...
14452         (SHELL): Define to /bin/bash.
14453
14454 2011-06-24  Eric Blake  <eblake@redhat.com>
14455
14456         maint.mk: update sc_prohibit_intprops_without_use
14457         * top/maint.mk (_intprops_names): Match recent changes.
14458
14459 2011-06-24  Bruno Haible  <bruno@clisp.org>
14460
14461         strerror-override: No-op tweak.
14462         * lib/strerror-override.h (strerror_override): Reorder conditions,
14463         for consistency with lib/strerror-override.c.
14464
14465 2011-06-23  Eric Blake  <eblake@redhat.com>
14466
14467         maint.mk: test further PATH_MAX issues
14468         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14469         (sc_prohibit_path_max_allocation): ...and also test alloca.
14470         Suggested by Jim Meyering.
14471
14472 2011-06-22  Eric Blake  <eblake@redhat.com>
14473
14474         maint.mk: add syntax-check to avoid char[PATH_MAX]
14475         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14476
14477         stat: be robust to PATH_MAX definition
14478         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14479         * modules/stat (Depends-on): Add verify.
14480
14481         link: work around IRIX bug
14482         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14483         * lib/link.c (rpl_link): Work around it.
14484         * tests/test-link.h (test_link): Enhance test.
14485         * doc/posix-functions/link.texi (link): Document the bug.
14486
14487         getopt: silence clang warning
14488         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14489         dereference.
14490         Reported by Gustavo Martin Domato.
14491
14492 2011-06-22  Jim Meyering  <meyering@redhat.com>
14493
14494         bootstrap: do not insert a blank line into each .gitignore file
14495         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14496
14497 2011-06-21  Eric Blake  <eblake@redhat.com>
14498
14499         perror: test for output mismatch
14500         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14501         perror on IRIX.
14502
14503         strerror_r: fix OpenBSD behavior on out-of-range
14504         * lib/strerror_r.c (strerror_r): Always use maximal string.
14505         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14506
14507         strerror_r: fix OpenBSD behavior on 0
14508         * lib/strerror-override.c (strerror_override): Also override 0
14509         when needed.
14510         * lib/strerror-override.h (strerror_override): Likewise.
14511         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14512         earlier.
14513         * lib/strerror_r.c (strerror_r): Likewise.
14514         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14515         behavior...
14516         (gl_FUNC_STRERROR_0): ...into new macro.
14517         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14518         is overridden.
14519         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14520         * modules/strerror-override (Files): Add strerror.m4.
14521         (configure.ac): Also provide override for 0 when needed.
14522         * doc/posix-functions/strerror.texi (strerror): Document this.
14523         * doc/posix-functions/perror.texi (perror): Likewise.
14524
14525         perror: adjust array size
14526         * modules/perror (Depends-on): Add strerror-override.
14527         * lib/perror.c (perror): Use it to avoid magic number.
14528
14529         strerror-override: reduce size
14530         * lib/strerror-override.c (strerror_override): Use fewer lines.
14531
14532 2011-06-20  Bruno Haible  <bruno@clisp.org>
14533
14534         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14535         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14536
14537 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14538
14539         alloca: port to compilers that can optimize like GCC 4.6.0
14540         * lib/alloca.c (find_stack_direction): New signature, taken from
14541         Autoconf git.  This works with GCC 4.6.0.  This code should never
14542         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14543         be used with other compilers that optimize as well as GCC 4.6.0 does.
14544         (alloca): Adjust to new signature.
14545         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14546         New macro, which patches Autoconf in a similar way.
14547
14548         c-stack: stop worrying about stack direction
14549         * lib/c-stack.c (find_stack_direction): Remove.
14550         (segv_handler): Don't worry about stack direction growth, as it's
14551         too much of a pain to configure this correctly, given how compilers
14552         are optimizing-away our stack-growth detection code.  Instead, assume
14553         that any access to just before or just after the stack is OK.
14554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14555         Don't require AC_FUNC_ALLOCA; no longer needed.
14556
14557 2011-06-20  Eric Blake  <eblake@redhat.com>
14558
14559         test-stat: don't allocate PATH_MAX bytes
14560         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14561         PATH_MAX-sized buffer.
14562         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14563         * modules/stat-tests (Depends-on): Likewise.
14564         * tests/test-fstatat.c (includes): Drop pathmax.h.
14565         * tests/test-stat.c (includes): Likewise.
14566         Reported by Bruno Haible.
14567
14568 2011-06-20  Bruno Haible  <bruno@clisp.org>
14569
14570         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14571         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14572         * lib/float.c: New file.
14573         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14574         REPLACE_FLOAT_LDBL.
14575         * modules/float (Files): Add lib/float.c.
14576         (configure.ac): Invoke AC_LIBOBJ.
14577         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14578
14579 2011-06-20  Bruno Haible  <bruno@clisp.org>
14580
14581         Tests for module 'float'.
14582         * modules/float-tests: New file.
14583         * tests/test-float.c: New file.
14584
14585 2011-06-19  Bruno Haible  <bruno@clisp.org>
14586
14587         isinf: Coding style.
14588         * lib/isinf.c: Use GNU coding style.
14589
14590 2011-06-19  Bruno Haible  <bruno@clisp.org>
14591
14592         linkat test: Avoid test failure on AIX 7.1.
14593         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14594         * tests/test-link.h (test_link): Likewise.
14595
14596 2011-06-19  Bruno Haible  <bruno@clisp.org>
14597
14598         pread test: Avoid test failure on OpenBSD 4.9.
14599         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14600
14601 2011-06-19  Bruno Haible  <bruno@clisp.org>
14602
14603         sprintf-posix: Fix test failure on AIX 7.1.
14604         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14605         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14606         on AIX.
14607         * doc/posix-functions/fprintf.texi: Likewise.
14608         * doc/posix-functions/printf.texi: Likewise.
14609         * doc/posix-functions/snprintf.texi: Likewise.
14610         * doc/posix-functions/sprintf.texi: Likewise.
14611         * doc/posix-functions/vdprintf.texi: Likewise.
14612         * doc/posix-functions/vfprintf.texi: Likewise.
14613         * doc/posix-functions/vprintf.texi: Likewise.
14614         * doc/posix-functions/vsnprintf.texi: Likewise.
14615         * doc/posix-functions/vsprintf.texi: Likewise.
14616
14617 2011-06-19  Bruno Haible  <bruno@clisp.org>
14618
14619         roundl-ieee: Fix test failure on AIX 7.1.
14620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14621         * doc/posix-functions/roundl.texi: Mention problem with negative
14622         arguments.
14623
14624 2011-06-19  Bruno Haible  <bruno@clisp.org>
14625
14626         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14627         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14628         * doc/posix-functions/round.texi: Mention problem with negative
14629         arguments.
14630         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14631
14632 2011-06-19  Bruno Haible  <bruno@clisp.org>
14633
14634         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14636         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14637         * doc/posix-functions/roundf.texi: Mention problem with negative
14638         arguments.
14639         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14640
14641 2011-06-19  Bruno Haible  <bruno@clisp.org>
14642
14643         ceilf-ieee: Work around bug on MacOS X 10.5.
14644         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14645
14646         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14647         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14648         IEEE compliant, avoid compiler optimizations.
14649         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14650         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14651         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14652         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14653         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14654         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14655         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14656         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14657         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14658         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14659
14660 2011-06-19  Bruno Haible  <bruno@clisp.org>
14661
14662         ceilf-ieee: Work around bug on AIX 7.1.
14663         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14664         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14665
14666 2011-06-19  Bruno Haible  <bruno@clisp.org>
14667
14668         ceil-ieee: Work around bug on AIX 7.1.
14669         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14670         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14671
14672 2011-06-18  Bruno Haible  <bruno@clisp.org>
14673
14674         fsync test: Avoid test failure on MacOS X and AIX.
14675         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14676         EINVAL.
14677
14678 2011-06-18  Bruno Haible  <bruno@clisp.org>
14679
14680         openat, fdopendir tests: Fix link errors.
14681         * modules/openat-tests (Depends-on): Add progname.
14682         * modules/fdopendir-tests (Depends-on): Likewise.
14683         * tests/test-fchownat.c: Include progname.h.
14684         (main): Call set_program_name.
14685         * tests/test-fstatat.c: Include progname.h.
14686         (main): Call set_program_name.
14687         * tests/test-mkdirat.c: Include progname.h.
14688         (main): Call set_program_name.
14689         * tests/test-openat.c: Include progname.h.
14690         (main): Call set_program_name.
14691         * tests/test-unlinkat.c: Include progname.h.
14692         (main): Call set_program_name.
14693         * tests/test-fdopendir.c: Include progname.h.
14694         (main): Call set_program_name.
14695
14696 2011-06-18  Bruno Haible  <bruno@clisp.org>
14697
14698         Doc update.
14699         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14700         HP-UX.
14701         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14702
14703 2011-06-18  Bruno Haible  <bruno@clisp.org>
14704
14705         getcwd tests: Avoid compilation error on HP-UX 11.31.
14706         * modules/getcwd-tests (Depends-on): Add pathmax.
14707         * tests/test-getcwd.c: Include pathmax.h.
14708
14709 2011-06-18  Bruno Haible  <bruno@clisp.org>
14710
14711         isfinite, isinf: Fix link error on AIX 6 and 7.
14712         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14713         needed, also test the macro with a 'float' argument.
14714         * m4/isinf.m4 (gl_ISINF): Likewise.
14715
14716 2011-06-18  Bruno Haible  <bruno@clisp.org>
14717
14718         getloadavg: Don't clobber LIBS. Regression from previous commit.
14719         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14720         AC_CHECK_LIB from here...
14721         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14722         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14723         gl_func_getloadavg_done.
14724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14725
14726 2011-06-18  Bruno Haible  <bruno@clisp.org>
14727
14728         clean-temp: Improve documentation.
14729         * lib/clean-temp.h: Explain better how to use this module.
14730         Reported by John Darrington <john@darrington.wattle.id.au>.
14731
14732 2011-06-17  Bruno Haible  <bruno@clisp.org>
14733
14734         pread, pwrite: Avoid cc warning on AIX.
14735         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14736         (pwrite): Likewise.
14737
14738 2011-06-17  Bruno Haible  <bruno@clisp.org>
14739
14740         spawn-pipe tests: Fix link error.
14741         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14743
14744 2011-06-17  Bruno Haible  <bruno@clisp.org>
14745
14746         Tests: Remove unnecessary dependency.
14747         * modules/canonicalize-tests (Depends-on): Remove progname.
14748         * modules/chown-tests (Depends-on): Likewise.
14749         * modules/dirname-tests (Depends-on): Likewise.
14750         * modules/fdopendir-tests (Depends-on): Likewise.
14751         * modules/fdutimensat-tests (Depends-on): Likewise.
14752         * modules/hash-tests (Depends-on): Likewise.
14753         * modules/lchown-tests (Depends-on): Likewise.
14754         * modules/linkat-tests (Depends-on): Likewise.
14755         * modules/renameat-tests (Depends-on): Likewise.
14756         * modules/spawn-pipe-tests (Depends-on): Likewise.
14757         * modules/utimensat-tests (Depends-on): Likewise.
14758
14759 2011-06-17  Bruno Haible  <bruno@clisp.org>
14760
14761         spawn-pipe tests: Fix link error.
14762         * tests/test-spawn-pipe-child.c: Undefine fflush.
14763
14764 2011-06-17  Bruno Haible  <bruno@clisp.org>
14765
14766         Fix tests link errors.
14767         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14768         * modules/chown-tests (Makefile.am): Don't link test-chown with
14769         LIBINTL.
14770         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14771         LIBINTL.
14772         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14773         LIBINTL.
14774         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14775         LIBINTL.
14776
14777 2011-06-16  Bruno Haible  <bruno@clisp.org>
14778
14779         crypto/gc-sha1: Fix recent regression.
14780         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14781         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14782
14783         crypto/gc-md5: Fix recent regression.
14784         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14785
14786         crypto/gc-md4: Fix recent regression.
14787         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14788         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14789
14790         crypto/gc-arctwo: Fix recent regression.
14791         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14792         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14793
14794         crypto/gc-rijndael: Fix recent regression.
14795         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14796         (configure.ac): Invoke AC_LIBOBJ here.
14797         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14799
14800         crypto/gc-hmac-sha1: Fix recent regression.
14801         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14802         (configure.ac): Invoke AC_LIBOBJ here.
14803         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14805
14806         crypto/gc-hmac-md5: Fix recent regression.
14807         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14808         (configure.ac): Invoke AC_LIBOBJ here.
14809         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14811
14812         crypto/gc-des: Fix recent regression.
14813         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14814         (configure.ac): Invoke AC_LIBOBJ here.
14815         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14817
14818         crypto/gc-arcfour: Fix recent regression.
14819         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14820         (configure.ac): Invoke AC_LIBOBJ here.
14821         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14823
14824 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14825
14826         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14827         After the 2011-05-21 change, this macro requires
14828         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14829         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14830
14831 2011-06-16  Bruno Haible  <bruno@clisp.org>
14832
14833         fprintftime: Move AC_LIBOBJ invocations to module description.
14834         * m4/fprintftime.m4: Remove file.
14835         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14836         (configure.ac): Remove gl_FPRINTFTIME call.
14837         (Makefile.am): Augment lib_SOURCES.
14838         Reported by Jim Meyering.
14839
14840 2011-06-16  Bruno Haible  <bruno@clisp.org>
14841
14842         tmpfile-safer: Finish 2011-05-23 commit.
14843         * m4/stdio-safer.m4: Really remove file.
14844         Reported by Jim Meyering.
14845
14846 2011-06-16  Bruno Haible  <bruno@clisp.org>
14847
14848         syntax-check: Fix typo.
14849         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14850         printf-posix.m4.
14851         Reported by Jim Meyering.
14852
14853 2011-06-13  Jim Meyering  <meyering@redhat.com>
14854
14855         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14856         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14857
14858 2011-05-23  Bruno Haible  <bruno@clisp.org>
14859
14860         yesno: Move AC_LIBOBJ invocations to module description.
14861         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14862         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14863
14864 2011-05-23  Bruno Haible  <bruno@clisp.org>
14865
14866         xstrtol: Move AC_LIBOBJ invocations to module description.
14867         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14868         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14869
14870 2011-05-23  Bruno Haible  <bruno@clisp.org>
14871
14872         xstrtold: Move AC_LIBOBJ invocations to module description.
14873         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14874         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14875
14876 2011-05-23  Bruno Haible  <bruno@clisp.org>
14877
14878         xstrtod: Move AC_LIBOBJ invocations to module description.
14879         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14880         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14881
14882 2011-05-23  Bruno Haible  <bruno@clisp.org>
14883
14884         xnanosleep: Move AC_LIBOBJ invocations to module description.
14885         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14886         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14887
14888 2011-05-23  Bruno Haible  <bruno@clisp.org>
14889
14890         xgetcwd: Move AC_LIBOBJ invocations to module description.
14891         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14892         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14893
14894 2011-05-23  Bruno Haible  <bruno@clisp.org>
14895
14896         xalloc: Move AC_LIBOBJ invocations to module description.
14897         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14898         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14899
14900 2011-05-23  Bruno Haible  <bruno@clisp.org>
14901
14902         write-any-file: Move AC_LIBOBJ invocations to module description.
14903         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14904         invocation.
14905         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14906
14907 2011-05-23  Bruno Haible  <bruno@clisp.org>
14908
14909         utimens: Move AC_LIBOBJ invocations to module description.
14910         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14911         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14912
14913 2011-05-23  Bruno Haible  <bruno@clisp.org>
14914
14915         utimecmp: Move AC_LIBOBJ invocations to module description.
14916         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14917         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14918
14919 2011-05-23  Bruno Haible  <bruno@clisp.org>
14920
14921         userspec: Move AC_LIBOBJ invocations to module description.
14922         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14923         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14924
14925 2011-05-23  Bruno Haible  <bruno@clisp.org>
14926
14927         unlinkdir: Move AC_LIBOBJ invocations to module description.
14928         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14929         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14930
14931 2011-05-23  Bruno Haible  <bruno@clisp.org>
14932
14933         unistd-safer: Move AC_LIBOBJ invocations to module description.
14934         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14935         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14936
14937 2011-05-23  Bruno Haible  <bruno@clisp.org>
14938
14939         tempname: Move AC_LIBOBJ invocations to module description.
14940         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14941         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14942
14943 2011-05-23  Bruno Haible  <bruno@clisp.org>
14944
14945         strftime: Move AC_LIBOBJ invocations to module description.
14946         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14947         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14948
14949 2011-05-23  Bruno Haible  <bruno@clisp.org>
14950
14951         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14952         * m4/stdlib-safer.m4: Remove file.
14953         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14954         (configure.ac): Remove gl_STDLIB_SAFER call.
14955         (Makefile.am): Augment lib_SOURCES.
14956
14957 2011-05-23  Bruno Haible  <bruno@clisp.org>
14958
14959         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14960         * m4/stdio-safer.m4: Remove file.
14961         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14962         (configure.ac): Remove gl_TMPFILE_SAFER call.
14963         (Makefile.am): Augment lib_SOURCES.
14964
14965 2011-05-23  Bruno Haible  <bruno@clisp.org>
14966
14967         popen-safer: Move AC_LIBOBJ invocations to module description.
14968         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14969         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14970         (configure.ac): Remove gl_POPEN_SAFER call.
14971         (Makefile.am): Augment lib_SOURCES.
14972
14973 2011-05-23  Bruno Haible  <bruno@clisp.org>
14974
14975         freopen-safer: Move AC_LIBOBJ invocations to module description.
14976         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14977         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14978         (configure.ac): Remove gl_FREOPEN_SAFER call.
14979         (Makefile.am): Augment lib_SOURCES.
14980
14981 2011-05-23  Bruno Haible  <bruno@clisp.org>
14982
14983         fopen-safer: Move AC_LIBOBJ invocations to module description.
14984         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14985         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14986         (configure.ac): Remove gl_FOPEN_SAFER call.
14987         (Makefile.am): Augment lib_SOURCES.
14988
14989 2011-05-23  Bruno Haible  <bruno@clisp.org>
14990
14991         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14992         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14993         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14994
14995 2011-05-23  Bruno Haible  <bruno@clisp.org>
14996
14997         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14998         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14999         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15000
15001 2011-05-23  Bruno Haible  <bruno@clisp.org>
15002
15003         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15004         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15005         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15006
15007 2011-05-23  Bruno Haible  <bruno@clisp.org>
15008
15009         settime: Move AC_LIBOBJ invocations to module description.
15010         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15011         * modules/settime (Makefile.am): Augment lib_SOURCES.
15012
15013 2011-05-23  Bruno Haible  <bruno@clisp.org>
15014
15015         savedir: Move AC_LIBOBJ invocations to module description.
15016         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15017         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15018
15019 2011-05-23  Bruno Haible  <bruno@clisp.org>
15020
15021         save-cwd: Move AC_LIBOBJ invocations to module description.
15022         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15023         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15024
15025 2011-05-23  Bruno Haible  <bruno@clisp.org>
15026
15027         same: Move AC_LIBOBJ invocations to module description.
15028         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15029         * modules/same (Makefile.am): Augment lib_SOURCES.
15030
15031 2011-05-23  Bruno Haible  <bruno@clisp.org>
15032
15033         safe-write: Move AC_LIBOBJ invocations to module description.
15034         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15035         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15036         instead of gl_SAFE_WRITE.
15037         (Makefile.am): Augment lib_SOURCES.
15038
15039 2011-05-23  Bruno Haible  <bruno@clisp.org>
15040
15041         safe-read: Move AC_LIBOBJ invocations to module description.
15042         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15043         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15044         of gl_SAFE_READ.
15045         (Makefile.am): Augment lib_SOURCES.
15046
15047 2011-05-23  Bruno Haible  <bruno@clisp.org>
15048
15049         safe-alloc: Move AC_LIBOBJ invocations to module description.
15050         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15051         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15052
15053 2011-05-23  Bruno Haible  <bruno@clisp.org>
15054
15055         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15056         * m4/rijndael.m4: Remove file.
15057         * modules/crypto/rijndael (Files): Remove it.
15058         (configure.ac): Remove gl_RIJNDAEL call.
15059         (Makefile.am): Augment lib_SOURCES.
15060
15061 2011-05-23  Bruno Haible  <bruno@clisp.org>
15062
15063         readtokens: Move AC_LIBOBJ invocations to module description.
15064         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15065         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15066
15067 2011-05-23  Bruno Haible  <bruno@clisp.org>
15068
15069         read-file: Move AC_LIBOBJ invocations to module description.
15070         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15071         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15072         of gl_FUNC_READ_FILE.
15073         (Makefile.am): Augment lib_SOURCES.
15074
15075 2011-05-23  Bruno Haible  <bruno@clisp.org>
15076
15077         quotearg: Move AC_LIBOBJ invocations to module description.
15078         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15079         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15080
15081 2011-05-23  Bruno Haible  <bruno@clisp.org>
15082
15083         quote: Move AC_LIBOBJ invocations to module description.
15084         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15085         * modules/quote (Makefile.am): Augment lib_SOURCES.
15086
15087 2011-05-23  Bruno Haible  <bruno@clisp.org>
15088
15089         posixver: Move AC_LIBOBJ invocations to module description.
15090         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15091         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15092
15093 2011-05-23  Bruno Haible  <bruno@clisp.org>
15094
15095         posixtm: Move AC_LIBOBJ invocations to module description.
15096         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15097         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15098
15099 2011-05-23  Bruno Haible  <bruno@clisp.org>
15100
15101         physmem: Move AC_LIBOBJ invocations to module description.
15102         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15103         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15104
15105 2011-05-23  Bruno Haible  <bruno@clisp.org>
15106
15107         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15108         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15109         invocation.
15110         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15111
15112 2011-05-23  Bruno Haible  <bruno@clisp.org>
15113
15114         mpsort: Move AC_LIBOBJ invocations to module description.
15115         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15116         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15117
15118 2011-05-23  Bruno Haible  <bruno@clisp.org>
15119
15120         modechange: Move AC_LIBOBJ invocations to module description.
15121         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15122         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15123
15124 2011-05-23  Bruno Haible  <bruno@clisp.org>
15125
15126         mkdir-p: Move AC_LIBOBJ invocations to module description.
15127         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15128         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15129
15130 2011-05-23  Bruno Haible  <bruno@clisp.org>
15131
15132         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15133         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15134         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15135
15136 2011-05-23  Bruno Haible  <bruno@clisp.org>
15137
15138         mgetgroups: Move AC_LIBOBJ invocations to module description.
15139         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15140         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15141
15142 2011-05-23  Bruno Haible  <bruno@clisp.org>
15143
15144         memxor: Move AC_LIBOBJ invocations to module description.
15145         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15146         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15147
15148 2011-05-23  Bruno Haible  <bruno@clisp.org>
15149
15150         memcoll: Move AC_LIBOBJ invocations to module description.
15151         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15152         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15153
15154 2011-05-23  Bruno Haible  <bruno@clisp.org>
15155
15156         memcasecmp: Move AC_LIBOBJ invocations to module description.
15157         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15158         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15159
15160 2011-05-23  Bruno Haible  <bruno@clisp.org>
15161
15162         crypto/md5: Move AC_LIBOBJ invocations to module description.
15163         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15164         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15165
15166 2011-05-23  Bruno Haible  <bruno@clisp.org>
15167
15168         crypto/md4: Move AC_LIBOBJ invocations to module description.
15169         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15170         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15171
15172 2011-05-23  Bruno Haible  <bruno@clisp.org>
15173
15174         crypto/md2: Move AC_LIBOBJ invocations to module description.
15175         * m4/md2.m4: Remove file.
15176         * modules/crypto/md2 (Files): Remove it.
15177         (configure.ac): Remove gl_MD2 call.
15178         (Makefile.am): Augment lib_SOURCES.
15179
15180 2011-05-23  Bruno Haible  <bruno@clisp.org>
15181
15182         long-options: Move AC_LIBOBJ invocations to module description.
15183         * m4/long-options.m4: Remove file.
15184         * modules/long-options (Files): Remove it.
15185         (configure.ac): Remove gl_LONG_OPTIONS call.
15186         (Makefile.am): Augment lib_SOURCES.
15187
15188 2011-05-23  Bruno Haible  <bruno@clisp.org>
15189
15190         i-ring: Move AC_LIBOBJ invocations to module description.
15191         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15192         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15193
15194 2011-05-23  Bruno Haible  <bruno@clisp.org>
15195
15196         idcache: Move AC_LIBOBJ invocations to module description.
15197         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15198         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15199
15200 2011-05-23  Bruno Haible  <bruno@clisp.org>
15201
15202         human: Move AC_LIBOBJ invocations to module description.
15203         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15204         * modules/human (Makefile.am): Augment lib_SOURCES.
15205
15206 2011-05-23  Bruno Haible  <bruno@clisp.org>
15207
15208         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15209         * m4/hmac-sha1.m4: Remove file.
15210         * modules/crypto/hmac-sha1 (Files): Remove it.
15211         (configure.ac): Remove gl_HMAC_SHA1 call.
15212         (Makefile.am): Augment lib_SOURCES.
15213
15214 2011-05-23  Bruno Haible  <bruno@clisp.org>
15215
15216         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15217         * m4/hmac-md5.m4: Remove file.
15218         * modules/crypto/hmac-md5 (Files): Remove it.
15219         (configure.ac): Remove gl_HMAC_MD5 call.
15220         (Makefile.am): Augment lib_SOURCES.
15221
15222 2011-05-23  Bruno Haible  <bruno@clisp.org>
15223
15224         hash: Move AC_LIBOBJ invocations to module description.
15225         * m4/hash.m4: Remove file.
15226         * modules/hash (Files): Remove it.
15227         (configure.ac): Remove gl_HASH call.
15228         (Makefile.am): Augment lib_SOURCES.
15229
15230 2011-05-23  Bruno Haible  <bruno@clisp.org>
15231
15232         hard-locale: Move AC_LIBOBJ invocations to module description.
15233         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15234         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15235
15236 2011-05-23  Bruno Haible  <bruno@clisp.org>
15237
15238         getugroups: Move AC_LIBOBJ invocations to module description.
15239         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15240         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15241
15242 2011-05-23  Bruno Haible  <bruno@clisp.org>
15243
15244         gettime: Move AC_LIBOBJ invocations to module description.
15245         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15246         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15247
15248 2011-05-23  Bruno Haible  <bruno@clisp.org>
15249
15250         getndelim2: Move AC_LIBOBJ invocations to module description.
15251         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15252         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15253
15254 2011-05-23  Bruno Haible  <bruno@clisp.org>
15255
15256         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15257         * m4/gc-pbkdf2-sha1.m4: Remove file.
15258         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15259         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15260         (Makefile.am): Augment lib_SOURCES.
15261
15262 2011-05-23  Bruno Haible  <bruno@clisp.org>
15263
15264         fts: Move AC_LIBOBJ invocations to module description.
15265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15266         * modules/fts (configure.ac): ... to here.
15267
15268 2011-05-23  Bruno Haible  <bruno@clisp.org>
15269
15270         file-type: Move AC_LIBOBJ invocations to module description.
15271         * m4/file-type.m4: Remove file.
15272         * modules/file-type (Files): Remove it.
15273         (configure.ac): Remove gl_FILE_TYPE call.
15274         (Makefile.am): Augment lib_SOURCES.
15275
15276 2011-05-23  Bruno Haible  <bruno@clisp.org>
15277
15278         filenamecat*: Respect rules for use of AC_LIBOBJ.
15279         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15280         Remove AC_LIBOBJ invocation.
15281         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15282         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15283
15284 2011-05-23  Bruno Haible  <bruno@clisp.org>
15285
15286         filemode: Move AC_LIBOBJ invocations to module description.
15287         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15288         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15289
15290 2011-05-23  Bruno Haible  <bruno@clisp.org>
15291
15292         openat-safer: Move AC_LIBOBJ invocations to module description.
15293         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15294         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15295
15296 2011-05-23  Bruno Haible  <bruno@clisp.org>
15297
15298         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15299         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15300         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15301
15302 2011-05-23  Bruno Haible  <bruno@clisp.org>
15303
15304         exclude: Move AC_LIBOBJ invocations to module description.
15305         * m4/exclude.m4: Remove file.
15306         * modules/exclude (Files): Remove it.
15307         (configure.ac): Remove gl_EXCLUDE call.
15308         (Makefile.am): Augment lib_SOURCES.
15309
15310 2011-05-23  Bruno Haible  <bruno@clisp.org>
15311
15312         dirname*: Respect rules for use of AC_LIBOBJ.
15313         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15314         invocations.
15315         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15316         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15317
15318 2011-05-23  Bruno Haible  <bruno@clisp.org>
15319
15320         dirent-safer: Move AC_LIBOBJ invocations to module description.
15321         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15322         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15323
15324 2011-05-23  Bruno Haible  <bruno@clisp.org>
15325
15326         crypto/des: Move AC_LIBOBJ invocations to module description.
15327         * m4/des.m4: Remove file.
15328         * modules/crypto/des (Files): Remove it.
15329         (configure.ac): Remove gl_DES call.
15330         (Makefile.am): Augment lib_SOURCES.
15331
15332 2011-05-23  Bruno Haible  <bruno@clisp.org>
15333
15334         cycle-check: Move AC_LIBOBJ invocations to module description.
15335         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15336         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15337
15338 2011-05-23  Bruno Haible  <bruno@clisp.org>
15339
15340         c-strtold: Move AC_LIBOBJ invocations to module description.
15341         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15342         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15343
15344 2011-05-23  Bruno Haible  <bruno@clisp.org>
15345
15346         c-strtod: Move AC_LIBOBJ invocations to module description.
15347         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15348         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15349
15350 2011-05-23  Bruno Haible  <bruno@clisp.org>
15351
15352         crc: Move AC_LIBOBJ invocations to module description.
15353         * m4/crc.m4: Remove file.
15354         * modules/crc (Files): Remove it.
15355         (configure.ac): Remove gl_CRC call.
15356         (Makefile.am): Augment lib_SOURCES.
15357
15358 2011-05-23  Bruno Haible  <bruno@clisp.org>
15359
15360         close-stream: Move AC_LIBOBJ invocations to module description.
15361         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15362         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15363
15364 2011-05-23  Bruno Haible  <bruno@clisp.org>
15365
15366         closeout: Move AC_LIBOBJ invocations to module description.
15367         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15368         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15369
15370 2011-05-23  Bruno Haible  <bruno@clisp.org>
15371
15372         closein: Move AC_LIBOBJ invocations to module description.
15373         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15374         * modules/closein (Makefile.am): Augment lib_SOURCES.
15375
15376 2011-05-23  Bruno Haible  <bruno@clisp.org>
15377
15378         cloexec: Move AC_LIBOBJ invocations to module description.
15379         * m4/cloexec.m4: Remove file.
15380         * modules/cloexec (Files): Remove it.
15381         (configure.ac): Remove gl_CLOEXEC call.
15382         (Makefile.am): Augment lib_SOURCES.
15383
15384 2011-05-23  Bruno Haible  <bruno@clisp.org>
15385
15386         check-version: Move AC_LIBOBJ invocations to module description.
15387         * m4/check-version.m4: Remove file.
15388         * modules/check-version (Files): Remove it.
15389         (configure.ac): Remove gl_CHECK_VERSION call.
15390         (Makefile.am): Augment lib_SOURCES.
15391
15392 2011-05-23  Bruno Haible  <bruno@clisp.org>
15393
15394         chdir-safer: Move AC_LIBOBJ invocations to module description.
15395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15396         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15397
15398 2011-05-23  Bruno Haible  <bruno@clisp.org>
15399
15400         canonicalize: Move AC_LIBOBJ invocations to module description.
15401         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15402         AC_LIBOBJ invocation.
15403         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15404
15405 2011-05-23  Bruno Haible  <bruno@clisp.org>
15406
15407         canon-host: Move AC_LIBOBJ invocations to module description.
15408         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15409         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15410         instead of gl_CANON_HOST.
15411         (Makefile.am): Augment lib_SOURCES.
15412
15413 2011-05-23  Bruno Haible  <bruno@clisp.org>
15414
15415         backupfile: Move AC_LIBOBJ invocations to module description.
15416         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15417         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15418
15419 2011-05-23  Bruno Haible  <bruno@clisp.org>
15420
15421         argmatch: Move AC_LIBOBJ invocations to module description.
15422         * m4/argmatch.m4: Remove file.
15423         * modules/argmatch (Files): Remove it.
15424         (configure.ac): Remove gl_ARGMATCH call.
15425         (Makefile.am): Augment lib_SOURCES.
15426
15427 2011-05-23  Bruno Haible  <bruno@clisp.org>
15428
15429         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15430         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15431         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15432
15433 2011-05-23  Bruno Haible  <bruno@clisp.org>
15434
15435         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15436         * m4/arcfour.m4: Remove file.
15437         * modules/crypto/arcfour (Files): Remove it.
15438         (configure.ac): Remove gl_ARCFOUR call.
15439         (Makefile.am): Augment lib_SOURCES.
15440
15441 2011-05-22  Bruno Haible  <bruno@clisp.org>
15442
15443         write: Move AC_LIBOBJ invocations to module description.
15444         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15445         * modules/write (configure.ac): ... to here.
15446
15447 2011-05-22  Bruno Haible  <bruno@clisp.org>
15448
15449         wmemset: Move AC_LIBOBJ invocations to module description.
15450         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15451         here...
15452         * modules/wmemset (configure.ac): ... to here.
15453
15454 2011-05-22  Bruno Haible  <bruno@clisp.org>
15455
15456         wmemmove: Move AC_LIBOBJ invocations to module description.
15457         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15458         here...
15459         * modules/wmemmove (configure.ac): ... to here.
15460
15461 2011-05-22  Bruno Haible  <bruno@clisp.org>
15462
15463         wmemcpy: Move AC_LIBOBJ invocations to module description.
15464         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15465         here...
15466         * modules/wmemcpy (configure.ac): ... to here.
15467
15468 2011-05-22  Bruno Haible  <bruno@clisp.org>
15469
15470         wmemcmp: Move AC_LIBOBJ invocations to module description.
15471         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15472         here...
15473         * modules/wmemcmp (configure.ac): ... to here.
15474
15475 2011-05-22  Bruno Haible  <bruno@clisp.org>
15476
15477         wmemchr: Move AC_LIBOBJ invocations to module description.
15478         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15479         here...
15480         * modules/wmemchr (configure.ac): ... to here.
15481
15482 2011-05-22  Bruno Haible  <bruno@clisp.org>
15483
15484         wcswidth: Move AC_LIBOBJ invocations to module description.
15485         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15486         here...
15487         * modules/wcswidth (configure.ac): ... to here.
15488
15489 2011-05-22  Bruno Haible  <bruno@clisp.org>
15490
15491         wcwidth: Respect rules for use of AC_LIBOBJ.
15492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15493         invocation from here...
15494         * modules/wcwidth (configure.ac): ... to here.
15495         (Depends-on): Update conditions.
15496
15497 2011-05-22  Bruno Haible  <bruno@clisp.org>
15498
15499         wctype: Move AC_LIBOBJ invocations to module description.
15500         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15501         invocation from here...
15502         * modules/wctype (configure.ac): ... to here.
15503         (Depends-on): Update conditions.
15504
15505 2011-05-22  Bruno Haible  <bruno@clisp.org>
15506
15507         wctrans: Move AC_LIBOBJ invocations to module description.
15508         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15509         invocation from here...
15510         * modules/wctrans (configure.ac): ... to here.
15511
15512 2011-05-22  Bruno Haible  <bruno@clisp.org>
15513
15514         wctomb: Move AC_LIBOBJ invocations to module description.
15515         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15516         invocations from here...
15517         * modules/wctomb (configure.ac): ... to here.
15518
15519 2011-05-22  Bruno Haible  <bruno@clisp.org>
15520
15521         wctob: Move AC_LIBOBJ invocations to module description.
15522         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15523         gl_PREREQ_WCTOB invocations from here...
15524         * modules/wctob (configure.ac): ... to here.
15525         (Depends-on): Update conditions.
15526
15527 2011-05-22  Bruno Haible  <bruno@clisp.org>
15528
15529         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15530         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15531         here...
15532         * modules/wcsxfrm (configure.ac): ... to here.
15533
15534 2011-05-22  Bruno Haible  <bruno@clisp.org>
15535
15536         wcstok: Move AC_LIBOBJ invocations to module description.
15537         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15538         * modules/wcstok (configure.ac): ... to here.
15539
15540 2011-05-22  Bruno Haible  <bruno@clisp.org>
15541
15542         wcsstr: Move AC_LIBOBJ invocations to module description.
15543         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15544         * modules/wcsstr (configure.ac): ... to here.
15545
15546 2011-05-22  Bruno Haible  <bruno@clisp.org>
15547
15548         wcsspn: Move AC_LIBOBJ invocations to module description.
15549         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15550         * modules/wcsspn (configure.ac): ... to here.
15551
15552 2011-05-22  Bruno Haible  <bruno@clisp.org>
15553
15554         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15555         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15556         gl_PREREQ_WCSRTOMBS invocations from here...
15557         * modules/wcsrtombs (configure.ac): ... to here.
15558
15559 2011-05-22  Bruno Haible  <bruno@clisp.org>
15560
15561         wcsrchr: Move AC_LIBOBJ invocations to module description.
15562         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15563         here...
15564         * modules/wcsrchr (configure.ac): ... to here.
15565
15566 2011-05-22  Bruno Haible  <bruno@clisp.org>
15567
15568         wcspbrk: Move AC_LIBOBJ invocations to module description.
15569         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15570         here...
15571         * modules/wcspbrk (configure.ac): ... to here.
15572
15573 2011-05-22  Bruno Haible  <bruno@clisp.org>
15574
15575         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15576         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15577         gl_PREREQ_WCSNRTOMBS invocations from here...
15578         * modules/wcsnrtombs (configure.ac): ... to here.
15579
15580 2011-05-22  Bruno Haible  <bruno@clisp.org>
15581
15582         wcsnlen: Move AC_LIBOBJ invocations to module description.
15583         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15584         here...
15585         * modules/wcsnlen (configure.ac): ... to here.
15586
15587 2011-05-22  Bruno Haible  <bruno@clisp.org>
15588
15589         wcsncpy: Move AC_LIBOBJ invocations to module description.
15590         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15591         here...
15592         * modules/wcsncpy (configure.ac): ... to here.
15593
15594 2011-05-22  Bruno Haible  <bruno@clisp.org>
15595
15596         wcsncmp: Move AC_LIBOBJ invocations to module description.
15597         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15598         here...
15599         * modules/wcsncmp (configure.ac): ... to here.
15600
15601 2011-05-22  Bruno Haible  <bruno@clisp.org>
15602
15603         wcsncat: Move AC_LIBOBJ invocations to module description.
15604         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15605         here...
15606         * modules/wcsncat (configure.ac): ... to here.
15607
15608 2011-05-22  Bruno Haible  <bruno@clisp.org>
15609
15610         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15611         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15612         from here...
15613         * modules/wcsncasecmp (configure.ac): ... to here.
15614
15615 2011-05-22  Bruno Haible  <bruno@clisp.org>
15616
15617         wcslen: Move AC_LIBOBJ invocations to module description.
15618         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15619         * modules/wcslen (configure.ac): ... to here.
15620
15621 2011-05-22  Bruno Haible  <bruno@clisp.org>
15622
15623         wcsdup: Move AC_LIBOBJ invocations to module description.
15624         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15625         * modules/wcsdup (configure.ac): ... to here.
15626
15627 2011-05-22  Bruno Haible  <bruno@clisp.org>
15628
15629         wcscspn: Move AC_LIBOBJ invocations to module description.
15630         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15631         here...
15632         * modules/wcscspn (configure.ac): ... to here.
15633
15634 2011-05-22  Bruno Haible  <bruno@clisp.org>
15635
15636         wcscpy: Move AC_LIBOBJ invocations to module description.
15637         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15638         * modules/wcscpy (configure.ac): ... to here.
15639
15640 2011-05-22  Bruno Haible  <bruno@clisp.org>
15641
15642         wcscoll: Move AC_LIBOBJ invocations to module description.
15643         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15644         here...
15645         * modules/wcscoll (configure.ac): ... to here.
15646
15647 2011-05-22  Bruno Haible  <bruno@clisp.org>
15648
15649         wcscmp: Move AC_LIBOBJ invocations to module description.
15650         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15651         * modules/wcscmp (configure.ac): ... to here.
15652
15653 2011-05-22  Bruno Haible  <bruno@clisp.org>
15654
15655         wcschr: Move AC_LIBOBJ invocations to module description.
15656         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15657         * modules/wcschr (configure.ac): ... to here.
15658
15659 2011-05-22  Bruno Haible  <bruno@clisp.org>
15660
15661         wcscat: Move AC_LIBOBJ invocations to module description.
15662         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15663         * modules/wcscat (configure.ac): ... to here.
15664
15665 2011-05-22  Bruno Haible  <bruno@clisp.org>
15666
15667         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15668         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15669         here...
15670         * modules/wcscasecmp (configure.ac): ... to here.
15671
15672 2011-05-22  Bruno Haible  <bruno@clisp.org>
15673
15674         wcrtomb: Move AC_LIBOBJ invocations to module description.
15675         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15676         invocations from here...
15677         * modules/wcrtomb (configure.ac): ... to here.
15678
15679 2011-05-22  Bruno Haible  <bruno@clisp.org>
15680
15681         wcpncpy: Move AC_LIBOBJ invocations to module description.
15682         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15683         here...
15684         * modules/wcpncpy (configure.ac): ... to here.
15685
15686 2011-05-22  Bruno Haible  <bruno@clisp.org>
15687
15688         wcpcpy: Move AC_LIBOBJ invocations to module description.
15689         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15690         * modules/wcpcpy (configure.ac): ... to here.
15691
15692 2011-05-22  Bruno Haible  <bruno@clisp.org>
15693
15694         waitpid: Move AC_LIBOBJ invocations to module description.
15695         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15696         invocation from here...
15697         * modules/waitpid (configure.ac): ... to here.
15698
15699 2011-05-22  Bruno Haible  <bruno@clisp.org>
15700
15701         utimensat: Move AC_LIBOBJ invocations to module description.
15702         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15703         here...
15704         * modules/utimensat (configure.ac): ... to here.
15705
15706 2011-05-22  Bruno Haible  <bruno@clisp.org>
15707
15708         usleep: Move AC_LIBOBJ invocations to module description.
15709         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15710         here...
15711         * modules/usleep (configure.ac): ... to here.
15712
15713 2011-05-22  Bruno Haible  <bruno@clisp.org>
15714
15715         unlockpt: Move AC_LIBOBJ invocations to module description.
15716         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15717         gl_PREREQ_UNLOCKPT invocations from here...
15718         * modules/unlockpt (configure.ac): ... to here.
15719
15720 2011-05-22  Bruno Haible  <bruno@clisp.org>
15721
15722         unlink: Respect rules for use of AC_LIBOBJ.
15723         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15724         * modules/unlink (configure.ac): ... to here.
15725
15726 2011-05-22  Bruno Haible  <bruno@clisp.org>
15727
15728         uname: Move AC_LIBOBJ invocations to module description.
15729         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15731         here...
15732         * modules/uname (configure.ac): ... to here.
15733
15734 2011-05-22  Bruno Haible  <bruno@clisp.org>
15735
15736         ttyname_r: Move AC_LIBOBJ invocations to module description.
15737         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15738         gl_PREREQ_TTYNAME_R invocations from here...
15739         * modules/ttyname_r (configure.ac): ... to here.
15740
15741 2011-05-22  Bruno Haible  <bruno@clisp.org>
15742
15743         tsearch: Move AC_LIBOBJ invocations to module description.
15744         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15745         invocations from here...
15746         * modules/tsearch (configure.ac): ... to here.
15747
15748 2011-05-22  Bruno Haible  <bruno@clisp.org>
15749
15750         towctrans: Move AC_LIBOBJ invocations to module description.
15751         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15752         AC_LIBOBJ invocation from here...
15753         * modules/towctrans (configure.ac): ... to here.
15754
15755 2011-05-22  Bruno Haible  <bruno@clisp.org>
15756
15757         tmpfile: Move AC_LIBOBJ invocations to module description.
15758         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15759         invocations from here...
15760         * modules/tmpfile (configure.ac): ... to here.
15761
15762 2011-05-22  Bruno Haible  <bruno@clisp.org>
15763
15764         times: Move AC_LIBOBJ invocations to module description.
15765         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15766         * modules/times (configure.ac): ... to here.
15767
15768 2011-05-22  Bruno Haible  <bruno@clisp.org>
15769
15770         time_r: Move AC_LIBOBJ invocations to module description.
15771         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15772         invocations from here...
15773         * modules/time_r (configure.ac): ... to here.
15774
15775 2011-05-22  Bruno Haible  <bruno@clisp.org>
15776
15777         timegm: Move AC_LIBOBJ invocations to module description.
15778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15779         invocations from here...
15780         * modules/timegm (configure.ac): ... to here.
15781
15782 2011-05-22  Bruno Haible  <bruno@clisp.org>
15783
15784         tcgetsid: Move AC_LIBOBJ invocations to module description.
15785         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15786         and gl_PREREQ_TCGETSID invocations from here...
15787         * modules/tcgetsid (configure.ac): ... to here.
15788         (Depends-on): Update conditions.
15789
15790 2011-05-22  Bruno Haible  <bruno@clisp.org>
15791
15792         symlinkat: Move AC_LIBOBJ invocations to module description.
15793         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15794         here...
15795         * modules/symlinkat (configure.ac): ... to here.
15796
15797 2011-05-22  Bruno Haible  <bruno@clisp.org>
15798
15799         symlink: Move AC_LIBOBJ invocations to module description.
15800         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15801         here...
15802         * modules/symlink (configure.ac): ... to here.
15803
15804 2011-05-22  Bruno Haible  <bruno@clisp.org>
15805
15806         strverscmp: Move AC_LIBOBJ invocations to module description.
15807         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15809         from here...
15810         * modules/strverscmp (configure.ac): ... to here.
15811
15812 2011-05-22  Bruno Haible  <bruno@clisp.org>
15813
15814         strtok_r: Move AC_LIBOBJ invocations to module description.
15815         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15816         and gl_PREREQ_STRTOK_R invocations from here...
15817         * modules/strtok_r (configure.ac): ... to here.
15818         (Depends-on): Update conditions.
15819
15820 2011-05-22  Bruno Haible  <bruno@clisp.org>
15821
15822         strtoumax: Move AC_LIBOBJ invocations to module description.
15823         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15825         from here...
15826         * modules/strtoumax (configure.ac): ... to here.
15827
15828 2011-05-22  Bruno Haible  <bruno@clisp.org>
15829
15830         strtoimax: Move AC_LIBOBJ invocations to module description.
15831         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15833         from here...
15834         * modules/strtoimax (configure.ac): ... to here.
15835
15836 2011-05-22  Bruno Haible  <bruno@clisp.org>
15837
15838         strtoull: Move AC_LIBOBJ invocations to module description.
15839         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15841         from here...
15842         * modules/strtoull (configure.ac): ... to here.
15843
15844 2011-05-22  Bruno Haible  <bruno@clisp.org>
15845
15846         strtoll: Move AC_LIBOBJ invocations to module description.
15847         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15849         here...
15850         * modules/strtoll (configure.ac): ... to here.
15851
15852 2011-05-22  Bruno Haible  <bruno@clisp.org>
15853
15854         strtoul: Move AC_LIBOBJ invocations to module description.
15855         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15856         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15857         * modules/strtoul (configure.ac): ... to here.
15858
15859 2011-05-22  Bruno Haible  <bruno@clisp.org>
15860
15861         strtol: Move AC_LIBOBJ invocations to module description.
15862         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15863         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15864         * modules/strtol (configure.ac): ... to here.
15865
15866 2011-05-22  Bruno Haible  <bruno@clisp.org>
15867
15868         strtod: Move AC_LIBOBJ invocations to module description.
15869         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15870         invocations from here...
15871         * modules/strtod (configure.ac): ... to here.
15872
15873 2011-05-22  Bruno Haible  <bruno@clisp.org>
15874
15875         strstr*: Move AC_LIBOBJ invocations to module description.
15876         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15877         invocations from here...
15878         * modules/strstr-simple (configure.ac): ... to here.
15879         * modules/strstr (configure.ac): ... and here.
15880
15881 2011-05-22  Bruno Haible  <bruno@clisp.org>
15882
15883         strsignal: Move AC_LIBOBJ invocations to module description.
15884         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15885         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15886         * modules/strsignal (configure.ac): ... to here.
15887         (Depends-on): Update conditions.
15888
15889 2011-05-22  Bruno Haible  <bruno@clisp.org>
15890
15891         strsep: Move AC_LIBOBJ invocations to module description.
15892         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15894         here...
15895         * modules/strsep (configure.ac): ... to here.
15896
15897 2011-05-22  Bruno Haible  <bruno@clisp.org>
15898
15899         strptime: Move AC_LIBOBJ invocations to module description.
15900         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15901         gl_PREREQ_STRPTIME invocations from here...
15902         * modules/strptime (configure.ac): ... to here.
15903
15904 2011-05-22  Bruno Haible  <bruno@clisp.org>
15905
15906         strpbrk: Move AC_LIBOBJ invocations to module description.
15907         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15909         here...
15910         * modules/strpbrk (configure.ac): ... to here.
15911
15912 2011-05-22  Bruno Haible  <bruno@clisp.org>
15913
15914         strnlen: Move AC_LIBOBJ invocations to module description.
15915         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15916         invocations from here...
15917         * modules/strnlen (configure.ac): ... to here.
15918
15919 2011-05-22  Bruno Haible  <bruno@clisp.org>
15920
15921         strndup: Move AC_LIBOBJ invocations to module description.
15922         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15923         invocations from here...
15924         * modules/strndup (configure.ac): ... to here.
15925         (Depends-on): Update conditions.
15926
15927 2011-05-22  Bruno Haible  <bruno@clisp.org>
15928
15929         strncat: Move AC_LIBOBJ invocations to module description.
15930         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15931         invocations from here...
15932         * modules/strncat (configure.ac): ... to here.
15933
15934 2011-05-22  Bruno Haible  <bruno@clisp.org>
15935
15936         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15937         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15938         invocations from here...
15939         * modules/strdup (configure.ac): ... to here.
15940         * modules/strdup-posix (configure.ac): ... and here.
15941
15942 2011-05-22  Bruno Haible  <bruno@clisp.org>
15943
15944         strcspn: Move AC_LIBOBJ invocations to module description.
15945         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15947         here...
15948         * modules/strcspn (configure.ac): ... to here.
15949
15950 2011-05-22  Bruno Haible  <bruno@clisp.org>
15951
15952         strchrnul: Move AC_LIBOBJ invocations to module description.
15953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15954         gl_PREREQ_STRCHRNUL invocations from here...
15955         * modules/strchrnul (configure.ac): ... to here.
15956
15957 2011-05-22  Bruno Haible  <bruno@clisp.org>
15958
15959         strcasestr*: Move AC_LIBOBJ invocations to module description.
15960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15961         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15962         * modules/strcasestr-simple (configure.ac): ... to here.
15963         * modules/strcasestr (configure.ac): ... and here.
15964
15965 2011-05-22  Bruno Haible  <bruno@clisp.org>
15966
15967         strcase: Move AC_LIBOBJ invocations to module description.
15968         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15969         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15970         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15971         gl_PREREQ_STRNCASECMP invocations from here...
15972         * modules/strcase (configure.ac): ... to here.
15973
15974 2011-05-22  Bruno Haible  <bruno@clisp.org>
15975
15976         stpncpy: Move AC_LIBOBJ invocations to module description.
15977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15978         here...
15979         * modules/stpncpy (configure.ac): ... to here.
15980
15981 2011-05-22  Bruno Haible  <bruno@clisp.org>
15982
15983         stpcpy: Move AC_LIBOBJ invocations to module description.
15984         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15985         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15986         here...
15987         * modules/stpcpy (configure.ac): ... to here.
15988
15989 2011-05-21  Bruno Haible  <bruno@clisp.org>
15990
15991         stat: Move AC_LIBOBJ invocations to module description.
15992         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15993         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15994         here...
15995         * modules/stat (configure.ac): ... to here.
15996
15997 2011-05-21  Bruno Haible  <bruno@clisp.org>
15998
15999         sleep: Move AC_LIBOBJ invocations to module description.
16000         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16001         * modules/sleep (configure.ac): ... to here.
16002
16003 2011-05-21  Bruno Haible  <bruno@clisp.org>
16004
16005         signbit: Move AC_LIBOBJ invocations to module description.
16006         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16007         * modules/signbit (configure.ac): ... to here.
16008
16009 2011-05-21  Bruno Haible  <bruno@clisp.org>
16010
16011         sigprocmask: Move AC_LIBOBJ invocations to module description.
16012         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16013         gl_PREREQ_SIGPROMASK invocations from here...
16014         * modules/sigprocmask (configure.ac): ... to here.
16015
16016 2011-05-21  Bruno Haible  <bruno@clisp.org>
16017
16018         sigaction: Move AC_LIBOBJ invocations to module description.
16019         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16020         gl_PREREQ_SIGACTION invocations from here...
16021         * modules/sigaction (configure.ac): ... to here.
16022
16023 2011-05-21  Bruno Haible  <bruno@clisp.org>
16024
16025         sig2str: Move AC_LIBOBJ invocations to module description.
16026         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16028         here...
16029         * modules/sig2str (configure.ac): ... to here.
16030
16031 2011-05-21  Bruno Haible  <bruno@clisp.org>
16032
16033         setlocale: Move AC_LIBOBJ invocations to module description.
16034         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16035         gl_PREREQ_SETLOCALE invocations from here...
16036         * modules/setlocale (configure.ac): ... to here.
16037
16038 2011-05-21  Bruno Haible  <bruno@clisp.org>
16039
16040         unsetenv: Move AC_LIBOBJ invocations to module description.
16041         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16042         and gl_PREREQ_UNSETENV invocations from here...
16043         * modules/unsetenv (configure.ac): ... to here.
16044         (Depends-on): Update.
16045
16046 2011-05-21  Bruno Haible  <bruno@clisp.org>
16047
16048         setenv: Move AC_LIBOBJ invocations to module description.
16049         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16050         here...
16051         * modules/setenv (configure.ac): ... to here.
16052
16053 2011-05-21  Bruno Haible  <bruno@clisp.org>
16054
16055         selinux-h: Move AC_LIBOBJ invocations to module description.
16056         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16057         AC_LIBOBJ invocation from here...
16058         * modules/selinux-h (configure.ac): ... to here.
16059
16060 2011-05-21  Bruno Haible  <bruno@clisp.org>
16061
16062         select: Respect rules for use of AC_LIBOBJ.
16063         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16064         here...
16065         * modules/select (configure.ac): ... to here.
16066
16067 2011-05-21  Bruno Haible  <bruno@clisp.org>
16068
16069         scandir: Move AC_LIBOBJ invocations to module description.
16070         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16071         invocations from here...
16072         * modules/scandir (configure.ac): ... to here.
16073
16074 2011-05-21  Bruno Haible  <bruno@clisp.org>
16075
16076         rpmatch: Move AC_LIBOBJ invocations to module description.
16077         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16079         here...
16080         * modules/rpmatch (configure.ac): ... to here.
16081
16082 2011-05-21  Bruno Haible  <bruno@clisp.org>
16083
16084         rmdir: Respect rules for use of AC_LIBOBJ.
16085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16086         * modules/rmdir (configure.ac): ... to here.
16087
16088 2011-05-21  Bruno Haible  <bruno@clisp.org>
16089
16090         renameat: Move AC_LIBOBJ invocations to module description.
16091         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16092         here...
16093         * modules/renameat (configure.ac): ... to here.
16094
16095 2011-05-21  Bruno Haible  <bruno@clisp.org>
16096
16097         rename: Respect rules for use of AC_LIBOBJ.
16098         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16099         here...
16100         * modules/rename (configure.ac): ... to here.
16101
16102 2011-05-21  Bruno Haible  <bruno@clisp.org>
16103
16104         remove: Move AC_LIBOBJ invocations to module description.
16105         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16106         here...
16107         * modules/remove (configure.ac): ... to here.
16108
16109 2011-05-21  Bruno Haible  <bruno@clisp.org>
16110
16111         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16113         macro.
16114         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16115         * modules/relocatable-lib (configure.ac): ... to here.
16116         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16117         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16118
16119 2011-05-21  Bruno Haible  <bruno@clisp.org>
16120
16121         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16122         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16123         here...
16124         * modules/relocatable-prog (configure.ac): ... to here.
16125
16126 2011-05-21  Bruno Haible  <bruno@clisp.org>
16127
16128         regex: Move AC_LIBOBJ invocations to module description.
16129         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16130         invocations from here...
16131         * modules/regex (configure.ac): ... to here.
16132
16133 2011-05-21  Bruno Haible  <bruno@clisp.org>
16134
16135         realloc-*: Move AC_LIBOBJ invocations to module description.
16136         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16137         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16138         AC_LIBOBJ invocations from here...
16139         * modules/realloc-gnu (configure.ac): ... to here.
16140         * modules/realloc-posix (configure.ac): ... and here.
16141
16142 2011-05-21  Bruno Haible  <bruno@clisp.org>
16143
16144         readutmp: Move AC_LIBOBJ invocations to module description.
16145         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16146         * modules/readutmp (configure.ac): ... to here.
16147
16148 2011-05-21  Bruno Haible  <bruno@clisp.org>
16149
16150         readlinkat: Move AC_LIBOBJ invocations to module description.
16151         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16152         here...
16153         * modules/readlinkat (configure.ac): ... to here.
16154
16155 2011-05-21  Bruno Haible  <bruno@clisp.org>
16156
16157         readlink: Move AC_LIBOBJ invocations to module description.
16158         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16159         gl_PREREQ_READLINK invocations from here...
16160         * modules/readlink (configure.ac): ... to here.
16161
16162 2011-05-21  Bruno Haible  <bruno@clisp.org>
16163
16164         readline: Move AC_LIBOBJ invocations to module description.
16165         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16166         gl_PREREQ_READLINE invocations from here...
16167         * modules/readline (configure.ac): ... to here.
16168
16169 2011-05-21  Bruno Haible  <bruno@clisp.org>
16170
16171         read: Move AC_LIBOBJ invocations to module description.
16172         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16173         * modules/read (configure.ac): ... to here.
16174
16175 2011-05-21  Bruno Haible  <bruno@clisp.org>
16176
16177         rawmemchr: Move AC_LIBOBJ invocations to module description.
16178         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16180         from here...
16181         * modules/rawmemchr (configure.ac): ... to here.
16182
16183 2011-05-21  Bruno Haible  <bruno@clisp.org>
16184
16185         random_r: Move AC_LIBOBJ invocations to module description.
16186         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16187         gl_PREREQ_RANDOM_R invocations from here...
16188         * modules/random_r (configure.ac): ... to here.
16189
16190 2011-05-21  Bruno Haible  <bruno@clisp.org>
16191
16192         pwrite: Move AC_LIBOBJ invocations to module description.
16193         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16194         * modules/pwrite (configure.ac): ... to here.
16195
16196 2011-05-21  Bruno Haible  <bruno@clisp.org>
16197
16198         putenv: Move AC_LIBOBJ invocations to module description.
16199         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16200         * modules/putenv (configure.ac): ... to here.
16201
16202 2011-05-21  Bruno Haible  <bruno@clisp.org>
16203
16204         login_tty: Move AC_LIBOBJ invocations to module description.
16205         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16206         * modules/login_tty (configure.ac): ... to here.
16207
16208 2011-05-21  Bruno Haible  <bruno@clisp.org>
16209
16210         openpty: Move AC_LIBOBJ invocations to module description.
16211         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16212         * modules/openpty (configure.ac): ... to here.
16213
16214 2011-05-21  Bruno Haible  <bruno@clisp.org>
16215
16216         forkpty: Move AC_LIBOBJ invocations to module description.
16217         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16218         * modules/forkpty (configure.ac): ... to here.
16219
16220 2011-05-21  Bruno Haible  <bruno@clisp.org>
16221
16222         ptsname: Move AC_LIBOBJ invocations to module description.
16223         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16224         invocations from here...
16225         * modules/ptsname (configure.ac): ... to here.
16226
16227 2011-05-21  Bruno Haible  <bruno@clisp.org>
16228
16229         pread: Move AC_LIBOBJ invocations to module description.
16230         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16231         * modules/pread (configure.ac): ... to here.
16232
16233 2011-05-21  Bruno Haible  <bruno@clisp.org>
16234
16235         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16236         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16237         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16238         * modules/posix_spawn (configure.ac): ... to here.
16239         * modules/posix_spawnp (configure.ac): ... and here.
16240
16241 2011-05-21  Bruno Haible  <bruno@clisp.org>
16242
16243         popen: Move AC_LIBOBJ invocations to module description.
16244         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16245         invocations from here...
16246         * modules/popen (configure.ac): ... to here.
16247
16248 2011-05-21  Bruno Haible  <bruno@clisp.org>
16249
16250         poll: Move AC_LIBOBJ invocations to module description.
16251         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16252         invocations from here...
16253         * modules/poll (configure.ac): ... to here.
16254
16255 2011-05-21  Bruno Haible  <bruno@clisp.org>
16256
16257         pipe-posix: Move AC_LIBOBJ invocations to module description.
16258         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16259         * modules/pipe-posix (configure.ac): ... to here.
16260
16261 2011-05-21  Bruno Haible  <bruno@clisp.org>
16262
16263         openat: Respect rules for use of AC_LIBOBJ.
16264         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16265         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16266         * modules/openat (configure.ac): ... to here.
16267
16268 2011-05-21  Bruno Haible  <bruno@clisp.org>
16269
16270         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16271         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16272         invocation from here...
16273         * modules/obstack-printf (configure.ac): ... to here.
16274         * modules/obstack-printf-posix (configure.ac): ... and here.
16275
16276 2011-05-21  Bruno Haible  <bruno@clisp.org>
16277
16278         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16279         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16280         from here...
16281         * modules/nl_langinfo (configure.ac): ... to here.
16282
16283 2011-05-21  Bruno Haible  <bruno@clisp.org>
16284
16285         nanosleep: Move AC_LIBOBJ invocations to module description.
16286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16287         gl_PREREQ_NANOSLEEP invocations from here...
16288         * modules/nanosleep (configure.ac): ... to here.
16289
16290 2011-05-21  Bruno Haible  <bruno@clisp.org>
16291
16292         mountlist: Move AC_LIBOBJ invocations to module description.
16293         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16294         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16295         * modules/mountlist (configure.ac): ... to here.
16296
16297 2011-05-21  Bruno Haible  <bruno@clisp.org>
16298
16299         mktime: Respect rules for use of AC_LIBOBJ.
16300         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16301         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16302         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16303         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16304         * modules/mktime (configure.ac): ... to here.
16305         * modules/mktime-internal (configure.ac): ... and here.
16306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16307
16308 2011-05-21  Bruno Haible  <bruno@clisp.org>
16309
16310         mkstemps: Move AC_LIBOBJ invocations to module description.
16311         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16312         here...
16313         * modules/mkstemps (configure.ac): ... to here.
16314
16315 2011-05-21  Bruno Haible  <bruno@clisp.org>
16316
16317         mkstemp: Move AC_LIBOBJ invocations to module description.
16318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16319         gl_PREREQ_MKSTEMP invocations from here...
16320         * modules/mkstemp (configure.ac): ... to here.
16321
16322 2011-05-21  Bruno Haible  <bruno@clisp.org>
16323
16324         mkostemps: Move AC_LIBOBJ invocations to module description.
16325         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16326         here...
16327         * modules/mkostemps (configure.ac): ... to here.
16328
16329 2011-05-21  Bruno Haible  <bruno@clisp.org>
16330
16331         mkostemp: Move AC_LIBOBJ invocations to module description.
16332         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16333         gl_PREREQ_MKOSTEMP invocations from here...
16334         * modules/mkostemp (configure.ac): ... to here.
16335
16336 2011-05-21  Bruno Haible  <bruno@clisp.org>
16337
16338         mknod: Move AC_LIBOBJ invocations to module description.
16339         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16340         * modules/mknod (configure.ac): ... to here.
16341
16342 2011-05-21  Bruno Haible  <bruno@clisp.org>
16343
16344         mkfifoat: Move AC_LIBOBJ invocations to module description.
16345         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16346         here...
16347         * modules/mkfifoat (configure.ac): ... to here.
16348
16349 2011-05-21  Bruno Haible  <bruno@clisp.org>
16350
16351         mkfifo: Respect rules for use of AC_LIBOBJ.
16352         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16353         here...
16354         * modules/mkfifo (configure.ac): ... to here.
16355
16356 2011-05-21  Bruno Haible  <bruno@clisp.org>
16357
16358         mkdtemp: Move AC_LIBOBJ invocations to module description.
16359         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16360         invocations from here...
16361         * modules/mkdtemp (configure.ac): ... to here.
16362
16363 2011-05-21  Bruno Haible  <bruno@clisp.org>
16364
16365         mkdir: Move AC_LIBOBJ invocations to module description.
16366         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16367         * modules/mkdir (configure.ac): ... to here.
16368
16369 2011-05-21  Bruno Haible  <bruno@clisp.org>
16370
16371         memset: Move AC_LIBOBJ invocations to module description.
16372         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16374         here...
16375         * modules/memset (configure.ac): ... to here.
16376
16377 2011-05-21  Bruno Haible  <bruno@clisp.org>
16378
16379         memrchr: Move AC_LIBOBJ invocations to module description.
16380         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16382         here...
16383         * modules/memrchr (configure.ac): ... to here.
16384
16385 2011-05-21  Bruno Haible  <bruno@clisp.org>
16386
16387         mempcpy: Move AC_LIBOBJ invocations to module description.
16388         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16390         here...
16391         * modules/mempcpy (configure.ac): ... to here.
16392
16393 2011-05-21  Bruno Haible  <bruno@clisp.org>
16394
16395         memmove: Move AC_LIBOBJ invocations to module description.
16396         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16398         here...
16399         * modules/memmove (configure.ac): ... to here.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         memmem*: Move AC_LIBOBJ invocations to module description.
16404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16405         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16406         here...
16407         (gl_FUNC_MEMMEM): ... and here...
16408         * modules/memmem-simple (configure.ac): ... to here.
16409         * modules/memmem (configure.ac): ... and here.
16410
16411 2011-05-21  Bruno Haible  <bruno@clisp.org>
16412
16413         memcpy: Move AC_LIBOBJ invocations to module description.
16414         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16415         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16416         here...
16417         * modules/memcpy (configure.ac): ... to here.
16418
16419 2011-05-21  Bruno Haible  <bruno@clisp.org>
16420
16421         memcmp: Simplify autoconf macro.
16422         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16423         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16424         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16425
16426 2011-05-21  Bruno Haible  <bruno@clisp.org>
16427
16428         memcmp: Move AC_LIBOBJ invocations to module description.
16429         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16430         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16431         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16432         * modules/memcmp (configure.ac): ... to here.
16433         (Depends-on): Update conditions.
16434
16435 2011-05-21  Bruno Haible  <bruno@clisp.org>
16436
16437         memchr: Respect rules for use of AC_LIBOBJ.
16438         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16439         invocations from here...
16440         * modules/memchr (configure.ac): ... to here.
16441
16442 2011-05-21  Bruno Haible  <bruno@clisp.org>
16443
16444         mbtowc: Move AC_LIBOBJ invocations to module description.
16445         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16446         invocations from here...
16447         * modules/mbtowc (configure.ac): ... to here.
16448
16449 2011-05-21  Bruno Haible  <bruno@clisp.org>
16450
16451         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16452         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16453         gl_PREREQ_MBSRTOWCS invocations from here...
16454         * modules/mbsrtowcs (configure.ac): ... to here.
16455
16456 2011-05-21  Bruno Haible  <bruno@clisp.org>
16457
16458         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16459         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16460         gl_PREREQ_MBSNRTOWCS invocations from here...
16461         * modules/mbsnrtowcs (configure.ac): ... to here.
16462
16463 2011-05-21  Bruno Haible  <bruno@clisp.org>
16464
16465         mbsinit: Move AC_LIBOBJ invocations to module description.
16466         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16467         invocations from here...
16468         * modules/mbsinit (configure.ac): ... to here.
16469
16470 2011-05-21  Bruno Haible  <bruno@clisp.org>
16471
16472         mbrlen: Move AC_LIBOBJ invocations to module description.
16473         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16474         invocations from here...
16475         * modules/mbrlen (configure.ac): ... to here.
16476
16477 2011-05-21  Bruno Haible  <bruno@clisp.org>
16478
16479         mbrtowc: Respect rules for use of AC_LIBOBJ.
16480         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16481         invocations from here...
16482         * modules/mbrtowc (configure.ac): ... to here.
16483
16484 2011-05-21  Bruno Haible  <bruno@clisp.org>
16485
16486         malloc-*: Move AC_LIBOBJ invocations to module description.
16487         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16488         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16489         AC_LIBOBJ invocations from here...
16490         * modules/malloc-gnu (configure.ac): ... to here.
16491         * modules/malloc-posix (configure.ac): ... and here.
16492
16493 2011-05-21  Bruno Haible  <bruno@clisp.org>
16494
16495         lstat, openat: Respect rules for use of AC_LIBOBJ.
16496         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16497         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16498         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16499         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16500         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16501         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16502         here.
16503         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16504
16505 2011-05-21  Bruno Haible  <bruno@clisp.org>
16506
16507         lseek: Move AC_LIBOBJ invocations to module description.
16508         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16509         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16510         * modules/lseek (configure.ac): ... to here.
16511
16512 2011-05-21  Bruno Haible  <bruno@clisp.org>
16513
16514         linkat: Move AC_LIBOBJ invocations to module description.
16515         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16516         here...
16517         * modules/linkat (configure.ac): ... to here.
16518
16519 2011-05-21  Bruno Haible  <bruno@clisp.org>
16520
16521         link: Respect rules for use of AC_LIBOBJ.
16522         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16523         * modules/link (configure.ac): ... to here.
16524
16525 2011-05-21  Bruno Haible  <bruno@clisp.org>
16526
16527         lchown: Move AC_LIBOBJ invocations to module description.
16528         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16529         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16530         * modules/lchown (configure.ac): ... to here.
16531
16532 2011-05-21  Bruno Haible  <bruno@clisp.org>
16533
16534         iswctype: Move AC_LIBOBJ invocations to module description.
16535         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16536         here...
16537         * modules/iswctype (configure.ac): ... to here.
16538
16539 2011-05-21  Bruno Haible  <bruno@clisp.org>
16540
16541         iswblank: Move AC_LIBOBJ invocations to module description.
16542         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16543         here...
16544         * modules/iswblank (configure.ac): ... to here.
16545
16546 2011-05-21  Bruno Haible  <bruno@clisp.org>
16547
16548         atanl: Move AC_LIBOBJ invocations to module description.
16549         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16550         * modules/atanl (configure.ac): ... to here.
16551
16552 2011-05-21  Bruno Haible  <bruno@clisp.org>
16553
16554         acosl: Move AC_LIBOBJ invocations to module description.
16555         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16556         * modules/acosl (configure.ac): ... to here.
16557
16558 2011-05-21  Bruno Haible  <bruno@clisp.org>
16559
16560         asinl: Respect rules for use of AC_LIBOBJ.
16561         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16562         * modules/asinl (configure.ac): ... to here.
16563
16564 2011-05-21  Bruno Haible  <bruno@clisp.org>
16565
16566         tanl: Move AC_LIBOBJ invocations to module description.
16567         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16568         * modules/tanl (configure.ac): ... to here.
16569
16570 2011-05-21  Bruno Haible  <bruno@clisp.org>
16571
16572         cosl: Move AC_LIBOBJ invocations to module description.
16573         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16574         * modules/cosl (configure.ac): ... to here.
16575
16576 2011-05-21  Bruno Haible  <bruno@clisp.org>
16577
16578         sinl: Move AC_LIBOBJ invocations to module description.
16579         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16580         * modules/sinl (configure.ac): ... to here.
16581
16582 2011-05-21  Bruno Haible  <bruno@clisp.org>
16583
16584         logl: Move AC_LIBOBJ invocations to module description.
16585         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16586         * modules/logl (configure.ac): ... to here.
16587
16588 2011-05-21  Bruno Haible  <bruno@clisp.org>
16589
16590         expl: Move AC_LIBOBJ invocations to module description.
16591         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16592         * modules/expl (configure.ac): ... to here.
16593
16594 2011-05-21  Bruno Haible  <bruno@clisp.org>
16595
16596         roundl: Move AC_LIBOBJ invocations to module description.
16597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16598         * modules/roundl (configure.ac): ... to here.
16599
16600 2011-05-21  Bruno Haible  <bruno@clisp.org>
16601
16602         round: Move AC_LIBOBJ invocations to module description.
16603         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16604         * modules/round (configure.ac): ... to here.
16605
16606 2011-05-21  Bruno Haible  <bruno@clisp.org>
16607
16608         roundf: Move AC_LIBOBJ invocations to module description.
16609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16610         * modules/roundf (configure.ac): ... to here.
16611
16612 2011-05-21  Bruno Haible  <bruno@clisp.org>
16613
16614         truncl: Move AC_LIBOBJ invocations to module description.
16615         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16616         * modules/truncl (configure.ac): ... to here.
16617
16618 2011-05-21  Bruno Haible  <bruno@clisp.org>
16619
16620         trunc: Move AC_LIBOBJ invocations to module description.
16621         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16622         * modules/trunc (configure.ac): ... to here.
16623
16624 2011-05-21  Bruno Haible  <bruno@clisp.org>
16625
16626         truncf: Move AC_LIBOBJ invocations to module description.
16627         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16628         * modules/truncf (configure.ac): ... to here.
16629
16630 2011-05-21  Bruno Haible  <bruno@clisp.org>
16631
16632         ceill: Move AC_LIBOBJ invocations to module description.
16633         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16634         * modules/ceill (configure.ac): ... to here.
16635
16636 2011-05-21  Bruno Haible  <bruno@clisp.org>
16637
16638         ceil: Move AC_LIBOBJ invocations to module description.
16639         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16640         * modules/ceil (configure.ac): ... to here.
16641
16642 2011-05-21  Bruno Haible  <bruno@clisp.org>
16643
16644         ceilf: Move AC_LIBOBJ invocations to module description.
16645         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16646         * modules/ceilf (configure.ac): ... to here.
16647
16648 2011-05-21  Bruno Haible  <bruno@clisp.org>
16649
16650         floorl: Respect rules for use of AC_LIBOBJ.
16651         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16652         * modules/floorl (configure.ac): ... to here.
16653
16654 2011-05-21  Bruno Haible  <bruno@clisp.org>
16655
16656         floor: Respect rules for use of AC_LIBOBJ.
16657         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16658         * modules/floor (configure.ac): ... to here.
16659
16660 2011-05-21  Bruno Haible  <bruno@clisp.org>
16661
16662         floorf: Move AC_LIBOBJ invocations to module description.
16663         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16664         * modules/floorf (configure.ac): ... to here.
16665
16666 2011-05-20  Bruno Haible  <bruno@clisp.org>
16667
16668         sqrtl: Respect rules for use of AC_LIBOBJ.
16669         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16670         * modules/sqrtl (configure.ac): ... to here.
16671
16672 2011-05-20  Bruno Haible  <bruno@clisp.org>
16673
16674         ldexpl: Respect rules for use of AC_LIBOBJ.
16675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16676         * modules/ldexpl (configure.ac): ... to here.
16677
16678 2011-05-20  Bruno Haible  <bruno@clisp.org>
16679
16680         frexpl*: Respect rules for use of AC_LIBOBJ.
16681         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16682         invocation from here...
16683         * modules/frexpl (configure.ac): ... to here.
16684         * modules/frexpl-nolibm (configure.ac): ... and here.
16685
16686 2011-05-20  Bruno Haible  <bruno@clisp.org>
16687
16688         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16689         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16690         invocation from here...
16691         * modules/frexp (configure.ac): ... to here.
16692         * modules/frexp-nolibm (configure.ac): ... and here.
16693
16694 2011-05-20  Bruno Haible  <bruno@clisp.org>
16695
16696         isnan: Respect rules for use of AC_LIBOBJ.
16697         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16698         invocations here.
16699         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16700         REPLACE_ISNAN.
16701         * modules/isnand (configure.ac): Likewise.
16702         * modules/isnanl (configure.ac): Likewise.
16703
16704 2011-05-20  Bruno Haible  <bruno@clisp.org>
16705
16706         isnanl*: Respect rules for use of AC_LIBOBJ.
16707         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16708         invocation from here...
16709         * modules/isnanl (configure.ac): ... to here.
16710         * modules/isnanl-nolibm (configure.ac): ... and here.
16711
16712 2011-05-20  Bruno Haible  <bruno@clisp.org>
16713
16714         isnand*: Move AC_LIBOBJ invocations to module description.
16715         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16716         invocation from here...
16717         * modules/isnand (configure.ac): ... to here.
16718         * modules/isnand-nolibm (configure.ac): ... and here.
16719
16720 2011-05-20  Bruno Haible  <bruno@clisp.org>
16721
16722         isnanf*: Move AC_LIBOBJ invocations to module description.
16723         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16724         invocation from here...
16725         * modules/isnanf (configure.ac): ... to here.
16726         * modules/isnanf-nolibm (configure.ac): ... and here.
16727
16728 2011-05-20  Bruno Haible  <bruno@clisp.org>
16729
16730         isnan*: Separate the AC_LIBOBJ invocations.
16731         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16732         AC_LIBOBJ invocation.
16733         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16734         here.
16735         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16736         AC_LIBOBJ invocation.
16737         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16738         here.
16739         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16740         AC_LIBOBJ invocation.
16741         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16742         here.
16743         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16744
16745 2011-05-08  Bruno Haible  <bruno@clisp.org>
16746
16747         isinf: Move AC_LIBOBJ invocations to module description.
16748         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16749         * modules/isinf (configure.ac): ... to here.
16750
16751 2011-05-08  Bruno Haible  <bruno@clisp.org>
16752
16753         isfinite: Move AC_LIBOBJ invocations to module description.
16754         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16755         * modules/isfinite (configure.ac): ... to here.
16756
16757 2011-05-08  Bruno Haible  <bruno@clisp.org>
16758
16759         isblank: Move AC_LIBOBJ invocations to module description.
16760         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16761         here...
16762         * modules/isblank (configure.ac): ... to here.
16763
16764 2011-05-08  Bruno Haible  <bruno@clisp.org>
16765
16766         isapipe: Move AC_LIBOBJ invocations to module description.
16767         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16768         gl_PREREQ_ISAPIPE invocations from here...
16769         * modules/isapipe (configure.ac): ... to here.
16770         (Depends-on): Update condition.
16771
16772 2011-05-08  Bruno Haible  <bruno@clisp.org>
16773
16774         ioctl: Move AC_LIBOBJ invocations to module description.
16775         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16776         invocations from here...
16777         * modules/ioctl (configure.ac): ... to here.
16778         (Depends-on): Update condition.
16779
16780 2011-05-08  Bruno Haible  <bruno@clisp.org>
16781
16782         imaxdiv: Move AC_LIBOBJ invocations to module description.
16783         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16784         invocations from here...
16785         * modules/imaxdiv (configure.ac): ... to here.
16786
16787 2011-05-08  Bruno Haible  <bruno@clisp.org>
16788
16789         imaxabs: Move AC_LIBOBJ invocations to module description.
16790         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16791         invocations from here...
16792         * modules/imaxabs (configure.ac): ... to here.
16793
16794 2011-05-08  Bruno Haible  <bruno@clisp.org>
16795
16796         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16798         AC_LIBOBJ invocations from here...
16799         * modules/getaddrinfo (configure.ac): ... to here.
16800         (Depends-on): Add conditions.
16801
16802 2011-05-08  Bruno Haible  <bruno@clisp.org>
16803
16804         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16805         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16806         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16807         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16808         (gl_PREREQ_INET_PTON): ... from here.
16809         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16810         gl_PREREQ_INET_PTON here.
16811         (Depends-on): Update condition.
16812
16813 2011-05-08  Bruno Haible  <bruno@clisp.org>
16814
16815         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16816         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16817         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16818         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16819         (gl_PREREQ_INET_NTOP): ... from here.
16820         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16821         gl_PREREQ_INET_NTOP here.
16822         (Depends-on): Update condition.
16823
16824 2011-05-08  Bruno Haible  <bruno@clisp.org>
16825
16826         iconv_open: Move AC_LIBOBJ invocations to module description.
16827         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16828         AC_LIBOBJ invocations from here...
16829         * modules/iconv_open (configure.ac): ... to here.
16830
16831 2011-05-08  Bruno Haible  <bruno@clisp.org>
16832
16833         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16834         If module 'iconv_open' is among the main modules and module
16835         'iconv_open-utf' is among the tests dependencies, then
16836         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16837         return the special iconv_t values. Therefore iconv() and iconv_close()
16838         must support these special iconv_t values, already in lib, not only in
16839         tests.
16840         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16841         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16842         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16843         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16844         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16845         (Depends-on): Add the dependencies of iconv_open-utf.
16846         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16847         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16848         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16849
16850 2011-05-08  Bruno Haible  <bruno@clisp.org>
16851
16852         group-member: Move AC_LIBOBJ invocations to module description.
16853         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16854         gl_PREREQ_GROUP_MEMBER invocations from here...
16855         * modules/group-member (configure.ac): ... to here.
16856
16857 2011-05-08  Bruno Haible  <bruno@clisp.org>
16858
16859         grantpt: Move AC_LIBOBJ invocations to module description.
16860         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16861         invocations from here...
16862         * modules/grantpt (configure.ac): ... to here.
16863
16864 2011-05-08  Bruno Haible  <bruno@clisp.org>
16865
16866         glob: Move AC_LIBOBJ invocations to module description.
16867         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16868         from here...
16869         * modules/glob (configure.ac): ... to here.
16870
16871 2011-05-08  Bruno Haible  <bruno@clisp.org>
16872
16873         getusershell: Move AC_LIBOBJ invocations to module description.
16874         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16875         Move AC_LIBOBJ invocation from here...
16876         * modules/getusershell (configure.ac): ... to here.
16877         (Depends-on): Update condition.
16878
16879 2011-05-08  Bruno Haible  <bruno@clisp.org>
16880
16881         gettimeofday: Move AC_LIBOBJ invocations to module description.
16882         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16883         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16884         gl_PREREQ_GETTIMEOFDAY invocations from here...
16885         * modules/gettimeofday (configure.ac): ... to here.
16886
16887 2011-05-08  Bruno Haible  <bruno@clisp.org>
16888
16889         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16890         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16891         just gl_FUNC_TZSET.
16892         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16893         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16895         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16896
16897 2011-05-08  Bruno Haible  <bruno@clisp.org>
16898
16899         getsubopt: Move AC_LIBOBJ invocations to module description.
16900         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16901         gl_PREREQ_GETSUBOPT invocations from here...
16902         * modules/getsubopt (configure.ac): ... to here.
16903
16904 2011-05-08  Bruno Haible  <bruno@clisp.org>
16905
16906         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16907         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16908         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16909         * modules/getpass-gnu (configure.ac): ... to here.
16910
16911 2011-05-08  Bruno Haible  <bruno@clisp.org>
16912
16913         getpass: Move AC_LIBOBJ invocations to module description.
16914         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16915         gl_PREREQ_GETPASS invocations from here...
16916         * modules/getpass (configure.ac): ... to here.
16917
16918 2011-05-08  Bruno Haible  <bruno@clisp.org>
16919
16920         getpagesize: Move AC_LIBOBJ invocations to module description.
16921         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16922         from here...
16923         * modules/getpagesize (configure.ac): ... to here.
16924
16925 2011-05-08  Bruno Haible  <bruno@clisp.org>
16926
16927         getopt: Move AC_LIBOBJ invocations to module description.
16928         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16929         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16930         invocations from here...
16931         * modules/getopt-gnu (configure.ac): ... to here.
16932         * modules/getopt-posix (configure.ac): ... and here.
16933         (Depends-on): Update condition.
16934
16935 2011-05-08  Bruno Haible  <bruno@clisp.org>
16936
16937         getopt, argp: Respect rules for use of AC_LIBOBJ.
16938         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16939         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16940         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16941         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16942
16943 2011-05-08  Bruno Haible  <bruno@clisp.org>
16944
16945         getlogin_r: Move AC_LIBOBJ invocations to module description.
16946         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16947         gl_PREREQ_GETLOGIN_R invocations from here...
16948         * modules/getlogin_r (configure.ac): ... to here.
16949
16950 2011-05-08  Bruno Haible  <bruno@clisp.org>
16951
16952         getlogin: Move AC_LIBOBJ invocations to module description.
16953         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16954         here...
16955         * modules/getlogin (configure.ac): ... to here.
16956
16957 2011-05-08  Bruno Haible  <bruno@clisp.org>
16958
16959         getloadavg: Move AC_LIBOBJ invocations to module description.
16960         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16961         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16962         * modules/getloadavg (configure.ac): ... to here.
16963
16964 2011-05-08  Bruno Haible  <bruno@clisp.org>
16965
16966         gethrxtime: Move AC_LIBOBJ invocations to module description.
16967         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16968         LIB_GETHRXTIME from here...
16969         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16970         invocations from here...
16971         * modules/gethrxtime (configure.ac): ... to here.
16972
16973 2011-05-08  Bruno Haible  <bruno@clisp.org>
16974
16975         gethostname: Move AC_LIBOBJ invocations to module description.
16976         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16977         gl_PREREQ_GETHOSTNAME invocations from here...
16978         * modules/gethostname (configure.ac): ... to here.
16979
16980 2011-05-08  Bruno Haible  <bruno@clisp.org>
16981
16982         getgroups: Move AC_LIBOBJ invocations to module description.
16983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16984         here...
16985         * modules/getgroups (configure.ac): ... to here.
16986
16987 2011-05-08  Bruno Haible  <bruno@clisp.org>
16988
16989         getdtablesize: Move AC_LIBOBJ invocations to module description.
16990         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16991         invocation from here...
16992         * modules/getdtablesize (configure.ac): ... to here.
16993
16994 2011-05-08  Bruno Haible  <bruno@clisp.org>
16995
16996         getdomainname: Move AC_LIBOBJ invocations to module description.
16997         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16998         gl_PREREQ_GETDOMAINNAME invocations from here...
16999         * modules/getdomainname (configure.ac): ... to here.
17000
17001 2011-05-08  Bruno Haible  <bruno@clisp.org>
17002
17003         getline: Move AC_LIBOBJ invocations to module description.
17004         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17005         invocations from here...
17006         * modules/getline (configure.ac): ... to here.
17007
17008 2011-05-08  Bruno Haible  <bruno@clisp.org>
17009
17010         getline: Simplify.
17011         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17012         It's already handled through the module dependency.
17013
17014 2011-05-08  Bruno Haible  <bruno@clisp.org>
17015
17016         getdelim: Move AC_LIBOBJ invocations to module description.
17017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17018         and gl_PREREQ_GETDELIM invocations from here...
17019         * modules/getdelim (configure.ac): ... to here.
17020         (Depends-on): Fix condition.
17021
17022 2011-05-08  Bruno Haible  <bruno@clisp.org>
17023
17024         getcwd: Move AC_LIBOBJ invocations to module description.
17025         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17026         invocations from here...
17027         * modules/getcwd (configure.ac): ... to here.
17028
17029 2011-05-08  Bruno Haible  <bruno@clisp.org>
17030
17031         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17032         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17033         here...
17034         * modules/getcwd-lgpl (configure.ac): ... to here.
17035
17036 2011-05-07  Bruno Haible  <bruno@clisp.org>
17037
17038         crypto/gc: Move AC_LIBOBJ invocations to module description.
17039         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17040         * modules/crypto/gc (configure.ac): ... to here.
17041
17042 2011-05-07  Bruno Haible  <bruno@clisp.org>
17043
17044         fwriting: Move AC_LIBOBJ invocations to module description.
17045         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17046         here...
17047         * modules/fwriting (configure.ac): ... to here.
17048
17049 2011-05-07  Bruno Haible  <bruno@clisp.org>
17050
17051         fwritable: Move AC_LIBOBJ invocations to module description.
17052         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17053         here...
17054         * modules/fwritable (configure.ac): ... to here.
17055
17056 2011-05-07  Bruno Haible  <bruno@clisp.org>
17057
17058         futimens: Move AC_LIBOBJ invocations to module description.
17059         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17060         here...
17061         * modules/futimens (configure.ac): ... to here.
17062
17063 2011-05-07  Bruno Haible  <bruno@clisp.org>
17064
17065         ftruncate: Move AC_LIBOBJ invocations to module description.
17066         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17067         gl_PREREQ_FTRUNCATE invocations from here...
17068         * modules/ftruncate (configure.ac): ... to here.
17069
17070 2011-05-07  Bruno Haible  <bruno@clisp.org>
17071
17072         fsync: Move AC_LIBOBJ invocations to module description.
17073         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17074         invocations from here...
17075         * modules/fsync (configure.ac): ... to here.
17076
17077 2011-05-07  Bruno Haible  <bruno@clisp.org>
17078
17079         fsusage: Move AC_LIBOBJ invocations to module description.
17080         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17081         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17082         * modules/fsusage (configure.ac): ... to here.
17083
17084 2011-05-07  Bruno Haible  <bruno@clisp.org>
17085
17086         freopen: Move AC_LIBOBJ invocations to module description.
17087         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17088         invocations from here...
17089         * modules/freopen (configure.ac): ... to here.
17090
17091 2011-05-07  Bruno Haible  <bruno@clisp.org>
17092
17093         free: Move AC_LIBOBJ invocations to module description.
17094         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17095         invocations from here...
17096         * modules/free (configure.ac): ... to here.
17097
17098 2011-05-07  Bruno Haible  <bruno@clisp.org>
17099
17100         freadable: Move AC_LIBOBJ invocations to module description.
17101         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17102         here...
17103         * modules/freadable (configure.ac): ... to here.
17104
17105 2011-05-07  Bruno Haible  <bruno@clisp.org>
17106
17107         fpurge: Move AC_LIBOBJ invocations to module description.
17108         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17109         invocations from here...
17110         * modules/fpurge (configure.ac): ... to here.
17111
17112 2011-05-07  Bruno Haible  <bruno@clisp.org>
17113
17114         fpending: Move AC_LIBOBJ invocations to module description.
17115         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17116         gl_FUNC_FPENDING.
17117         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17118         invocations from here...
17119         * modules/fpending (configure.ac): ... to here.
17120
17121 2011-05-07  Bruno Haible  <bruno@clisp.org>
17122
17123         fopen: Move AC_LIBOBJ invocations to module description.
17124         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17125         invocations from here...
17126         * modules/fopen (configure.ac): ... to here.
17127
17128 2011-05-07  Bruno Haible  <bruno@clisp.org>
17129
17130         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17131         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17132         gl_FUNC_FNMATCH_POSIX.
17133         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17134         invocations from here...
17135         * modules/fnmatch (configure.ac): ... to here.
17136         * modules/fnmatch-gnu (configure.ac): ... and here.
17137
17138 2011-05-07  Bruno Haible  <bruno@clisp.org>
17139
17140         flock: Move AC_LIBOBJ invocations to module description.
17141         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17142         invocations from here...
17143         * modules/flock (configure.ac): ... to here.
17144
17145 2011-05-07  Bruno Haible  <bruno@clisp.org>
17146
17147         fileblocks: Move AC_LIBOBJ invocations to module description.
17148         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17149         gl_PREREQ_FILEBLOCKS invocations from here...
17150         * modules/fileblocks (configure.ac): ... to here.
17151
17152 2011-05-06  Bruno Haible  <bruno@clisp.org>
17153
17154         fflush: Move AC_LIBOBJ invocations to module description.
17155         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17156         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17157         invocations from here...
17158         * modules/fflush (configure.ac): ... to here.
17159
17160 2011-05-06  Bruno Haible  <bruno@clisp.org>
17161
17162         fdopendir: Move AC_LIBOBJ invocations to module description.
17163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17164         here...
17165         * modules/fdopendir (configure.ac): ... to here.
17166         (Depends-on): Improve conditions.
17167
17168 2011-05-06  Bruno Haible  <bruno@clisp.org>
17169
17170         _Exit: Move AC_LIBOBJ invocations to module description.
17171         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17172         invocations from here...
17173         * modules/_Exit (configure.ac): ... to here.
17174
17175 2011-05-21  Bruno Haible  <bruno@clisp.org>
17176
17177         euidaccess: Respect rules for use of AC_LIBOBJ.
17178         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17180         from here...
17181         * modules/euidaccess (configure.ac): ... to here.
17182
17183 2011-05-06  Bruno Haible  <bruno@clisp.org>
17184
17185         error: Move AC_LIBOBJ invocations to module description.
17186         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17187         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17188         invocations from here...
17189         * modules/error (configure.ac): ... to here.
17190
17191 2011-05-06  Bruno Haible  <bruno@clisp.org>
17192
17193         duplocale: Move AC_LIBOBJ invocations to module description.
17194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17195         gl_PREREQ_DUPLOCALE invocations from here...
17196         * modules/duplocale (configure.ac): ... to here.
17197
17198 2011-05-05  Bruno Haible  <bruno@clisp.org>
17199
17200         dirfd: Move AC_LIBOBJ invocations to module description.
17201         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17202         gl_FUNC_DIRFD.
17203         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17204         here...
17205         * modules/dirfd (configure.ac): ... to here.
17206         (Depends-on): Fix condition.
17207
17208 2011-05-05  Bruno Haible  <bruno@clisp.org>
17209
17210         chown: Respect rules for use of AC_LIBOBJ.
17211         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17212         * modules/chown (configure.ac): ... to here.
17213
17214 2011-05-05  Bruno Haible  <bruno@clisp.org>
17215
17216         chdir-long: Move AC_LIBOBJ invocations to module description.
17217         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17218         gl_PREREQ_CHDIR_LONG invocations from here...
17219         * modules/chdir-long (configure.ac): ... to here.
17220
17221 2011-05-05  Bruno Haible  <bruno@clisp.org>
17222
17223         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17224         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17225         from here...
17226         * modules/canonicalize-lgpl (configure.ac): ... to here.
17227
17228 2011-05-05  Bruno Haible  <bruno@clisp.org>
17229
17230         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17231         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17232         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17233         REPLACE_CALLOC.
17234         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17235         * modules/calloc-gnu (configure.ac): Likewise.
17236
17237 2011-05-05  Bruno Haible  <bruno@clisp.org>
17238
17239         btowc: Move AC_LIBOBJ invocations to module description.
17240         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17241         invocations from here...
17242         * modules/btowc (configure.ac): ... to here.
17243
17244 2011-05-21  Bruno Haible  <bruno@clisp.org>
17245
17246         atexit: Move AC_LIBOBJ invocations to module description.
17247         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17249         here...
17250         * modules/atexit (configure.ac): ... to here.
17251
17252 2011-05-05  Bruno Haible  <bruno@clisp.org>
17253
17254         atoll: Move AC_LIBOBJ invocations to module description.
17255         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17256         invocations from here...
17257         * modules/atoll (configure.ac): ... to here.
17258
17259 2011-05-05  Bruno Haible  <bruno@clisp.org>
17260
17261         argz: Move AC_LIBOBJ invocations to module description.
17262         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17263         * modules/argz (configure.ac): ... to here.
17264
17265 2011-05-05  Bruno Haible  <bruno@clisp.org>
17266
17267         alphasort: Move AC_LIBOBJ invocations to module description.
17268         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17269         gl_PREREQ_ALPHASORT invocations from here...
17270         * modules/alphasort (configure.ac): ... to here.
17271
17272 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17273
17274         verify: new macro verify_expr; verify_true deprecated
17275         * NEWS: Mention this.
17276         * doc/verify.texi (Compile-time Assertions): Document this.
17277         * lib/verify.h (verify_true): Deprecate.
17278         (verify_expr): New macro.
17279         * tests/test-verify.c (function): Test verify_expr.
17280
17281 2011-06-14  Jim Meyering  <meyering@redhat.com>
17282
17283         init.sh: give more portable redirection-related advice in a comment
17284         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17285         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17286         for lots of discussion.  Stefano Lattarini suggested the solution
17287         of putting "9>&2" after the command.  Reported by Bruno Haible.
17288
17289 2011-06-13  Bruno Haible  <bruno@clisp.org>
17290
17291         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17292         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17293         'none'.
17294
17295 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17296
17297         ftoastr: use strtof only if HAVE_STRTOF
17298         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17300         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17301         * modules/ftoastr (configure.ac): Check for strtof.
17302
17303 2011-06-13  Bruno Haible  <bruno@clisp.org>
17304
17305         gnulib-tool: Addendum to 2011-06-08 commit.
17306         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17307         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17308
17309 2011-06-13  Bruno Haible  <bruno@clisp.org>
17310
17311         fseeko: Provide a non-inline replacement of fseek().
17312         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17313         * modules/fseeko (Depends-on): Add fseek.
17314         * modules/fseek (License): Change to LGPLv2+.
17315
17316 2011-06-13  Bruno Haible  <bruno@clisp.org>
17317
17318         ftello: Provide a non-inline replacement of ftell().
17319         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17320         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17321         not have ftello() (such as on mingw).
17322         * modules/ftello (Depends-on): Add ftell.
17323         * modules/ftell (License): Change to LGPLv2+.
17324
17325 2011-05-07  Bruno Haible  <bruno@clisp.org>
17326
17327         ftell: Move AC_LIBOBJ invocations to module description.
17328         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17329         * modules/ftell (configure.ac): ... to here.
17330
17331 2011-05-07  Bruno Haible  <bruno@clisp.org>
17332
17333         ftello: Respect rules for use of AC_LIBOBJ.
17334         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17335         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17336         here...
17337         * modules/ftello (configure.ac): ... to here.
17338
17339 2011-05-07  Bruno Haible  <bruno@clisp.org>
17340
17341         fseeko: Simplify.
17342         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17343         (gl_FUNC_FSEEKO): Inline it here.
17344
17345 2011-05-07  Bruno Haible  <bruno@clisp.org>
17346
17347         fseek: Move AC_LIBOBJ invocations to module description.
17348         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17349         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17350         * modules/fseek (configure.ac): ... to here.
17351
17352 2011-05-07  Bruno Haible  <bruno@clisp.org>
17353
17354         fseek: Respect rules for use of AC_LIBOBJ.
17355         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17356         here...
17357         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17358
17359 2011-05-07  Bruno Haible  <bruno@clisp.org>
17360
17361         fseeko: Respect rules for use of AC_LIBOBJ.
17362         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17363         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17364         here...
17365         * modules/fseeko (configure.ac): ... to here.
17366
17367 2011-06-13  Bruno Haible  <bruno@clisp.org>
17368
17369         gnulib-tool: Allow comments in the 'Depends-on' section.
17370         * doc/gnulib.texi (Module description): Mention comment syntax in the
17371         Depends-on section.
17372         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17373
17374 2011-06-13  Bruno Haible  <bruno@clisp.org>
17375
17376         file-set.h: guard __attibute__ use, now that it's not always defined
17377         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17378         versions that support it.  This fixes a coreutils build failure with
17379         the vendor cc on HP-UX 11.31.
17380
17381 2011-06-12  Bruno Haible  <bruno@clisp.org>
17382
17383         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17384         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17385         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17386         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17387         (acl, aclsort): New declarations.
17388         (aclv_nontrivial): New declaration.
17389         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17390         (file_has_acl): Read also the second kind of HP-UX ACLs.
17391         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17392         kind of HP-UX ACLs if the first kind fails.
17393         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17394         second kind of HP-UX ACLs.
17395         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17396         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17397         agree.
17398         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17399         hpuxjfs.
17400         Handle hpuxjfs.
17401         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17402         hpuxjfs.
17403         Handle hpuxjfs.
17404         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17405         (func_test_same_acls): Use both lsacl and getacl.
17406         Handle hpuxjfs.
17407         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17408         (func_test_same_acls): Use both lsacl and getacl.
17409         Handle hpuxjfs.
17410
17411 2011-06-12  Bruno Haible  <bruno@clisp.org>
17412
17413         acl: Complete the 2010-08-10 fix.
17414         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17415         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17416         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17417         explicitly.
17418         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17419         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17420
17421 2011-06-12  Bruno Haible  <bruno@clisp.org>
17422
17423         spawn-pipe tests: Comments.
17424         * tests/test-spawn-pipe-child.c (main): Update comment.
17425         Reported by James Youngman <jay@gnu.org>.
17426
17427 2011-06-11  James Youngman  <jay@gnu.org>
17428
17429         New module 'stat-size'.
17430         * modules/stat-size: New module.  Provides macros for accessing
17431         file size information in instances of struct stat.  Depends on the
17432         fileblocks module because it calls st_blocks.
17433         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17434         * doc/gnulib.texi: Include stat-size.texi.
17435         * doc/stat-size.texi: Documentation for this module.
17436         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17437         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17438         AC_STRUCT_ST_BLOCKS.
17439
17440 2011-06-09  Bruno Haible  <bruno@clisp.org>
17441
17442         thread: Support pthreads-win32.
17443         * lib/glthread/thread.h (gl_thread_self): Define differently on
17444         pthreads-win32.
17445         (gl_null_thread): New declaration.
17446         (gl_thread_self_pointer): New macro.
17447         * lib/glthread/thread.c (gl_null_thread): New constant.
17448         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17449         gl_thread_self.
17450         * tests/test-tls.c: Likewise.
17451         Suggested by Paul Eggert. Reported by Eric Blake.
17452
17453 2011-06-09  Bruno Haible  <bruno@clisp.org>
17454
17455         thread: Fix confusion between NULL and 0.
17456         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17457         Reported by Paul Eggert.
17458
17459 2011-06-09  Bruno Haible  <bruno@clisp.org>
17460
17461         spawn-pipe tests: Avoid test failure on HP-UX 11.
17462         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17463         is closed.
17464
17465 2011-06-09  Bruno Haible  <bruno@clisp.org>
17466
17467         acl tests: Fix compilation error on HP-UX 11.
17468         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17469
17470 2011-06-09  Bruno Haible  <bruno@clisp.org>
17471
17472         rmdir: Avoid test failure on HP-UX 10.20.
17473         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17474         EEXIST.
17475
17476 2011-06-08  Eric Blake  <eblake@redhat.com>
17477
17478         perror: fix test on mingw
17479         * modules/perror-tests (Depends-on): Add dup2.
17480
17481         strerror_r-posix: fix on MacOS
17482         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17484         logic bug.
17485         * lib/strerror_r.c (strerror_r): Fix the bug.
17486         * lib/strerror.c (strerror): Likewise.
17487         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17488         problem.
17489         * doc/posix-functions/strerror.texi (strerror): Likewise.
17490         * doc/posix-functions/perror.texi (perror): Likewise.
17491         * tests/test-strerror.c (main): Enhance test.
17492         * tests/test-strerror_r.c (main): Likewise.
17493
17494 2011-06-08  Bruno Haible  <bruno@clisp.org>
17495
17496         gnulib-tool: Better isolation between different gnulib-tool invocations.
17497         * gnulib-tool: New option --witness-c-macro.
17498         (witness_c_macro): New variable.
17499         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17500         AM_CPPFLAGS define it as a C macro.
17501         (func_emit_tests_Makefile_am): Likewise.
17502         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17503         read it from there.
17504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17505         m4_define, not AC_DEFUN.
17506         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17507         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17508         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17509         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17510         s|...|...|, to substitute the values of the GNULIB_* module indicator
17511         variables.
17512         * modules/dirent (Makefile.am): Likewise.
17513         * modules/fcntl-h (Makefile.am): Likewise.
17514         * modules/iconv-h (Makefile.am): Likewise.
17515         * modules/langinfo (Makefile.am): Likewise.
17516         * modules/locale (Makefile.am): Likewise.
17517         * modules/math (Makefile.am): Likewise.
17518         * modules/netdb (Makefile.am): Likewise.
17519         * modules/poll-h (Makefile.am): Likewise.
17520         * modules/pty (Makefile.am): Likewise.
17521         * modules/search (Makefile.am): Likewise.
17522         * modules/signal (Makefile.am): Likewise.
17523         * modules/spawn (Makefile.am): Likewise.
17524         * modules/stdio (Makefile.am): Likewise.
17525         * modules/stdlib (Makefile.am): Likewise.
17526         * modules/string (Makefile.am): Likewise.
17527         * modules/sys_ioctl (Makefile.am): Likewise.
17528         * modules/sys_select (Makefile.am): Likewise.
17529         * modules/sys_socket (Makefile.am): Likewise.
17530         * modules/sys_stat (Makefile.am): Likewise.
17531         * modules/sys_times (Makefile.am): Likewise.
17532         * modules/sys_utsname (Makefile.am): Likewise.
17533         * modules/sys_wait (Makefile.am): Likewise.
17534         * modules/termios (Makefile.am): Likewise.
17535         * modules/time (Makefile.am): Likewise.
17536         * modules/unistd (Makefile.am): Likewise.
17537         * modules/wchar (Makefile.am): Likewise.
17538
17539 2011-06-08  Eric Blake  <eblake@redhat.com>
17540
17541         strerror: simplify replacement
17542         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17543         * modules/strerror (configure.ac): No prereqs needed here...
17544         * modules/strerror-override (configure.ac): ...but this needs it.
17545         (Files): Add file for needed prereq macro.
17546
17547 2011-06-08  Bruno Haible  <bruno@clisp.org>
17548
17549         strerror_r-posix: Tweaks.
17550         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17551         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17552         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17553         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17554         (gl_FUNC_STRERROR_R): ... to here.
17555         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17556
17557 2011-06-07  Eric Blake  <eblake@redhat.com>
17558
17559         perror: document fixed bugs
17560         * doc/posix-functions/perror.texi (perror): Document recent
17561         patches.
17562
17563 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17564
17565         stat-time: get_stat_birthtime failure is better-defined
17566         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17567         return a timestamp whose tv_sec and tv_nsec values are both -1.
17568         Previously, the spec said only that the tv_nsec value was negative.
17569         This upward-compatible change simplifies GNU tar a bit.
17570
17571 2011-06-07  Eric Blake  <eblake@redhat.com>
17572
17573         strerror_r-posix: work around cygwin 1.7.9
17574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17575         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17576         bug without replacing strerror_r.
17577         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17578         strerror_r is buggy, but without requiring strerror_r compilation.
17579         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17580
17581         test-perror: relax test to ignore cygwin bug
17582         * tests/test-perror2.c (main): Relax test on requiring detection
17583         of stream errors, and use unbuffered stream.
17584         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17585         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17586         * doc/posix-functions/fputc.texi (fputc): Likewise.
17587         * doc/posix-functions/fputs.texi (fputs): Likewise.
17588         * doc/posix-functions/fputws.texi (fputws): Likewise.
17589         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17590         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17591         * doc/posix-functions/getopt.texi (getopt): Likewise.
17592         * doc/posix-functions/perror.texi (perror): Likewise.
17593         * doc/posix-functions/printf.texi (printf): Likewise.
17594         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17595         * doc/posix-functions/psignal.texi (psignal): Likewise.
17596         * doc/posix-functions/putc.texi (putc): Likewise.
17597         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17598         Likewise.
17599         * doc/posix-functions/putchar.texi (putchar): Likewise.
17600         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17601         Likewise.
17602         * doc/posix-functions/puts.texi (puts): Likewise.
17603         * doc/posix-functions/putwc.texi (putwc): Likewise.
17604         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17605         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17606         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17607         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17608         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17609         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17610         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17611         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17612
17613 2011-05-22  Bruno Haible  <bruno@clisp.org>
17614
17615         strerror: Move AC_LIBOBJ invocations to module description.
17616         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17617         gl_PREREQ_STRERROR invocations from here...
17618         * modules/strerror (configure.ac): ... to here.
17619
17620 2011-05-21  Bruno Haible  <bruno@clisp.org>
17621
17622         perror: Use common idiom.
17623         * modules/perror (configure.ac): Reorder statements.
17624
17625 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17626
17627         tests: fix usage message in 'mktempd_'
17628         * tests/init.sh (mktempd_): In the usage message, use literal
17629         'mktempd_', not '$ME' (which is even undefined), as the name of
17630         the subroutine.
17631
17632 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17633
17634         tests init: new function 'fatal_', for hard errors
17635         Before this patch, the only way offered by tests/init.sh to
17636         properly signal a hard error was the `framework_failure_'
17637         function.  But the error message issued by that function,
17638         as its name would suggest, refers to a set-up failure in the
17639         testsuite, while hard errors can obviously also be due to
17640         other reasons.  The best way to fix this inconsistency is to
17641         introduce a new function with a more general error message.
17642         * tests/init.sh (fatal_): New function.
17643
17644 2011-06-06  Eric Blake  <eblake@redhat.com>
17645
17646         canonicalize-lgpl: use common idiom
17647         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17648         over newer POSIX -Rf.
17649         Reported by Bruno Haible.
17650
17651         canonicalize-lgpl: work around AIX realpath bug
17652         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17653         * doc/posix-functions/realpath.texi (realpath): Document it.
17654         Reported by Bruno Haible.
17655
17656         strerror: work around FreeBSD bug
17657         * lib/strerror.c (strerror): Special case 0.
17658         Reported by Bruno Haible.
17659
17660         strerror-override: avoid bloating errno module
17661         * modules/errno (Files, configure.ac): Move replacement strings...
17662         * modules/strerror-override: ...to new module.
17663         * modules/strerror (Depends-on): Add strerror-override.
17664         * modules/strerror_r-posix (Depends-on): Likewise.
17665         * MODULES.html.sh: Document new module.
17666         Reported by Bruno Haible.
17667
17668 2011-06-06  Bruno Haible  <bruno@clisp.org>
17669
17670         spawn-pipe tests: Rename program.
17671         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17672         * tests/test-spawn-pipe-child.c: Update comment.
17673         * tests/test-spawn-pipe.sh: Update.
17674         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17675
17676         spawn-pipe tests: Link the child program only against libc.
17677         * tests/test-spawn-pipe-child.c: New file, extracted from
17678         tests/test-spawn-pipe.c.
17679         (main): Expect only one argument.
17680         (is_open): New function, copied from tests/test-pipe.c.
17681         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17682         (child_main): Remove function.
17683         (test_pipe): Pass only one argument to the child program.
17684         (main): Remove child process code. Expect the child program's name as
17685         first argument.
17686         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17687         argument.
17688         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17689         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17690         test-spawn-pipe-child against no libraries.
17691
17692 2011-06-06  Bruno Haible  <bruno@clisp.org>
17693
17694         careadlinkat: Avoid mismatch between ssize_t and int.
17695         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17696         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17697
17698 2011-06-06  Jim Meyering  <meyering@redhat.com>
17699
17700         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17701         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17702         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17703
17704 2011-06-05  Bruno Haible  <bruno@clisp.org>
17705
17706         ansi-c++-opt: Interoperability with libtool.
17707         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17708         set the variable to "no", not to ":".
17709         * NEWS: Mention the change.
17710
17711 2011-06-05  Bruno Haible  <bruno@clisp.org>
17712
17713         acl: Fix test failure on AIX 7.
17714         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17715         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17716
17717 2011-06-05  Bruno Haible  <bruno@clisp.org>
17718
17719         pipe-filter-ii: Fix test failure on AIX and IRIX.
17720         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17721         with EAGAIN, retry with a smaller buffer size.
17722
17723 2011-06-05  Bruno Haible  <bruno@clisp.org>
17724
17725         localename: Fix link dependencies.
17726         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17727         * modules/localename-tests (Makefile.am): Link test-localename with
17728         $(LIBTHREAD).
17729
17730 2011-06-05  Bruno Haible  <bruno@clisp.org>
17731
17732         error: Avoid gcc warning.
17733         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17734
17735 2011-06-05  Bruno Haible  <bruno@clisp.org>
17736
17737         unsetenv: Avoid gcc warning.
17738         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17739
17740 2011-06-05  Bruno Haible  <bruno@clisp.org>
17741
17742         setenv: Avoid gcc warning.
17743         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17744
17745 2011-06-05  Bruno Haible  <bruno@clisp.org>
17746
17747         sys_select: Ensure memset is declared also on AIX 7.
17748         * lib/sys_select.in.h: Include <string.h> also on AIX.
17749         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17750         self-contained also on AIX 7.1.
17751
17752 2011-06-04  Jim Meyering  <meyering@redhat.com>
17753
17754         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17755         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17756         function name, "error".
17757         (_gl_translatable_diag_func_re): New configurable variable.
17758
17759 2011-06-04  Bruno Haible  <bruno@clisp.org>
17760
17761         getopt: Avoid gcc warning.
17762         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17763
17764 2011-06-04  Bruno Haible  <bruno@clisp.org>
17765
17766         strerror_r: Fix comments.
17767         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17768         commit.
17769
17770 2011-06-04  Bruno Haible  <bruno@clisp.org>
17771
17772         perror: Fix compilation error.
17773         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17774         Undefine fprintf, not sprintf.
17775         * modules/perror (Depends-on): Remove intprops, verify.
17776
17777 2011-06-04  Bruno Haible  <bruno@clisp.org>
17778
17779         setlocale: Enable replacement on Cygwin 1.5.
17780         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17781         Cygwin 1.5.x.
17782         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17783         LC_CTYPE category also exists on Cygwin 1.5.x.
17784
17785 2011-06-04  Bruno Haible  <bruno@clisp.org>
17786
17787         strerror-override: Don't disable symbol renamings.
17788         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17789         * lib/strerror-override.c: Include config.h.
17790         (strerror_override): Don't undefine.
17791
17792 2011-06-03  Bruno Haible  <bruno@clisp.org>
17793
17794         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17795         * lib/localename.h: Update copyright header.
17796         * lib/localename.c: Likewise.
17797         * lib/relocatable.h: Likewise.
17798         * lib/relocatable.c: Likewise.
17799
17800 2011-06-02  Bruno Haible  <bruno@clisp.org>
17801
17802         doc: Fix a module name.
17803         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17804
17805 2011-06-02  Bruno Haible  <bruno@clisp.org>
17806
17807         pipe2: Remove dependency on 'nonblocking' module.
17808         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17809         O_NONBLOCK is defined by gnulib.
17810         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17811         is zero.
17812         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17813         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17814         defined by gnulib.
17815         (get_nonblocking_flag): New function.
17816         (main): Test O_NONBLOCK flag only if it is nonzero.
17817         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17818
17819 2011-06-03  Jim Meyering  <meyering@redhat.com>
17820
17821         maint: three new prohibit-header-without-use rules
17822         Prohibit use of cloexec.h, posixver.h, same.h without use.
17823         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17824         (sc_prohibit_posixver_without_use): Likewise.
17825         (sc_prohibit_same_without_use): Likewise.
17826
17827 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17828
17829         allocator: 'die' routine is now given requested size
17830         * lib/allocator.h (struct allocator.die): New size arg.
17831         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17832         If the actual problem is an ssize_t limitation, not a size_t or
17833         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17834
17835 2011-06-01  Eric Blake  <eblake@redhat.com>
17836
17837         strerror: drop strerror_r dependency
17838         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17839         * lib/strerror-override.c (strerror_override): ...to new file.
17840         * lib/strerror-override.h: Add prototype.
17841         * lib/strerror-impl.h: Delete.
17842         * lib/strerror.c (strerror): New implementation.
17843         * modules/errno (Files): Add new files.
17844         (configure.ac): Compile new file as appropriate.
17845         * modules/strerror (Files): Drop unused file.
17846         (Depends-on): Drop strerror_r-posix.
17847         * MODULES.html.sh: Document strerror_r-posix.
17848         Requested by Sam Steingold.
17849
17850         perror: call strerror_r directly
17851         * modules/perror (Files): Drop strerror-impl.h.
17852         * lib/perror.c (perror): Use our own stack buffer, rather than
17853         calling a wrapper that uses static storage.
17854         * doc/posix-functions/perror.texi (perror): Document a limitation
17855         of our replacement.
17856
17857         strerror_r: fix includes for FreeBSD
17858         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17859         since we use abort on some platforms.
17860         Reported by Matthias Bolte.
17861
17862 2011-05-31  Bruno Haible  <bruno@clisp.org>
17863
17864         Fix link errors in tests: openat-die uses gettext-h.
17865         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17866         against $(LIBINTL).
17867         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17868         against $(LIBINTL).
17869         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17870         $(LIBINTL).
17871         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17872         against $(LIBINTL).
17873         * modules/linkat-tests (Makefile.am): Link test-linkat against
17874         $(LIBINTL).
17875         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17876         $(LIBINTL).
17877         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17878         against $(LIBINTL).
17879         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17880         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17881         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17882         $(LIBINTL).
17883         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17884         $(LIBINTL).
17885         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17886         $(LIBINTL).
17887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17888
17889 2011-05-31  Bruno Haible  <bruno@clisp.org>
17890
17891         Fix link errors in tests: wait-process uses gettext-h.
17892         * modules/nonblocking-pipe-tests (Makefile.am): Set
17893         test_nonblocking_pipe_main_LDADD.
17894         * modules/nonblocking-socket-tests (Makefile.am): Link
17895         test-nonblocking-socket-main against $(LIBINTL).
17896         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17897
17898 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17899
17900         assert-h: work around 'verify' incompatibility
17901         * lib/verify.h: Use @...@ directives, not ifdef.
17902         * modules/assert-h (assert.h): Implement the directives.
17903         (assert.h): Substitute the symbol-prefix more consistently.
17904
17905 2011-05-29  Jim Meyering  <meyering@redhat.com>
17906
17907         trim: remove three superfluous assignments
17908         * lib/trim.c (trim2): Remove three superfluous assignments
17909         and correct brace positioning.
17910
17911 2011-05-29  Bruno Haible  <bruno@clisp.org>
17912
17913         wctype-h: Avoid namespace pollution on Solaris 2.6.
17914         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17915         identifiers.
17916         * doc/posix-headers/wctype.texi: Mention the problem.
17917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17918
17919 2011-05-28  Jim Meyering  <meyering@redhat.com>
17920
17921         parse-datetime.y: accommodate -Wstrict-overflow
17922         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17923         placate -Wstrict-overflow.
17924
17925         trim: avoid a warning from -O2 -Wstrict-overflow
17926         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17927
17928 2011-05-29  Bruno Haible  <bruno@clisp.org>
17929
17930         gnulib-tool: Fix bug in yesterday's commit.
17931         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17932         twice.
17933
17934 2011-05-29  Bruno Haible  <bruno@clisp.org>
17935
17936         Allow multiple gnulib generated include files to be combined.
17937         * gnulib-tool (func_compute_include_guard_prefix): New function.
17938         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17939         ${gl_include_guard_prefix} references.
17940         (func_import, func_create_testdir): Invoke
17941         func_compute_include_guard_prefix.
17942         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17943         * lib/ctype.in.h: Likewise.
17944         * lib/dirent.in.h: Likewise.
17945         * lib/errno.in.h: Likewise.
17946         * lib/fcntl.in.h: Likewise.
17947         * lib/float.in.h: Likewise.
17948         * lib/getopt.in.h: Likewise.
17949         * lib/iconv.in.h: Likewise.
17950         * lib/langinfo.in.h: Likewise.
17951         * lib/locale.in.h: Likewise.
17952         * lib/math.in.h: Likewise.
17953         * lib/netdb.in.h: Likewise.
17954         * lib/netinet_in.in.h: Likewise.
17955         * lib/poll.in.h: Likewise.
17956         * lib/pthread.in.h: Likewise.
17957         * lib/pty.in.h: Likewise.
17958         * lib/sched.in.h: Likewise.
17959         * lib/se-selinux.in.h: Likewise.
17960         * lib/search.in.h: Likewise.
17961         * lib/signal.in.h: Likewise.
17962         * lib/spawn.in.h: Likewise.
17963         * lib/stdarg.in.h: Likewise.
17964         * lib/stddef.in.h: Likewise.
17965         * lib/stdint.in.h: Likewise.
17966         * lib/stdio.in.h: Likewise.
17967         * lib/stdlib.in.h: Likewise.
17968         * lib/string.in.h: Likewise.
17969         * lib/strings.in.h: Likewise.
17970         * lib/sys_file.in.h: Likewise.
17971         * lib/sys_ioctl.in.h: Likewise.
17972         * lib/sys_select.in.h: Likewise.
17973         * lib/sys_socket.in.h: Likewise.
17974         * lib/sys_stat.in.h: Likewise.
17975         * lib/sys_time.in.h: Likewise.
17976         * lib/sys_times.in.h: Likewise.
17977         * lib/sys_uio.in.h: Likewise.
17978         * lib/sys_utsname.in.h: Likewise.
17979         * lib/sys_wait.in.h: Likewise.
17980         * lib/sysexits.in.h: Likewise.
17981         * lib/termios.in.h: Likewise.
17982         * lib/time.in.h: Likewise.
17983         * lib/unistd.in.h: Likewise.
17984         * lib/wchar.in.h: Likewise.
17985         * lib/wctype.in.h: Likewise.
17986         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17987         * modules/ctype (Makefile.am): Likewise.
17988         * modules/dirent (Makefile.am): Likewise.
17989         * modules/errno (Makefile.am): Likewise.
17990         * modules/fcntl-h (Makefile.am): Likewise.
17991         * modules/float (Makefile.am): Likewise.
17992         * modules/getopt-posix (Makefile.am): Likewise.
17993         * modules/iconv-h (Makefile.am): Likewise.
17994         * modules/langinfo (Makefile.am): Likewise.
17995         * modules/locale (Makefile.am): Likewise.
17996         * modules/math (Makefile.am): Likewise.
17997         * modules/netdb (Makefile.am): Likewise.
17998         * modules/netinet_in (Makefile.am): Likewise.
17999         * modules/poll-h (Makefile.am): Likewise.
18000         * modules/pthread (Makefile.am): Likewise.
18001         * modules/pty (Makefile.am): Likewise.
18002         * modules/sched (Makefile.am): Likewise.
18003         * modules/search (Makefile.am): Likewise.
18004         * modules/selinux-h (Makefile.am): Likewise.
18005         * modules/signal (Makefile.am): Likewise.
18006         * modules/spawn (Makefile.am): Likewise.
18007         * modules/stdarg (Makefile.am): Likewise.
18008         * modules/stddef (Makefile.am): Likewise.
18009         * modules/stdint (Makefile.am): Likewise.
18010         * modules/stdio (Makefile.am): Likewise.
18011         * modules/stdlib (Makefile.am): Likewise.
18012         * modules/string (Makefile.am): Likewise.
18013         * modules/strings (Makefile.am): Likewise.
18014         * modules/sys_file (Makefile.am): Likewise.
18015         * modules/sys_ioctl (Makefile.am): Likewise.
18016         * modules/sys_select (Makefile.am): Likewise.
18017         * modules/sys_socket (Makefile.am): Likewise.
18018         * modules/sys_stat (Makefile.am): Likewise.
18019         * modules/sys_time (Makefile.am): Likewise.
18020         * modules/sys_times (Makefile.am): Likewise.
18021         * modules/sys_uio (Makefile.am): Likewise.
18022         * modules/sys_utsname (Makefile.am): Likewise.
18023         * modules/sys_wait (Makefile.am): Likewise.
18024         * modules/sysexits (Makefile.am): Likewise.
18025         * modules/termios (Makefile.am): Likewise.
18026         * modules/time (Makefile.am): Likewise.
18027         * modules/unistd (Makefile.am): Likewise.
18028         * modules/wchar (Makefile.am): Likewise.
18029         * modules/wctype-h (Makefile.am): Likewise.
18030         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18031
18032 2011-05-29  Bruno Haible  <bruno@clisp.org>
18033
18034         assert-h: Allow multiple gnulib generated replacements to coexist.
18035         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18036
18037 2011-05-29  Bruno Haible  <bruno@clisp.org>
18038
18039         argp: Allow coexistence with strerror_r-posix module.
18040         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18041         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18042         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18043         not the glibc signature.
18044
18045 2011-05-28  Bruno Haible  <bruno@clisp.org>
18046
18047         gnulib-tool: Alternative structure of testdirs, similar to --import.
18048         * gnulib-tool: New option --single-configure.
18049         (func_usage): Document it.
18050         (single_configure): New variable.
18051         (func_modules_transitive_closure_separately,
18052         func_modules_transitive_closure_separately,
18053         func_determine_use_libtests, func_modules_add_dummy_separately,
18054         func_modules_to_filelist_separately): New functions, extracted from
18055         func_import.
18056         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18057         (func_import): Use the new functions.
18058         (func_create_testdir): Set final_modules. Handle $single_configure =
18059         true case.
18060
18061 2011-05-28  Bruno Haible  <bruno@clisp.org>
18062
18063         getloadavg: Remove an unreliable safety check.
18064         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18065         getloadavg.c is in place.
18066         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18067         Reported by Sam Steingold <sds@gnu.org>.
18068
18069 2011-05-28  Bruno Haible  <bruno@clisp.org>
18070
18071         doc: Cleanup yet another file produced by texinfo.tex.
18072         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18073
18074 2011-05-28  Bruno Haible  <bruno@clisp.org>
18075
18076         Finish the conditional dependencies mechanism.
18077         * gnulib-tool: New option --no-conditional-dependencies.
18078         (func_usage): Document it. Don't mark --conditional-dependencies as
18079         experimental.
18080         (cond_dependencies): The possible values can now be true, false, empty.
18081         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18082         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18083         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18084
18085 2011-05-28  Bruno Haible  <bruno@clisp.org>
18086
18087         doc: Use a recent texinfo.tex.
18088         * doc/Makefile (tex_opts): New variable.
18089         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18090
18091 2011-05-28  Jim Meyering  <meyering@redhat.com>
18092
18093         intprops.h: adjust comment to match code change
18094         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18095         only once, it *may* have side effects.  Also fix an unrelated typo.
18096         (_GL_INT_SIGNED): Likewise.
18097
18098 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18099
18100         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18101
18102 2011-05-26  Bruno Haible  <bruno@clisp.org>
18103
18104         mbsrchr: Avoid collision with system function on Interix.
18105         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18106         Reported by Markus Duft <mduft@gentoo.org>.
18107
18108 2011-05-15  James Youngman  <jay@gnu.org>
18109
18110         getopt: for ambiguous options, enumerate the possibilities.
18111         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18112         the ambiguous options when an ambiguous prefix is given. This was
18113         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18114         glibc change was
18115         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18116
18117 2011-05-25  Eric Blake  <eblake@redhat.com>
18118
18119         getcwd: work around mingw bug
18120         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18121         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18122         Reported by Matthias Bolte.
18123
18124 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18125
18126         test-intprops: disable -Wtype-limits diagnostics
18127         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18128         diagnostics.  Otherwise, the integer overflow macros generate many
18129         diagnostics.  Reported by Jim Meyering in
18130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18131
18132         intprops: shorten, to pacify gcc -Woverlength-strings
18133         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18134         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18135         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18136         likely to run afoul of C compiler limits for string constant lengths.
18137         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18138
18139 2011-05-24  Eric Blake  <eblake@redhat.com>
18140
18141         docs: document recently fixed glibc printf bug
18142         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18143         * doc/posix-functions/printf.texi (printf): Likewise.
18144         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18145         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18146
18147         closein-tests: convert to init.sh
18148         * modules/closein-tests (Files): Add init.sh
18149         * tests/test-closein.sh Use it.
18150
18151         yesno-tests: convert to init.sh
18152         * modules/yesno-tests (Files): Add init.sh.
18153         * tests/test-yesno.sh: Use it.
18154
18155         atexit-tests: ensure reliable exit status
18156         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18157         Reported by Bruno Haible.
18158
18159 2011-05-24  Bruno Haible  <bruno@clisp.org>
18160
18161         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18163         gl_PREREQ_STRERROR_R invocations from here...
18164         * modules/strerror_r-posix (configure.ac): ... to here.
18165
18166 2011-05-24  Eric Blake  <eblake@redhat.com>
18167
18168         strerror_r: fix missing header
18169         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18170
18171         strerror_r: fix AIX test failures
18172         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18173         ERANGE failure.
18174
18175         strerror_r: fix Solaris test failures
18176         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18177         failures.
18178         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18179
18180         strerror_r: enforce POSIX recommendations
18181         * lib/strerror_r.c (safe_copy): New helper method.
18182         (strerror_r): Guarantee a non-empty string.
18183         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18184         recent POSIX rulings and to match our strerror guarantees.
18185         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18186
18187 2011-05-24  Jim Meyering  <meyering@redhat.com>
18188
18189         test-perror2.c: avoid warning about unused variable
18190         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18191
18192 2011-05-24  Eric Blake  <eblake@redhat.com>
18193
18194         perror: avoid spurious test failure on HP-UX
18195         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18196
18197         tests: fix logic bug in init.sh
18198         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18199         shell.
18200
18201 2011-05-24  Jim Meyering  <meyering@redhat.com>
18202
18203         utimensat: do not reference an out-of-scope buffer
18204         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18205         declared in an inner scope, yet "times" would be dereferenced outside
18206         the scope in which "ts" was valid.
18207         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18208         of ts[2] "out/up", so that the use of aliased "times" (via
18209         "times = ts;") does not end up referencing an out-of-scope "ts"
18210
18211         opendir-safer.c: don't clobber errno; don't close negative FD
18212         * lib/opendir-safer.c (opendir_safer):
18213         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18214         file descriptor, and more importantly, don't clobber the
18215         offending errno value with EINVAL.  Before, upon failure
18216         of dup_safer, we would pass the negative file descriptor to
18217         fdopendir, which would clobber errno.
18218
18219 2011-05-23  Bruno Haible  <bruno@clisp.org>
18220
18221         idcache: Fix module description.
18222         * modules/idcache (Include): Set to "idcache.h".
18223
18224 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18225
18226         gnulib-tool: fix portability problem with MacOS sed
18227         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18228         before the "}".  Problem reported by Leo in
18229         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18230         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18231         sed_extract_condition1, sed_extract_condition2.
18232
18233 2011-05-23  Bruno Haible  <bruno@clisp.org>
18234
18235         hash: Simplify autoconf macro.
18236         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18237
18238 2011-05-23  Bruno Haible  <bruno@clisp.org>
18239
18240         getugroups: Fix module description.
18241         * modules/getugroups (Include): Set to "getugroups.h".
18242
18243 2011-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         linkat: Simplify autoconf macro.
18246         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18247
18248 2011-05-23  Bruno Haible  <bruno@clisp.org>
18249             Eric Blake  <eblake@redhat.com>
18250
18251         linkat, renameat: Update dependencies.
18252         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18253         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18254         symlinkat.
18255
18256 2011-05-23  Jim Meyering  <meyering@redhat.com>
18257
18258         maint.mk: more tight_scope improvements
18259         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18260         (_gl_TS_headers): Define only in if-0'd block.
18261         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18262         sometimes we must *not* use it.  Adjust uses accordingly.
18263         (sc_tight_scope): Use much simpler grep-based test to determine
18264         whether we skip this rule.
18265
18266         maint.mk: generalize/improve the tight-scope rule
18267         * top/maint.mk: Emit a warning when the test is skipped.
18268         (_gl_TS_dir): Add $(srcdir)/ prefix.
18269         (_gl_TS_function_match): Simplify, rather than trying
18270         to enumerate common types.  Otherwise, it would fail to match an
18271         "extern unsigned char const *" declaration in idutils.
18272         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18273         a way to support use of that type of macro.
18274         (_gl_TS_var_match): Simplify regexp.
18275         (_gl_TS_obj_files): New configurable variable.
18276         (_gl_TS_headers): Likewise.
18277
18278 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18279
18280         verify: fix bug when gnulib <assert.h> is also included
18281         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18282         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18283         Perhaps there's a better way, but this fixes the immediate problem.
18284         Problem reported by Bruno Haible in
18285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18286
18287 2011-05-22  Bruno Haible  <bruno@clisp.org>
18288
18289         xgetcwd: Simplify autoconf macro.
18290         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18291
18292 2011-05-22  Bruno Haible  <bruno@clisp.org>
18293
18294         New module 'mktime-internal'.
18295         * modules/mktime-internal: New file.
18296         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18297         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18298         mktime_internal as a C macro if libc has __mktime_internal.
18299         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18300         conditions.
18301         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18302
18303 2011-05-22  Bruno Haible  <bruno@clisp.org>
18304
18305         timegm: Correct mktime replacement statements.
18306         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18307         defining mktime as a C macro. This completes a 2009-07-28 commit.
18308
18309 2011-05-22  Bruno Haible  <bruno@clisp.org>
18310
18311         timegm: Simplify autoconf macro.
18312         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18313
18314 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18315
18316         clock-time: change to LGPLv2+.
18317         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18318         BSD-like but we have no mark for that; this is good enough for now.
18319
18320 2011-05-21  Bruno Haible  <bruno@clisp.org>
18321
18322         strerror_r: Fix comments.
18323         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18324
18325 2011-05-21  Bruno Haible  <bruno@clisp.org>
18326
18327         relocatable-prog-wrapper: Fix possible link error.
18328         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18329         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18330         (gl_FUNC_SETENV): ... to here.
18331         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18332         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18333
18334 2011-05-21  Bruno Haible  <bruno@clisp.org>
18335
18336         relocatable-prog-wrapper: Assume strerror() exists.
18337         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18338         m4/strerror.m4.
18339         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18340         * lib/relocwrapper.c: Remove mention of strerror module.
18341         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18342         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18343         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18344         C macro.
18345
18346 2011-05-21  Bruno Haible  <bruno@clisp.org>
18347
18348         select: Simplify replacement idiom.
18349         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18350         Win32 platforms.
18351         * lib/sys_select.in.h (select): Simplify accordingly.
18352         * modules/select (Depends-on): Likewise.
18353
18354 2011-05-21  Bruno Haible  <bruno@clisp.org>
18355
18356         mkdir-p: Simplify autoconf macro.
18357         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18358         gl_FUNC_LCHOWN.
18359
18360 2011-05-21  Eric Blake  <eblake@redhat.com>
18361
18362         strerror_r: avoid clobbering strerror on cygwin
18363         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18364         fall back instead to sys_errlist.
18365         * modules/strerror (configure.ac): Add witness.
18366         * tests/test-strerror_r.c (main): Enhance test.
18367         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18368         * tests/test-perror2.c (main): Free memory before exit.
18369
18370 2011-05-21  Bruno Haible  <bruno@clisp.org>
18371
18372         mkdtemp: Use gnulib naming conventions.
18373         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18374         * modules/mkdtemp (configure.ac): Update.
18375
18376 2011-05-20  Eric Blake  <eblake@redhat.com>
18377
18378         strerror_r: avoid corrupting errno on Solaris
18379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18380         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18381
18382         strerror_r: avoid compiler warning
18383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18384
18385         strerror_r: simplify AIX code
18386         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18387
18388         test-perror: avoid spurious failure on FreeBSD
18389         * modules/perror-tests (Depends-on): Add strerror, now that
18390         strerror_r no longer pulls it in.
18391
18392 2011-05-20  Bruno Haible  <bruno@clisp.org>
18393
18394         strerror_r-posix: Remove unused dependencies.
18395         * modules/strerror_r-posix (Depends-on): Remove strerror.
18396         Reported by Eric Blake.
18397
18398 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18399
18400         intprops: remove assumption about A|B representation
18401         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18402         is a valid integer if both A and B are.  Although this is true for
18403         all known practical hosts, the C standard doesn't guarantee it,
18404         and the code need not assume it.  Also, this change may work around
18405         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18407
18408 2011-05-20  Eric Blake  <eblake@redhat.com>
18409
18410         perror: work around FreeBSD bug
18411         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18412         is broken.  Move AC_LIBOBJ...
18413         * modules/perror (configure.ac): Here.
18414         * doc/posix-functions/perror.texi (perror): Document this.
18415         * tests/test-perror2.c (main): Enhance test.
18416
18417         test-perror: check for strerror interactions
18418         * tests/macros.h (STREQ): Add macro.
18419         * modules/perror-tests (Files): Add second test.
18420         * tests/test-perror2.c (main): New file.
18421         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18422
18423         test-perror: rewrite to use init script
18424         * modules/perror-tests (Files): Add init.sh.
18425         * tests/test-perror.sh: Use temporary directory.
18426
18427 2011-05-20  Jim Meyering  <meyering@redhat.com>
18428
18429         maint: replace misused "a" with "an"
18430         * doc/intprops.texi: "a integer"
18431         * doc/regex.texi: "a explanation"
18432         * lib/alignof.h: "a object"
18433         * lib/argmatch.h: "a explanation"
18434         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18435         * lib/stdint.in.h: "a integer"
18436         * lib/userspec.c: "a owner"
18437         * doc/gnulib.texi: Fix "a idea", and reword.
18438
18439 2011-05-19  Jim Meyering  <meyering@redhat.com>
18440
18441         maint: correct misuse of "a" and "an"
18442         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18443         * lib/argp-help.c: "an docum...": s/an/a/
18444         * lib/argp-parse.c: "An vector": s/An/A/
18445         * lib/execute.c: "an native": s/an/a/
18446         * lib/spawn-pipe.c: Likewise.
18447         * lib/gc.h: "an Gc_rc": s/an/a/
18448         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18449         * lib/fts.c: "an stat.st_dev": s/an/a/
18450
18451 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18452
18453         intprops-tests: work around HP-UX 11.23 cc bug with constants
18454         * tests/test-intprops.c (VERIFY): New macro.
18455         (main): Use it, instead of verify, to work around the compiler bug; see
18456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18457
18458         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18459         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18460         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18461         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18462         (_GL_REMAINDER_OVERFLOW): Use it.
18463
18464         intprops-tests: revert unsigned part of previous change
18465         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18466         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18467         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18469
18470 2011-05-19  Bruno Haible  <bruno@clisp.org>
18471
18472         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18473         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18474         strerror_r() returned without filling the buffer.
18475         Reported by Eric Blake.
18476
18477 2011-05-19  Eric Blake  <eblake@redhat.com>
18478
18479         strerror_r: guarantee unchanged errno
18480         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18481         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18482         failure.
18483         * tests/test-strerror_r.c (main): Enhance test.
18484
18485 2011-05-19  Bruno Haible  <bruno@clisp.org>
18486
18487         strerror_r: Reorder #if blocks.
18488         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18489         for consistency with the previous commit.
18490
18491 2011-05-19  Bruno Haible  <bruno@clisp.org>
18492
18493         perror: Avoid clobbering the strerror buffer when possible.
18494         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18495         * lib/strerror.c: Include it.
18496         * modules/strerror (Files): Add lib/strerror-impl.h.
18497         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18498         (my_strerror): New function, defined through lib/strerror-impl.h.
18499         (perror): Use it instead of strerror.
18500         * modules/perror (Files): Add lib/strerror-impl.h.
18501         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18502
18503 2011-05-19  Eric Blake  <eblake@redhat.com>
18504
18505         strerror_r: fix on newer cygwin
18506         * lib/strerror_r.c (strerror_r): Cygwin now has
18507         __xpg_strerror_r, use it.
18508
18509 2011-05-19  Bruno Haible  <bruno@clisp.org>
18510
18511         strerror_r: Avoid clobbering the strerror buffer when possible.
18512         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18513         (sys_nerr, sys_errlist): New declarations.
18514         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18515         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18516         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18517
18518 2011-05-19  Bruno Haible  <bruno@clisp.org>
18519
18520         strerror_r: Fix test failure on mingw.
18521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18522         EXTEND_STRERROR_R.
18523         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18524         macros from errno.in.h instead.
18525
18526 2011-05-19  Eric Blake  <eblake@redhat.com>
18527
18528         strerror: relax test for Solaris
18529         * tests/test-strerror.c (main): Permit Solaris behavior.
18530         * tests/test-strerror_r.c (main): Likewise.
18531
18532         strerror: enforce POSIX ruling on strerror(0)
18533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18535         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18536         * doc/posix-functions/strerror.texi (strerror): Document it.
18537         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18538         * tests/test-strerror.c (main): Strengthen test.
18539         * tests/test-strerror_r.c (main): Likewise.
18540
18541 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18542
18543         intprop-tests: port to older and more-pedantic compilers
18544         * modules/intprops-tests (Files): Add tests/macros.h.
18545         * tests/test-intprops.c: Include macros.h.
18546         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18547         it's no longer documented to expand to an integer constant expression.
18548         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18549         argument is floating point, as it's no longer documented to expand
18550         to an integer constant expression in that case.
18551         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18552         compiler bugs reported by Bruno Haible.  See
18553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18554         (U0, U1): New constants, to work around the same bugs.  Also,
18555         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18556
18557         intprops: work around C compiler bugs
18558         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18559         bug in Sun C 5.11 2010/08/13 and other compilers; see
18560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18561
18562         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18563         * doc/intprops.texi (Integer Type Determination): Fix
18564         documentation for TYPE_IS_INTEGER: it returns an constant
18565         expression, not an integer constant expression.  Fix doc for
18566         TYPE_SIGNED: it returns an integer constant expression only if its
18567         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18568         hardly worth documented that way....)
18569
18570 2011-05-18  Bruno Haible  <bruno@clisp.org>
18571
18572         strerror_r: Avoid clobbering the strerror buffer when possible.
18573         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18574         Handle gnulib defined errno values here. When strerror() returns NULL
18575         or an empty string, return EINVAL.
18576         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18577         gnulib defined errno values here.
18578         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18579
18580 2011-05-18  Eric Blake  <eblake@redhat.com>
18581
18582         fnmatch: avoid compiler warning
18583         * lib/fnmatch_loop.c (FCT): Use correct type.
18584         Reported by Matthias Bolte.
18585
18586 2011-05-13  Jim Meyering  <meyering@redhat.com>
18587
18588         maint.mk: three new prohibit_<HDR>_without_use rules
18589         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18590         (sc_prohibit_stdio-safer_without_use): Likewise.
18591         (sc_prohibit_xfreopen_without_use): Likewise.
18592
18593 2011-05-17  Jim Meyering  <meyering@redhat.com>
18594
18595         announce-gen: fail if the NEWS delta is empty
18596         If there's nothing noteworthy in NEWS, then either you forgot
18597         or you shouldn't be releasing.
18598         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18599
18600 2011-05-17  Pádraig Brady <P@draigBrady.com>
18601
18602         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18603         reserved symbols starting with double underscore from the check.
18604
18605 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         intprops: add doc
18608         * doc/intprops.texi: New file, documenting intprops.
18609         * doc/gnulib.texi (Particular Modules): Include it.
18610
18611         verify: add doc to gnulib manual and fix example
18612         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18613         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18614         (Compile-time Assertions): Fix example so it can't overflow.
18615
18616 2011-05-17  Jim Meyering  <meyering@redhat.com>
18617
18618         warnings.m4: don't usurp save_CPPFLAGS variable name
18619         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18620
18621         doc: fix typo
18622         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18623
18624 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18625             Bruno Haible  <bruno@clisp.org>
18626
18627         doc: Tweak recent change.
18628         * README (Portability guidelines): Tweak new text.
18629         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18630         Interix 6.1.
18631
18632 2011-05-16  Eric Blake  <eblake@redhat.com>
18633
18634         inttypes: avoid autoconf warning
18635         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18636         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18637
18638 2011-05-16  Sam Steingold <sds@gnu.org>
18639         and Eric Blake  <eblake@redhat.com>
18640
18641         vc-list-files: accept multiple directory operands
18642         * build-aux/vc-list-files: Iterate over all remaining operands.
18643
18644 2011-05-16  Bruno Haible  <bruno@clisp.org>
18645
18646         Fix confusion regarding deprecated modules.
18647         * modules/calloc (Status, Notice): Mark module as deprecated, not
18648         obsolete.
18649         * modules/fnmatch-posix (Status, Notice): Likewise.
18650         * modules/getdate (Status, Notice): Likewise.
18651         * modules/getopt (Status, Notice): Likewise.
18652         * modules/malloc (Status, Notice): Likewise.
18653         * modules/pipe (Status, Notice): Likewise.
18654         * modules/realloc (Status, Notice): Likewise.
18655         * modules/rename-dest-slash (Status, Notice): Likewise.
18656         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18657         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18658         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18659         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18660         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18661
18662 2011-05-16  Bruno Haible  <bruno@clisp.org>
18663
18664         doc: List the target platforms.
18665         * doc/gnulib-intro.texi (Target Platforms): New section.
18666         * doc/gnulib.texi (Introduction): Update menu.
18667         * README (Portability guidelines): Refer to the new section. Update
18668         statement about oldest supported environment. Remove rationale why
18669         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18670         unportable C89 function.
18671         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18672         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18673
18674 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18675
18676         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18677
18678 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18679
18680         intprops-tests: new module
18681         * modules/intprops-tests, tests/test-intprops.c: New files.
18682
18683         intprops: add safe, portable integer overflow checking
18684         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18685         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18686         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18687         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18688         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18689         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18690         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18691         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18692         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18693         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18694         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18695
18696 2011-05-12  James Youngman  <jay@gnu.org>
18697
18698         Add a test for glibc's Bugzilla bug #12378.
18699         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18700         doesn't allow the literal matching of a lone "[" (which is
18701         required by POSIX).
18702         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18703
18704 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18705
18706         Sync glibc change fixing Bugzilla bug #12378.
18707         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18708         beginning and fall back to matching as normal character if the
18709         string ends before the matching ']' is found.  This is what POSIX
18710         requires.
18711
18712 2011-05-13  Eric Blake  <eblake@redhat.com>
18713
18714         getcwd-lgpl: relax test for FreeBSD
18715         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18716         issue.
18717         * tests/test-getcwd-lgpl.c (main): Relax test.
18718         Reported by Matthias Bolte.
18719
18720 2011-05-11  Eric Blake  <eblake@redhat.com>
18721
18722         test-fflush: silence compiler warning
18723         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18724
18725 2011-05-11  Bruno Haible  <bruno@clisp.org>
18726
18727         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18728         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18729         * modules/canonicalize (Depends-on): Add 'nocrash'.
18730         * modules/canonicalize-lgpl (Depends-on): Likewise.
18731         * doc/posix-functions/realpath.texi: Update platforms list.
18732         Reported by Ryan Schmidt <ryandesign@macports.org>.
18733
18734 2011-05-11  Bruno Haible  <bruno@clisp.org>
18735
18736         group-member: Declare function in <unistd.h>.
18737         * lib/unistd.in.h (group_member): New declaration.
18738         * lib/group-member.h: Remove file.
18739         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18740         * tests/test-unistd-c++.cc: Check signature of group_member.
18741         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18742         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18743         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18744         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18745         HAVE_GROUP_MEMBER.
18746         * modules/group-member (Files): Remove lib/group-member.h.
18747         (Depends-on): Add unistd. Specify conditions.
18748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18749         (Include): Change to <unistd.h>.
18750         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18751         HAVE_GROUP_MEMBER.
18752         * NEWS: Mention the change.
18753         * lib/euidaccess.c: Don't include group-member.h.
18754
18755 2011-05-11  Bruno Haible  <bruno@clisp.org>
18756
18757         group-member: Document module.
18758         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18759         module.
18760
18761 2011-05-11  Bruno Haible  <bruno@clisp.org>
18762
18763         fclose: Fix mistake earlier today.
18764         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18765
18766 2011-05-11  Eric Blake  <eblake@redhat.com>
18767
18768         fclose: preserve fflush errors
18769         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18770         Reported by Jim Meyering.
18771
18772         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18773         * build-aux/bootstrap (check_versions): When no specific version
18774         is required, merely check that the app produces an exit status
18775         that indicates its existence.
18776
18777         maint.mk: drop redundant check
18778         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18779         the same but better.
18780
18781 2011-05-11  Bruno Haible  <bruno@clisp.org>
18782
18783         fclose: Fix possible link error.
18784         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18785         unregister_shadow_fd. Improve comments.
18786         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18787         Eric Blake.
18788
18789 2011-05-11  Jim Meyering  <meyering@redhat.com>
18790
18791         maint.mk: improve "can not" detection and generalize rule name
18792         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18793         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18794         Use the same technique as in sc_prohibit_doubled_word, so that
18795         we recognize "can not" also when the words are separated by a newline.
18796         Suggested by Eric Blake.
18797         (perl_filename_lineno_text_): Define.  Factored out of...
18798         (prohibit_doubled_word_): ...here.  Use the new definition.
18799         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18800         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18801         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18802
18803 2011-05-10  Eric Blake  <eblake@redhat.com>
18804
18805         fclose: avoid double close race when possible
18806         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18807         all but WINDOWS_SOCKETS.
18808
18809 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18810
18811         openat: correct new comment
18812         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18813
18814 2011-05-10  Jim Meyering  <meyering@redhat.com>
18815
18816         openat: add comments
18817         * lib/openat-proc.c (openat_proc_name): Add comments,
18818         mostly from Eric Blake.
18819
18820 2011-05-09  Eric Blake  <eblake@redhat.com>
18821
18822         openat: reduce syscalls in first probe of /proc
18823         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18824         be a directory.  Simplify the probe for .. bugs.
18825         * modules/openat (Depends-on): Drop same-inode.
18826         Reported by Bastien ROUCARIES.
18827
18828 2011-05-09  Jim Meyering  <meyering@redhat.com>
18829
18830         maint.mk: change semantics/name of tight_scope variables
18831         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18832         Rename variables to align with semantics that make them more useful.
18833
18834         maint.mk: tweak new rule's name not to impinge
18835         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18836         (sc_tight_scope): Use new rule name rather than $@-0.
18837
18838         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18839         * top/maint.mk (sc_tight_scope): New rule.
18840         (sc_tight_scope-0): New rule, ifdef'd out.
18841         (_gl_TS_dir): Default.
18842         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18843         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18844
18845 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18846
18847         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18848         Haible <bruno@clisp.org>.
18849
18850 2011-05-08  Bruno Haible  <bruno@clisp.org>
18851
18852         Comments.
18853         * m4/isnanf.m4: Add comment.
18854         * m4/isnanl.m4: Likewise.
18855
18856 2011-05-08  Bruno Haible  <bruno@clisp.org>
18857
18858         glob: Remove obsolete macro.
18859         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18860
18861 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         intprops: Sun C 5.11 supports __typeof__
18864         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18865         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18866         which is new.
18867         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18868
18869         intprops: switch to usual gnulib indenting and naming
18870         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18871         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18872
18873         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18874
18875 2011-05-08  Jim Meyering  <meyering@redhat.com>
18876
18877         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18878         * top/maint.mk (release-prep): Use make's --no-print-directory
18879         option when generating the announcement.  This eliminates the
18880         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18881         generated announcement template.
18882
18883 2011-05-08  Bruno Haible  <bruno@clisp.org>
18884
18885         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18886         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18887         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18888
18889 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18890
18891         ignore-value, verify: Omit include files from lib_SOURCES.
18892         * modules/ignore-value, modules/verify (Makefile.am):
18893         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18894         that leads Automake to duplicate use of am__objects_... variables
18895         in Makefile.in.  See
18896         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18897
18898 2011-05-07  Bruno Haible  <bruno@clisp.org>
18899
18900         fclose: Simplify autoconf macro.
18901         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18902         defined.
18903
18904 2011-05-07  Bruno Haible  <bruno@clisp.org>
18905
18906         canonicalize-lgpl: Fix autoconf macro ordering bug.
18907         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18908         gl_STDLIB_H_DEFAULTS.
18909
18910 2011-05-06  Eric Blake  <eblake@redhat.com>
18911
18912         maintainer-makefile: make sc_po_check easier to tune
18913         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18914         to probe for strings, such as an alternate location for gnulib.
18915
18916         fclose: guarantee behavior on seekable stdin
18917         * modules/fclose (Depends-on): Add fflush.
18918         * doc/posix-functions/fclose.texi (fclose): Document this.
18919         * tests/test-fclose.c (main): Make test for this unconditional.
18920
18921 2011-05-06  Bruno Haible  <bruno@clisp.org>
18922
18923         fflush, fpurge: Relicense under LGPLv2+.
18924         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18925         * modules/fpurge (License): Likewise.
18926         With permission from Eric Blake and Jim Meyering.
18927         Suggested by Eric Blake.
18928
18929 2011-05-06  Karl Berry  <karl@gnu.org>
18930
18931         * MODULES.html.sh (func_all_modules): remove exit.
18932
18933 2011-05-06  Jim Meyering  <meyering@redhat.com>
18934
18935         maint.mk: use info-gnu@ as the default only for a stable release
18936         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18937         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18938         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18940
18941 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18942
18943         assert-h: new module, which supports C1X-style static_assert
18944         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18945         * lib/verify.h: Revamp so that this can be copied into assert.h,
18946         while retaining the ability to use it standalone as before.
18947         Rename private identifiers so as not to encroach on the
18948         standard C namespace, since this is now used by assert.h.
18949         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18950         the old verify_true.
18951         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18952         the old verify_true.  Use _GL_VERIFY_TYPE.
18953         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18954         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18955         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18956         defined when this file is copied into the replacement assert.h.
18957         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18958         and _Static_assert is not built in.
18959         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18960         defined, and use the new macros mentioned above.
18961         * doc/posix-headers/assert.texi: Document this.
18962
18963 2011-05-05  Bruno Haible  <bruno@clisp.org>
18964
18965         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18966         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18967         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18968         gl_REPLACE_FCLOSE here.
18969         * modules/fflush (Depends-on): Remove fclose.
18970         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18971         combination with module 'fclose'.
18972
18973 2011-05-05  Bruno Haible  <bruno@clisp.org>
18974
18975         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18976         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18977         gl_FUNC_FFLUSH.
18978         (gl_FUNC_FFLUSH): Use it.
18979         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18980         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18981         gl_REPLACE_FSEEKO here.
18982
18983 2011-05-05  Bruno Haible  <bruno@clisp.org>
18984
18985         tzset: Relicense under LGPL.
18986         * modules/tzset (License): Change to LGPL.
18987         No agreement needed; it's a no-op.
18988
18989         strtoimax, strtoumax: Relicense under LGPL.
18990         * modules/strtoimax (License): Change to LGPL.
18991         * modules/strtoumax (License): Likewise.
18992         With permission from Jim Meyering, Paul Eggert:
18993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18995
18996         getgroups: Relicense under LGPL.
18997         * modules/getgroups (License): Change to LGPL.
18998         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19002
19003         nanosleep: Relicense under LGPL.
19004         * modules/nanosleep (License): Change to LGPL.
19005         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19006         Haible:
19007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19011
19012         futimens: Relicense under LGPL.
19013         * modules/futimens (License): Change to LGPL.
19014         With permission from Eric Blake:
19015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19016
19017         fflush: Relicense under LGPL.
19018         * modules/fflush (License): Change to LGPL.
19019         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19023
19024         tmpfile: Relicense under LGPL.
19025         * modules/tmpfile (License): Change to LGPL.
19026         With permission from Ben Pfaff:
19027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19028
19029         isfinite: Relicense under LGPL.
19030         * modules/isfinite (License): Change to LGPL.
19031         With permission from Ben Pfaff, Bruno Haible:
19032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19034
19035         acosl..tanl: Relicense under LGPL.
19036         * modules/acosl (License): Change to LGPL.
19037         * modules/asinl (License): Likewise.
19038         * modules/atanl (License): Likewise.
19039         * modules/cosl (License): Likewise.
19040         * modules/expl (License): Likewise.
19041         * modules/logl (License): Likewise.
19042         * modules/sinl (License): Likewise.
19043         * modules/sqrtl (License): Likewise.
19044         * modules/tanl (License): Likewise.
19045         Source code originally from glibc and Paolo Bonzini. Agreements:
19046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19048
19049 2011-05-05  Bruno Haible  <bruno@clisp.org>
19050
19051         signal: Define sighandler_t.
19052         * lib/signal.in.h (sighandler_t): New type.
19053         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19054         whether sighandler_t is defined.
19055         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19056         * modules/signal (Depends-on): Add extensions.
19057         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19058         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19059         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19060
19061 2011-05-05  Eric Blake  <eblake@redhat.com>
19062
19063         maint: remove useless REPLACE_*_H macros
19064         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19065         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19066         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19067         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19068         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19069         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19070         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19071         * m4/btowc.m4: Update callers.
19072         * m4/dirfd.m4: Likewise.
19073         * m4/duplocale.m4: Likewise.
19074         * m4/fchdir.m4: Likewise.
19075         * m4/fdopendir.m4: Likewise.
19076         * m4/inet_ntop.m4: Likewise.
19077         * m4/inet_pton.m4: Likewise.
19078         * m4/ioctl.m4: Likewise.
19079         * m4/mbrlen.m4: Likewise.
19080         * m4/mbrtowc.m4: Likewise.
19081         * m4/mbsinit.m4: Likewise.
19082         * m4/mbsnrtowcs.m4: Likewise.
19083         * m4/mbsrtowcs.m4: Likewise.
19084         * m4/poll.m4: Likewise.
19085         * m4/setlocale.m4: Likewise.
19086         * m4/wcrtomb.m4: Likewise.
19087         * m4/wcsnrtombs.m4: Likewise.
19088         * m4/wcsrtombs.m4: Likewise.
19089         * m4/wctob.m4: Likewise.
19090         * m4/wcwidth.m4: Likewise.
19091         * modules/posix_spawn: Likewise.
19092         * modules/posix_spawn_file_actions_addclose: Likewise.
19093         * modules/posix_spawn_file_actions_adddup2: Likewise.
19094         * modules/posix_spawn_file_actions_addopen: Likewise.
19095         * modules/posix_spawn_file_actions_destroy: Likewise.
19096         * modules/posix_spawn_file_actions_init: Likewise.
19097         * modules/posix_spawnattr_destroy: Likewise.
19098         * modules/posix_spawnattr_getflags: Likewise.
19099         * modules/posix_spawnattr_getpgroup: Likewise.
19100         * modules/posix_spawnattr_getschedparam: Likewise.
19101         * modules/posix_spawnattr_getschedpolicy: Likewise.
19102         * modules/posix_spawnattr_getsigdefault: Likewise.
19103         * modules/posix_spawnattr_getsigmask: Likewise.
19104         * modules/posix_spawnattr_init: Likewise.
19105         * modules/posix_spawnattr_setflags: Likewise.
19106         * modules/posix_spawnattr_setpgroup: Likewise.
19107         * modules/posix_spawnattr_setschedparam: Likewise.
19108         * modules/posix_spawnattr_setschedpolicy: Likewise.
19109         * modules/posix_spawnattr_setsigdefault: Likewise.
19110         * modules/posix_spawnattr_setsigmask: Likewise.
19111         * modules/posix_spawnp: Likewise.
19112
19113 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19114
19115         Add option to do-release-commit-and-tag to specify branch.
19116         * build-aux/do-release-commit-and-tag: Add --branch.
19117
19118 2011-05-03  Bruno Haible  <bruno@clisp.org>
19119
19120         Avoid unnecessary compilation units, through conditional dependencies.
19121         * modules/accept (Depends-on): Add conditions to the dependencies.
19122         * modules/acosl (Depends-on): Likewise.
19123         * modules/argz (Depends-on): Likewise.
19124         * modules/asinl (Depends-on): Likewise.
19125         * modules/atanl (Depends-on): Likewise.
19126         * modules/atoll (Depends-on): Likewise.
19127         * modules/bind (Depends-on): Likewise.
19128         * modules/btowc (Depends-on): Likewise.
19129         * modules/canonicalize-lgpl (Depends-on): Likewise.
19130         * modules/ceil (Depends-on): Likewise.
19131         * modules/ceilf (Depends-on): Likewise.
19132         * modules/ceill (Depends-on): Likewise.
19133         * modules/chdir-long (Depends-on): Likewise.
19134         * modules/chown (Depends-on): Likewise.
19135         * modules/close (Depends-on): Likewise.
19136         * modules/connect (Depends-on): Likewise.
19137         * modules/cosl (Depends-on): Likewise.
19138         * modules/dirfd (Depends-on): Likewise.
19139         * modules/dprintf (Depends-on): Likewise.
19140         * modules/dprintf-posix (Depends-on): Likewise.
19141         * modules/error (Depends-on): Likewise.
19142         * modules/euidaccess (Depends-on): Likewise.
19143         * modules/expl (Depends-on): Likewise.
19144         * modules/faccessat (Depends-on): Likewise.
19145         * modules/fchdir (Depends-on): Likewise.
19146         * modules/fclose (Depends-on): Likewise.
19147         * modules/fcntl (Depends-on): Likewise.
19148         * modules/fdopendir (Depends-on): Likewise.
19149         * modules/fflush (Depends-on): Likewise.
19150         * modules/floor (Depends-on): Likewise.
19151         * modules/floorf (Depends-on): Likewise.
19152         * modules/floorl (Depends-on): Likewise.
19153         * modules/fnmatch (Depends-on): Likewise.
19154         * modules/fopen (Depends-on): Likewise.
19155         * modules/fprintf-posix (Depends-on): Likewise.
19156         * modules/frexp (Depends-on): Likewise.
19157         * modules/frexp-nolibm (Depends-on): Likewise.
19158         * modules/frexpl (Depends-on): Likewise.
19159         * modules/frexpl-nolibm (Depends-on): Likewise.
19160         * modules/fseek (Depends-on): Likewise.
19161         * modules/fsusage (Depends-on): Likewise.
19162         * modules/ftell (Depends-on): Likewise.
19163         * modules/ftello (Depends-on): Likewise.
19164         * modules/futimens (Depends-on): Likewise.
19165         * modules/getcwd (Depends-on): Likewise.
19166         * modules/getcwd-lgpl (Depends-on): Likewise.
19167         * modules/getdelim (Depends-on): Likewise.
19168         * modules/getdomainname (Depends-on): Likewise.
19169         * modules/getgroups (Depends-on): Likewise.
19170         * modules/gethostname (Depends-on): Likewise.
19171         * modules/getline (Depends-on): Likewise.
19172         * modules/getlogin_r (Depends-on): Likewise.
19173         * modules/getopt-posix (Depends-on): Likewise.
19174         * modules/getpeername (Depends-on): Likewise.
19175         * modules/getsockname (Depends-on): Likewise.
19176         * modules/getsockopt (Depends-on): Likewise.
19177         * modules/getsubopt (Depends-on): Likewise.
19178         * modules/getusershell (Depends-on): Likewise.
19179         * modules/glob (Depends-on): Likewise.
19180         * modules/grantpt (Depends-on): Likewise.
19181         * modules/iconv_open (Depends-on): Likewise.
19182         * modules/iconv_open-utf (Depends-on): Likewise.
19183         * modules/inet_ntop (Depends-on): Likewise.
19184         * modules/inet_pton (Depends-on): Likewise.
19185         * modules/ioctl (Depends-on): Likewise.
19186         * modules/isapipe (Depends-on): Likewise.
19187         * modules/isfinite (Depends-on): Likewise.
19188         * modules/isinf (Depends-on): Likewise.
19189         * modules/lchown (Depends-on): Likewise.
19190         * modules/ldexpl (Depends-on): Likewise.
19191         * modules/link (Depends-on): Likewise.
19192         * modules/linkat (Depends-on): Likewise.
19193         * modules/listen (Depends-on): Likewise.
19194         * modules/logl (Depends-on): Likewise.
19195         * modules/lstat (Depends-on): Likewise.
19196         * modules/mbrlen (Depends-on): Likewise.
19197         * modules/mbrtowc (Depends-on): Likewise.
19198         * modules/mbsinit (Depends-on): Likewise.
19199         * modules/mbsnrtowcs (Depends-on): Likewise.
19200         * modules/mbsrtowcs (Depends-on): Likewise.
19201         * modules/mbtowc (Depends-on): Likewise.
19202         * modules/memcmp (Depends-on): Likewise.
19203         * modules/mkdir (Depends-on): Likewise.
19204         * modules/mkdtemp (Depends-on): Likewise.
19205         * modules/mkfifo (Depends-on): Likewise.
19206         * modules/mkfifoat (Depends-on): Likewise.
19207         * modules/mknod (Depends-on): Likewise.
19208         * modules/mkostemp (Depends-on): Likewise.
19209         * modules/mkostemps (Depends-on): Likewise.
19210         * modules/mkstemp (Depends-on): Likewise.
19211         * modules/mkstemps (Depends-on): Likewise.
19212         * modules/mktime (Depends-on): Likewise.
19213         * modules/nanosleep (Depends-on): Likewise.
19214         * modules/open (Depends-on): Likewise.
19215         * modules/openat (Depends-on): Likewise.
19216         * modules/perror (Depends-on): Likewise.
19217         * modules/poll (Depends-on): Likewise.
19218         * modules/popen (Depends-on): Likewise.
19219         * modules/posix_spawn (Depends-on): Likewise.
19220         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19221         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19222         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19223         * modules/posix_spawnp (Depends-on): Likewise.
19224         * modules/pread (Depends-on): Likewise.
19225         * modules/printf-posix (Depends-on): Likewise.
19226         * modules/ptsname (Depends-on): Likewise.
19227         * modules/putenv (Depends-on): Likewise.
19228         * modules/pwrite (Depends-on): Likewise.
19229         * modules/readline (Depends-on): Likewise.
19230         * modules/readlink (Depends-on): Likewise.
19231         * modules/readlinkat (Depends-on): Likewise.
19232         * modules/recv (Depends-on): Likewise.
19233         * modules/recvfrom (Depends-on): Likewise.
19234         * modules/regex (Depends-on): Likewise.
19235         * modules/remove (Depends-on): Likewise.
19236         * modules/rename (Depends-on): Likewise.
19237         * modules/renameat (Depends-on): Likewise.
19238         * modules/rmdir (Depends-on): Likewise.
19239         * modules/round (Depends-on): Likewise.
19240         * modules/roundf (Depends-on): Likewise.
19241         * modules/roundl (Depends-on): Likewise.
19242         * modules/rpmatch (Depends-on): Likewise.
19243         * modules/select (Depends-on): Likewise.
19244         * modules/send (Depends-on): Likewise.
19245         * modules/sendto (Depends-on): Likewise.
19246         * modules/setenv (Depends-on): Likewise.
19247         * modules/setlocale (Depends-on): Likewise.
19248         * modules/setsockopt (Depends-on): Likewise.
19249         * modules/shutdown (Depends-on): Likewise.
19250         * modules/sigaction (Depends-on): Likewise.
19251         * modules/signbit (Depends-on): Likewise.
19252         * modules/sigprocmask (Depends-on): Likewise.
19253         * modules/sinl (Depends-on): Likewise.
19254         * modules/sleep (Depends-on): Likewise.
19255         * modules/snprintf (Depends-on): Likewise.
19256         * modules/snprintf-posix (Depends-on): Likewise.
19257         * modules/socket (Depends-on): Likewise.
19258         * modules/sprintf-posix (Depends-on): Likewise.
19259         * modules/sqrtl (Depends-on): Likewise.
19260         * modules/stat (Depends-on): Likewise.
19261         * modules/strchrnul (Depends-on): Likewise.
19262         * modules/strdup-posix (Depends-on): Likewise.
19263         * modules/strerror (Depends-on): Likewise.
19264         * modules/strerror_r-posix (Depends-on): Likewise.
19265         * modules/strndup (Depends-on): Likewise.
19266         * modules/strnlen (Depends-on): Likewise.
19267         * modules/strptime (Depends-on): Likewise.
19268         * modules/strsep (Depends-on): Likewise.
19269         * modules/strsignal (Depends-on): Likewise.
19270         * modules/strstr-simple (Depends-on): Likewise.
19271         * modules/strtod (Depends-on): Likewise.
19272         * modules/strtoimax (Depends-on): Likewise.
19273         * modules/strtok_r (Depends-on): Likewise.
19274         * modules/strtoumax (Depends-on): Likewise.
19275         * modules/symlink (Depends-on): Likewise.
19276         * modules/symlinkat (Depends-on): Likewise.
19277         * modules/tanl (Depends-on): Likewise.
19278         * modules/tcgetsid (Depends-on): Likewise.
19279         * modules/tmpfile (Depends-on): Likewise.
19280         * modules/trunc (Depends-on): Likewise.
19281         * modules/truncf (Depends-on): Likewise.
19282         * modules/truncl (Depends-on): Likewise.
19283         * modules/uname (Depends-on): Likewise.
19284         * modules/unlink (Depends-on): Likewise.
19285         * modules/unlockpt (Depends-on): Likewise.
19286         * modules/unsetenv (Depends-on): Likewise.
19287         * modules/usleep (Depends-on): Likewise.
19288         * modules/utimensat (Depends-on): Likewise.
19289         * modules/vasprintf (Depends-on): Likewise.
19290         * modules/vdprintf (Depends-on): Likewise.
19291         * modules/vdprintf-posix (Depends-on): Likewise.
19292         * modules/vfprintf-posix (Depends-on): Likewise.
19293         * modules/vprintf-posix (Depends-on): Likewise.
19294         * modules/vsnprintf (Depends-on): Likewise.
19295         * modules/vsnprintf-posix (Depends-on): Likewise.
19296         * modules/vsprintf-posix (Depends-on): Likewise.
19297         * modules/wcrtomb (Depends-on): Likewise.
19298         * modules/wcscasecmp (Depends-on): Likewise.
19299         * modules/wcscspn (Depends-on): Likewise.
19300         * modules/wcsdup (Depends-on): Likewise.
19301         * modules/wcsncasecmp (Depends-on): Likewise.
19302         * modules/wcsnrtombs (Depends-on): Likewise.
19303         * modules/wcspbrk (Depends-on): Likewise.
19304         * modules/wcsrtombs (Depends-on): Likewise.
19305         * modules/wcsspn (Depends-on): Likewise.
19306         * modules/wcsstr (Depends-on): Likewise.
19307         * modules/wcstok (Depends-on): Likewise.
19308         * modules/wcswidth (Depends-on): Likewise.
19309         * modules/wctob (Depends-on): Likewise.
19310         * modules/wctomb (Depends-on): Likewise.
19311         * modules/wctype (Depends-on): Likewise.
19312         * modules/wcwidth (Depends-on): Likewise.
19313         * modules/write (Depends-on): Likewise.
19314
19315 2011-05-03  Bruno Haible  <bruno@clisp.org>
19316
19317         Support for conditional dependencies.
19318         * doc/gnulib.texi (Module description): Document the syntax of
19319         conditional dependencies.
19320         * gnulib-tool: New option --conditional-dependencies.
19321         (func_usage): Document it.
19322         (cond_dependencies): New variable.
19323         (func_get_automake_snippet_conditional,
19324         func_get_automake_snippet_unconditional): New functions, extracted from
19325         func_get_automake_snippet.
19326         (func_get_automake_snippet): Use them.
19327         (sed_first_32_chars): New variable.
19328         (func_module_shellfunc_name): New function.
19329         (func_module_shellvar_name): New function.
19330         (func_module_conditional_name): New function.
19331         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19332         func_cond_module_condition): New functions.
19333         (func_modules_transitive_closure): Add support for conditional
19334         dependencies.
19335         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19336         conditional automake snippet in an automake conditional.
19337         (func_emit_autoconf_snippets): Emit shell functions that contain the
19338         code for conditional modules.
19339         (func_import, func_create_testdir): Update specification.
19340
19341 2011-05-03  Eric Blake  <eblake@redhat.com>
19342
19343         test-getaddrinfo: report error information
19344         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19345
19346 2011-05-03  Jim Meyering  <meyering@redhat.com>
19347
19348         bootstrap: avoid build failure when $GZIP is set
19349         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19350         program name.  If defined at all, it is supposed to list gzip options.
19351         Reported by Alan Curry in http://debbugs.gnu.org/8609
19352
19353 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19354
19355         readme-release: new module with release instructions
19356         * modules/readme-release: New module.
19357         * top/README-release: New file, from coreutils, grep, diffutils.
19358         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19359
19360 2011-05-02  Eric Blake  <eblake@redhat.com>
19361
19362         fflush: also replace fclose when fixing fflush
19363         * modules/fflush (Depends-on): Add fclose.
19364         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19365         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19366         memstreams with no backing fd.
19367         * doc/posix-functions/fclose.texi (fclose): Document the use of
19368         fflush module to fix the bug.
19369         * tests/test-fclose.c (main): Relax test when fclose is used in
19370         isolation.
19371
19372         fclose: add some tests
19373         * modules/fclose-tests: New test module.
19374         * tests/test-fclose.c: New file.
19375         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19376
19377         fclose: reduced dependencies
19378         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19379         simpler lseek.
19380         * lib/fclose.c (rpl_fclose): Likewise.
19381         Reported by Simon Josefsson.
19382
19383         exit: drop remaining clients
19384         * modules/argmatch (Depends-on): Replace exit with stdlib.
19385         * modules/copy-file (Depends-on): Likewise.
19386         * modules/execute (Depends-on): Likewise.
19387         * modules/exitfail (Depends-on): Likewise.
19388         * modules/obstack (Depends-on): Likewise.
19389         * modules/pagealign_alloc (Depends-on): Likewise.
19390         * modules/pipe-filter-gi (Depends-on): Likewise.
19391         * modules/pipe-filter-ii (Depends-on): Likewise.
19392         * modules/savewd (Depends-on): Likewise.
19393         * modules/spawn-pipe (Depends-on): Likewise.
19394         * modules/wait-process (Depends-on): Likewise.
19395         * modules/xsetenv (Depends-on): Likewise.
19396         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19397         * modules/git-merge-changelog (Depends-on): Likewise.
19398         * modules/long-options (Depends-on): Likewise.
19399         * modules/pt_chown (Depends-on): Likewise.
19400         * modules/sysexits (Depends-on): Likewise.
19401
19402         freading: relax license from LGPLv3+ to LGPLv2+
19403         * modules/freading (License): Relax LGPL version.
19404
19405 2011-05-02  Bruno Haible  <bruno@clisp.org>
19406
19407         fchdir: Remove unused dependencies.
19408         * modules/fchdir (Depends-on): Remove include_next.
19409
19410 2011-05-02  Bruno Haible  <bruno@clisp.org>
19411
19412         gnulib-tool: Refactor.
19413         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19414         from func_emit_autoconf_snippets.
19415         (func_emit_autoconf_snippets): Use it.
19416
19417 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19418
19419         * NEWS: Document removal of 'exit'.
19420         * modules/exit: Remove file.
19421
19422 2011-05-01  Bruno Haible  <bruno@clisp.org>
19423
19424         Update DEPENDENCIES.
19425         * DEPENDENCIES (gettext): Recommend the newest release.
19426         Reported by Simon Josefsson.
19427
19428 2011-05-01  Bruno Haible  <bruno@clisp.org>
19429
19430         gnulib-tool: Reduce code duplication.
19431         * gnulib-tool (func_emit_autoconf_snippets): New function.
19432         (func_import, func_create_testdir): Use it.
19433
19434 2011-04-30  Eric Blake  <eblake@redhat.com>
19435
19436         fclose: don't fail on non-seekable input stream
19437         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19438         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19439         since fflush is allowed to fail in that case.
19440
19441 2011-04-30  Bruno Haible  <bruno@clisp.org>
19442
19443         dup3: cleanup
19444         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19445
19446 2011-04-30  Bruno Haible  <bruno@clisp.org>
19447
19448         netdb: Make it work in C++ mode.
19449         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19450         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19451         module.
19452         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19453         gl_MODULE_INDICATOR_FOR_TESTS.
19454         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19455         * modules/netdb-c++-tests: New file.
19456         * tests/test-netdb-c++.cc: New file.
19457
19458 2011-04-30  Bruno Haible  <bruno@clisp.org>
19459
19460         New modules 'vfscanf', 'vscanf'.
19461         * modules/vfscanf: New file.
19462         * modules/vscanf: New file.
19463         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19464         here.
19465         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19466         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19467
19468 2011-04-30  Bruno Haible  <bruno@clisp.org>
19469
19470         passfd: Add comments.
19471         * lib/passfd.c: Add comments about platforms.
19472
19473 2011-04-30  Bruno Haible  <bruno@clisp.org>
19474
19475         sys_uio: Make <sys/uio.h> self-contained.
19476         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19477         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19478
19479 2011-04-30  Bruno Haible  <bruno@clisp.org>
19480
19481         sys_socket: Ensure 'struct iovec' definition.
19482         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19483         <sys/socket.h>.
19484         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19485
19486 2011-04-30  Bruno Haible  <bruno@clisp.org>
19487
19488         sys_uio: Protect definition of 'struct iovec'.
19489         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19490         it as a C struct.
19491
19492 2011-04-30  Bruno Haible  <bruno@clisp.org>
19493
19494         manywarnings: fix indentation
19495         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19496
19497 2011-04-30  Pádraig Brady <P@draigBrady.com>
19498
19499         manywarnings: add -Wno-missing-field-initializers if needed.
19500         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19501         option if it's needed to allow initialization with { 0, }
19502
19503 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19504
19505         announce-gen: cosmetic improvement
19506         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19507
19508 2011-04-29  Jim Meyering  <meyering@redhat.com>
19509
19510         vc-list-files: indent with spaces, not TABs
19511         * build-aux/vc-list-files: Convert leading TABs to spaces,
19512         to match the style of most other files in gnulib.
19513
19514         announce-gen: indent with spaces, not TABs
19515         * build-aux/announce-gen: Convert all TABs to spaces, to match
19516         the style of most other files in gnulib.
19517
19518 2011-04-29  Eric Blake  <eblake@redhat.com>
19519
19520         quotearg: avoid uninitialized variable use
19521         * lib/quotearg.c (quoting_options_from_style): Initialize
19522         remaining fields, and ensure that custom styles are only used via
19523         quoting_options rather than quoting_style.
19524
19525 2011-04-29  Jim Meyering  <meyering@redhat.com>
19526
19527         maint.mk: remove unused VC-tag variable
19528         * top/maint.mk (VC-tag): Remove unused variable.
19529
19530 2011-04-29  Bruno Haible  <bruno@clisp.org>
19531
19532         netdb: fix gai_strerror replacements
19533         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19534         * modules/netdb: Substitute it.
19535
19536 2011-04-29  Jim Meyering  <meyering@redhat.com>
19537
19538         test-getcwd.c: avoid new set-but-not-used warning
19539         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19540         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19541         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19542         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19543
19544         test-hash.c: avoid a new shadowing warning
19545         * tests/test-hash.c (main): Don't shadow "dup".
19546
19547 2011-04-28  Eric Blake  <eblake@redhat.com>
19548
19549         getaddrinfo: fix gai_strerror signature
19550         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19551         and work around mingw with UNICODE defined.
19552         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19553         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19554         * modules/netdb (Makefile.am): Substitute it.
19555         * lib/netdb.in.h (gai_strerror): Declare replacement.
19556         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19557         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19558         the fix.
19559
19560         getsockopt: avoid compiler warning
19561         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19562         Reported by Matthias Bolte.
19563
19564         tests: drop unused link dependency
19565         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19566         * modules/dirent-safer-tests (Makefile.am): Likewise.
19567         * modules/fdopendir-tests (Makefile.am): Likewise.
19568         * modules/mkfifoat-tests (Makefile.am): Likewise.
19569         * modules/openat-safer-tests (Makefile.am): Likewise.
19570         * modules/openat-tests (Makefile.am): Likewise.
19571         * modules/readlinkat-tests (Makefile.am): Likewise.
19572         * modules/symlinkat-tests (Makefile.am): Likewise.
19573         * modules/linkat-tests (Makefile.am): Likewise.
19574         (Depends-on): Switch to filenamecat-lgpl.
19575         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19576         LIBINTL.
19577         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19578         * tests/test-linkat.c (main): Don't require xalloc.
19579
19580         hash, mgetgroups: drop xalloc dependency
19581         * lib/hash.c (includes): Adjust includes.
19582         * lib/mgetgroups.c (includes): Likewise.
19583         (xgetgroups): Move...
19584         * lib/xgetgroups.c: ...to new file.
19585         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19586         * modules/xgetgroups: New file, split from...
19587         * modules/mgetgroups: ...here.
19588         (Depends-on): Add xalloc-oversized.
19589         * modules/hash (Depends-on): Likewise.
19590         * modules/hash-tests (Depends-on): Drop xalloc.
19591         (test_hash_LDADD): Drop unused library.
19592         * tests/test-hash.c (main): Break xalloc dependency.
19593         (includes): Drop unused include.
19594
19595         xalloc-oversized: new module
19596         * modules/xalloc-oversized: New module.
19597         * modules/xalloc (Depends-on): Add it.
19598         * lib/xalloc.h (xalloc_oversized): Move...
19599         * lib/xalloc-oversized.h: ...into new file.
19600
19601         utimecmp: drop dependency on xmalloc
19602         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19603         due to memory pressure.
19604         * modules/utimecmp (Depends-on): Drop xalloc.
19605
19606 2011-04-27  Eric Blake  <eblake@redhat.com>
19607
19608         getcwd: fix mingw bugs
19609         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19610         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19611         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19612
19613 2011-04-27  Bruno Haible  <bruno@clisp.org>
19614
19615         mkstemps: Ensure declaration on MacOS X 10.5.
19616         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19617         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19618         MacOS X.
19619
19620 2011-04-27  Bruno Haible  <bruno@clisp.org>
19621
19622         mkstemp: More documentation.
19623         * doc/posix-functions/mkstemp.texi: Document header file problem on
19624         MacOS X.
19625
19626 2011-04-27  Bruno Haible  <bruno@clisp.org>
19627
19628         mkstemp: Tweak configure message when cross-compiling.
19629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19630         result as a guess.
19631
19632 2011-04-27  Bruno Haible  <bruno@clisp.org>
19633
19634         clean-temp: Clarify what it does.
19635         * lib/clean-temp.h: Add more comments.
19636         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19637         module.
19638         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19639         * doc/glibc-functions/mkstemps.texi: Likewise.
19640         * doc/glibc-functions/mkostemps.texi: Likewise.
19641
19642 2011-04-27  Eric Blake  <eblake@redhat.com>
19643
19644         fchdir: avoid extra chdir and fix test
19645         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19646         getcwd-lgpl.
19647         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19648         have to be canonical.
19649         (canonicalize_file_name): Drop unused macro.
19650         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19651
19652         filenamecat-lgpl: fix licence
19653         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19654         when it was first created.
19655
19656         linkat, renameat: add missing dependency
19657         * modules/linkat (Depends-on): Require getcwd-lgpl.
19658         * modules/renameat (Depends-on): Likewise.
19659
19660         tests: reduce dependencies
19661         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19662         * tests/test-renameat.c (main): Likewise.
19663         * modules/linkat-tests (Depends-on): Relax dependency.
19664         * modules/renameat-tests (Depends-on): Likewise.
19665         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19666         dependency explicit.
19667
19668         save-cwd: reduce default dependency
19669         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19670         * lib/save-cwd.c: Update comments.
19671         * NEWS: Document the semantic change.
19672
19673         getcwd: enhance tests
19674         * tests/test-getcwd-lgpl.c: New file, taken from...
19675         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19676         repeat long path stress tests from m4 probe.
19677         * modules/getcwd-lgpl-tests: New module.
19678         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19679         * m4/getcwd-abort-bug.m4: Update comment.
19680         * m4/getcwd-path-max.m4: Likewise.
19681
19682         getcwd-lgpl: new module
19683         * modules/getcwd-lgpl: New module.
19684         * lib/getcwd-lgpl.c: New file.
19685         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19686         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19687         * modules/getcwd (configure.ac): Set C witness.
19688         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19689
19690         getcwd: tweak comments
19691         * m4/getcwd-abort-bug.m4: Fix comments.
19692         * m4/getcwd-path-max.m4: Likewise.
19693         * m4/getcwd.m4: Likewise.
19694
19695 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19696         and Eric Blake  <eblake@redhat.com>
19697
19698         mkstemp: replace if system version uses wrong permissions
19699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19700         read/write mode bits set in file created by mkstemp.
19701         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19702
19703 2011-04-27  Eric Blake  <eblake@redhat.com>
19704
19705         passfd: avoid compiler warning
19706         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19707         Reported by Laine Stump.
19708
19709 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19710
19711         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19712         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19713
19714 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19715         and Eric Blake  <eblake@redhat.com>
19716
19717         mkstemp: mention clean-temp module
19718         * lib/mkstemp.c: Add comment.
19719         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19720
19721 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19722
19723         inttypes: also provide default values for 32-bit tests
19724         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19725         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19726
19727 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19728
19729         strtoumax: remove dependency on strtoimax
19730         This is like the strtoull change of yesterday.
19731         * modules/strtoumax (Files): Add lib/strtoimax.c.
19732         (Depends-on): Remove strtoimax and add verify.
19733
19734         inttypes-incomplete: new module
19735         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19736         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19737         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19738         of gl_INTTYPES_H.
19739         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19740         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19741         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19742         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19743         * modules/strtoumax, modules/xstrtol (Depends-on):
19744         Depend on inttypes-incomplete, not inttypes.
19745         * modules/inttypes-incomplete: New module, containing the contents
19746         of the old modules/inttypes module, except that the Files: section
19747         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19748         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19749         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19750         (Depends-on): Depend only on inttypes-incomplete.
19751         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19752
19753         inttypes: omit now-redundant strtoimax and strtoumax work
19754         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19755         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19756
19757         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19758         This supports apps that need pointers to strtoimax and strtoumax,
19759         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19760         nonexistent functions.  See
19761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19762         et seq.
19763         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19764         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19765         a macro.
19766         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19767
19768 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19769
19770         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19771
19772 2011-04-25  Bruno Haible  <bruno@clisp.org>
19773
19774         strtol, strtoul: Mark modules as obsolete.
19775         * modules/strtol (Status, Notice): New sections.
19776         * modules/strtoul (Status, Notice): New sections.
19777
19778 2011-04-25  Bruno Haible  <bruno@clisp.org>
19779
19780         strtod: Remove check for strtod, unless supporting old platforms.
19781         * modules/strtod-obsolete: New file.
19782         * m4/strtod-obsolete.m4: New file.
19783         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19784         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19785         * modules/strtod (Depends-on): Add strtod-obsolete.
19786         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19787
19788 2011-04-25  Bruno Haible  <bruno@clisp.org>
19789
19790         strcase: Make module obsolete.
19791         * modules/strcase (Status, Notice): New sections.
19792
19793 2011-04-25  Bruno Haible  <bruno@clisp.org>
19794
19795         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19796         * modules/dup2-obsolete: New file.
19797         * m4/dup2-obsolete.m4: New file.
19798         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19799         gl_FUNC_DUP2_OBSOLETE is not also defined.
19800         * modules/dup2 (Depends-on): Add dup2-obsolete.
19801         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19802
19803 2011-04-25  Bruno Haible  <bruno@clisp.org>
19804
19805         strnlen: Avoid memchr related link error on old obsolete platforms.
19806         * modules/memchr-obsolete: New file.
19807         * m4/memchr-obsolete.m4: New file.
19808         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19809         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19810         * modules/memchr (Depends-on): Add memchr-obsolete.
19811         * modules/strnlen (Depends-on): Likewise.
19812         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19813
19814 2011-04-25  Jim Meyering  <meyering@redhat.com>
19815
19816         maint.mk: makefile_at_at_check extend and clean up
19817         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19818         in addition to */Makefile.am.
19819         Exempt legitimate uses of @VAR@ notation, e.g.,
19820         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19821         Remove obsolete coreutils-specific comment.
19822         Prompted by discussion here:
19823         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19824
19825 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19826
19827         strtoul: remove dependency on strtol
19828         This is so that 'configure' need not check for strtol merely because
19829         the application needs strtoul.
19830         * modules/strtoul (Files): Add lib/strtol.c.
19831         (Depends-on): Remove strtol.
19832
19833         strtoull: remove dependency on strtoul
19834         This is like the strtoll change.
19835         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19836         (Depends-on): Remove strtoul.
19837
19838         strtoll: remove dependency on strtol
19839         This is so that 'configure' need not check for strtol merely because
19840         the application needs strtoll.
19841         * modules/strtoll (Files): Add lib/strtol.c.
19842         (Depends-on): Remove strtol.
19843
19844 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         inttypes: Move some configure check to module 'imaxdiv'.
19847         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19848         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19849         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19850
19851 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19852
19853         inttypes: Move some configure check to module 'imaxabs'.
19854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19855         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19856         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19857
19858 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19859
19860         inttypes: Remove configure tests that are not needed since 2009-12-31.
19861         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19862         gl_cv_header_working_inttypes_h.
19863
19864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19865
19866         * modules/strnlen (Depends-on): Remove memchr.
19867         The strnlen implementation doesn't need the memchr module's fixes; see
19868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19869
19870         strtol: remove dependency on wchar
19871         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19872         * modules/strtol (Depends-on): Remove wchar.
19873
19874 2011-04-21  Eric Blake  <eblake@redhat.com>
19875
19876         passfd: fix test regression on Linux
19877         * modules/passfd-tests (configure.ac): Correct socketpair check.
19878
19879         passfd: speed up configure and drop unused code
19880         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19881         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19882         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19883         Instead of probing at configure for unix_scm_rights_bsd44_way,
19884         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19885         check to a struct member probe.
19886         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19887         (sendfd, recvfd): Update preprocessor checks.
19888         * modules/passfd (Files): Reflect rename, and drop unused file.
19889         (Depends-on): Drop unused dependency.
19890
19891         passfd: allow compilation on mingw
19892         * modules/sys_socket (Depends-on): Add sys_uio.
19893         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19894         iovec and a minimal struct msghdr.
19895         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19896         * tests/test-sys_socket.c (main): Enhance test.
19897         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19898         guaranteed to provide what we need.
19899         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19900         * modules/passfd-tests (Depends-on): Add sys_wait.
19901         * tests/test-passfd.c (main): Skip test on mingw, for now.
19902         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19903         partial 'struct msghdr' implementation.
19904
19905         sys_uio: new module
19906         * modules/sys_uio: New module.
19907         * modules/sys_uio-tests: Likewise.
19908         * lib/sys_uio.in.h: New file.
19909         * m4/sys_uio_h.m4: Likewise.
19910         * tests/test-sys_uio.c: Likewise.
19911         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19912         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19913
19914 2011-04-20  Jim Meyering  <meyering@redhat.com>
19915
19916         useless-if-before-free: avoid false-positive
19917         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19918         disjunct so that it too requires a terminating ";".  Without that,
19919         this script would identify as useless one statement from gcc that
19920         was not:
19921           if (aligned_ptr)
19922             free (((void **) aligned_ptr) [-1]);
19923
19924 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19925
19926         doc: update users.txt.
19927         * users.txt: Add barcode.
19928
19929 2011-04-19  Bruno Haible  <bruno@clisp.org>
19930
19931         ioctl: Remove link dependency on native Windows.
19932         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19933         (gl_close_fn, gl_ioctl_fn): New types.
19934         (struct fd_hook): Renamed from struct close_hook. Change type of
19935         private_close_fn field. Add private_ioctl_fn field.
19936         (close_hook_fn): Add parameter for primary close method.
19937         (execute_close_hooks, execute_all_close_hooks): Likewise.
19938         (ioctl_hook_fn): New type.
19939         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19940         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19941         argument.
19942         (unregister_fd_hook): Renamed from unregister_close_hook.
19943         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19944         Don't include <unistd.h>.
19945         (close): Remove undef.
19946         (anchor): Update.
19947         (execute_close_hooks): Add argument for primary close method.
19948         (execute_all_close_hooks): Likewise.
19949         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19950         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19951         argument. Allow each argument to be NULL.
19952         (unregister_fd_hook): Renamed from unregister_close_hook.
19953         * lib/close.c (rpl_close): Pass 'close' function pointer to
19954         execute_all_close_hooks.
19955         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19956         (primary_ioctl): New function.
19957         (ioctl): Don't call ioctlsocket here. Instead, call
19958         execute_all_ioctl_hooks.
19959         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19960         close method.
19961         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19962         (fd_sockets_hook): Renamed from close_sockets_hook.
19963         (gl_sockets_startup, gl_sockets_cleanup): Update.
19964         * modules/fd-hook: Renamed from modules/close-hook. Update.
19965         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19966         * modules/sockets (Depends-on): Likewise.
19967         * modules/ioctl (Depends-on): Add fd-hook.
19968         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19969         GNULIB_SOCKET.
19970
19971 2011-04-19  Bruno Haible  <bruno@clisp.org>
19972
19973         Move the support of O_NONBLOCK in open() to the 'open' module.
19974         * modules/nonblocking (Depends-on): Remove 'open'.
19975         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19976         gl_cv_have_open_O_NONBLOCK.
19977         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19978         O_NONBLOCK support.
19979         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19980
19981 2011-04-17  Bruno Haible  <bruno@clisp.org>
19982
19983         pipe2: Simplify code.
19984         * lib/pipe2.c (pipe2): Reduce code duplication.
19985
19986 2011-04-17  Bruno Haible  <bruno@clisp.org>
19987
19988         nonblocking: Add comment.
19989         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19990
19991 2011-04-17  Bruno Haible  <bruno@clisp.org>
19992
19993         nonblocking: Add tests for sockets.
19994         * tests/test-nonblocking-socket.sh: New file.
19995         * tests/test-nonblocking-socket-main.c: New file.
19996         * tests/test-nonblocking-socket-child.c: New file.
19997         * tests/test-nonblocking-socket.h: New file.
19998         * tests/socket-server.h: New file.
19999         * tests/socket-client.h: New file.
20000         * modules/nonblocking-socket-tests: New file.
20001         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20002
20003 2011-04-17  Bruno Haible  <bruno@clisp.org>
20004
20005         nonblocking: Add tests for pipes.
20006         * tests/test-nonblocking-pipe.sh: New file.
20007         * tests/test-nonblocking-pipe-main.c: New file.
20008         * tests/test-nonblocking-pipe-child.c: New file.
20009         * tests/test-nonblocking-pipe.h: New file.
20010         * tests/test-nonblocking-writer.h: New file.
20011         * tests/test-nonblocking-reader.h: New file.
20012         * tests/test-nonblocking-misc.h: New file.
20013         * modules/nonblocking-pipe-tests: New file.
20014         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20015
20016 2011-04-16  Bruno Haible  <bruno@clisp.org>
20017
20018         gettext: Clarify the needed programmer actions.
20019         * modules/gettext (Notice): New field.
20020         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20021
20022 2011-04-16  Bruno Haible  <bruno@clisp.org>
20023
20024         strchrnul: Tweak last commit.
20025         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20026         bug.
20027         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20028         as in _GL_FUNCDECL_SYS.
20029         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20030         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20031
20032 2011-04-15  Eric Blake  <eblake@redhat.com>
20033
20034         strchrnul: work around cygwin bug
20035         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20038         * modules/string (Makefile.am): Substitute it.
20039         * lib/string.in.h (strchrnul): Use it.
20040
20041 2011-04-15  Bruno Haible  <bruno@clisp.org>
20042
20043         Don't require lib/stdio-write.c when only module 'stdio' is used.
20044         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20045         invocation.
20046         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20047
20048 2011-04-14  Bruno Haible  <bruno@clisp.org>
20049
20050         Support non-blocking pipe I/O in read() on native Windows.
20051         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20052         (read): New declaration.
20053         * lib/read.c: New file.
20054         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20055         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20056         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20057         vscanf): New declarations.
20058         * lib/stdio-read.c: New file.
20059         * m4/read.m4: New file.
20060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20061         REPLACE_READ.
20062         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20063         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20064         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20065         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20066         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20067         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20068         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20069         * modules/read: New file.
20070         * modules/nonblocking (Files): Add lib/stdio-read.c.
20071         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20072         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20073         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20074         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20075         * modules/pread (Depends-on): Add read.
20076         * modules/safe-read (Depends-on): Likewise.
20077         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20078         gets, scanf, vfscanf, vscanf): Verify signatures.
20079         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20080         problem with non-blocking pipes.
20081         * doc/posix-functions/fgetc.texi: Likewise.
20082         * doc/posix-functions/fgets.texi: Likewise.
20083         * doc/posix-functions/fread.texi: Likewise.
20084         * doc/posix-functions/fscanf.texi: Likewise.
20085         * doc/posix-functions/getc.texi: Likewise.
20086         * doc/posix-functions/getchar.texi: Likewise.
20087         * doc/posix-functions/gets.texi: Likewise.
20088         * doc/posix-functions/scanf.texi: Likewise.
20089         * doc/posix-functions/vfscanf.texi: Likewise.
20090         * doc/posix-functions/vscanf.texi: Likewise.
20091
20092 2011-04-14  Bruno Haible  <bruno@clisp.org>
20093
20094         Support non-blocking pipe I/O in write() on native Windows.
20095         * lib/write.c (rpl_write): Split a write request that failed merely
20096         because the byte count was larger than the pipe buffer's size.
20097         * doc/posix-functions/write.texi: Mention the problem with large byte
20098         counts.
20099
20100 2011-04-14  Bruno Haible  <bruno@clisp.org>
20101
20102         wchar: Ensure that wchar_t gets defined on uClibc.
20103         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20104         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20105
20106 2011-04-13  Bruno Haible  <bruno@clisp.org>
20107
20108         safe-write, full-read: Avoid unnecessary compilation units.
20109         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20110         (Depends-on): Remove safe-read. Add ssize_t.
20111         * modules/full-read (Files): Add lib/full-write.c.
20112         (Depends-on): Add full-write.
20113
20114 2011-04-13  Bruno Haible  <bruno@clisp.org>
20115
20116         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20117         * modules/pwrite (Depends-on): Add 'write'.
20118
20119 2011-04-13  Bruno Haible  <bruno@clisp.org>
20120
20121         Support non-blocking pipe I/O in write() on native Windows.
20122         * lib/unistd.in.h (write): Enable replacement also if
20123         GNULIB_UNISTD_H_NONBLOCKING is 1.
20124         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20125         (rpl_write): When failing to write on a non-blocking pipe, change
20126         errno from ENOSPC to EAGAIN.
20127         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20128         putchar, puts, vfprintf, vprintf): Enable replacement also if
20129         GNULIB_STDIO_H_NONBLOCKING is 1.
20130         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20131         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20132         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20133         CALL_WITH_SIGPIPE_EMULATION.
20134         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20135         * m4/nonblocking.m4: New file.
20136         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20137         for non-blocking I/O support.
20138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20139         GNULIB_UNISTD_H_NONBLOCKING.
20140         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20141         required for non-blocking I/O support.
20142         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20143         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20144         lib/stdio-write.c, m4/asm-underscore.m4.
20145         (Depends-on): Add stdio, unistd.
20146         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20147         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20149         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20150         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20151         problem with non-blocking pipes.
20152         * doc/posix-functions/fputc.texi: Likewise.
20153         * doc/posix-functions/fputs.texi: Likewise.
20154         * doc/posix-functions/fwrite.texi: Likewise.
20155         * doc/posix-functions/printf.texi: Likewise.
20156         * doc/posix-functions/putc.texi: Likewise.
20157         * doc/posix-functions/putchar.texi: Likewise.
20158         * doc/posix-functions/puts.texi: Likewise.
20159         * doc/posix-functions/vfprintf.texi: Likewise.
20160         * doc/posix-functions/vprintf.texi: Likewise.
20161         * doc/posix-functions/write.texi: Likewise.
20162
20163 2011-04-10  Jim Meyering  <meyering@redhat.com>
20164
20165         maint.mk: prohibit doubled words
20166         Detect them also when they're separated by a newline.
20167         There are 3 ways to customize it:
20168           - disable the test on a per file basis, as usual with rules using
20169             $(VC_LIST_EXCEPT)
20170           - replace the default doubled-word-selecting regexp (affects all files)
20171           - ignore a particular file-vs-doubled-word match
20172         I nearly used that last one to ignore the "is is" match in
20173         coreutils' NEWS file, since the text was "ls -is is ..."
20174         To do that, I would have added this line to cfg.mk:
20175           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20176         but it would have ignored any "is is" match in NEWS.
20177         Low probability, but still...
20178         Instead, I changed the text, slightly:
20179           -  ls -is is now consistent with ls -lis in ignoring values returned
20180           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20181         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20182         (prohibit_doubled_word_): Define.
20183         (sc_prohibit_doubled_word): New rule.
20184         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20185
20186 2011-04-10  Jim Meyering  <meyering@redhat.com>
20187
20188         maint: fix doubled-word typo in comment
20189         * m4/gethostname.m4: s/is is/it is/
20190         * m4/getdomainname.m4: Likewise.
20191
20192 2011-04-10  Jim Meyering  <meyering@redhat.com>
20193
20194         maint: remove doubled word: s/it it/it/
20195         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20196
20197 2011-04-10  Jim Meyering  <meyering@redhat.com>
20198
20199         maint.mk: remove useless semicolon and backslash
20200         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20201         semicolon and backslash.
20202
20203 2011-04-10  Bruno Haible  <bruno@clisp.org>
20204
20205         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20206         * modules/stdint-tests (Depends-on): Add wchar.
20207
20208 2011-04-10  Jim Meyering  <meyering@redhat.com>
20209
20210         maint: remove doubled words in comments, e.g., s/a a/a/
20211         * lib/strptime.c (day_of_the_week): s/the the/the/
20212         * tests/test-chown.h (test_chown): s/a a/a/
20213
20214         test-chown.h: correct a cast
20215         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20216         when the destination is a stat.st_gid.
20217
20218 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20219
20220         getaddrinfo: Fix test for sa_len member.
20221         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20222         include <sys/types.h> before <sys/socket.h>.
20223
20224 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         maint: change "can not" to "cannot"
20227         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20228         boundaries.
20229
20230 2011-04-09  Jim Meyering  <meyering@redhat.com>
20231
20232         maint: change "a a" to "a"
20233         * tests/test-lchown.h (test_lchown): s/a a/a/
20234
20235         maint.mk: prohibit \<the the\>
20236         * top/maint.mk (sc_prohibit_the_the): New rule.
20237
20238         maint: fix "the the" in comment
20239         * lib/count-one-bits.h: s/the the/the/
20240
20241         maint: change "can not" to "cannot"
20242         But do not change the occurrences in maintain.texi or in
20243         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20244         * doc/gnulib-tool.texi: s/can not/cannot/
20245         * doc/posix-functions/accept.texi (accept): Likewise.
20246         * doc/posix-functions/socket.texi (socket): Likewise.
20247         * lib/mbrtowc.c: Likewise.
20248
20249         maint.mk: prohibit use of "can not"
20250         * top/maint.mk (sc_prohibit_can_not): New rule.
20251         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20252
20253 2011-04-09  Bruno Haible  <bruno@clisp.org>
20254
20255         careadlinkat: Guard against misuse of careadlinkatcwd.
20256         * lib/careadlinkat.c: Include <stdlib.h>.
20257         (careadlinkatcwd): Check that the fd argument is as expected.
20258
20259 2011-04-09  Bruno Haible  <bruno@clisp.org>
20260
20261         careadlinkat: Use common coding style.
20262         * lib/careadlinkat.c: Move gnulib includes after system includes.
20263
20264 2011-04-09  Bruno Haible  <bruno@clisp.org>
20265
20266         careadlinkat: Clarify specification.
20267         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20268         (careadlinkatcwd): Add comment.
20269         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20270
20271 2011-04-09  Bruno Haible  <bruno@clisp.org>
20272
20273         areadlinkat: Avoid link error on many platforms.
20274         * modules/areadlinkat (Depends-on): Add areadlink.
20275
20276 2011-04-09  Bruno Haible  <bruno@clisp.org>
20277
20278         allocator, careadlinkat: Fix double-inclusion guard.
20279         * lib/allocator.h: Fix double-inclusion guard.
20280         * lib/careadlinkat.h: Likewise.
20281
20282 2011-04-09  Bruno Haible  <bruno@clisp.org>
20283
20284         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20285         * lib/relocwrapper.c: Update dependencies hierarchy.
20286         * build-aux/install-reloc: Update list of files to be compiled.
20287         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20288         lib/allocator.[hc].
20289
20290 2011-04-08  Eric Blake  <eblake@redhat.com>
20291
20292         strftime: silence gnulib-tool warning
20293         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20294
20295 2011-04-08  Bruno Haible  <bruno@clisp.org>
20296
20297         verify: Fix syntax error with GCC 4.6 in C++ mode.
20298         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20299         (HAVE_STATIC_ASSERT): New macro.
20300         (verify_true, verify): Use 'static_assert' if it is supported and
20301         '_Static_assert' is not supported.
20302
20303 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20304
20305         allocator: New module.
20306         * modules/allocator, lib/allocator.c: New files.
20307         * lib/allocator.h (stdlib_allocator): New decl.
20308         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20309         Remove.  Do not include <stdlib.h>.
20310         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20311         * modules/careadlinkat (Files): Remove lib/allocator.h.
20312         (Depends-on): Add allocator.
20313
20314         stdlib: let modules use system malloc, realloc
20315         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20316         if !_GL_USE_STDLIB_ALLOC.
20317         (malloc, realloc): Limit this change to a smaller scope.
20318
20319         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20320         (malloc, realloc): Don't #undef; no longer needed.
20321         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20322         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20323         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20324         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20325         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20326         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20327         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20328         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20329
20330         careadlinkat: rename members to avoid problem
20331         * lib/allocator.h (struct allocator): Rename members from
20332         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20333         and realloc are #define'd.  Reported by Eric Blake in
20334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20335         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20336
20337 2011-04-08  Eric Blake  <eblake@redhat.com>
20338
20339         nonblocking: reduce dependency
20340         * tests/test-nonblocking.c: Only test sockets when in use.
20341         * modules/nonblocking-tests (Depends-on): Drop socket.
20342         (Makefile.am): Link even if sockets are not present.
20343         * modules/pipe2-tests (Makefile.am): Likewise.
20344         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20345
20346         pipe2: fix O_NONBLOCK support on mingw
20347         * modules/pipe2 (Depends-on): Add nonblocking.
20348         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20349         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20350         * tests/test-nonblocking.c (main): Likewise.
20351         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20352
20353         fcntl-h: fix O_ACCMODE on cygwin
20354         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20355         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20356
20357         pipe-filter: drop O_NONBLOCK workarounds
20358         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20359         * modules/pipe-filter-ii (Depends-on): Likewise.
20360         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20361
20362         nonblocking: provide O_NONBLOCK for mingw
20363         * modules/nonblocking (Depends-on): Add open.
20364         (configure.ac): Set new witness macro.
20365         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20366         * modules/fcntl-h (Makefile.am): Substitute it.
20367         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20368         nonblocking module is in use.
20369         * lib/nonblocking.c: Adjust portability test.
20370         * lib/open.c (open): Don't let native open see gnulib flag.
20371         * tests/test-fcntl-h.c (main): Enhance test.
20372         * tests/test-open.h (test_open): Likewise.
20373         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20374
20375         careadlinkat: fix compilation error on mingw
20376         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20377         within struct allocator.
20378
20379 2011-04-06  Eric Blake  <eblake@redhat.com>
20380
20381         binary-io: relicense under LGPLv2+
20382         * modules/binary-io (License): Relax to LGPLv2+.
20383         Requested for libvirt, and required by pipe2.
20384
20385 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20386
20387         verify: use _Static_assert if available
20388         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20389         (verify_true, verify): Use it if available.  This generates better
20390         diagnostics with GCC 4.6.0 and later.
20391
20392 2011-04-05  Bruno Haible  <bruno@clisp.org>
20393
20394         Remove leftover generated .h files after config.status changed.
20395
20396         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20397         GL_GENERATE_ALLOCA_H.
20398         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20399         GL_GENERATE_ALLOCA_H evaluates to false.
20400
20401         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20402         GL_GENERATE_ARGZ_H.
20403         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20404         evaluates to false.
20405
20406         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20407         GL_GENERATE_BYTESWAP_H.
20408         * modules/byteswap (Makefile.am): Remove byteswap.h if
20409         GL_GENERATE_BYTESWAP_H evaluates to false.
20410
20411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20412         GL_GENERATE_ERRNO_H.
20413         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20414         evaluates to false.
20415
20416         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20417         GL_GENERATE_FLOAT_H.
20418         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20419         evaluates to false.
20420
20421         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20422         GL_GENERATE_FNMATCH_H.
20423         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20424         GL_GENERATE_FNMATCH_H evaluates to false.
20425
20426         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20427         GL_GENERATE_GLOB_H.
20428         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20429         evaluates to false.
20430
20431         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20432         automake conditional GL_GENERATE_ICONV_H.
20433         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20434         evaluates to false.
20435
20436         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20437         GL_GENERATE_NETINET_IN_H.
20438         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20439         GL_GENERATE_NETINET_IN_H evaluates to false.
20440
20441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20442         conditional GL_GENERATE_PTHREAD_H.
20443         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20444         * modules/pthread (Makefile.am): Remove pthread.h if
20445         GL_GENERATE_PTHREAD_H evaluates to false.
20446
20447         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20448         GL_GENERATE_SCHED_H.
20449         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20450         evaluates to false.
20451
20452         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20453         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20454         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20455         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20456
20457         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20458         GL_GENERATE_STDARG_H.
20459         * modules/stdarg (Makefile.am): Remove stdarg.h if
20460         GL_GENERATE_STDARG_H evaluates to false.
20461
20462         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20463         GL_GENERATE_STDBOOL_H.
20464         * modules/stdbool (Makefile.am): Remove stdbool.h if
20465         GL_GENERATE_STDBOOL_H evaluates to false.
20466
20467         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20468         conditional GL_GENERATE_STDDEF_H.
20469         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20470         * modules/stddef (Makefile.am): Remove stddef.h if
20471         GL_GENERATE_STDDEF_H evaluates to false.
20472
20473         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20474         GL_GENERATE_STDINT_H.
20475         * modules/stdint (Makefile.am): Remove stdint.h if
20476         GL_GENERATE_STDINT_H evaluates to false.
20477
20478         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20479         GL_GENERATE_SYSEXITS_H.
20480         * modules/sysexits (Makefile.am): Remove sysexits.h if
20481         GL_GENERATE_SYSEXITS_H evaluates to false.
20482
20483         Reported by Karl Berry and Ralf Wildenhues.
20484
20485 2011-04-05  Bruno Haible  <bruno@clisp.org>
20486
20487         Ensure to rebuild generated .h files when config.status has changed.
20488         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20489         config.status.
20490         * modules/ctype (Makefile.am): Likewise.
20491         * modules/dirent (Makefile.am): Likewise.
20492         * modules/errno (Makefile.am): Likewise.
20493         * modules/fcntl-h (Makefile.am): Likewise.
20494         * modules/float (Makefile.am): Likewise.
20495         * modules/getopt-posix (Makefile.am): Likewise.
20496         * modules/glob (Makefile.am): Likewise.
20497         * modules/iconv-h (Makefile.am): Likewise.
20498         * modules/inttypes (Makefile.am): Likewise.
20499         * modules/langinfo (Makefile.am): Likewise.
20500         * modules/locale (Makefile.am): Likewise.
20501         * modules/math (Makefile.am): Likewise.
20502         * modules/netdb (Makefile.am): Likewise.
20503         * modules/netinet_in (Makefile.am): Likewise.
20504         * modules/poll-h (Makefile.am): Likewise.
20505         * modules/pthread (Makefile.am): Likewise.
20506         * modules/pty (Makefile.am): Likewise.
20507         * modules/sched (Makefile.am): Likewise.
20508         * modules/search (Makefile.am): Likewise.
20509         * modules/selinux-h (Makefile.am): Likewise.
20510         * modules/signal (Makefile.am): Likewise.
20511         * modules/spawn (Makefile.am): Likewise.
20512         * modules/stdarg (Makefile.am): Likewise.
20513         * modules/stdbool (Makefile.am): Likewise.
20514         * modules/stddef (Makefile.am): Likewise.
20515         * modules/stdint (Makefile.am): Likewise.
20516         * modules/stdio (Makefile.am): Likewise.
20517         * modules/stdlib (Makefile.am): Likewise.
20518         * modules/string (Makefile.am): Likewise.
20519         * modules/strings (Makefile.am): Likewise.
20520         * modules/sys_file (Makefile.am): Likewise.
20521         * modules/sys_ioctl (Makefile.am): Likewise.
20522         * modules/sys_select (Makefile.am): Likewise.
20523         * modules/sys_socket (Makefile.am): Likewise.
20524         * modules/sys_stat (Makefile.am): Likewise.
20525         * modules/sys_time (Makefile.am): Likewise.
20526         * modules/sys_times (Makefile.am): Likewise.
20527         * modules/sys_utsname (Makefile.am): Likewise.
20528         * modules/sys_wait (Makefile.am): Likewise.
20529         * modules/sysexits (Makefile.am): Likewise.
20530         * modules/termios (Makefile.am): Likewise.
20531         * modules/time (Makefile.am): Likewise.
20532         * modules/unistd (Makefile.am): Likewise.
20533         * modules/wchar (Makefile.am): Likewise.
20534         * modules/wctype-h (Makefile.am): Likewise.
20535         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20536
20537 2011-04-05  Bruno Haible  <bruno@clisp.org>
20538
20539         pipe2: Relicense under LGPLv2+.
20540         * modules/pipe2 (License): Change to LGPLv2+.
20541         Requested by Eric Blake, for libvirt.
20542
20543 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20544
20545         bootstrap: compute gnulib_extra_files after updating build_aux
20546         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20547         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20548
20549 2011-04-05  Eric Blake  <eblake@redhat.com>
20550
20551         bootstrap: preserve git whitelist item sorting
20552         * build-aux/bootstrap (sort_patterns): New function.
20553         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20554
20555 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20556
20557         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20558         sc_space_tab check.
20559
20560 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20561
20562         areadlink, areadlinkat: rewrite in terms of careadlinkat
20563         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20564         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20565         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20566         (malloc, realloc): Remove #undefs.
20567         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20568         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20569         readlink, ssize_t, stdint, unistd.
20570         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20571         areadlink, stdint.
20572
20573         careadlinkat: new module
20574         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20575         * modules/careadlinkat: New files, written by me with
20576         a review and feedback from Ben Pfaff in
20577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20578
20579 2011-04-01  Bruno Haible  <bruno@clisp.org>
20580
20581         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20582         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20583         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20584         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20585         Reported by Bruce Korb <bruce.korb@gmail.com>.
20586
20587 2011-04-01  Bruno Haible  <bruno@clisp.org>
20588
20589         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20590         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20591         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20592         * modules/wcpcpy (Depends-on): Add extensions.
20593         * modules/wcpncpy (Depends-on): Likewise.
20594         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20595         systems.
20596         * doc/posix-functions/wcpncpy.texi: Likewise.
20597         * doc/posix-functions/wcwidth.texi: Likewise.
20598
20599 2011-03-31  Eric Blake  <eblake@redhat.com>
20600
20601         nonblocking: fix mingw test failures
20602         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20603         non-blocking flag on regular file.
20604         (get_nonblocking_flag): Set errno on invalid fd.
20605         * tests/test-nonblocking.c (main): Avoid test failure on
20606         directories if fchdir is not active.
20607         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20608
20609 2011-03-31  Bruno Haible  <bruno@clisp.org>
20610
20611         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20612         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20613         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20614         Reported by Simon Josefsson <simon@josefsson.org>.
20615
20616 2011-03-31  Bruno Haible  <bruno@clisp.org>
20617         and Eric Blake  <eblake@redhat.com>
20618
20619         nonblocking: new module
20620         * modules/nonblocking: New module.
20621         * modules/nonblocking-tests: Likewise.
20622         * lib/nonblocking.h: New file.
20623         * lib/nonblocking.c: Likewise.
20624         * tests/test-nonblocking.c: New test.
20625         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20626
20627 2011-03-30  Bruno Haible  <bruno@clisp.org>
20628
20629         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20630         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20631         instead of 'printf' format for GCC >= 4.4.
20632         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20633         (fprintf, printf, vfprintf, vprintf): Declare with
20634         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20635         the system's vfprintf() function.
20636         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20637
20638 2011-03-30  Eric Blake  <eblake@redhat.com>
20639
20640         passfd: fix scoping bug
20641         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20642         before sendmsg/recvmsg.
20643
20644         passfd: standardize coding conventions
20645         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20646         can be learned at compile time.
20647         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20648         ifdefs.
20649         (sendfd, recvfd): Follow gnulib code conventions.
20650
20651         passfd: fix incorrect sendmsg arguments
20652         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20653         incorrect msg_controllen value.
20654         * modules/passfd-tests (Depends-on): Check for alarm.
20655         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20656         Reported by Bastien ROUCARIES.
20657
20658 2011-03-30  Bruno Haible  <bruno@clisp.org>
20659
20660         c-strcasestr: Relicense under LGPLv2+.
20661         * modules/c-strcasestr (License): Change to LGPLv2+.
20662         Requested by Eric Blake, for libvirt.
20663
20664 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20665
20666         * users.txt: Add libidn2.  Fix libtasn1 link.
20667
20668 2011-03-30  Jim Meyering  <meyering@redhat.com>
20669
20670         tests: readlink* ("",... fails with EINVAL on newer kernels
20671         readlink and readlinkat have typically failed with ENOENT for
20672         the invalid, empty file name,  "".  However, with the advent
20673         of linux-2.6.39, they fail with EINVAL.
20674         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20675         when operating on the empty file name.
20676         * tests/test-readlink.h (test_readlink): Likewise.
20677
20678 2011-03-29  Bruno Haible  <bruno@clisp.org>
20679
20680         Relicense some modules under LGPLv2+, for libidn2.
20681         * modules/array-mergesort (License): Change to LGPLv2+.
20682         * modules/c-strcaseeq (License): Likewise.
20683         * modules/striconveh (License): Likewise.
20684         * modules/striconveha (License): Likewise.
20685         * modules/uniconv/base (License): Likewise.
20686         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20687         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20688         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20689         * modules/unictype/base (License): Likewise.
20690         * modules/unictype/bidiclass-of (License): Likewise.
20691         * modules/unictype/category-M (License): Likewise.
20692         * modules/unictype/category-none (License): Likewise.
20693         * modules/unictype/category-of (License): Likewise.
20694         * modules/unictype/category-test (License): Likewise.
20695         * modules/unictype/category-test-withtable (License): Likewise.
20696         * modules/unictype/combining-class (License): Likewise.
20697         * modules/unictype/joiningtype-of (License): Likewise.
20698         * modules/unictype/scripts (License): Likewise.
20699         * modules/uninorm/base (License): Likewise.
20700         * modules/uninorm/canonical-decomposition (License): Likewise.
20701         * modules/uninorm/composition (License): Likewise.
20702         * modules/uninorm/decompose-internal (License): Likewise.
20703         * modules/uninorm/decomposition-table (License): Likewise.
20704         * modules/uninorm/nfc (License): Likewise.
20705         * modules/uninorm/nfd (License): Likewise.
20706         * modules/uninorm/u32-normalize (License): Likewise.
20707         * modules/unistr/base (License): Likewise.
20708         * modules/unistr/u32-cpy (License): Likewise.
20709         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20710         * modules/unistr/u32-to-u8 (License): Likewise.
20711         * modules/unistr/u32-uctomb (License): Likewise.
20712         * modules/unistr/u8-check (License): Likewise.
20713         * modules/unistr/u8-mblen (License): Likewise.
20714         * modules/unistr/u8-mbtouc (License): Likewise.
20715         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20716         * modules/unistr/u8-mbtoucr (License): Likewise.
20717         * modules/unistr/u8-prev (License): Likewise.
20718         * modules/unistr/u8-strlen (License): Likewise.
20719         * modules/unistr/u8-to-u32 (License): Likewise.
20720         * modules/unistr/u8-uctomb (License): Likewise.
20721         * modules/unitypes (License): Likewise.
20722         Requested by Simon Josefsson.
20723
20724 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20725
20726         lib-symbol-visibility: Add a notice.
20727         * modules/lib-symbol-visibility (Notice): New field.
20728
20729 2011-03-29  Bruno Haible  <bruno@clisp.org>
20730
20731         getaddrinfo: Doc fix.
20732         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20733         section "fixed in Gnulib".
20734
20735 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20736
20737         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20738         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20739
20740 2011-03-26  Bruno Haible  <bruno@clisp.org>
20741
20742         unictype/property-byname: Reduce the number of load-time relocations.
20743         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20744         (UC_PROPERTY_INDEX_*): New enumeration values.
20745         (uc_property_byname): Convert an index from the lookup table to an
20746         uc_property_t.
20747         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20748         values.
20749
20750 2011-03-26  Bruno Haible  <bruno@clisp.org>
20751
20752         unictype/property-byname: Allow omitted word separators and aliases.
20753         * lib/unictype/pr_byname.gperf: Add property names without word
20754         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20755         for 'space'.
20756
20757 2011-03-26  Bruno Haible  <bruno@clisp.org>
20758
20759         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20760         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20761         also hyphens to space.
20762         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20763         without spaces.
20764         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20765
20766 2011-03-26  Bruno Haible  <bruno@clisp.org>
20767
20768         unictype/joiningtype-byname: Recognize long names as well.
20769         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20770         a long name.
20771         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20772         unictype/joiningtype_byname.h.
20773         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20774         * lib/unictype/joiningtype_byname.gperf: New file.
20775         * modules/unictype/joiningtype-byname (Files): Add
20776         lib/unictype/joiningtype_byname.gperf.
20777         (Depends-on): Add gperf.
20778         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20779         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20780         long names.
20781
20782         Tests for module 'unictype/joiningtype-longname'.
20783         * modules/unictype/joiningtype-longname-tests: New file.
20784         * tests/unictype/test-joiningtype_longname.c: New file.
20785
20786         New module 'unictype/joiningtype-longname'.
20787         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20788         * lib/unictype/joiningtype_longname.c: New file.
20789         * modules/unictype/joiningtype-longname: New file.
20790         * modules/unictype/joiningtype-all (Depends-on): Add
20791         unictype/joiningtype-longname.
20792
20793 2011-03-26  Bruno Haible  <bruno@clisp.org>
20794
20795         unictype/bidiclass-byname: Recognize long names as well.
20796         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20797         name.
20798         * lib/unictype/bidi_byname.c: Include <string.h>,
20799         unictype/bidi_byname.h.
20800         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20801         * lib/unictype/bidi_byname.gperf: New file.
20802         * modules/unictype/bidiclass-byname (Files): Add
20803         lib/unictype/bidi_byname.gperf.
20804         (Depends-on): Add gperf.
20805         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20806         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20807         long names.
20808
20809         Tests for module 'unictype/bidiclass-longname'.
20810         * modules/unictype/bidiclass-longname-tests: New file.
20811         * tests/unictype/test-bidi_longname.c: New file.
20812
20813         New module 'unictype/bidiclass-longname'.
20814         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20815         * lib/unictype/bidi_longname.c: New file.
20816         * modules/unictype/bidiclass-longname: New file.
20817         * modules/unictype/bidiclass-all (Depends-on): Add
20818         unictype/bidiclass-longname.
20819
20820 2011-03-26  Bruno Haible  <bruno@clisp.org>
20821
20822         unictype/bidi*: Rename modules.
20823         * modules/unictype/bidiclass-all: Renamed from
20824         modules/unictype/bidicategory-all.
20825         * modules/unictype/bidiclass-name: Renamed from
20826         modules/unictype/bidiclass-name.
20827         (Description): Update.
20828         * modules/unictype/bidiclass-name-tests: Renamed from
20829         modules/unictype/bidicategory-name-tests.
20830         * modules/unictype/bidiclass-byname: Renamed from
20831         modules/unictype/bidicategory-byname.
20832         (Description): Update.
20833         * modules/unictype/bidiclass-byname-tests: Renamed from
20834         modules/unictype/bidicategory-byname-tests.
20835         * modules/unictype/bidiclass-of: Renamed from
20836         modules/unictype/bidicategory-of.
20837         (Description): Update.
20838         * modules/unictype/bidiclass-of-tests: Renamed from
20839         modules/unictype/bidicategory-of-tests.
20840         * modules/unictype/bidiclass-test: Renamed from
20841         modules/unictype/bidicategory-test.
20842         (Description): Update.
20843         * modules/unictype/bidiclass-test-tests: Renamed from
20844         modules/unictype/bidicategory-test-tests.
20845         * modules/unictype/bidicategory-all: New file, a simple redirection.
20846         * modules/unictype/bidicategory-name: Likewise.
20847         * modules/unictype/bidicategory-byname: Likewise.
20848         * modules/unictype/bidicategory-of: Likewise.
20849         * modules/unictype/bidicategory-test: Likewise.
20850         * modules/unictype/property-bidi-* (Dependencies): Update.
20851         * lib/unictype/bidi_*.c: Update comment.
20852
20853 2011-03-26  Bruno Haible  <bruno@clisp.org>
20854
20855         unictype/bidi*: Rename functions, part 2.
20856         * modules/unictype/bidicategory-name (configure.ac): Update required
20857         libunistring version.
20858         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20859
20860 2011-03-25  Bruno Haible  <bruno@clisp.org>
20861
20862         New module 'unictype/combining-class-all'.
20863         * modules/unictype/combining-class-all: New file.
20864
20865         Tests for module 'unictype/combining-class-byname'.
20866         * modules/unictype/combining-class-byname-tests: New file.
20867         * tests/unictype/test-combiningclass_byname.c: New file.
20868
20869         New module 'unictype/combining-class-byname'.
20870         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20871         * lib/unictype/combiningclass_byname.c: New file.
20872         * lib/unictype/combiningclass_byname.gperf: New file.
20873         * modules/unictype/combining-class-byname: New file.
20874
20875         Tests for module 'unictype/combining-class-longname'.
20876         * modules/unictype/combining-class-longname-tests: New file.
20877         * tests/unictype/test-combiningclass_longname.c: New file.
20878
20879         New module 'unictype/combining-class-longname'.
20880         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20881         * lib/unictype/combiningclass_longname.c: New file.
20882         * modules/unictype/combining-class-longname: New file.
20883
20884         Tests for module 'unictype/combining-class-name'.
20885         * modules/unictype/combining-class-name-tests: New file.
20886         * tests/unictype/test-combiningclass_name.c: New file.
20887
20888         New module 'unictype/combining-class-name'.
20889         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20890         * lib/unictype/combiningclass_name.c: New file.
20891         * modules/unictype/combining-class-name: New file.
20892
20893 2011-03-25  Bruno Haible  <bruno@clisp.org>
20894
20895         unictype/combining-class: Rename source files.
20896         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20897         of unictype/combining.h.
20898         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20899         Update.
20900         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20901         * modules/unictype/combining-class (Description): Fix.
20902         (Files, Makefile.am): Update.
20903         * tests/unictype/test-combiningclass.c: Renamed from
20904         tests/unictype/test-combining.c.
20905         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20906
20907 2011-03-25  Bruno Haible  <bruno@clisp.org>
20908
20909         unictype: Update list of canonical combining classes.
20910         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20911
20912 2011-03-25  Bruno Haible  <bruno@clisp.org>
20913
20914         unictype/category-byname: Recognize long names as well.
20915         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20916         a long name.
20917         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20918         unictype/categ_byname.h.
20919         (UC_CATEGORY_INDEX_*): New enumeration values.
20920         (uc_general_category_byname): Use uc_general_category_lookup and
20921         convert from index to value.
20922         * lib/unictype/categ_byname.gperf: New file.
20923         * modules/unictype/category-byname (Files): Add
20924         lib/unictype/categ_byname.gperf.
20925         (Depends-on): Add gperf.
20926         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20927         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20928         long names.
20929
20930         Tests for module 'unictype/category-longname'.
20931         * modules/unictype/category-longname-tests: New file.
20932         * tests/unictype/test-categ_longname.c: New file.
20933
20934         New module 'unictype/category-longname'.
20935         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20936         * lib/unictype/categ_longname.c: New file.
20937         * modules/unictype/category-longname: New file.
20938         * modules/unictype/category-all (Depends-on): Add it.
20939
20940 2011-03-25  Bruno Haible  <bruno@clisp.org>
20941
20942         Tests for module 'unictype/category-LC'.
20943         * modules/unictype/category-LC-tests: New file.
20944         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20945
20946         New module 'unictype/category-LC'.
20947         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20948         (UC_CATEGORY_LC): New declaration.
20949         (UC_CASED_LETTER): New macro.
20950         * lib/gen-uni-tables.c (is_category_LC): New function.
20951         (output_categories): Also handle category LC.
20952         (UC_CATEGORY_MASK_LC): New enumeration value.
20953         (general_category_byname): Also handle category LC.
20954         * lib/unictype/categ_LC.c: New file.
20955         * lib/unictype/categ_LC.h: New file, automatically generated.
20956         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20957         category LC.
20958         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20959         * modules/unictype/category-LC: New file.
20960         * modules/unictype/category-byname (Depends-on): Add
20961         unictype/category-LC.
20962         * modules/unictype/category-all (Depends-on): Likewise.
20963
20964 2011-03-25  Eric Blake  <eblake@redhat.com>
20965
20966         xmalloc: revert yesterday's regression
20967         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20968         realloc's underlying behavior (allowing allocation of zero-size
20969         objects, especially if malloc-gnu is also in use).
20970
20971 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20972
20973         maint.mk: add missing version to VC-tag
20974         * top/maint.mk: git tag was missing actual tag name; add it.
20975
20976         valgrind: do leak checking, and exit with code 1 on error (not 0)
20977         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20978         to VALGRIND.
20979
20980 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20981
20982         posix-modules: say what it does.
20983         * posix-modules: Add a line to the --help output saying what it does.
20984
20985 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         xmalloc: Do not leak if underlying realloc is C99 compatible.
20988         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20989         This avoids a leak on C99-based systems.  See
20990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20991
20992 2011-03-24  Eric Blake  <eblake@redhat.com>
20993
20994         realloc: document portability problem
20995         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20996         passing 0 size to realloc.
20997
20998 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20999
21000         doc: update users.txt
21001         * users.txt: Add cvsps, tmpwatch
21002
21003 2011-03-23  Matt Rice  <ratmice@gmail.com>
21004
21005         doc: update users.txt
21006         * users.txt: Add gdb.
21007
21008 2011-03-23  Jim Meyering  <meyering@redhat.com>
21009
21010         doc: update users.txt
21011         Looking through matches up to the following URL (there are still
21012         several more pages), I found several projects that use gnulib:
21013         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21014         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21015         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21016
21017 2011-03-22  Bruno Haible  <bruno@clisp.org>
21018
21019         unictype/bidi*: Rename functions.
21020         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21021         uc_bidi_class, uc_is_bidi_class): New declarations.
21022         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21023         uc_bidi_category_byname.
21024         (uc_bidi_category_byname): New function.
21025         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21026         u_bidi_category_name.
21027         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21028         (uc_bidi_category_name): New function.
21029         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21030         uc_bidi_category.
21031         (uc_bidi_category): New function.
21032         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21033         uc_is_bidi_category. Invoke uc_bidi_class.
21034         (uc_is_bidi_category): New function.
21035         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21036         instead of uc_bidi_category_byname.
21037         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21038         instead of uc_bidi_category_name.
21039         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21040         uc_bidi_category.
21041         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21042         instead of uc_is_bidi_category.
21043
21044 2011-03-21  Bruno Haible  <bruno@clisp.org>
21045
21046         New module 'unictype/joininggroup-all'.
21047         * modules/unictype/joininggroup-all: New file.
21048
21049         Tests for module 'unictype/joininggroup-of'.
21050         * modules/unictype/joininggroup-of-tests: New file.
21051         * tests/unictype/test-joininggroup_of.c: New file.
21052         * tests/unictype/test-joininggroup_of.h: New file, automatically
21053         generated by gen-uni-tables.
21054
21055         New module 'unictype/joininggroup-of'.
21056         * modules/unictype/joininggroup-of: New file.
21057         * lib/unictype/joininggroup_of.c: New file.
21058         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21059         gen-uni-tables.
21060
21061         Tests for module 'unictype/joininggroup-byname'.
21062         * modules/unictype/joininggroup-byname-tests: New file.
21063         * tests/unictype/test-joininggroup_byname.c: New file.
21064
21065         New module 'unictype/joininggroup-byname'.
21066         * modules/unictype/joininggroup-byname: New file.
21067         * lib/unictype/joininggroup_byname.c: New file.
21068         * lib/unictype/joininggroup_byname.gperf: New file.
21069
21070         Tests for module 'unictype/joininggroup-name'.
21071         * modules/unictype/joininggroup-name-tests: New file.
21072         * tests/unictype/test-joininggroup_name.c: New file.
21073
21074         New module 'unictype/joininggroup-name'.
21075         * modules/unictype/joininggroup-name: New file.
21076         * lib/unictype/joininggroup_name.c: New file.
21077         * lib/unictype/joininggroup_name.h: New file.
21078
21079         New module 'unictype/joiningtype-all'.
21080         * modules/unictype/joiningtype-all: New file.
21081
21082         Tests for module 'unictype/joiningtype-of'.
21083         * modules/unictype/joiningtype-of-tests: New file.
21084         * tests/unictype/test-joiningtype_of.c: New file.
21085         * tests/unictype/test-joiningtype_of.h: New file, automatically
21086         generated by gen-uni-tables.
21087
21088         New module 'unictype/joiningtype-of'.
21089         * modules/unictype/joiningtype-of: New file.
21090         * lib/unictype/joiningtype_of.c: New file.
21091         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21092         gen-uni-tables.
21093
21094         Tests for module 'unictype/joiningtype-byname'.
21095         * modules/unictype/joiningtype-byname-tests: New file.
21096         * tests/unictype/test-joiningtype_byname.c: New file.
21097
21098         New module 'unictype/joiningtype-byname'.
21099         * modules/unictype/joiningtype-byname: New file.
21100         * lib/unictype/joiningtype_byname.c: New file.
21101
21102         Tests for module 'unictype/joiningtype-name'.
21103         * modules/unictype/joiningtype-name-tests: New file.
21104         * tests/unictype/test-joiningtype_name.c: New file.
21105
21106         New module 'unictype/joiningtype-name'.
21107         * modules/unictype/joiningtype-name: New file.
21108         * lib/unictype/joiningtype_name.c: New file.
21109
21110         unictype: Add support for Arabic shaping properties.
21111         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21112         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21113         declarations.
21114         (UC_JOINING_GROUP_*): New enumeration values.
21115         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21116         declarations.
21117         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21118         (unicode_joining_type): New variable.
21119         (UC_JOINING_GROUP_*): New enumeration values.
21120         (unicode_joining_group): New variable.
21121         (fill_arabicshaping, joining_type_as_c_identifier,
21122         output_joining_type_test, output_joining_type,
21123         joining_group_as_c_identifier, output_joining_group_test,
21124         output_joining_group): New functions.
21125         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21126         fill_arabicshaping and output_joining_type_test, output_joining_type,
21127         output_joining_group_test, output_joining_group.
21128         Reported by Simon Josefsson.
21129
21130 2011-03-21  Jim Meyering  <meyering@redhat.com>
21131
21132         strftime: fix a bug in yesterday's change
21133         * lib/strftime.c (add): Accommodate width's initial value of -1.
21134         Otherwise, nstrftime would copy uninitialized data into
21135         the result buffer.
21136
21137 2011-03-21  Jim Meyering  <meyering@redhat.com>
21138
21139         tests: add strftime-tests module
21140         * tests/test-strftime.c: New file.
21141         * modules/strftime-tests: New module.
21142
21143 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21144
21145         strftime: don't assume a byte count fits in 'int'
21146         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21147         found this problem by static analysis, using gcc -Wstrict-overflow
21148         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21149         on an integer overflow having undefined behavior, but it turns out
21150         that the argument is a size, which might not fit in 'int' anyway,
21151
21152 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21153
21154         stdio: don't require ignore_value around fwrite
21155
21156         This patch works around libc bug 11959
21157         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21158         Without this patch, applications must often write
21159         ignore_value (fwrite (...)) even though the ignore_value is
21160         not helpful here.  It's common to write many objects, using
21161         fwrite/printf/etc., and then use ferror to detect output error.
21162
21163         I considered making this patch optional, but decided against it,
21164         because libc is obviously being inconsistent here: there is no
21165         reason libc should insist that user code must inspect fwrite
21166         return's value without also insisting that it inspect printf's,
21167         putchar's, etc.  If user code wants to have a strict style where
21168         all these functions' values are checked (so that ferror need not
21169         be checked), we could add support for that style in a new gnulib
21170         module, but in the meantime it's better to be consistent and to
21171         support common usage.
21172
21173         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21174         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21175         that we are compiling in checking mode, and if not C++, and
21176         if not already wrapping fwrite for some other reason.
21177         (fwrite): #define to rpl_fwrite if the latter is defined.
21178
21179 2011-03-20  Bruno Haible  <bruno@clisp.org>
21180
21181         verror: Fix compilation error introduced on 2011-02-13.
21182         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21183         instead of __attribute__.
21184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21185
21186 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21187             Bruno Haible  <bruno@clisp.org>
21188
21189         socklen: do not depend on sys_socket
21190         While trying to modify Emacs to use gnulib's socklen module,
21191         I discovered a circular dependency: socklen depends on sys_socket
21192         and vice versa.  Emacs can use socklen, but it does not need
21193         sys_socket because it has its own substitute for sys/socket.h.
21194         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21195         gl_TYPE_SOCKLEN_T.
21196         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21197         gl_PREREQ_SYS_H_SOCKET.
21198         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21199         gl_PREREQ_SYS_H_SOCKET.
21200         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21201         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21202         * modules/socklen (Depends-on): Do not depend on sys_socket.
21203         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21204
21205 2011-03-20  Jim Meyering  <meyering@redhat.com>
21206
21207         maint.mk: sort file names *after* new transformation
21208         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21209         prefix would have led to an unwarranted failure in GNU parted.
21210         Sort after that transformation.
21211
21212 2011-03-19  Jim Meyering  <meyering@redhat.com>
21213
21214         maint.mk: fix po-file syntax-check rule
21215         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21216         Patch by Bruno Haible.
21217
21218 2011-03-19  Bruno Haible  <bruno@clisp.org>
21219
21220         socklen: Update comment.
21221         * m4/socklen.m4: Update comment about platforms.
21222
21223 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21224             Bruno Haible  <bruno@clisp.org>
21225
21226         inet_ntop, inet_pton: Simplify.
21227         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21228         documented to provide socklen_t and we already depend on sys_socket.
21229         * modules/inet_pton (Depends-on): Likewise.
21230         * lib/arpa_inet.in.h: Adjust comment.
21231
21232 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21233             Bruno Haible  <bruno@clisp.org>
21234
21235         netdb: Simplify.
21236         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21237         documented to provide socklen_t and we already depend on sys_socket.
21238         * lib/netdb.in.h: Adjust comment.
21239
21240 2011-03-19  Bruno Haible  <bruno@clisp.org>
21241
21242         sys_socket, netdb: Document problem with socklen_t.
21243         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21244         platforms.
21245         * doc/posix-headers/netdb.texi: Likewise.
21246
21247 2011-03-18  Eric Blake  <eblake@redhat.com>
21248
21249         maint.mk: let po check work in VPATH build
21250         * top/maint.mk (po_file): Allow cfg.mk override.
21251         (sc_po_check): Allow VPATH use.
21252         Reported by Jiri Denemark.
21253
21254 2011-03-16  Jim Meyering  <meyering@redhat.com>
21255
21256         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21257         Before, you would have had to create one .x-sc_ file per rule in order
21258         to exempt offending files.  Now, you may instead use a Make variable --
21259         usually defined in cfg.mk -- whose name identifies the affected rule.
21260         * top/maint.mk (_sc_excl): Define.
21261         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21262         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21263
21264 2011-03-13  Bruno Haible  <bruno@clisp.org>
21265
21266         ignore-value tests: Avoid warnings.
21267         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21268         empty for gcc < 3.4.
21269
21270 2011-03-13  Bruno Haible  <bruno@clisp.org>
21271
21272         passfd: Fix link error on Solaris.
21273         * modules/passfd (Description): Correct.
21274         (Depends-on): Add socketlib.
21275         (Link): New section.
21276         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21277
21278 2011-03-13  Bruno Haible  <bruno@clisp.org>
21279
21280         passfd: Fix link error on AIX 5.2.
21281         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21282
21283 2011-03-13  Bruno Haible  <bruno@clisp.org>
21284
21285         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21286         * lib/sys_socket.in.h: Include <stddef.h>.
21287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21288         CMSG_FIRSTHDR. Remove unused variable.
21289
21290 2011-03-13  Bruno Haible  <bruno@clisp.org>
21291
21292         passfd: Fix compilation error on OpenBSD.
21293         * lib/passfd.c: Include <sys/uio.h>.
21294
21295 2011-03-13  Bruno Haible  <bruno@clisp.org>
21296
21297         passfd test: Fix warnings.
21298         * tests/test-passfd.c: Include <sys/wait.h>.
21299         (main): Fix typo.
21300
21301 2011-03-13  Bruno Haible  <bruno@clisp.org>
21302
21303         passfd module, part 4, tweaks.
21304         * tests/test-passfd.c: Reorder includes.
21305         (main): Fix perror and printf calls.
21306
21307 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21308
21309         passfd module, part 4.
21310         * modules/passfd-tests: New file.
21311         * tests/test-passfd.c: New file.
21312
21313 2011-03-13  Jim Meyering  <meyering@redhat.com>
21314
21315         Makefile: rely on GNU make; derive syntax-check rule names
21316         Rather than requiring that each sc_ rule be listed as a dependent
21317         of "check", use features of GNU make to derive the list.
21318         * Makefile (syntax-check-rules): Define.
21319         (check): Depend on the new variable, not the hard-coded list.
21320
21321 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21322             Bruno Haible  <bruno@clisp.org>
21323
21324         passfd module, part 3.
21325         * lib/passfd.h (recvfd): Add a flags argument.
21326         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21327         (recvfd): Add a flags argument.
21328         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21329         exists.
21330         * modules/passfd (Depends-on): Add cloexec.
21331         Suggested by Eric Blake.
21332
21333 2011-03-13  Bruno Haible  <bruno@clisp.org>
21334
21335         passfd module, part 2, tweaks.
21336         * modules/passfd (Files): Reorder.
21337         (Depends-on): Remove errno.
21338         (Include): Remove <sys/socket.h>, <sys/un.h>.
21339         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21340         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21341         specification header. Include <sys/socket.h> always. Don't include
21342         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21343         (sendfd): Clarify that it sets errno when it fails.
21344         (recvfd): Fix specification.
21345
21346 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21347
21348         passfd module, part 2.
21349         * modules/passfd: New file.
21350         * lib/passfd.h: New file.
21351         * lib/passfd.c: New file.
21352
21353 2011-03-12  Bruno Haible  <bruno@clisp.org>
21354
21355         wcswidth, mbswidth: Avoid integer overflow.
21356         * lib/wcswidth.c: Include <limits.h>.
21357         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21358         * lib/mbswidth.c: Include <limits.h>.
21359         (mbsnwidth): Avoid 'int' overflow.
21360         Reported by Jim Meyering.
21361
21362 2011-03-12  Bruno Haible  <bruno@clisp.org>
21363
21364         futimens, utimensat: Avoid endless recursion on Solaris 10.
21365         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21366         Solaris.
21367         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21368         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21369
21370 2011-03-11  Jim Meyering  <meyering@redhat.com>
21371
21372         maint.mk: relax a regexp to accommodate other formatting styles
21373         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21374         between "ngettext" and the following "(".
21375
21376 2011-03-11  Pádraig Brady <P@draigBrady.com>
21377
21378         maint.mk: suppress a false positive warning
21379         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21380         diagnostics are marked with ngettext.
21381
21382 2011-03-10  Eric Blake  <eblake@redhat.com>
21383
21384         wchar: add explicit dependencies, for Tru64
21385         * modules/mbmemcasecoll (Depends-on): Add wchar.
21386         * modules/mbtowc (Depends-on): Likewise.
21387         * modules/vasnprintf (Depends-on): Likewise.
21388         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21389         * modules/wctomb (Depends-on): Likewise.
21390         Reported by Peter O'Gorman.
21391
21392 2011-03-08  Bruno Haible  <bruno@clisp.org>
21393
21394         passfd module, part 1, tweaks.
21395         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21396         Improve indentation. Improve AC_MSG_CHECKING messages.
21397         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21398         gl_SOCKET_FAMILIES.
21399
21400 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21401
21402         passfd module, part 1.
21403         * m4/afunix.m4: New file.
21404         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21405         sockets.
21406
21407 2011-03-08  Bruno Haible  <bruno@clisp.org>
21408
21409         regex-quote: New API.
21410         * lib/regex-quote.h: Include <stdbool.h>.
21411         (struct regex_quote_spec): New type.
21412         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21413         New declarations.
21414         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21415         'const struct regex_quote_spec *' argument.
21416         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21417         (pcre_special): New constant.
21418         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21419         New functions.
21420         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21421         'const struct regex_quote_spec *' argument.
21422         * modules/regex-quote (Depends-on): Add stdbool.
21423         * tests/test-regex-quote.c (check): Update for new API. Add test for
21424         anchored results.
21425         * NEWS: Mention the API change.
21426         Reported by Reuben Thomas and Eric Blake.
21427
21428 2011-03-06  Bruno Haible  <bruno@clisp.org>
21429
21430         regex-quote: Fix creation of POSIX extended regular expressions.
21431         * lib/regex-quote.c (ere_special): Add grouping and alternation
21432         operators.
21433
21434 2011-03-05  Bruno Haible  <bruno@clisp.org>
21435
21436         doc: Improve doc regarding autopoint vs. gnulib.
21437         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21438         disable autopoint while running autoreconf.
21439         Suggested by Ralf Wildenhues.
21440
21441 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21442
21443         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21444         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21445
21446 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21447
21448         parse-duration: remove xalloc.h dependency
21449         * lib/parse-duration.c (parse_period): handle NULL return from
21450         strdup instead of calling xstrdup().
21451         * modules/parse-duration: remove "xalloc" dependency
21452
21453 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21454
21455         bootstrap: honor m4_base when running aclocal
21456         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21457
21458 2011-03-02  Jim Meyering  <meyering@redhat.com>
21459
21460         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21461         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21462         on request from Matt Booth.
21463
21464 2011-03-01  Eric Blake  <eblake@redhat.com>
21465
21466         test-link: work on Hurd
21467         * tests/test-link.h (test_link): Hurd rejects linking directories
21468         with EISDIR instead of the POSIX-mandated EPERM.
21469
21470 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         stdio: simplify by moving files to printf-posix, sigpipe
21473         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21474         since this symbol is needed only if printf is replaced.
21475         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21476         Require gl_ASM_SYMBOL_PREFIX.
21477         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21478         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21479         (Depends-on): Add 'raise'.
21480         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21481         * modules/stdio (Files): Remove lib/stdio-write.c,
21482         m4/asm-underscore.m4.
21483         (Depends-on): Remove 'raise'.
21484
21485         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21486         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21487         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21488         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21489
21490 2011-02-28  Bruno Haible  <bruno@clisp.org>
21491
21492         localcharset: Assume ANSI C behaviour of free().
21493         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21494         calling free().
21495         Suggested by Simon Josefsson <simon@josefsson.org>.
21496
21497 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21498             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21499             Bruno Haible  <bruno@clisp.org>  (tiny change)
21500
21501         On Cygwin, use /proc file system instead of win32 API.
21502         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21503         Win32 file names.
21504         (DllMain): Simplify by removing Cygwin specific code.
21505         (find_shared_library_fullname): Use Linux specific implementation also
21506         for Cygwin.
21507         (get_shared_library_fullname): Update accordingly.
21508         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21509         Win32 file names.
21510         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21511         Cygwin specific code.
21512
21513 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21514             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21515
21516         Fix OpenMP flag detection for various Fortran compilers.
21517         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21518         OpenMP-conditional compilation construct, to force compile
21519         failure with missing OpenMP flag.
21520         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21521
21522 2011-02-25  Eric Blake  <eblake@redhat.com>
21523
21524         strstr: expand test coverage
21525         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21526         compilation.
21527         * tests/test-memmem.c (main): Duplicate tests.
21528         * tests/test-strcasestr.c (main): Likewise.
21529         * tests/test-c-strcasestr.c (main): Likewise.
21530
21531 2011-02-25  Jim Meyering  <meyering@redhat.com>
21532
21533         maint.mk: detect missing-NL-at-EOF, too
21534         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21535         it also detects when a file lacks a newline at EOF.
21536         (require_exactly_one_NL_at_EOF_): Renamed from
21537         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21538         since people may well have .x-sc_... file names tied to the
21539         existing name.  Suggested by Eric Blake.
21540
21541 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         dirname: move m4/dos.m4 functionality into lib/dosname.h
21544
21545         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21546         extracts symbols from it, puts them into config.h; but it's much
21547         easier to use the symbols directly.  filename.h already does this,
21548         but it disagrees with dos.m4 in some respects.  This patch
21549         introduces a different include file dosname.h that packages up
21550         dos.m4, and then later we can work on merging filename.h and
21551         dosname.h.  Applications that need only the easy-to-configure
21552         symbols should consider including dosname.h rather than dirname.h.
21553         * NEWS: Mention incompatible changes.
21554         * m4/dos.m4: Remove.
21555         * lib/dosname.h, modules/dosname: New files.
21556         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21557         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21558         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21559         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21560         Include dosname.h, not dirname.h.
21561         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21562         Include dosname.h, for definitions of symbols like ISSLASH
21563         that used to be in config.h.
21564         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21566         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21567         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21568         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21569         * modules/rmdir (Files): Likewise.
21570         * modules/stat (Files): Likewise.
21571         * modules/unlink (Files): Likewise.
21572         * modules/dirname-lgpl (Depends-on): Add dosname.
21573         * modules/lstat (Depends-on): Likewise.
21574         * modules/openat (Depends-on): Likewise.
21575         * modules/rmdir (Depends-on): Likewise.
21576         * modules/savewd (Depends-on): Likewise.
21577         * modules/stat (Depends-on): Likewise.
21578         * modules/unlink (Depends-on): Likewise.
21579         * modules/openat (Depends-on): Remove dirname-lgpl.
21580         * modules/savewd (Depends-on): Likewise.
21581         * tests/test-dirname.c: Do not use removed symbols like
21582         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21583         the remaining symbols, e.g., ISSLASH ('\\').
21584
21585 2011-02-25  Eric Blake  <eblake@redhat.com>
21586
21587         strstr: revert patches that introduced bug and pessimization
21588         * lib/str-two-way.h: Add another reference.
21589         (two_way_short_needle, two_way_long_needle): Revert changes from
21590         2011-02-24; they pessimize search speed.
21591         (critical_factorization): Partially revert changes from
21592         2010-06-22; they violate the requirement that the left half of the
21593         needle be smaller than the period of the needle.
21594
21595 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21596
21597         filenamecat: remove unnecessary dependency on dirname-lgpl
21598         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21599         is no direct dependency, just an indirect one via filenamecat-lgpl.
21600
21601         remove: remove unnecessary use of m4/dos.m4
21602         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21603         * modules/remove (FILES): Remove m4/dos.m4.
21604
21605         * lib/openat-proc.c: Don't include dirname.h; not needed.
21606
21607         backupfile: remove unnecessary use of m4/dos.m4
21608         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21609         of its symbols are used by the backupfile code.  backupfile.c does
21610         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21611         for the rare case of programs that want all their backup file
21612         names to live within 8+3 limits, and dos.m4 doesn't address that.
21613         * modules/backupfile (Files): Remove m4/dos.m4.
21614
21615 2011-02-24  Jim Meyering  <meyering@redhat.com>
21616
21617         strstr: fix a bug whereby strstr would mistakenly return NULL
21618         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21619         in period calculation.
21620         (two_way_long_needle): Likewise.
21621         The original problem was reported by Mike Stump in
21622         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21623         Ralf Wildenhues provided the short needle and haystack.
21624         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21625         Add a more involved test to trigger the bug in two_way_long_needle.
21626
21627 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21628
21629         gnulib-tool: remove use of bold display in help screen
21630         * gnulib-tool (func_usage): Do not use bold display anymore in the
21631         help screen.  That was just meant to be a temporary emphasis for a
21632         backward-incompatible change.
21633
21634 2011-02-23  Bruno Haible  <bruno@clisp.org>
21635
21636         Fix misindentation of preprocessor directives.
21637         * lib/argp-namefrob.h: Reindent preprocessor directives.
21638         * lib/getopt_int.h (struct _getopt_data): Likewise.
21639         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21640         * lib/vasnprintf.c (decode_long_double): Likewise.
21641         * tests/test-argmatch.c: Insert blank lines, for clarity.
21642         * tests/test-exclude.c: Likewise.
21643
21644 2011-02-22  Bruno Haible  <bruno@clisp.org>
21645
21646         ioctl: Fix for MacOS X in 64-bit mode.
21647         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21648         value.
21649         Suggested by Eric Blake.
21650         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21651
21652 2011-02-22  Jim Meyering  <meyering@redhat.com>
21653
21654         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21655         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21656         in lib/.
21657
21658 2011-02-22  Eric Blake  <eblake@redhat.com>
21659
21660         maint: avoid any CDPATH issue
21661         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21662
21663         maint: adjust cpp indentation for my modules, as well
21664         * Makefile (sc_cpp_indent_check): Add my name.
21665         * lib/fbufmode.c: Filter through cppi.
21666         * lib/fpurge.c: Likewise.
21667         * lib/freadable.c: Likewise.
21668         * lib/freading.c: Likewise.
21669         * lib/fwritable.c: Likewise.
21670         * lib/fwriting.c: Likewise.
21671         * lib/sigaction.c: Likewise.
21672
21673 2011-02-22  Jim Meyering  <meyering@redhat.com>
21674
21675         maint: adjust cpp indentation to reflect nesting depth
21676         I.e., in a block of code that begins with an unnested "#if",
21677         put one space between the "#" in column 1 and following token.
21678         For example,
21679         -#include <sys/vfs.h>
21680         +# include <sys/vfs.h>
21681         Do this only in .c files that are part of a module I maintain.
21682         * lib/linkat.c: Filter through cppi.
21683         * lib/nanosleep.c: Likewise.
21684         * lib/openat.c: Likewise.
21685         * lib/openat-die.c: Likewise.
21686         * lib/dup3.c: Likewise.
21687         * lib/fchownat.c: Likewise.
21688         * lib/flock.c: Likewise.
21689         * lib/fsync.c: Likewise.
21690         * lib/fts.c: Likewise.
21691         * lib/getpass.c: Likewise.
21692         * lib/gettimeofday.c: Likewise.
21693         * lib/userspec.c: Likewise.
21694         * Makefile (sc_cpp_indent_check): New rule, to check this.
21695
21696 2011-02-22  Bruno Haible  <bruno@clisp.org>
21697
21698         New module 'wctomb'.
21699         * lib/stdlib.in.h (wctomb): New declaration.
21700         * lib/wctomb.c: New file.
21701         * lib/wctomb-impl.h: New file.
21702         * m4/wctomb.m4: New file.
21703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21704         REPLACE_WCTOMB.
21705         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21706         REPLACE_WCTOMB.
21707         * modules/wctomb: New file.
21708         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21709         * doc/posix-functions/wctomb.texi: Mention the new module.
21710         * modules/wctob (Depends-on): Add wctomb.
21711
21712 2011-02-22  Bruno Haible  <bruno@clisp.org>
21713
21714         New module 'mbtowc'.
21715         * lib/stdlib.in.h (mbtowc): New declaration.
21716         * lib/mbtowc.c: New file.
21717         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21718         * m4/mbtowc.m4: New file.
21719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21720         REPLACE_MBTOWC.
21721         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21722         REPLACE_MBTOWC.
21723         * modules/mbtowc: New file.
21724         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21725         * doc/posix-functions/mbtowc.texi: Mention the new module.
21726         * modules/btowc (Depends-on): Add mbtowc.
21727
21728 2011-02-22  Bruno Haible  <bruno@clisp.org>
21729
21730         wcrtomb: Add more tests for native Windows platforms.
21731         * tests/test-wcrtomb-w32-1.sh: New file.
21732         * tests/test-wcrtomb-w32-2.sh: New file.
21733         * tests/test-wcrtomb-w32-3.sh: New file.
21734         * tests/test-wcrtomb-w32-4.sh: New file.
21735         * tests/test-wcrtomb-w32-5.sh: New file.
21736         * tests/test-wcrtomb-w32.c: New file.
21737         * modules/wcrtomb-tests (Files): Add them.
21738         (Makefile.am): Arrange to run these tests.
21739         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21740         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21741
21742 2011-02-20  Bruno Haible  <bruno@clisp.org>
21743
21744         wcrtomb: Enhance test.
21745         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21746
21747 2011-02-20  Bruno Haible  <bruno@clisp.org>
21748
21749         mbrtowc: Tiny optimization.
21750         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21751
21752 2011-02-20  Jim Meyering  <meyering@redhat.com>
21753
21754         test-exclude.c: remove unmatched #endif
21755         * tests/test-exclude.c: Remove stray #endif, left over from
21756         the change of a week ago.
21757
21758 2011-02-19  Jim Meyering  <meyering@redhat.com>
21759
21760         git-version-gen: skip "-dirty" check when appropriate
21761         * build-aux/git-version-gen: Don't run any git commands when the
21762         version string comes from .tarball-version.  Prior to this, we
21763         would run git update-index --refresh even from a just-unpacked
21764         tarball directory, and that could affect a .git/ directory in a
21765         parent of the build directory.  Reported by Mike Frysinger.
21766
21767 2011-02-19  Bruno Haible  <bruno@clisp.org>
21768
21769         unictype/property-byname: Reduce the size of the 'data' segment.
21770         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21771
21772 2011-02-19  Bruno Haible  <bruno@clisp.org>
21773
21774         unictype/scripts: Reduce the size of the 'data' segment.
21775         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21776         '%pic'.
21777         * lib/unictype/scripts_byname.gperf: Regenerated.
21778
21779 2011-02-19  Bruno Haible  <bruno@clisp.org>
21780
21781         stdint: Update documentation.
21782         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21783
21784 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21785
21786         stdint: omit redundant check for wchar.h
21787         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21788         always tests whether wchar.h exists, so remove the now-redundant test.
21789
21790 2011-02-18  Bruno Haible  <bruno@clisp.org>
21791
21792         stdint: Cut dependency to module 'wchar'.
21793         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21794         include the necessary prerequisites.
21795         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21796         * modules/stdint (Depends-on): Remove wchar.
21797         (Makefile.am): Substitute HAVE_WCHAR_H.
21798         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21799
21800 2011-02-18  Eric Blake  <eblake@redhat.com>
21801
21802         longlong: skip, rather than fail, on cross-compilation
21803         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21804         when cross-compiling; regression from 2011-02-16.
21805
21806 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21807
21808         * NEWS: Mention 2011-02-08 change to stdlib.
21809
21810 2011-02-17  Bruno Haible  <bruno@clisp.org>
21811
21812         getloadavg: Add comments about platforms.
21813         * m4/getloadavg.m4: Add comment.
21814         * lib/getloadavg.c: Likewise.
21815
21816 2011-02-17  Bruno Haible  <bruno@clisp.org>
21817
21818         getloadavg: Fix link error on Solaris 2.6.
21819         * modules/getloadavg (Link): New section.
21820         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21821         linking test-getloadavg.
21822         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21823         getloadavg.
21824
21825 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21826
21827         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21828         It was 'int', but this doesn't match the IRIX 6.5 manual.
21829         Suggested by Bruno Haible in
21830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21831
21832 2011-02-17  Bruno Haible  <bruno@clisp.org>
21833
21834         havelib: Fix comments.
21835         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21836         change.
21837
21838 2011-02-17  Bruno Haible  <bruno@clisp.org>
21839
21840         havelib: Update config.rpath.
21841         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21842
21843 2011-02-17  Bruno Haible  <bruno@clisp.org>
21844
21845         getloadavg test: Add some plausibility checks.
21846         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21847         is improbable.
21848
21849 2011-02-16  Eric Blake  <eblake@redhat.com>
21850
21851         maintainer-makefile: make syntax-check a no-op from tarballs
21852         * top/maint.mk (no-vc-detected): New rule.
21853         (local-checks-available): Use it to avoid hanging if someone tries
21854         'make syntax-check' from a tarball.  Also append to any non-syntax
21855         checks already defined in cfg.mk.
21856
21857 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         longlong: tune, particularly for common case of c99
21860
21861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21862         or running anything if c99, or if unsigned long long int does not
21863         work.  In either case, we know the answer without further tests.
21864         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21865         it at most once, and use its results for both long long int and
21866         unsigned long long int.  This is more likely to be efficient in
21867         the common case where the program wants to check for both long
21868         long int and unsigned long long int.
21869         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21870         since the answer is already known.
21871
21872 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         getloadavg: set errno
21875         * lib/getloadavg.c: Set errno when returning -1.  If no other
21876         error number looks appropriate, set it to ENOSYS if the getloadavg
21877         looks like it can't possibly ever work, ENOTSUP otherwise.
21878         Suggested by Bruno Haible in
21879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21880
21881         getloadavg: trim unused parts and speed up 'configure'
21882         * NEWS: Document this.
21883         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21884         always compiled if getloadavg is absent.
21885         Move test code to ...
21886         * tests/test-getloadavg.c: New file, containing previous
21887         contents of test from lib/getloadavg.c.  It also contains
21888         suggestions by Bruno Haible in
21889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21890         * modules/getloadavg-tests: New file.
21891         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21892         Do tests in the same order as they're needed for getloadavg.c.
21893         Omit setgid-related tests that generate symbols KMEM_GROUP,
21894         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21895         Do only the tests that are needed to see whether the system has
21896         getloadavg, moving the other tests into ...
21897         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21898         NLIST_NAME_UNION; nobody should be using it.  Do not define
21899         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21900         relevant, as the user of this module shouldn't care how getloadavg
21901         is implemented.
21902
21903         getloadavg: omit unused var
21904         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21905
21906 2011-02-15  Jim Meyering  <meyering@redhat.com>
21907
21908         doc: update users.txt
21909         * users.txt: Update iwhd's URL.
21910
21911 2011-02-13  Bruno Haible  <bruno@clisp.org>
21912
21913         Consistent macro naming for macros that use GCC __attribute__.
21914         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21915         _ATTRIBUTE_NONNULL_.
21916         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21917         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21918         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21919         ATTRIBUTE_DEPRECATED.
21920         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21921         ATTRIBUTE_NORETURN.
21922         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21923         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21924         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21925         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21926         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21927         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21928         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21929         ATTRIBUTE_SENTINEL.
21930         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21931         ATTRIBUTE_RETURN_CHECK.
21932         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21933         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21934         ATTRIBUTE_NORETURN.
21935         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21936         Reported by Paul Eggert.
21937
21938 2011-02-13  Bruno Haible  <bruno@clisp.org>
21939
21940         Don't interfere with a program's definition of __attribute__.
21941         * lib/argp.h (__attribute__): Remove definition.
21942         (_GL_ATTRIBUTE_FORMAT): New macro.
21943         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21944         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21945         (_GL_ATTRIBUTE_FORMAT): New macro.
21946         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21947         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21948         GCC 3 or newer.
21949         * lib/error.h (__attribute__): Remove definition.
21950         (_GL_ATTRIBUTE_FORMAT): New macro.
21951         (error, error_at_line): Use it.
21952         * lib/hash.h (__attribute__): Remove definition.
21953         (ATTRIBUTE_WUR): Update definition. Define always.
21954         * lib/openat.h (__attribute__): Remove definition.
21955         (ATTRIBUTE_NORETURN): Update definition. Define always.
21956         * lib/sigpipe-die.h (__attribute__): Remove definition.
21957         (ATTRIBUTE_NORETURN): Update definition. Define always.
21958         * lib/vasnprintf.h (__attribute__): Remove definition.
21959         (_GL_ATTRIBUTE_FORMAT): New macro.
21960         (asnprintf, vasnprintf): Use it.
21961         * lib/xalloc.h (__attribute__): Remove definition.
21962         (ATTRIBUTE_NORETURN): Update definition. Define always.
21963         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21964         * lib/xmemdup0.h (__attribute__): Remove definition.
21965         (ATTRIBUTE_NORETURN): Update definition. Define always.
21966         * lib/xprintf.h (__attribute__): Remove definition.
21967         (_GL_ATTRIBUTE_FORMAT): New macro.
21968         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21969         * lib/xstrtol.h (__attribute__): Remove definition.
21970         (ATTRIBUTE_NORETURN): Update definition. Define always.
21971         * lib/xvasprintf.h (__attribute__): Remove definition.
21972         (_GL_ATTRIBUTE_FORMAT): New macro.
21973         (xasprintf, xvasprintf): Use it.
21974         * tests/test-argmatch.c (__attribute__): Remove definition.
21975         (ATTRIBUTE_NORETURN): Update definition. Define always.
21976         * tests/test-exclude.c (__attribute__): Remove definition.
21977         (ATTRIBUTE_NORETURN): Update definition. Define always.
21978         Reported by Paul Eggert.
21979
21980 2011-02-13  Bruno Haible  <bruno@clisp.org>
21981
21982         mbrtowc: Add more tests for native Windows platforms.
21983         * tests/test-mbrtowc-w32-1.sh: New file.
21984         * tests/test-mbrtowc-w32-2.sh: New file.
21985         * tests/test-mbrtowc-w32-3.sh: New file.
21986         * tests/test-mbrtowc-w32-4.sh: New file.
21987         * tests/test-mbrtowc-w32-5.sh: New file.
21988         * tests/test-mbrtowc-w32.c: New file.
21989         * modules/mbrtowc-tests (Files): Add them.
21990         (Makefile.am): Arrange to run these tests.
21991         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21992         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21993
21994 2011-02-13  Bruno Haible  <bruno@clisp.org>
21995
21996         mbrtowc: Work around native Windows bug.
21997         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21998         guess when no suitable locale for testing was found.
21999         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22000
22001 2011-02-13  Bruno Haible  <bruno@clisp.org>
22002
22003         mbsinit: Work around mingw bug.
22004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22005         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22006         Windows.
22007         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22008
22009 2011-02-13  Bruno Haible  <bruno@clisp.org>
22010
22011         mbsinit: Don't crash for a NULL argument.
22012         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22013         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22014
22015 2011-02-13  Bruno Haible  <bruno@clisp.org>
22016
22017         Don't interfere with a program's definition of __attribute__.
22018         * lib/stdio.in.h (__attribute__): Remove definition.
22019         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22020         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22021         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22022         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22023         * lib/string.in.h (__attribute__): Remove definition.
22024         Reported by Paul Eggert.
22025
22026 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         stdlib: don't get in the way of non-GCC __attribute__
22029         See thread starting at
22030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22031         Revert previous stdlib change, installing the following instead:
22032         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22033         to get in the way of a non-GCC compiler that supports __attribute__.
22034         (_GL_ATTRIBUTE_RETURN): New macro.
22035         (_Exit): Use it instead of __attribute__.
22036
22037 2011-02-12  Bruno Haible  <bruno@clisp.org>
22038
22039         quotearg test: Avoid test failure on mingw.
22040         * tests/test-quotearg.sh: Convert the locale identifier from native
22041         Windows syntax to Unix syntax.
22042
22043 2011-02-12  Bruno Haible  <bruno@clisp.org>
22044
22045         setlocale: Prefer gnulib's override over libintl's override.
22046         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22047         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22048         GNULIB_defined_setlocale is set.
22049
22050 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22051
22052         stdlib: support non-GCC __attribute__
22053
22054         Fix a serious and tricky problem encountered when attempting to
22055         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22056         5.5, but it crashed due to memory corruption on Solaris 10 with
22057         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22058         bits that are otherwise zero.  This tagging is optional inside
22059         Emacs but is preferred and is used when __attribute__ ((__aligned
22060         (8))) works, as it does with both recent-enough GCC and with Sun C
22061         5.11.  However, Sun C 5.11 is not GCC and does not #define
22062         __GNUC__ and __GNUC_MINOR__.
22063
22064         When I added the getloadavg module to Emacs, it brought in
22065         stdlib.in.h, which contained this fragment:
22066
22067            #ifndef __attribute__
22068            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22069            #  define __attribute__(Spec)   /* empty */
22070            # endif
22071            #endif
22072
22073         When files that include <stdlib.h> were compiled with Sun C 5.11,
22074         the above code disabled __attribute__ ((__aligned (8))), which
22075         caused variables to not be properly aligned, which eventually led
22076         to the pointer corruption mentioned above.  (This was a bit hard
22077         to diagnose, unfortunately.)
22078
22079         Several "#define __attribute__(X) /* empty */" code snippets need
22080         to be eradicated from Gnulib to work with non-GCC compilers that
22081         support __attribute__.  The Autoconf way to do this is to test for
22082         each kind of attribute that we want support for, and selectively
22083         enable that in source code.
22084
22085         Fix this problem just for stdlib.h, by adding a test for the
22086         __noreturn__ attribute, and change stdlib.in.h to use that test
22087         when needed.  This technique can be easily generalized to the
22088         other *.in.h files and attributes, and a similar technique can be
22089         used for *.h and *.c files.  This patch is enough to solve the
22090         problem for Emacs + getloadavg, and I thought I'd publish it for
22091         feedback before undertaking further, similar fixes in other
22092         modules.
22093
22094         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22095         because it's not needed for stdlib.h.  It merely substitutes the
22096         value directly into stdlib.h.  We may well need to #define it, or
22097         similar symbols, for other modules, but it's nice to also have an
22098         option to not #define it for applications like Emacs that do not
22099         need it.
22100
22101         * lib/stdlib.in.h (__attribute__): Do not #define.
22102         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22103         be defined only if the _Exit module is also used.
22104         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22106         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22107         platforms.
22108         * modules/_Exit (Files): Add m4/attribute.m4.
22109         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22110         * m4/attribute.m4: New file.
22111
22112 2011-02-12  Bruno Haible  <bruno@clisp.org>
22113
22114         wcsrtombs: Work around bug on native Windows.
22115         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22116         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22117         instead of len.
22118         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22119
22120 2011-02-12  Bruno Haible  <bruno@clisp.org>
22121
22122         mbsrtowcs: Work around bug on native Windows.
22123         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22124         against mingw bug.
22125         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22126
22127 2011-02-12  Bruno Haible  <bruno@clisp.org>
22128
22129         Avoid setlocale bugs in tests.
22130         * modules/btowc (Dependencies): Add setlocale.
22131         * modules/c-strcase (Dependencies): Likewise.
22132         * modules/mbmemcasecmp (Dependencies): Likewise.
22133         * modules/mbmemcasecoll (Dependencies): Likewise.
22134         * modules/mbrtowc (Dependencies): Likewise.
22135         * modules/mbscasecmp (Dependencies): Likewise.
22136         * modules/mbscasestr (Dependencies): Likewise.
22137         * modules/mbschr (Dependencies): Likewise.
22138         * modules/mbscspn (Dependencies): Likewise.
22139         * modules/mbsinit (Dependencies): Likewise.
22140         * modules/mbsncasecmp (Dependencies): Likewise.
22141         * modules/mbsnrtowcs (Dependencies): Likewise.
22142         * modules/mbspbrk (Dependencies): Likewise.
22143         * modules/mbspcasecmp (Dependencies): Likewise.
22144         * modules/mbsrchr (Dependencies): Likewise.
22145         * modules/mbsrtowcs (Dependencies): Likewise.
22146         * modules/mbsspn (Dependencies): Likewise.
22147         * modules/mbsstr (Dependencies): Likewise.
22148         * modules/nl_langinfo (Dependencies): Likewise.
22149         * modules/quotearg (Dependencies): Likewise.
22150         * modules/unicase/locale-language (Dependencies): Likewise.
22151         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22152         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22153         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22154         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22155         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22156         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22157         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22158         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22159         * modules/vasnprintf-posix (Dependencies): Likewise.
22160         * modules/wcrtomb (Dependencies): Likewise.
22161         * modules/wcsnrtombs (Dependencies): Likewise.
22162         * modules/wcsrtombs (Dependencies): Likewise.
22163
22164 2011-02-12  Bruno Haible  <bruno@clisp.org>
22165
22166         setlocale: Workaround native Windows bug.
22167         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22168         succeeds but sets LC_CTYPE to "C", report a failure.
22169         * tests/test-setlocale2.sh: New file.
22170         * tests/test-setlocale2.c: New file.
22171         * modules/setlocale-tests (Files): Add the new files.
22172         (Makefile.am): Enable test-setlocale2.sh test.
22173         * doc/posix-functions/setlocale.texi: Mention workaround.
22174
22175 2011-02-11  Bruno Haible  <bruno@clisp.org>
22176
22177         Tests for module 'setlocale'.
22178         * modules/setlocale-tests: New file.
22179         * tests/test-setlocale1.sh: New file.
22180         * tests/test-setlocale1.c: New file.
22181
22182         New module 'setlocale'.
22183         * lib/locale.in.h (setlocale): New declaration.
22184         * lib/setlocale.c: New file, based on
22185         gettext/gettext-runtime/intl/setlocale.c.
22186         * m4/setlocale.m4: New file.
22187         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22188         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22189         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22190         REPLACE_SETLOCALE.
22191         * modules/setlocale: New file.
22192         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22193         * doc/posix-functions/setlocale.texi: Mention the new module.
22194
22195 2011-02-11  Bruno Haible  <bruno@clisp.org>
22196
22197         Prepare for locale dependent tests on mingw.
22198         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22199         because it has the wrong locale encoding.
22200         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22201         French_France.1252 instead of "fr".
22202         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22203         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22204         because it has the wrong locale encoding.
22205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22206         native Windows, try Turkish_Turkey.65001.
22207         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22208         Chinese_China.54936.
22209
22210         Prepare for locale dependent tests on mingw.
22211         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22212         differently.
22213         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22214         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22215         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22216         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22217
22218 2011-02-11  Eric Blake  <eblake@redhat.com>
22219
22220         strptime: avoid compiler warnings
22221         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22222         compiler warnings about dead code.
22223         Reported by Daniel P. Berrange.
22224
22225 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22226
22227         doc: update users.txt
22228         * users.txt: Add rcs.
22229
22230 2011-02-10  John W. Eaton  <jwe@gnu.org>
22231
22232         doc: update users.txt
22233         * users.txt: Add octave.
22234
22235 2011-02-10  Jim Meyering  <meyering@redhat.com>
22236
22237         doc: update users.txt
22238         * users.txt: Add iwhd.
22239
22240 2011-02-09  Bruno Haible  <bruno@clisp.org>
22241
22242         gnulib-tool: Make copyright notice adjustment more robust.
22243         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22244         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22245         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22246         License".
22247         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22248
22249 2011-02-06  Bruno Haible  <bruno@clisp.org>
22250
22251         New module 'towctrans'.
22252         * modules/towctrans: New file.
22253         * lib/wctype.in.h (towctrans): New declaration.
22254         * lib/towctrans.c: New file.
22255         * lib/towctrans-impl.h: New file.
22256         * m4/towctrans.m4: New file.
22257         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22258         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22259         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22260         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22261         * doc/posix-functions/towctrans.texi: Mention the new module.
22262
22263 2011-02-06  Bruno Haible  <bruno@clisp.org>
22264
22265         New module 'wctrans'.
22266         * modules/wctrans: New file.
22267         * lib/wctype.in.h (wctrans): New declaration.
22268         * lib/wctrans.c: New file.
22269         * lib/wctrans-impl.h: New file.
22270         * m4/wctrans.m4: New file.
22271         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22272         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22273         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22274         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22275         * doc/posix-functions/wctrans.texi: Mention the new module.
22276
22277 2011-02-06  Bruno Haible  <bruno@clisp.org>
22278
22279         New module 'iswctype'.
22280         * modules/iswctype: New file.
22281         * lib/wctype.in.h (iswctype): New declaration.
22282         * lib/iswctype.c: New file.
22283         * lib/iswctype-impl.h: New file.
22284         * m4/iswctype.m4: New file.
22285         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22286         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22287         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22288         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22289         * doc/posix-functions/iswctype.texi: Mention the new module and the
22290         HP-UX 11.00 problem.
22291
22292 2011-02-06  Bruno Haible  <bruno@clisp.org>
22293
22294         New module 'wctype'.
22295         * modules/wctype: Change to represent the wctype() substitute.
22296         * lib/wctype.in.h (wctype): New declaration.
22297         * lib/wctype.c: New file.
22298         * lib/wctype-impl.h: New file.
22299         * m4/wctype.m4: New file.
22300         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22301         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22302         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22303         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22304         * doc/posix-functions/wctype.texi: Mention the new module and the
22305         HP-UX 11.00 problem.
22306
22307 2011-02-06  Bruno Haible  <bruno@clisp.org>
22308
22309         wctype-h: Ensure wctype_t and wctrans_t are defined.
22310         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22311         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22312         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22313         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22314         HAVE_WCTRANS_T.
22315         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22316
22317 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22318
22319         flock: fix license typo
22320
22321         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22322         omitted.
22323
22324 2011-02-08  Bruno Haible  <bruno@clisp.org>
22325
22326         Split large sed scripts, for HP-UX sed.
22327         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22328         to avoid HP-UX limit of 99 commands, in the near future.
22329         * modules/stdlib (Makefile.am): Likewise.
22330         * modules/unistd (Makefile.am): Likewise.
22331         * modules/wchar (Makefile.am): Likewise.
22332         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22333         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22335
22336 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22337             Bruno Haible  <bruno@clisp.org>
22338
22339         stdlib: improve random_r modularization
22340         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22341         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22342         you also need the random_r module to get this material right.
22343         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22344         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22345         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22346
22347 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22348
22349         stdlib: don't depend on stdint
22350         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22351         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22352         be independent of whether stdint.h is needed.
22353         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22354         here, instead of ...
22355         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22356         struct random_data should be using the random_r module, not just
22357         the stdlib module (which wouldn't make sense: what package needs
22358         just struct random_data without also needing random_r?).
22359         * modules/stdlib (Depends-on): Remove stdint.
22360
22361         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22362         See the thread rooted at
22363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22364         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22365         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22366         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22367         __VMS)); previously it was always included (via fcntl--.h).
22368         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22369         hand; this is good enough for load averages.  Also, do not use
22370         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22371         flags directly if available and don't bother otherwise.  (Packages
22372         that need the extra reliability should use the modules that define
22373         these flags on older platforms that lack them.)
22374         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22375         fcntl-safer.
22376
22377 2011-02-08  Jim Meyering  <meyering@redhat.com>
22378
22379         di-set.h, ino-map.h: add multiple-inclusion guard
22380         Technically, the guard is required only for ino-map.h, due to its
22381         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22382         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22383         * lib/ino-map.h: Likewise.
22384
22385 2011-02-06  Bruno Haible  <bruno@clisp.org>
22386
22387         iswblank: Ensure declaration on glibc systems.
22388         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22389         * modules/iswblank (Dependencies): Add 'extensions'.
22390         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22391
22392 2011-02-06  Bruno Haible  <bruno@clisp.org>
22393
22394         New module 'iswblank'.
22395         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22396         * modules/iswblank: New file.
22397         * modules/wctype-h (Files): Remove lib/iswblank.c.
22398         (Makefile.am): Substitute GNULIB_ISWBLANK.
22399         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22400         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22401         (gl_WCTYPE_H_DEFAULTS): New macro.
22402         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22403         * modules/iswblank-tests: New file.
22404         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22405         * tests/test-wctype-h.c (main): Remove iswblank tests.
22406         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22407         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22408         of 'wctype-h'.
22409         * NEWS: Mention the change.
22410         * modules/mbchar (Depends-on): Add iswblank.
22411
22412 2011-02-08  Bruno Haible  <bruno@clisp.org>
22413
22414         di-set tests: Refactor.
22415         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22416         unnecessary includes.
22417         (ASSERT): Remove macro.
22418         (main): Make C90 compliant by avoiding variable declaration after
22419         statement.
22420         * modules/di-set-tests (Files): Add tests/macros.h.
22421
22422 2011-02-08  Bruno Haible  <bruno@clisp.org>
22423
22424         ino-map tests: Refactor.
22425         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22426         unnecessary includes.
22427         (ASSERT): Remove macro.
22428         (main): Make C90 compliant by avoiding variable declaration after
22429         statement.
22430         * modules/ino-map-tests (Files): Add tests/macros.h.
22431
22432 2011-02-08  Jim Meyering  <meyering@redhat.com>
22433
22434         di-set: add "const" to a cast
22435         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22436         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22437
22438 2011-02-06  Bruno Haible  <bruno@clisp.org>
22439
22440         Rename module 'wctype' to 'wctype-h'.
22441         * modules/wctype-h: Renamed from modules/wctype.
22442         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22443         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22444         (Files, Depends-on, Makefile.am): Update.
22445         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22446         (Files, Makefile.am): Update.
22447         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22448         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22449         * doc/posix-headers/wctype.texi: Update.
22450         * doc/posix-functions/iswalnum.texi: Update.
22451         * doc/posix-functions/iswalpha.texi: Update.
22452         * doc/posix-functions/iswblank.texi: Update.
22453         * doc/posix-functions/iswcntrl.texi: Update.
22454         * doc/posix-functions/iswdigit.texi: Update.
22455         * doc/posix-functions/iswgraph.texi: Update.
22456         * doc/posix-functions/iswlower.texi: Update.
22457         * doc/posix-functions/iswprint.texi: Update.
22458         * doc/posix-functions/iswpunct.texi: Update.
22459         * doc/posix-functions/iswspace.texi: Update.
22460         * doc/posix-functions/iswupper.texi: Update.
22461         * doc/posix-functions/iswxdigit.texi: Update.
22462         * doc/posix-functions/towlower.texi: Update.
22463         * doc/posix-functions/towupper.texi: Update.
22464         * NEWS: Mention the change.
22465         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22466         * modules/mbchar (Dependencies): Likewise.
22467         * modules/mbswidth (Dependencies): Likewise.
22468         * modules/quotearg (Dependencies): Likewise.
22469         * modules/regex (Dependencies): Likewise.
22470         * modules/wcscasecmp (Dependencies): Likewise.
22471         * modules/wcsncasecmp (Dependencies): Likewise.
22472         * modules/wcwidth (Dependencies): Likewise.
22473
22474 2011-02-06  Bruno Haible  <bruno@clisp.org>
22475
22476         New module 'wcswidth'.
22477         * modules/wcswidth: New file.
22478         * lib/wchar.in.h (wcswidth): New declaration.
22479         * lib/wcswidth.c: New file.
22480         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22481         * m4/wcswidth.m4: New file.
22482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22484         REPLACE_WCSWIDTH.
22485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22486         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22487         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22488         * doc/posix-functions/wcswidth.texi: Mention the new module.
22489
22490 2011-02-06  Bruno Haible  <bruno@clisp.org>
22491
22492         New module 'wcstok'.
22493         * modules/wcstok: New file.
22494         * lib/wchar.in.h (wcstok): New declaration.
22495         * lib/wcstok.c: New file.
22496         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22497         * m4/wcstok.m4: New file.
22498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22501         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22502         * doc/posix-functions/wcstok.texi: Mention the new module.
22503
22504 2011-02-06  Bruno Haible  <bruno@clisp.org>
22505
22506         New module 'wcsstr'.
22507         * modules/wcsstr: New file.
22508         * lib/wchar.in.h (wcsstr): New declaration.
22509         * lib/wcsstr.c: New file.
22510         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22511         * m4/wcsstr.m4: New file.
22512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22515         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22516         * doc/posix-functions/wcsstr.texi: Mention the new module.
22517
22518 2011-02-06  Bruno Haible  <bruno@clisp.org>
22519
22520         New module 'wcspbrk'.
22521         * modules/wcspbrk: New file.
22522         * lib/wchar.in.h (wcspbrk): New declaration.
22523         * lib/wcspbrk.c: New file.
22524         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22525         * m4/wcspbrk.m4: New file.
22526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22529         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22530         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22531
22532 2011-02-06  Bruno Haible  <bruno@clisp.org>
22533
22534         New module 'wcsspn'.
22535         * modules/wcsspn: New file.
22536         * lib/wchar.in.h (wcsspn): New declaration.
22537         * lib/wcsspn.c: New file.
22538         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22539         * m4/wcsspn.m4: New file.
22540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22543         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22544         * doc/posix-functions/wcsspn.texi: Mention the new module.
22545
22546 2011-02-06  Bruno Haible  <bruno@clisp.org>
22547
22548         New module 'wcscspn'.
22549         * modules/wcscspn: New file.
22550         * lib/wchar.in.h (wcscspn): New declaration.
22551         * lib/wcscspn.c: New file.
22552         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22553         * m4/wcscspn.m4: New file.
22554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22557         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22558         * doc/posix-functions/wcscspn.texi: Mention the new module.
22559
22560 2011-02-06  Bruno Haible  <bruno@clisp.org>
22561
22562         New module 'wcsrchr'.
22563         * modules/wcsrchr: New file.
22564         * lib/wchar.in.h (wcsrchr): New declaration.
22565         * lib/wcsrchr.c: New file.
22566         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22567         * m4/wcsrchr.m4: New file.
22568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22571         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22572         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22573
22574 2011-02-06  Bruno Haible  <bruno@clisp.org>
22575
22576         New module 'wcschr'.
22577         * modules/wcschr: New file.
22578         * lib/wchar.in.h (wcschr): New declaration.
22579         * lib/wcschr.c: New file.
22580         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22581         * m4/wcschr.m4: New file.
22582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22585         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22586         * doc/posix-functions/wcschr.texi: Mention the new module.
22587
22588 2011-02-06  Bruno Haible  <bruno@clisp.org>
22589
22590         New module 'wcsdup'.
22591         * modules/wcsdup: New file.
22592         * lib/wchar.in.h (wcsdup): New declaration.
22593         * lib/wcsdup.c: New file.
22594         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22595         * m4/wcsdup.m4: New file.
22596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22599         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22600         * doc/posix-functions/wcsdup.texi: Mention the new module.
22601
22602 2011-02-06  Bruno Haible  <bruno@clisp.org>
22603
22604         New module 'wcsxfrm'.
22605         * modules/wcsxfrm: New file.
22606         * lib/wchar.in.h (wcsxfrm): New declaration.
22607         * lib/wcsxfrm.c: New file.
22608         * lib/wcsxfrm-impl.h: New file.
22609         * m4/wcsxfrm.m4: New file.
22610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22613         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22614         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22615
22616 2011-02-06  Bruno Haible  <bruno@clisp.org>
22617
22618         New module 'wcscoll'.
22619         * modules/wcscoll: New file.
22620         * lib/wchar.in.h (wcscoll): New declaration.
22621         * lib/wcscoll.c: New file.
22622         * lib/wcscoll-impl.h: New file.
22623         * m4/wcscoll.m4: New file.
22624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22627         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22628         * doc/posix-functions/wcscoll.texi: Mention the new module.
22629
22630 2011-02-06  Bruno Haible  <bruno@clisp.org>
22631
22632         New module 'wcsncasecmp'.
22633         * modules/wcsncasecmp: New file.
22634         * lib/wchar.in.h (wcsncasecmp): New declaration.
22635         * lib/wcsncasecmp.c: New file.
22636         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22637         * m4/wcsncasecmp.m4: New file.
22638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22641         HAVE_WCSNCASECMP.
22642         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22643         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22644
22645 2011-02-06  Bruno Haible  <bruno@clisp.org>
22646
22647         New module 'wcscasecmp'.
22648         * modules/wcscasecmp: New file.
22649         * lib/wchar.in.h (wcscasecmp): New declaration.
22650         * lib/wcscasecmp.c: New file.
22651         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22652         * m4/wcscasecmp.m4: New file.
22653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22656         HAVE_WCSCASECMP.
22657         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22658         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22659
22660 2011-02-05  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'wcsncmp'.
22663         * modules/wcsncmp: New file.
22664         * lib/wchar.in.h (wcsncmp): New declaration.
22665         * lib/wcsncmp.c: New file.
22666         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22667         * m4/wcsncmp.m4: New file.
22668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22671         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22672         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22673
22674 2011-02-05  Bruno Haible  <bruno@clisp.org>
22675
22676         New module 'wcscmp'.
22677         * modules/wcscmp: New file.
22678         * lib/wchar.in.h (wcscmp): New declaration.
22679         * lib/wcscmp.c: New file.
22680         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22681         * m4/wcscmp.m4: New file.
22682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22685         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22686         * doc/posix-functions/wcscmp.texi: Mention the new module.
22687
22688 2011-02-05  Bruno Haible  <bruno@clisp.org>
22689
22690         New module 'wcsncat'.
22691         * modules/wcsncat: New file.
22692         * lib/wchar.in.h (wcsncat): New declaration.
22693         * lib/wcsncat.c: New file.
22694         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22695         * m4/wcsncat.m4: New file.
22696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22699         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22700         * doc/posix-functions/wcsncat.texi: Mention the new module.
22701
22702 2011-02-05  Bruno Haible  <bruno@clisp.org>
22703
22704         New module 'wcscat'.
22705         * modules/wcscat: New file.
22706         * lib/wchar.in.h (wcscat): New declaration.
22707         * lib/wcscat.c: New file.
22708         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22709         * m4/wcscat.m4: New file.
22710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22713         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22714         * doc/posix-functions/wcscat.texi: Mention the new module.
22715
22716 2011-02-05  Bruno Haible  <bruno@clisp.org>
22717
22718         New module 'wcpncpy'.
22719         * modules/wcpncpy: New file.
22720         * lib/wchar.in.h (wcpncpy): New declaration.
22721         * lib/wcpncpy.c: New file.
22722         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22723         * m4/wcpncpy.m4: New file.
22724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22726         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22727         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22728         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22729
22730 2011-02-05  Bruno Haible  <bruno@clisp.org>
22731
22732         New module 'wcsncpy'.
22733         * modules/wcsncpy: New file.
22734         * lib/wchar.in.h (wcsncpy): New declaration.
22735         * lib/wcsncpy.c: New file.
22736         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22737         * m4/wcsncpy.m4: New file.
22738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22741         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22742         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22743
22744 2011-02-05  Bruno Haible  <bruno@clisp.org>
22745
22746         New module 'wcpcpy'.
22747         * modules/wcpcpy: New file.
22748         * lib/wchar.in.h (wcpcpy): New declaration.
22749         * lib/wcpcpy.c: New file.
22750         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22751         * m4/wcpcpy.m4: New file.
22752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22754         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22755         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22756         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22757
22758 2011-02-05  Bruno Haible  <bruno@clisp.org>
22759
22760         New module 'wcscpy'.
22761         * modules/wcscpy: New file.
22762         * lib/wchar.in.h (wcscpy): New declaration.
22763         * lib/wcscpy.c: New file.
22764         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22765         * m4/wcscpy.m4: New file.
22766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22769         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22770         * doc/posix-functions/wcscpy.texi: Mention the new module.
22771
22772 2011-02-05  Bruno Haible  <bruno@clisp.org>
22773
22774         New module 'wcsnlen'.
22775         * modules/wcsnlen: New file.
22776         * lib/wchar.in.h (wcsnlen): New declaration.
22777         * lib/wcsnlen.c: New file.
22778         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22779         * m4/wcsnlen.m4: New file.
22780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22783         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22784         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22785
22786 2011-02-05  Bruno Haible  <bruno@clisp.org>
22787
22788         New module 'wcslen'.
22789         * modules/wcslen: New file.
22790         * lib/wchar.in.h (wcslen): New declaration.
22791         * lib/wcslen.c: New file.
22792         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22793         * m4/wcslen.m4: New file.
22794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22797         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22798         * doc/posix-functions/wcslen.texi: Mention the new module.
22799
22800 2011-02-05  Bruno Haible  <bruno@clisp.org>
22801
22802         New module 'wmemset'.
22803         * modules/wmemset: New file.
22804         * lib/wchar.in.h (wmemset): New declaration.
22805         * lib/wmemset.c: New file.
22806         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22807         * m4/wmemset.m4: New file.
22808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22810         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22811         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22812         * doc/posix-functions/wmemset.texi: Mention the new module.
22813
22814 2011-02-05  Bruno Haible  <bruno@clisp.org>
22815
22816         New module 'wmemmove'.
22817         * modules/wmemmove: New file.
22818         * lib/wchar.in.h (wmemmove): New declaration.
22819         * lib/wmemmove.c: New file.
22820         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22821         * m4/wmemmove.m4: New file.
22822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22824         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22825         HAVE_WMEMMOVE.
22826         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22827         * doc/posix-functions/wmemmove.texi: Mention the new module.
22828
22829 2011-02-05  Bruno Haible  <bruno@clisp.org>
22830
22831         New module 'wmemcpy'.
22832         * modules/wmemcpy: New file.
22833         * lib/wchar.in.h (wmemcpy): New declaration.
22834         * lib/wmemcpy.c: New file.
22835         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22836         * m4/wmemcpy.m4: New file.
22837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22839         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22840         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22841         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22842
22843 2011-02-05  Bruno Haible  <bruno@clisp.org>
22844
22845         New module 'wmemcmp'.
22846         * modules/wmemcmp: New file.
22847         * lib/wchar.in.h (wmemcmp): New declaration.
22848         * lib/wmemcmp.c: New file.
22849         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22850         * m4/wmemcmp.m4: New file.
22851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22853         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22854         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22855         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22856
22857 2011-02-07  Jim Meyering  <meyering@redhat.com>
22858
22859         di-set, ino-map: new modules, from coreutils
22860         * lib/di-set.c: New file.
22861         * lib/di-set.h: Likewise.
22862         * lib/ino-map.c: Likewise.
22863         * lib/ino-map.h: Likewise.
22864         * modules/di-set: Likewise.
22865         * modules/di-set-tests: Likewise.
22866         * modules/ino-map: Likewise.
22867         * modules/ino-map-tests: Likewise.
22868         * tests/test-di-set.c: Likewise.
22869         * tests/test-ino-map.c: Likewise.
22870
22871 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22872
22873         getloadavg: merge minor changes from Emacs
22874
22875         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22876         (getloadavg): Use memset, not bzero.
22877
22878         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22879         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22880         clash (bug#86).
22881
22882 2010-11-14  Bruno Haible  <bruno@clisp.org>
22883
22884         Allow multiple gnulib generated replacements to coexist.
22885         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22886         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22887         * lib/langinfo.in.h (nl_item): Likewise.
22888         * lib/math.in.h (_NaN, NAN): Likewise.
22889         * lib/netdb.in.h (struct addrinfo): Likewise.
22890         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22891         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22892         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22893         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22894         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22895         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22896         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22897         pthread_mutexattr_init, pthread_mutexattr_settype,
22898         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22899         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22900         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22901         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22902         * lib/sched.in.h (struct sched_param): Likewise.
22903         * lib/se-selinux.in.h (security_class_t, security_context_t,
22904         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22905         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22906         lsetfilecon, fsetfilecon, security_check_context,
22907         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22908         Likewise.
22909         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22910         Likewise.
22911         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22912         _gl_function_taking_int_returning_void_t, union sigval,
22913         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22914         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22915         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22916         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22917         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22918         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22919         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22920         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22921         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22922         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22923         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22924         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22925         socklen_t, rpl_fd_isset): Likewise.
22926         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22927         * lib/sys_time.in.h (struct timeval): Likewise.
22928         * lib/sys_times.in.h (struct tms): Likewise.
22929         * lib/sys_utsname.in.h (struct utsname):
22930         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22931         * lib/unistd.in.h (getpagesize): Likewise.
22932         * lib/wchar.in.h (mbstate_t): Likewise.
22933         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22934         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22935         towlower, towupper): Likewise.
22936         Reported by Sam Steingold <sds@gnu.org>.
22937
22938 2011-02-05  Eric Blake  <eblake@redhat.com>
22939
22940         unsetenv: work around Haiku issues
22941         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22942         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22943
22944 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22945
22946         libposix: avoid calling error() within libposix
22947         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22948         is defined.
22949
22950 2011-02-05  Eric Blake  <eblake@redhat.com>
22951
22952         strerror_r-posix: port to cygwin
22953         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22954         implementation.
22955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22956         * tests/test-strerror_r.c (main): Fix test.
22957         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22958         issue.
22959
22960 2011-02-05  Bruno Haible  <bruno@clisp.org>
22961
22962         New module 'wmemchr'.
22963         * modules/wmemchr: New file.
22964         * lib/wchar.in.h (wmemchr): New declaration.
22965         * lib/wmemchr.c: New file.
22966         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22967         * m4/wmemchr.m4: New file.
22968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22970         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22971         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22972         * doc/posix-functions/wmemchr.texi: Mention the new module.
22973
22974 2011-02-04  Eric Blake  <eblake@redhat.com>
22975
22976         fdopendir: detect FreeBSD bug
22977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22978         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22979
22980 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22981
22982         stdbool: do not define HAVE_STDBOOL_H
22983         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22984         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22985         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22986         imported from the latest Autoconf git.  It was motivated by Emacs,
22987         which uses gnulib but does not need HAVE_STDBOOL_H.
22988
22989 2011-02-04  Bruno Haible  <bruno@clisp.org>
22990
22991         wcsnrtombs: Prepare for new module wwcsnrtombs.
22992         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22993         * lib/wcsnrtombs.c: Include it.
22994         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22995
22996         wcsrtombs: Prepare for new module wwcsrtombs.
22997         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22998         * lib/wcsrtombs.c: Include it.
22999         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23000
23001         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23002         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23003         * lib/mbsnrtowcs.c: Include it.
23004         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23005
23006         mbsrtowcs: Prepare for new module mbsrtowwcs.
23007         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23008         * lib/mbsrtowcs.c: Include it.
23009         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23010
23011 2011-02-04  Bruno Haible  <bruno@clisp.org>
23012
23013         vasnprintf: Reduce use of malloc for small format strings.
23014         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23015         (arguments): Add room for the first 7 arguments.
23016         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23017         (char_directives, u8_directives, u16_directives, u32_directives): Add
23018         room for the first 7 directives.
23019         * lib/printf-parse.c: Include <string.h>.
23020         (PRINTF_PARSE): Change memory handling code so that it uses the first
23021         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23022         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23023         Reported by Pádraig Brady <P@draigbrady.com>.
23024
23025 2011-01-31  Eric Blake  <eblake@redhat.com>
23026
23027         dup2: work around Haiku bug
23028         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23029         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23030         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23031         * tests/test-dup2.c (main): Enhance test.
23032
23033 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23034
23035         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23036         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23037         declared by eglibc 2.11.2.
23038         * lib/stdio.in.h: Likewise.
23039
23040 2011-01-31  Eric Blake  <eblake@redhat.com>
23041
23042         ignore-value: add missing test dependency
23043         * tests/test-ignore-value.c: Revert previous change; stdio.h
23044         provides off_t.
23045         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23046
23047 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23048
23049         mktime: clarify long_int width checking
23050         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23051         the top level, to make it clearer that the assumption about
23052         long_int width is being checked.  See
23053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23054
23055 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23056
23057         ignore-value: Fix self-test.
23058         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23059
23060 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23061
23062         TYPE_MAXIMUM: avoid theoretically undefined behavior
23063         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23064         negative number, which the C Standard says has undefined behavior.
23065         In practice this is not a problem, but might as well do it by the book.
23066         Reported by Rich Felker and Eric Blake; see
23067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23068         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23069         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23071         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23072         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23073         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23074
23075         mktime: #undef mktime before #defining it
23076         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23077
23078         mktime: systematically normalize tm_isdst comparisons
23079         * lib/mktime.c (isdst_differ): New function.
23080         (__mktime_internal): Use it systematically for all isdst comparisons.
23081         This completes the fix for libc BZ #6723, and removes the need for
23082         normalizing tm_isdst.  See
23083         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23084         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23085
23086         mktime: fix some integer overflow issues and sidestep the rest
23087
23088         This was prompted by a bug report by Benjamin Lindner for MinGW
23089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23090         His bug is due to signed integer overflow (0 - INT_MIN), and I
23091         I scanned through mktime.c looking for other integer overflow
23092         problems, fixing all the bugs I found.
23093
23094         Although the C Standard says the resulting code is still not safe
23095         in the presence of integer overflow, in practice it should be good
23096         enough for all real-world two's-complement implementations, except
23097         for debugging environments that deliberately trap on integer
23098         overflow (e.g., gcc -ftrapv).
23099
23100         * lib/mktime.c (WRAPV): New macro.
23101         (SHR): Also check that long_int and time_t shift right in the
23102         usual way, before using the fast-but-unportable method.
23103         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23104         used.  The code already assumed two's complement, so there's
23105         no need to test for alternatives.  All uses removed.
23106         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23107         the C standard.  Problem reported by Rich Felker in
23108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23109         (twos_complement_arithmetic): Also check long_int and time_t.
23110         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23111         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23112         (__mktime_internal): Avoid integer overflow with unary subtraction
23113         in two instances where -1 - X is an adequate replacement for -X,
23114         since the calculations are approximate.
23115
23116 2011-01-29  Eric Blake  <eblake@redhat.com>
23117
23118         mktime: avoid infinite loop
23119         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23120         type; behavior is still undefined but portable to all known targets.
23121         Reported by Rich Felker.
23122
23123 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23124
23125         rename, unlink, same-inode: Relicense.
23126         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23127         * modules/unlink (License): Likewise.
23128         * modules/same-inode (License): Likewise.
23129
23130 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         mktime: avoid problems on NetBSD 5 / i386
23133         * lib/mktime.c (long_int): New type.  This works around a problem
23134         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23135         but time_t is 64 bits, and where I expect the existing code is
23136         wrong in some cases.
23137         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23138         (ydhms_diff): Bring back the compile-time check for wide-enough
23139         year and yday.
23140
23141         mktime: fix misspelling in comment
23142         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23143         This merges all recent glibc changes of importance.
23144
23145 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23146
23147         move-if-change: cope with concurrent mv of identical file.
23148         * build-aux/move-if-change (CMPPROG): Accept environment
23149         variable as an override for `cmp'.
23150         (usage): Document CMPPROG.
23151         Adjust comparison to drop stdout.  Cope with failure of mv if
23152         the target file exists and is identical to the source, for
23153         parallel builds.
23154         Report from H.J. Lu against binutils in PR binutils/12283.
23155
23156 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23157
23158         * users.txt: Mention sharutils.
23159
23160 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23161
23162         * users.txt: Mention OATH Toolkit.
23163
23164 2011-01-27  Bruno Haible  <bruno@clisp.org>
23165
23166         Prepare for supporting FreeBSD 10.
23167         * build-aux/config.libpath: Remove handling of freebsd1*.
23168
23169 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23170
23171         Prepare for supporting FreeBSD 10.
23172         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23173         match FreeBSD 10.0.
23174
23175 2011-01-27  Bruno Haible  <bruno@clisp.org>
23176
23177         vma-iter, get-rusage-as: Add OpenBSD support.
23178         * modules/vma-iter (configure.ac): Test for mquery.
23179         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23180         * lib/vma-iter.c: Include <sys/mman.h>.
23181         (vma_iterate): Add an implementation based on mquery().
23182         * lib/resource-ext.h (get_rusage_as): Update comments.
23183         * lib/get-rusage-as.c: Likewise.
23184         * lib/get-rusage-data.c: Likewise.
23185
23186 2011-01-26  Karl Berry  <karl@gnu.org>
23187
23188         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23189         variables to make it easier to override the makeinfo program used.
23190
23191 2011-01-26  Eric Blake  <eblake@redhat.com>
23192
23193         fcntl: work around Haiku F_DUPFD bugs
23194         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23195         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23196         cloexec bit on duplication.
23197         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23198
23199 2011-01-26  Bruno Haible  <bruno@clisp.org>
23200
23201         Enable memory leak tests on AIX.
23202         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23203         * tests/test-fprintf-posix3.c (main): Likewise.
23204
23205 2011-01-26  Bruno Haible  <bruno@clisp.org>
23206
23207         Tests for module 'get-rusage-data'.
23208         * modules/get-rusage-data-tests: New file.
23209         * tests/test-get-rusage-data.c: New file.
23210
23211         New module 'get-rusage-data'.
23212         * lib/resource-ext.h (get_rusage_data): New declaration.
23213         * lib/get-rusage-data.c: New file.
23214         * modules/get-rusage-data: New file.
23215
23216 2011-01-25  Bruno Haible  <bruno@clisp.org>
23217
23218         get-rusage-as: Allow for easier testing.
23219         * lib/resource-ext.h (get_rusage_as): Add comment.
23220         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23221         (main): New function for interactive testing.
23222
23223 2011-01-25  Bruno Haible  <bruno@clisp.org>
23224
23225         vma-iter: Treat Haiku like BeOS.
23226         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23227         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23228
23229 2011-01-25  Eric Blake  <eblake@redhat.com>
23230
23231         c-stack: fix regression on cygwin when libsigsegv is present
23232         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23233
23234 2011-01-24  Bruno Haible  <bruno@clisp.org>
23235
23236         vma-iter: Avoid empty intervals.
23237         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23238         on an empty interval.
23239
23240 2011-01-24  Jim Meyering  <meyering@redhat.com>
23241
23242         u64: remove unnecessary #include
23243         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23244
23245 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23246
23247         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23248         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23249
23250 2011-01-23  Bruno Haible  <bruno@clisp.org>
23251
23252         New module 'vma-iter'.
23253         * lib/vma-iter.h: New file.
23254         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23255         * modules/vma-iter: New file.
23256         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23257         for get_rusage_as_via_iterator.
23258         (vma_iterate_callback): New function.
23259         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23260         * modules/get-rusage-as (Depends-on): Add vma-iter.
23261
23262 2011-01-23  Bruno Haible  <bruno@clisp.org>
23263
23264         uninorm: Tweak includes.
23265         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23266         Reported by Jim Meyering.
23267
23268 2011-01-23  Bruno Haible  <bruno@clisp.org>
23269
23270         get-rusage-as: Improve on NetBSD.
23271         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23272         /proc, like on FreeBSD.
23273
23274 2011-01-23  Jim Meyering  <meyering@redhat.com>
23275
23276         xreadlink.h: remove unnecessary #include
23277         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23278
23279         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23280         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23281
23282 2011-01-23  Bruno Haible  <bruno@clisp.org>
23283
23284         get-rusage-as: Fix bug.
23285         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23286         original limit when aborting the first loop.
23287
23288 2011-01-23  Bruno Haible  <bruno@clisp.org>
23289
23290         wctype: Ensure valid C syntax.
23291         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23292         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23293
23294 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23295
23296         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23298         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23299         as they are needed only for configure's test case.
23300         This removes two unnecessary symbols from config.h.
23301
23302         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23303         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23305         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23306         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23307         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23308         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23309         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23310         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23311         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23312         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23314         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23315         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23316         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23317         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23318         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23319         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23320
23321 2011-01-21  Eric Blake  <eblake@redhat.com>
23322
23323         maintainer-makefile: work with older git for submodule check
23324         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23325         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23326         Reported by Matthias Bolte.
23327
23328         bootstrap: minor portability fixes
23329         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23330         (usage): Omit leading capital and trailing . on help phrases, per
23331         GNU Coding Standards.
23332         (check_versions, top level): Prefix messages with script name.
23333
23334 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23335
23336         bootstrap: support --no-git option
23337         * build-aux/bootstrap: Add --no-git option, to be used when
23338         --gnulib-srcdir points to the exact desired checkout.
23339
23340 2011-01-21  Eric Blake  <eblake@redhat.com>
23341
23342         strerror_r-posix: work with glibc 2.13
23343         * lib/strerror_r.c (strerror_r): Fix return type.
23344
23345 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23346             Bruno Haible  <bruno@clisp.org>
23347
23348         uN_strstr: New unit tests.
23349         * modules/unistr/u8-strstr-tests: New file.
23350         * modules/unistr/u16-strstr-tests: New file.
23351         * modules/unistr/u32-strstr-tests: New file.
23352         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23353         * tests/unistr/test-u8-strstr.c: New file.
23354         * tests/unistr/test-u16-strstr.c: New file.
23355         * tests/unistr/test-u32-strstr.c: New file.
23356
23357 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23358             Bruno Haible  <bruno@clisp.org>
23359
23360         Make uN_strstr functions O(n) worst-case.
23361         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23362         16-bit and 32-bit unit cases, use the unibyte algorithm from
23363         lib/mbsstr.c.
23364         * lib/unistr/u8-strstr.c: Include <string.h>.
23365         (UNIT_IS_UINT8_T): New macro.
23366         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23367         (U_STRLEN, U_STRNLEN): New macros.
23368         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23369         (U_STRLEN, U_STRNLEN): New macros.
23370         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23371         (configure.ac): Update required libunistring version.
23372         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23373         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23374         malloca.
23375         (configure.ac): Update required libunistring version.
23376         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23377         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23378         malloca.
23379         (configure.ac): Update required libunistring version.
23380
23381 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23382             Bruno Haible  <bruno@clisp.org>
23383
23384         Prepare for faster uN_strstr functions.
23385         * lib/str-kmp.h: Support definable UNITs.
23386         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23387         needle_len argument.
23388         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23389         * lib/mbscasestr.c (mbscasestr): Likewise.
23390
23391 2011-01-21  Pádraig Brady <P@draigBrady.com>
23392
23393         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23394         * tests/test-malloca.c (main): Unset the environment variable
23395         to greatly speed up the test.
23396         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23397         * modules/malloca-tests: Depend on unsetenv.
23398
23399 2011-01-21  Pádraig Brady <P@draigBrady.com>
23400
23401         ignore-value: remove stdint dependency
23402         * lib/ignore-value.h: Remove <stdint.h>
23403         * modules/ignore-value: Remove stdint dependency.
23404
23405 2011-01-21  Jim Meyering  <meyering@redhat.com>
23406
23407         maint.mk: adjust variable name to be consistent with other gl_ vars
23408         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23409         to be lower case.
23410
23411 2011-01-20  Jim Meyering  <meyering@redhat.com>
23412
23413         maint.mk: make "check" depend on public-submodule-commit by default
23414         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23415
23416 2011-01-20  Bruno Haible  <bruno@clisp.org>
23417
23418         mbfile, mbiter: Complete change from 2008-12-21.
23419         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23420         * m4/mbiter.m4 (gl_MBITER): Likewise.
23421
23422 2011-01-20  Jim Meyering  <meyering@redhat.com>
23423
23424         init.sh: insert space between each function name and "()"
23425         * tests/init.sh: Make it a little easier to see that a function's
23426         name is "warn_", and not "warn" when looking at the first part of
23427         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23428
23429 2011-01-20  Jim Meyering  <meyering@redhat.com>
23430
23431         mountlist: clean up code formatting
23432         * lib/mountlist.c (read_file_system_list): Split a long line,
23433         correct bracing style, use NULL in place of "(struct statfs *)0",
23434         don't parenthesize return value, add spaces around "=" and after
23435         ";-in-for-stmt".
23436
23437 2011-01-14  Markus Duft <mduft@gentoo.org>
23438
23439         mountlist: add support for Interix
23440         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23441         Apply statvfs to all entries of /dev/fs.
23442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23443         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23444
23445 2011-01-20  Jim Meyering  <meyering@redhat.com>
23446
23447         maint.mk: improve the public-submodule-commit rule
23448         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23449         to suppress printing of its commands... unless V=1.
23450         Add git submodule's --quiet option to suppress printing of e.g.,
23451         "Entering gnulib" output.
23452         "cd" into $(srcdir) before running git submodule.
23453
23454 2011-01-20  Bruno Haible  <bruno@clisp.org>
23455
23456         include_next: Fix bug introduced on 2011-01-18.
23457         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23458         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23459         ac_cv_header_... variable if the second argument is not 'check'.
23460         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23461         gl_NEXT_HEADERS_INTERNAL.
23462
23463 2011-01-20  Bruno Haible  <bruno@clisp.org>
23464
23465         Allow the user to avoid the GNULIB_TEST_* macros.
23466         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23467         Suggested by Paul Eggert.
23468
23469 2011-01-14  Jim Meyering  <meyering@redhat.com>
23470
23471         bootstrap: avoid failure when there is no .gitmodules file
23472         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23473         has been assigned to, even when its value is the empty string.
23474         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23475         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23476         Reported by John W. Eaton <jwe@gnu.org>.
23477
23478 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23479
23480         assume <ctype.h>, ..., <time.h> exist
23481         For years gnulib has been assuming the existence of the headers
23482         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23483         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23484         them, since they don't appear to be needed.
23485         * README (Portability guidelines): Document this.
23486         * lib/flock.c: Assume <fcntl.h> exists.
23487         * lib/regex_internal.h: Assume <locale.h> exists.
23488         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23490         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23491         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23492         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23493         * m4/regex.m4 (gl_REGEX): Likewise.
23494         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23495         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23496         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23497         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23498         * tests/test-argp.c: Likewise.
23499         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23500
23501         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23502         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23503         AA_APPLE_UNIVERSAL_BUILD.  See
23504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23505         * NEWS: Document this.
23506
23507 2011-01-19  Eric Blake  <eblake@redhat.com>
23508
23509         c-stack: assume stack overflow if SA_SIGINFO unsupported
23510         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23511         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23512         sigaction will work.
23513         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23514         behavior match Linux.
23515         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23516
23517         stdbool-tests: accommodate Haiku
23518         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23519
23520         binary-io: fix O_TEXT on Haiku
23521         * modules/binary-io (Depends-on): Add fcntl-h.
23522         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23523         than blindly undefining O_TEXT.
23524         Reported by Scott McCreary.
23525
23526 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23527
23528         include_next: do not check for standard headers like stddef.h
23529
23530         I found this problem when modifying Emacs to use gnulib.
23531         I noticed that it added HAVE_STDDEF_H to config.h, even though
23532         gnulib always assumes <stddef.h> exists as per README and this
23533         symbol is unnecessary.
23534         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23535         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23536         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23537         faster for headers like stddef.h that are known to exist.
23538         (gl_CHECK_NEXT_HEADERS): Use it.
23539         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23540         rather than gl_CHECK_NEXT_HEADERS.
23541         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23542         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23543
23544 2011-01-18  Eric Blake  <eblake@redhat.com>
23545
23546         ansi-c++-opt: skip C++ dependency style if C++ is unused
23547         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23548         tests when we know C++ compilation is not desired.
23549         Reported by Scott McCreary.
23550
23551 2011-01-18  Bruno Haible  <bruno@clisp.org>
23552
23553         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23554         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23555         (main): Perform test also when getrlimit and setrlimit don't exist or
23556         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23557         limiting the address space size using setrlimit, compare the address
23558         space size before and after the the test.
23559         * tests/test-dprintf-posix2.c: Likewise.
23560         * tests/test-fprintf-posix3.sh: Update skip messages.
23561         * tests/test-dprintf-posix2.sh: Likewise.
23562         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23563         * modules/dprintf-posix-tests (Depends-on): Likewise.
23564         Reported by Bruce Korb <bkorb@gnu.org> and
23565         Gary V. Vaughan <gary@gnu.org>.
23566
23567 2011-01-18  Bruno Haible  <bruno@clisp.org>
23568
23569         get-rusage-as: Improvement for Cygwin.
23570         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23571         areas that are merely reserved.
23572
23573 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23574
23575         strftime: remove dependencies on multibyte modules
23576
23577         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23578         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23579         only if __osf__ is defined, and I suspect OSF doesn't need these
23580         other modules.  If my guess is wrong, we'll need to come up with a
23581         variant of strftime that doesn't need the multibyte modules.
23582
23583         I discovered this problem when attempting modify Emacs to use the
23584         strftime module.  With the previous gnulib, this caused Emacs to
23585         need 31 new files, ranging from lib/config.charset to
23586         m4/wint_t.m4.  This was overkill and I expect would be offputting
23587         to the Emacs maintainers.  After this change, only 6 new files are
23588         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23589         stdbool.m4, and tm_gmtoff.m4.
23590
23591         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23592         Suggested by Bruno Haible in
23593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23594         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23595         and do not check for wchar.h.
23596         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23597         (Depends-on): Remove mbrlen, mbsinit, wchar.
23598
23599 2011-01-18  Bruno Haible  <bruno@clisp.org>
23600
23601         Tests for module 'get-rusage-as'.
23602         * modules/get-rusage-as-tests: New file.
23603         * tests/test-get-rusage-as.c: New file.
23604
23605         New module 'get-rusage-as'.
23606         * modules/get-rusage-as: New file.
23607         * lib/resource-ext.h: New file.
23608         * lib/get-rusage-as.c: New file.
23609
23610 2011-01-17  Eric Blake  <eblake@redhat.com>
23611
23612         sigaction: relax license from LGPLv3+ to LGPLv2+
23613         * modules/sigaction (License): Relax to LGPLv2+.
23614
23615 2011-01-14  Bruno Haible  <bruno@clisp.org>
23616
23617         filemode: Make function declarations usable in C++ mode.
23618         * lib/filemode.h: Enclose function declarations in extern "C" block.
23619         Reported by John W. Eaton <jwe@gnu.org>.
23620
23621 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23622
23623         save-cwd: no longer include "xgetcwd.h"
23624         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23625         This avoids a compilation failure in projects that use save-cwd
23626         without also using the xgetcwd module.
23627
23628 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23629
23630         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23631         This is so that a program like Emacs, which needs only dtoastr,
23632         does not have to bother with distributing and compiling ftoastr
23633         and ldtoastr.
23634         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23635         * modules/dtoastr, modules/ldtoastr: New files.
23636         * modules/ftoastr: Now works just for 'float'.
23637         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23638         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23639         dtoastr.c, ldtoastr.c.
23640
23641 2011-01-11  Jim Meyering  <meyering@redhat.com>
23642
23643         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23644         There is no need to work around the lack of the fchdir function,
23645         since gnulib can now provide a replacement when required.
23646         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23647         * modules/save-cwd (Depends-on): Add fchdir.
23648
23649 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23650
23651         openat, save-cwd: avoid xmalloc
23652
23653         This removes a direct (but undocumented) dependency of openat on
23654         xalloc, along with an indirect dependency via save-cwd.  It also
23655         removes a dependency of save-cwd on xgetcwd, and thereby
23656         indirectly on xalloc.  This change causes the openat substitute
23657         to fall back on save_cwd when memory is tight, and for save_cwd to
23658         fail instead of dying when memory is tight, but that's good enough.
23659         Problem and initial idea for fix reported by Bastien Roucaries in
23660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23661
23662         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23663         xalloc.h (for xmalloc).
23664         (openat_proc_name): Use malloc, not xmalloc.
23665         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23666         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23667
23668         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23669         This avoids heap allocation for file names whose lengths are in
23670         the range 512..1023, with the upper bound increasing to at most
23671         4031 depending on the platform's PATH_MAX.  (We do not want
23672         pathmax.h here as it might supply a non-constant PATH_MAX.)
23673         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23674         Perhaps they should be moved to malloca.h?
23675         (OPENAT_BUFFER_SIZE): Use them.
23676
23677 2011-01-10  Bruno Haible  <bruno@clisp.org>
23678
23679         doc: Update users.txt.
23680         * users.txt: Add recutils.
23681
23682 2011-01-09  Karl Berry  <karl@gnu.org>
23683
23684         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23685
23686         * doc/configmake.texi: New file.
23687         * doc/gnulib.texi: Include it.
23688         * modules/configmake: Move documentation from here.
23689
23690 2011-01-09  Bruno Haible  <bruno@clisp.org>
23691
23692         Update to Unicode 6.0.0.
23693         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23694         (get_lbp): Update for Unicode 6.0.0.
23695         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23696         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23697         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23698         U+11001, U+11038..U+11046. Remove U+06DE.
23699         (uc_width): Fix bounds of planes.
23700         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23701         lib/uniwidth/width.c.
23702         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23703         trailing whitespace removed.
23704         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23705         without comments, but with the original copyright notice.
23706         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23707         * lib/unicase/ignorable.h: Likewise.
23708         * lib/unicase/tocasefold.h: Likewise.
23709         * lib/unicase/tolower.h: Likewise.
23710         * lib/unicase/totitle.h: Likewise.
23711         * lib/unicase/toupper.h: Likewise.
23712         * lib/unictype/bidi_of.h: Likewise.
23713         * lib/unictype/blocks.h: Likewise.
23714         * lib/unictype/categ_C.h: Likewise.
23715         * lib/unictype/categ_Cn.h: Likewise.
23716         * lib/unictype/categ_L.h: Likewise.
23717         * lib/unictype/categ_Ll.h: Likewise.
23718         * lib/unictype/categ_Lm.h: Likewise.
23719         * lib/unictype/categ_Lo.h: Likewise.
23720         * lib/unictype/categ_Lu.h: Likewise.
23721         * lib/unictype/categ_M.h: Likewise.
23722         * lib/unictype/categ_Mc.h: Likewise.
23723         * lib/unictype/categ_Me.h: Likewise.
23724         * lib/unictype/categ_Mn.h: Likewise.
23725         * lib/unictype/categ_N.h: Likewise.
23726         * lib/unictype/categ_Nd.h: Likewise.
23727         * lib/unictype/categ_No.h: Likewise.
23728         * lib/unictype/categ_P.h: Likewise.
23729         * lib/unictype/categ_Po.h: Likewise.
23730         * lib/unictype/categ_S.h: Likewise.
23731         * lib/unictype/categ_Sc.h: Likewise.
23732         * lib/unictype/categ_Sk.h: Likewise.
23733         * lib/unictype/categ_Sm.h: Likewise.
23734         * lib/unictype/categ_So.h: Likewise.
23735         * lib/unictype/categ_of.h: Likewise.
23736         * lib/unictype/combining.h: Likewise.
23737         * lib/unictype/ctype_alnum.h: Likewise.
23738         * lib/unictype/ctype_alpha.h: Likewise.
23739         * lib/unictype/ctype_graph.h: Likewise.
23740         * lib/unictype/ctype_lower.h: Likewise.
23741         * lib/unictype/ctype_print.h: Likewise.
23742         * lib/unictype/ctype_punct.h: Likewise.
23743         * lib/unictype/ctype_upper.h: Likewise.
23744         * lib/unictype/decdigit.h: Likewise.
23745         * lib/unictype/digit.h: Likewise.
23746         * lib/unictype/numeric.h: Likewise.
23747         * lib/unictype/pr_alphabetic.h: Likewise.
23748         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23749         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23750         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23751         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23752         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23753         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23754         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23755         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23756         * lib/unictype/pr_case_ignorable.h: Likewise.
23757         * lib/unictype/pr_cased.h: Likewise.
23758         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23759         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23760         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23761         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23762         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23763         * lib/unictype/pr_combining.h: Likewise.
23764         * lib/unictype/pr_composite.h: Likewise.
23765         * lib/unictype/pr_currency_symbol.h: Likewise.
23766         * lib/unictype/pr_decimal_digit.h: Likewise.
23767         * lib/unictype/pr_deprecated.h: Likewise.
23768         * lib/unictype/pr_format_control.h: Likewise.
23769         * lib/unictype/pr_grapheme_base.h: Likewise.
23770         * lib/unictype/pr_grapheme_extend.h: Likewise.
23771         * lib/unictype/pr_grapheme_link.h: Likewise.
23772         * lib/unictype/pr_id_continue.h: Likewise.
23773         * lib/unictype/pr_id_start.h: Likewise.
23774         * lib/unictype/pr_ideographic.h: Likewise.
23775         * lib/unictype/pr_lowercase.h: Likewise.
23776         * lib/unictype/pr_math.h: Likewise.
23777         * lib/unictype/pr_numeric.h: Likewise.
23778         * lib/unictype/pr_other_alphabetic.h: Likewise.
23779         * lib/unictype/pr_other_id_continue.h: Likewise.
23780         * lib/unictype/pr_other_math.h: Likewise.
23781         * lib/unictype/pr_punctuation.h: Likewise.
23782         * lib/unictype/pr_sentence_terminal.h: Likewise.
23783         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23784         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23785         * lib/unictype/pr_unified_ideograph.h: Likewise.
23786         * lib/unictype/pr_uppercase.h: Likewise.
23787         * lib/unictype/pr_xid_continue.h: Likewise.
23788         * lib/unictype/pr_xid_start.h: Likewise.
23789         * lib/unictype/scripts.h: Likewise.
23790         * lib/unictype/scripts_byname.gperf: Likewise.
23791         * lib/unictype/sy_java_ident.h: Likewise.
23792         * lib/unigbrk/gbrkprop.h: Likewise.
23793         * lib/unilbrk/lbrkprop1.h: Likewise.
23794         * lib/unilbrk/lbrkprop2.h: Likewise.
23795         * lib/uninorm/decomposition-table2.h: Likewise.
23796         * lib/uniwbrk/wbrkprop.h: Likewise.
23797         * tests/unicase/test-cased.c: Likewise.
23798         * tests/unicase/test-ignorable.c: Likewise.
23799         * tests/unicase/test-uc_tolower.c: Likewise.
23800         * tests/unicase/test-uc_totitle.c: Likewise.
23801         * tests/unicase/test-uc_toupper.c: Likewise.
23802         * tests/unictype/test-categ_C.c: Likewise.
23803         * tests/unictype/test-categ_Cn.c: Likewise.
23804         * tests/unictype/test-categ_L.c: Likewise.
23805         * tests/unictype/test-categ_Ll.c: Likewise.
23806         * tests/unictype/test-categ_Lm.c: Likewise.
23807         * tests/unictype/test-categ_Lo.c: Likewise.
23808         * tests/unictype/test-categ_Lu.c: Likewise.
23809         * tests/unictype/test-categ_M.c: Likewise.
23810         * tests/unictype/test-categ_Mc.c: Likewise.
23811         * tests/unictype/test-categ_Me.c: Likewise.
23812         * tests/unictype/test-categ_Mn.c: Likewise.
23813         * tests/unictype/test-categ_N.c: Likewise.
23814         * tests/unictype/test-categ_Nd.c: Likewise.
23815         * tests/unictype/test-categ_No.c: Likewise.
23816         * tests/unictype/test-categ_P.c: Likewise.
23817         * tests/unictype/test-categ_Po.c: Likewise.
23818         * tests/unictype/test-categ_S.c: Likewise.
23819         * tests/unictype/test-categ_Sc.c: Likewise.
23820         * tests/unictype/test-categ_Sk.c: Likewise.
23821         * tests/unictype/test-categ_Sm.c: Likewise.
23822         * tests/unictype/test-categ_So.c: Likewise.
23823         * tests/unictype/test-ctype_alnum.c: Likewise.
23824         * tests/unictype/test-ctype_alpha.c: Likewise.
23825         * tests/unictype/test-ctype_graph.c: Likewise.
23826         * tests/unictype/test-ctype_lower.c: Likewise.
23827         * tests/unictype/test-ctype_print.c: Likewise.
23828         * tests/unictype/test-ctype_punct.c: Likewise.
23829         * tests/unictype/test-ctype_upper.c: Likewise.
23830         * tests/unictype/test-decdigit.h: Likewise.
23831         * tests/unictype/test-digit.h: Likewise.
23832         * tests/unictype/test-numeric.h: Likewise.
23833         * tests/unictype/test-pr_alphabetic.c: Likewise.
23834         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23835         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23836         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23837         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23842         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23843         * tests/unictype/test-pr_cased.c: Likewise.
23844         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23845         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23846         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23847         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23848         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23849         * tests/unictype/test-pr_combining.c: Likewise.
23850         * tests/unictype/test-pr_composite.c: Likewise.
23851         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23852         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23853         * tests/unictype/test-pr_deprecated.c: Likewise.
23854         * tests/unictype/test-pr_format_control.c: Likewise.
23855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23858         * tests/unictype/test-pr_id_continue.c: Likewise.
23859         * tests/unictype/test-pr_id_start.c: Likewise.
23860         * tests/unictype/test-pr_ideographic.c: Likewise.
23861         * tests/unictype/test-pr_lowercase.c: Likewise.
23862         * tests/unictype/test-pr_math.c: Likewise.
23863         * tests/unictype/test-pr_numeric.c: Likewise.
23864         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23865         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23866         * tests/unictype/test-pr_other_math.c: Likewise.
23867         * tests/unictype/test-pr_punctuation.c: Likewise.
23868         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23869         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23870         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23871         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23872         * tests/unictype/test-pr_uppercase.c: Likewise.
23873         * tests/unictype/test-pr_xid_continue.c: Likewise.
23874         * tests/unictype/test-pr_xid_start.c: Likewise.
23875         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23876         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23877         changes.
23878         * lib/unictype/categ_Cc.h: Likewise.
23879         * lib/unictype/categ_Cf.h: Likewise.
23880         * lib/unictype/categ_Co.h: Likewise.
23881         * lib/unictype/categ_Cs.h: Likewise.
23882         * lib/unictype/categ_Lt.h: Likewise.
23883         * lib/unictype/categ_Nl.h: Likewise.
23884         * lib/unictype/categ_Pc.h: Likewise.
23885         * lib/unictype/categ_Pd.h: Likewise.
23886         * lib/unictype/categ_Pe.h: Likewise.
23887         * lib/unictype/categ_Pf.h: Likewise.
23888         * lib/unictype/categ_Pi.h: Likewise.
23889         * lib/unictype/categ_Ps.h: Likewise.
23890         * lib/unictype/categ_Z.h: Likewise.
23891         * lib/unictype/categ_Zl.h: Likewise.
23892         * lib/unictype/categ_Zp.h: Likewise.
23893         * lib/unictype/categ_Zs.h: Likewise.
23894         * lib/unictype/ctype_blank.h: Likewise.
23895         * lib/unictype/ctype_cntrl.h: Likewise.
23896         * lib/unictype/ctype_digit.h: Likewise.
23897         * lib/unictype/ctype_space.h: Likewise.
23898         * lib/unictype/ctype_xdigit.h: Likewise.
23899         * lib/unictype/mirror.h: Likewise.
23900         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23901         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23902         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23903         * lib/unictype/pr_bidi_control.h: Likewise.
23904         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23905         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23906         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23907         * lib/unictype/pr_bidi_pdf.h: Likewise.
23908         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23909         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23910         * lib/unictype/pr_dash.h: Likewise.
23911         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23912         * lib/unictype/pr_diacritic.h: Likewise.
23913         * lib/unictype/pr_extender.h: Likewise.
23914         * lib/unictype/pr_hex_digit.h: Likewise.
23915         * lib/unictype/pr_hyphen.h: Likewise.
23916         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23917         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23918         * lib/unictype/pr_ignorable_control.h: Likewise.
23919         * lib/unictype/pr_iso_control.h: Likewise.
23920         * lib/unictype/pr_join_control.h: Likewise.
23921         * lib/unictype/pr_left_of_pair.h: Likewise.
23922         * lib/unictype/pr_line_separator.h: Likewise.
23923         * lib/unictype/pr_logical_order_exception.h: Likewise.
23924         * lib/unictype/pr_non_break.h: Likewise.
23925         * lib/unictype/pr_not_a_character.h: Likewise.
23926         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23927         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23928         * lib/unictype/pr_other_id_start.h: Likewise.
23929         * lib/unictype/pr_other_lowercase.h: Likewise.
23930         * lib/unictype/pr_other_uppercase.h: Likewise.
23931         * lib/unictype/pr_paired_punctuation.h: Likewise.
23932         * lib/unictype/pr_paragraph_separator.h: Likewise.
23933         * lib/unictype/pr_pattern_syntax.h: Likewise.
23934         * lib/unictype/pr_pattern_white_space.h: Likewise.
23935         * lib/unictype/pr_private_use.h: Likewise.
23936         * lib/unictype/pr_quotation_mark.h: Likewise.
23937         * lib/unictype/pr_radical.h: Likewise.
23938         * lib/unictype/pr_soft_dotted.h: Likewise.
23939         * lib/unictype/pr_space.h: Likewise.
23940         * lib/unictype/pr_titlecase.h: Likewise.
23941         * lib/unictype/pr_variation_selector.h: Likewise.
23942         * lib/unictype/pr_white_space.h: Likewise.
23943         * lib/unictype/pr_zero_width.h: Likewise.
23944         * lib/unictype/sy_c_ident.h: Likewise.
23945         * lib/unictype/sy_c_whitespace.h: Likewise.
23946         * lib/unictype/sy_java_whitespace.h: Likewise.
23947         * lib/uninorm/composition-table.gperf: Likewise.
23948         * lib/uninorm/decomposition-table1.h: Likewise.
23949         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23950         LB8.
23951         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23952         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23953         * modules/unictype/*: Bump version number of expected libunistring
23954         version.
23955
23956 2011-01-09  Bruno Haible  <bruno@clisp.org>
23957
23958         Update to Unicode 5.2.0.
23959         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23960         trailing whitespace removed.
23961
23962 2011-01-09  Bruno Haible  <bruno@clisp.org>
23963
23964         New Unicode character properties, from Unicode 5.2.0.
23965         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23966         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23967         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23968         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23969         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23970         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23971         uc_is_property_cased, uc_is_property_case_ignorable,
23972         uc_is_property_changes_when_lowercased,
23973         uc_is_property_changes_when_uppercased,
23974         uc_is_property_changes_when_titlecased,
23975         uc_is_property_changes_when_casefolded,
23976         uc_is_property_changes_when_casemapped): New declarations.
23977         * lib/unictype/pr_byname.gperf: Add the new properties.
23978         * modules/unictype/property-byname (Depends-on): Depend on the new
23979         properties modules.
23980         * modules/unictype/property-all (Depends-on): Likewise.
23981         * MODULES.html.sh (Unicode string functions): Add
23982         unictype/property-case-ignorable, unictype/property-cased,
23983         unictype/property-changes-when-casefolded,
23984         unictype/property-changes-when-casemapped,
23985         unictype/property-changes-when-lowercased,
23986         unictype/property-changes-when-titlecased,
23987         unictype/property-changes-when-uppercased.
23988
23989         New module 'unictype/property-changes-when-casemapped'.
23990         * modules/unictype/property-changes-when-casemapped: New file.
23991         * lib/unictype/pr_changes_when_casemapped.c: New file.
23992         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23993         generated by gen-uni-tables.
23994         * modules/unictype/property-changes-when-casemapped-tests: New file.
23995         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23996         automatically generated by gen-uni-tables.
23997
23998         New module 'unictype/property-changes-when-casefolded'.
23999         * modules/unictype/property-changes-when-casefolded: New file.
24000         * lib/unictype/pr_changes_when_casefolded.c: New file.
24001         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24002         generated by gen-uni-tables.
24003         * modules/unictype/property-changes-when-casefolded-tests: New file.
24004         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24005         automatically generated by gen-uni-tables.
24006
24007         New module 'unictype/property-changes-when-titlecased'.
24008         * modules/unictype/property-changes-when-titlecased: New file.
24009         * lib/unictype/pr_changes_when_titlecased.c: New file.
24010         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24011         generated by gen-uni-tables.
24012         * modules/unictype/property-changes-when-titlecased-tests: New file.
24013         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24014         automatically generated by gen-uni-tables.
24015
24016         New module 'unictype/property-changes-when-uppercased'.
24017         * modules/unictype/property-changes-when-uppercased: New file.
24018         * lib/unictype/pr_changes_when_uppercased.c: New file.
24019         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24020         generated by gen-uni-tables.
24021         * modules/unictype/property-changes-when-uppercased-tests: New file.
24022         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24023         automatically generated by gen-uni-tables.
24024
24025         New module 'unictype/property-changes-when-lowercased'.
24026         * modules/unictype/property-changes-when-lowercased: New file.
24027         * lib/unictype/pr_changes_when_lowercased.c: New file.
24028         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24029         generated by gen-uni-tables.
24030         * modules/unictype/property-changes-when-lowercased-tests: New file.
24031         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24032         automatically generated by gen-uni-tables.
24033
24034         New module 'unictype/property-case-ignorable'.
24035         * modules/unictype/property-case-ignorable: New file.
24036         * lib/unictype/pr_case_ignorable.c: New file.
24037         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24038         by gen-uni-tables.
24039         * modules/unictype/property-case-ignorable-tests: New file.
24040         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24041         generated by gen-uni-tables.
24042
24043         New module 'unictype/property-cased'.
24044         * modules/unictype/property-cased: New file.
24045         * lib/unictype/pr_cased.c: New file.
24046         * lib/unictype/pr_cased.h: New file, automatically generated by
24047         gen-uni-tables.
24048         * modules/unictype/property-cased-tests: New file.
24049         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24050         gen-uni-tables.
24051
24052 2011-01-09  Bruno Haible  <bruno@clisp.org>
24053
24054         Update to Unicode 5.2.0.
24055         * lib/gen-uni-tables.c (output_predicate, output_category,
24056         output_combclass, output_bidi_category, output_decimal_digit_test,
24057         output_decimal_digit, output_digit_test, output_digit,
24058         output_numeric_test, output_numeric, output_mirror, output_scripts,
24059         output_scripts_byname, output_blocks, output_ident_category): Fix
24060         comment header.
24061         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24062         get_wbp.
24063         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24064         items.
24065         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24066         Changes_When_Lowercased, Changes_When_Uppercased,
24067         Changes_When_Titlecased, Changes_When_Casefolded,
24068         Changes_When_Casemapped.
24069         (is_property_alphabetic, is_property_default_ignorable_code_point):
24070         Update for Unicode 5.2.0.
24071         (is_property_cased, is_property_case_ignorable,
24072         is_property_changes_when_lowercased,
24073         is_property_changes_when_uppercased,
24074         is_property_changes_when_titlecased,
24075         is_property_changes_when_casefolded,
24076         is_property_changes_when_casemapped): New functions.
24077         (output_properties): Output also the properties cased, case_ignorable,
24078         changes_when_lowercased, changes_when_uppercased,
24079         changes_when_titlecased, changes_when_casefolded,
24080         changes_when_casemapped.
24081         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24082         Unicode TR#11 revision 17 -> 19.
24083         (LBP_CP): New enumeration value.
24084         (LBP_*): Adjust values accordingly.
24085         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24086         TR#14 revision 22 -> 24.
24087         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24088         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24089         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24090         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24091         is_WBP_MIDLETTER.
24092         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24093         the code1 and code2 of each composition rule.
24094         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24095         * lib/unicase/ignorable.h: Likewise.
24096         * lib/unicase/tocasefold.h: Likewise.
24097         * lib/unicase/tolower.h: Likewise.
24098         * lib/unicase/totitle.h: Likewise.
24099         * lib/unicase/toupper.h: Likewise.
24100         * lib/unictype/bidi_of.h: Likewise.
24101         * lib/unictype/blocks.h: Likewise.
24102         * lib/unictype/categ_C.h: Likewise.
24103         * lib/unictype/categ_Cf.h: Likewise.
24104         * lib/unictype/categ_Cn.h: Likewise.
24105         * lib/unictype/categ_L.h: Likewise.
24106         * lib/unictype/categ_Ll.h: Likewise.
24107         * lib/unictype/categ_Lm.h: Likewise.
24108         * lib/unictype/categ_Lo.h: Likewise.
24109         * lib/unictype/categ_Lu.h: Likewise.
24110         * lib/unictype/categ_M.h: Likewise.
24111         * lib/unictype/categ_Mc.h: Likewise.
24112         * lib/unictype/categ_Mn.h: Likewise.
24113         * lib/unictype/categ_N.h: Likewise.
24114         * lib/unictype/categ_Nd.h: Likewise.
24115         * lib/unictype/categ_Nl.h: Likewise.
24116         * lib/unictype/categ_No.h: Likewise.
24117         * lib/unictype/categ_P.h: Likewise.
24118         * lib/unictype/categ_Pd.h: Likewise.
24119         * lib/unictype/categ_Po.h: Likewise.
24120         * lib/unictype/categ_S.h: Likewise.
24121         * lib/unictype/categ_Sc.h: Likewise.
24122         * lib/unictype/categ_So.h: Likewise.
24123         * lib/unictype/categ_of.h: Likewise.
24124         * lib/unictype/combining.h: Likewise.
24125         * lib/unictype/ctype_alnum.h: Likewise.
24126         * lib/unictype/ctype_alpha.h: Likewise.
24127         * lib/unictype/ctype_graph.h: Likewise.
24128         * lib/unictype/ctype_lower.h: Likewise.
24129         * lib/unictype/ctype_print.h: Likewise.
24130         * lib/unictype/ctype_punct.h: Likewise.
24131         * lib/unictype/ctype_upper.h: Likewise.
24132         * lib/unictype/decdigit.h: Likewise.
24133         * lib/unictype/digit.h: Likewise.
24134         * lib/unictype/numeric.h: Likewise.
24135         * lib/unictype/pr_alphabetic.h: Likewise.
24136         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24137         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24138         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24139         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24140         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24141         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24142         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24143         * lib/unictype/pr_combining.h: Likewise.
24144         * lib/unictype/pr_composite.h: Likewise.
24145         * lib/unictype/pr_currency_symbol.h: Likewise.
24146         * lib/unictype/pr_dash.h: Likewise.
24147         * lib/unictype/pr_decimal_digit.h: Likewise.
24148         * lib/unictype/pr_deprecated.h: Likewise.
24149         * lib/unictype/pr_diacritic.h: Likewise.
24150         * lib/unictype/pr_extender.h: Likewise.
24151         * lib/unictype/pr_grapheme_base.h: Likewise.
24152         * lib/unictype/pr_grapheme_extend.h: Likewise.
24153         * lib/unictype/pr_grapheme_link.h: Likewise.
24154         * lib/unictype/pr_id_continue.h: Likewise.
24155         * lib/unictype/pr_id_start.h: Likewise.
24156         * lib/unictype/pr_ideographic.h: Likewise.
24157         * lib/unictype/pr_ignorable_control.h: Likewise.
24158         * lib/unictype/pr_logical_order_exception.h: Likewise.
24159         * lib/unictype/pr_lowercase.h: Likewise.
24160         * lib/unictype/pr_numeric.h: Likewise.
24161         * lib/unictype/pr_other_alphabetic.h: Likewise.
24162         * lib/unictype/pr_punctuation.h: Likewise.
24163         * lib/unictype/pr_sentence_terminal.h: Likewise.
24164         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24165         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24166         * lib/unictype/pr_unified_ideograph.h: Likewise.
24167         * lib/unictype/pr_uppercase.h: Likewise.
24168         * lib/unictype/pr_xid_continue.h: Likewise.
24169         * lib/unictype/pr_xid_start.h: Likewise.
24170         * lib/unictype/pr_zero_width.h: Likewise.
24171         * lib/unictype/scripts.h: Likewise.
24172         * lib/unictype/scripts_byname.gperf: Likewise.
24173         * lib/unictype/sy_java_ident.h: Likewise.
24174         * lib/unigbrk/gbrkprop.h: Likewise.
24175         * lib/unilbrk/lbrkprop1.h: Likewise.
24176         * lib/unilbrk/lbrkprop2.h: Likewise.
24177         * lib/unilbrk/lbrktables.h: Likewise.
24178         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24179         LBP_CP. Implement rule LB30.
24180         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24181         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24182         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24183         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24184         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24185         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24186         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24187         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24188         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24189         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24190         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24191         bits instead of 16 bits in the code1 and code2 of each composition
24192         rule.
24193         (uc_composition): Update for Unicode 5.2.0.
24194         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24195         * lib/uninorm/decomposition-table2.h: Likewise.
24196         * lib/uniwbrk/wbrkprop.h: Likewise.
24197         * tests/unicase/test-cased.c: Likewise.
24198         * tests/unicase/test-ignorable.c: Likewise.
24199         * tests/unicase/test-uc_tolower.c: Likewise.
24200         * tests/unicase/test-uc_totitle.c: Likewise.
24201         * tests/unicase/test-uc_toupper.c: Likewise.
24202         * tests/unictype/test-categ_C.c: Likewise.
24203         * tests/unictype/test-categ_Cf.c: Likewise.
24204         * tests/unictype/test-categ_Cn.c: Likewise.
24205         * tests/unictype/test-categ_L.c: Likewise.
24206         * tests/unictype/test-categ_Ll.c: Likewise.
24207         * tests/unictype/test-categ_Lm.c: Likewise.
24208         * tests/unictype/test-categ_Lo.c: Likewise.
24209         * tests/unictype/test-categ_Lu.c: Likewise.
24210         * tests/unictype/test-categ_M.c: Likewise.
24211         * tests/unictype/test-categ_Mc.c: Likewise.
24212         * tests/unictype/test-categ_Mn.c: Likewise.
24213         * tests/unictype/test-categ_N.c: Likewise.
24214         * tests/unictype/test-categ_Nd.c: Likewise.
24215         * tests/unictype/test-categ_Nl.c: Likewise.
24216         * tests/unictype/test-categ_No.c: Likewise.
24217         * tests/unictype/test-categ_P.c: Likewise.
24218         * tests/unictype/test-categ_Pd.c: Likewise.
24219         * tests/unictype/test-categ_Po.c: Likewise.
24220         * tests/unictype/test-categ_S.c: Likewise.
24221         * tests/unictype/test-categ_Sc.c: Likewise.
24222         * tests/unictype/test-categ_So.c: Likewise.
24223         * tests/unictype/test-ctype_alnum.c: Likewise.
24224         * tests/unictype/test-ctype_alpha.c: Likewise.
24225         * tests/unictype/test-ctype_graph.c: Likewise.
24226         * tests/unictype/test-ctype_lower.c: Likewise.
24227         * tests/unictype/test-ctype_print.c: Likewise.
24228         * tests/unictype/test-ctype_punct.c: Likewise.
24229         * tests/unictype/test-ctype_upper.c: Likewise.
24230         * tests/unictype/test-decdigit.h: Likewise.
24231         * tests/unictype/test-digit.h: Likewise.
24232         * tests/unictype/test-numeric.h: Likewise.
24233         * tests/unictype/test-pr_alphabetic.c: Likewise.
24234         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24235         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24236         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24237         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24238         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24239         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24240         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24241         * tests/unictype/test-pr_combining.c: Likewise.
24242         * tests/unictype/test-pr_composite.c: Likewise.
24243         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24244         * tests/unictype/test-pr_dash.c: Likewise.
24245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24246         * tests/unictype/test-pr_deprecated.c: Likewise.
24247         * tests/unictype/test-pr_diacritic.c: Likewise.
24248         * tests/unictype/test-pr_extender.c: Likewise.
24249         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24250         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24251         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24252         * tests/unictype/test-pr_id_continue.c: Likewise.
24253         * tests/unictype/test-pr_id_start.c: Likewise.
24254         * tests/unictype/test-pr_ideographic.c: Likewise.
24255         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24256         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24257         * tests/unictype/test-pr_lowercase.c: Likewise.
24258         * tests/unictype/test-pr_numeric.c: Likewise.
24259         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24260         * tests/unictype/test-pr_punctuation.c: Likewise.
24261         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24262         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24263         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24264         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24265         * tests/unictype/test-pr_uppercase.c: Likewise.
24266         * tests/unictype/test-pr_xid_continue.c: Likewise.
24267         * tests/unictype/test-pr_xid_start.c: Likewise.
24268         * tests/unictype/test-pr_zero_width.c: Likewise.
24269         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24270         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24271         changed behaviour: line breaking is now disallowed between a letter
24272         or '=' and '('.
24273         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24274         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24275         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24276         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24277         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24278         lib/uniwidth/width.c.
24279         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24280         without comments, but with the original copyright notice.
24281         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24282         changes.
24283         * lib/unictype/categ_Cc.h: Likewise.
24284         * lib/unictype/categ_Co.h: Likewise.
24285         * lib/unictype/categ_Cs.h: Likewise.
24286         * lib/unictype/categ_Lt.h: Likewise.
24287         * lib/unictype/categ_Me.h: Likewise.
24288         * lib/unictype/categ_Pc.h: Likewise.
24289         * lib/unictype/categ_Pe.h: Likewise.
24290         * lib/unictype/categ_Pf.h: Likewise.
24291         * lib/unictype/categ_Pi.h: Likewise.
24292         * lib/unictype/categ_Ps.h: Likewise.
24293         * lib/unictype/categ_Sk.h: Likewise.
24294         * lib/unictype/categ_Sm.h: Likewise.
24295         * lib/unictype/categ_Z.h: Likewise.
24296         * lib/unictype/categ_Zl.h: Likewise.
24297         * lib/unictype/categ_Zp.h: Likewise.
24298         * lib/unictype/categ_Zs.h: Likewise.
24299         * lib/unictype/ctype_blank.h: Likewise.
24300         * lib/unictype/ctype_cntrl.h: Likewise.
24301         * lib/unictype/ctype_digit.h: Likewise.
24302         * lib/unictype/ctype_space.h: Likewise.
24303         * lib/unictype/ctype_xdigit.h: Likewise.
24304         * lib/unictype/mirror.h: Likewise.
24305         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24306         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24307         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24308         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24309         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24310         * lib/unictype/pr_bidi_control.h: Likewise.
24311         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24312         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24313         * lib/unictype/pr_bidi_pdf.h: Likewise.
24314         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24315         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24316         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24317         * lib/unictype/pr_format_control.h: Likewise.
24318         * lib/unictype/pr_hex_digit.h: Likewise.
24319         * lib/unictype/pr_hyphen.h: Likewise.
24320         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24321         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24322         * lib/unictype/pr_iso_control.h: Likewise.
24323         * lib/unictype/pr_join_control.h: Likewise.
24324         * lib/unictype/pr_left_of_pair.h: Likewise.
24325         * lib/unictype/pr_line_separator.h: Likewise.
24326         * lib/unictype/pr_math.h: Likewise.
24327         * lib/unictype/pr_non_break.h: Likewise.
24328         * lib/unictype/pr_not_a_character.h: Likewise.
24329         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24330         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24331         * lib/unictype/pr_other_id_continue.h: Likewise.
24332         * lib/unictype/pr_other_id_start.h: Likewise.
24333         * lib/unictype/pr_other_lowercase.h: Likewise.
24334         * lib/unictype/pr_other_math.h: Likewise.
24335         * lib/unictype/pr_other_uppercase.h: Likewise.
24336         * lib/unictype/pr_paired_punctuation.h: Likewise.
24337         * lib/unictype/pr_paragraph_separator.h: Likewise.
24338         * lib/unictype/pr_pattern_syntax.h: Likewise.
24339         * lib/unictype/pr_pattern_white_space.h: Likewise.
24340         * lib/unictype/pr_private_use.h: Likewise.
24341         * lib/unictype/pr_quotation_mark.h: Likewise.
24342         * lib/unictype/pr_radical.h: Likewise.
24343         * lib/unictype/pr_soft_dotted.h: Likewise.
24344         * lib/unictype/pr_space.h: Likewise.
24345         * lib/unictype/pr_titlecase.h: Likewise.
24346         * lib/unictype/pr_variation_selector.h: Likewise.
24347         * lib/unictype/pr_white_space.h: Likewise.
24348         * lib/unictype/sy_c_ident.h: Likewise.
24349         * lib/unictype/sy_c_whitespace.h: Likewise.
24350         * lib/unictype/sy_java_whitespace.h: Likewise.
24351         * modules/uni*/*: Bump version number of expected libunistring version.
24352         Reported by Simon Josefsson.
24353
24354 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24355
24356         useless-if-before-free: fix typo in --help and make the internal,
24357         automatic version date update process work once again.
24358         --help output contained a NUL character instead of the
24359         backslash-zero that was intended.  Also, the "must lie within
24360         the first 8 lines" line is on line 9, and hence not getting
24361         automatically updated.
24362         * build-aux/useless-if-before-free: Fix the former by adding a
24363         backslash, and the latter by condensing the three lines of what-it-does
24364         to a single line, leaving one line of slack for the future.
24365
24366 2011-01-09  Bruno Haible  <bruno@clisp.org>
24367
24368         uniwidth/width: Fix width of U+1D173..U+1D17A.
24369         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24370         symbolic_width, output_width_property_test): New functions.
24371         (main): Invoke output_nonspacing_property, output_width_property_test.
24372         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24373         U+1D173..U+1D17A.
24374         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24375         1.
24376         * modules/uniwidth/*: Bump version number of expected libunistring
24377         version.
24378         * modules/unilbrk/*: Likewise.
24379
24380 2011-01-08  Bruno Haible  <bruno@clisp.org>
24381
24382         uninorm tests: Preserve copyright of Unicode data file.
24383         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24384         Mention modifications.
24385
24386 2011-01-08  Bruno Haible  <bruno@clisp.org>
24387
24388         gen-uni-tables: Prepare for Unicode 5.2.0.
24389         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24390         (debug_output_lbp, output_lbp): Update.
24391
24392 2011-01-08  Bruno Haible  <bruno@clisp.org>
24393
24394         unilbrk: Clarify gen-uni-tables.c code.
24395         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24396         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24397         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24398
24399 2011-01-07  Bruno Haible  <bruno@clisp.org>
24400
24401         strtod: Restore errno when successfully parsing Infinity or NaN.
24402         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24403         restore the original errno.
24404
24405 2011-01-07  Bruno Haible  <bruno@clisp.org>
24406
24407         remove test: Avoid failure on HP-UX 11.
24408         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24409
24410 2011-01-07  Bruno Haible  <bruno@clisp.org>
24411
24412         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24413         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24414         error code.
24415
24416 2011-01-07  Pádraig Brady <P@draigBrady.com>
24417
24418         ignore-value: fixup comments, and add Eric Blake
24419         as an author since he rewrote the macros.
24420         * lib/ignore-value.h (ignore_value):  State that
24421         we now support aggregates.  Also specify exactly
24422         when the GCC warn_unused_result feature was added.
24423
24424 2011-01-06  Eric Blake  <eblake@redhat.com>
24425
24426         ignore-value: support aggregate types
24427         * lib/ignore-value.h (ignore_value): Provide separate gcc
24428         definition.
24429         * modules/ignore-value-tests: New test module.
24430         * tests/test-ignore-value.c: New test.
24431
24432         maint.mk: improve sc_prohibit_strcmp regex
24433         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24434         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24435         definition of STRNEQ.
24436
24437         signal: work around Haiku issue with SIGBUS
24438         * lib/siglist.h: Add comment.
24439         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24440         strsignal's favoring of SIGSEGV.
24441         * tests/test-signal.c (main): Avoid test failure.
24442         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24443         Reported by Scott McCreary.
24444
24445         maint.mk: add pre-release check to ensure submodule commits are public
24446         * top/maint.mk (public-submodule-commit): New rule.
24447         (submodule-checks): New variable.
24448         (alpha beta stable): Depend on the variable.
24449
24450 2011-01-05  Pádraig Brady <P@draigBrady.com>
24451         and Jim Meyering  <meyering@redhat.com>
24452
24453         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24454         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24455         (ATTRIBUTE_DEPRECATED): Define.
24456         (_ignore_case): New function.
24457         (ignore_value): New macro, to replace the old function.
24458         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24459         * modules/ignore-value (Depends-on): Add stdint.
24460
24461 2011-01-04  Eric Blake  <eblake@redhat.com>
24462
24463         doc: regenerate INSTALL
24464         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24465         @firstparagraphindent support, now that autoconf dropped it.
24466         (INSTALL_PRELUDE): Reinstate old macro.
24467         * doc/install.texi: Resync from autoconf.
24468         * doc/INSTALL: Reflect recent autoconf update.
24469         * doc/INSTALL.ISO: Likewise.
24470         * doc/INSTALL.UTF-8: Likewise.
24471         Reported by Karl Berry.
24472
24473 2011-01-04  Bruce Korb  <address@hidden>
24474
24475         git-version-gen: avoid a sub-shell
24476         * build-aux/git-version-gen: Redirect stderr in `...` via
24477         "exec 2>...", rather than via an added sub-shell.
24478
24479 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24480
24481         git-version-gen: use (...) rather than sh -c '...'
24482         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24483         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24484
24485 2011-01-03  Jim Meyering  <meyering@redhat.com>
24486
24487         git-version-gen: convert leading TABs to spaces
24488         * build-aux/git-version-gen: Expand leading TABs.
24489
24490         git-version-gen: handle failed "git rev-list"
24491         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24492         from git and proceeding as if it had succeeded but printed no SHA1
24493         checksums, suppress the diagnostic and handle the failure.
24494         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24495
24496         git-version-gen: include command name in one more diagnostic
24497         * build-aux/git-version-gen: When the required .tarball-version file
24498         was missing or unreadable, you might see the diagnostic from "cat",
24499         but no trace of the name of the invoking script.  Now, you still see
24500         the diagnostic from cat, but also get one from "git-version-gen: ".
24501         Inspired by a patch from Bruce Korb.
24502
24503         update-copyright: adjust test to match changed code
24504         * tests/test-update-copyright.sh: Change test's expected output
24505         to match new actual output.
24506
24507 2011-01-02  Bruno Haible  <bruno@clisp.org>
24508
24509         getlogin_r: Avoid test failure on HP-UX 11.
24510         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24511         ERANGE when the second argument is zero.
24512         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24513         portability problem.
24514
24515 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24516
24517         * build-aux/update-copyright: doc Simon's changes
24518
24519 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24520
24521         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24522         environment variable.
24523
24524 2011-01-02  Bruno Haible  <bruno@clisp.org>
24525
24526         unigbrk: Avoid gcc warnings.
24527         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24528         unused variable.
24529         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24530         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24531         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24532         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24533         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24534         Change type of first argument to 'const char *'.
24535         (main): Remove unused variable.
24536         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24537         type of first argument to 'const char *'.
24538         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24539         Likewise.
24540         (main): Change type of variable 's'.
24541         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24542         to 'int'.
24543
24544 2011-01-02  Bruno Haible  <bruno@clisp.org>
24545
24546         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24547         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24548         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24549         bug.
24550         * lib/pwrite.c: Undo 2010-12-31 patch.
24551         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24552
24553 2011-01-02  Bruno Haible  <bruno@clisp.org>
24554
24555         pread: Fix test whether it works.
24556         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24557
24558 2011-01-02  Bruno Haible  <bruno@clisp.org>
24559
24560         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24561         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24562         ends in "6". Don't require a specific month name. Try also the locale
24563         names found on HP-UX 11 and Solaris 7.
24564
24565 2011-01-02  Bruno Haible  <bruno@clisp.org>
24566
24567         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24568         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24569         C linkage.
24570         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24571
24572 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24573
24574         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24575         for consistency, since the "cluster" term is not used elsewhere.
24576         * lib/unigbrk.in.h: Update name.
24577         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24578         * lib/unigbrk/u16-grapheme-next.c: Update name.
24579         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24580         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24581         * lib/unigbrk/u32-grapheme-next.c: Update name.
24582         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24583         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24584         * lib/unigbrk/u8-grapheme-next.c: Update name.
24585         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24586         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24587         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24588         Suggested by Bruno Haible.
24589
24590 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24591
24592         Remove module 'u8-grapheme-len' as too redundant with
24593         'u8-grapheme-next'.
24594         * modules/unigbrk/u8-grapheme-len: Delete file.
24595         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24596         * lib/unigbrk.in.h: Remove prototype for deleted function.
24597         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24598         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24599
24600         Remove module 'u16-grapheme-len' as too redundant with
24601         'u16-grapheme-next'.
24602         * modules/unigbrk/u16-grapheme-len: Delete file.
24603         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24604         * lib/unigbrk.in.h: Remove prototype for deleted function.
24605         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24606         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24607
24608         Remove module 'u32-grapheme-len' as too redundant with
24609         'u32-grapheme-next'.
24610         * modules/unigbrk/u32-grapheme-len: Delete file.
24611         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24612         * lib/unigbrk.in.h: Remove prototype for deleted function.
24613         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24614         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24615
24616         Suggested by Bruno Haible.
24617
24618 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24619
24620         * unigbrk.in.h: Fix typo: "ben" => "been".
24621         Reported by Bruno Haible.
24622
24623 2011-01-01  Jim Meyering  <meyering@redhat.com>
24624
24625         maint: update almost all copyright ranges to include 2011
24626         Run the new "make update-copyright" rule.
24627
24628 2011-01-01  Jim Meyering  <meyering@redhat.com>
24629
24630         maint: update-copyright: exempt doc/INSTALL*
24631         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24632         since they are generated.  Suggested by Bruno Haible.
24633
24634 2011-01-01  Jim Meyering  <meyering@redhat.com>
24635
24636         maint: refine the update-copyright rule
24637         * Makefile (update-copyright): Also exclude any file that includes
24638         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24639         code that merely generates the comment.
24640
24641 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24642
24643         New module 'u8-grapheme-len'.
24644         * modules/unigbrk/u8-grapheme-len: New file.
24645         * modules/unigbrk/u8-grapheme-len-tests: New file.
24646         * lib/unigbrk.in.h: Add prototype for new function.
24647         * lib/unigbrk/u8-grapheme-len.c: New file.
24648         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24649
24650         New module 'u16-grapheme-len'.
24651         * modules/unigbrk/u16-grapheme-len: New file.
24652         * modules/unigbrk/u16-grapheme-len-tests: New file.
24653         * lib/unigbrk.in.h: Add prototype for new function.
24654         * lib/unigbrk/u16-grapheme-len.c: New file.
24655         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24656
24657         New module 'u32-grapheme-len'.
24658         * modules/unigbrk/u32-grapheme-len: New file.
24659         * modules/unigbrk/u32-grapheme-len-tests: New file.
24660         * lib/unigbrk.in.h: Add prototype for new function.
24661         * lib/unigbrk/u32-grapheme-len.c: New file.
24662         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24663
24664         New module 'u8-grapheme-next'.
24665         * modules/unigbrk/u8-grapheme-next: New file.
24666         * modules/unigbrk/u8-grapheme-next-tests: New file.
24667         * lib/unigbrk.in.h: Add prototype for new function.
24668         * lib/unigbrk/u8-grapheme-next.c: New file.
24669         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24670
24671         New module 'u16-grapheme-next'.
24672         * modules/unigbrk/u16-grapheme-next: New file.
24673         * modules/unigbrk/u16-grapheme-next-tests: New file.
24674         * lib/unigbrk.in.h: Add prototype for new function.
24675         * lib/unigbrk/u16-grapheme-next.c: New file.
24676         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24677
24678         New module 'u32-grapheme-next'.
24679         * modules/unigbrk/u32-grapheme-next: New file.
24680         * modules/unigbrk/u32-grapheme-next-tests: New file.
24681         * lib/unigbrk.in.h: Add prototype for new function.
24682         * lib/unigbrk/u32-grapheme-next.c: New file.
24683         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24684
24685         New module 'u8-grapheme-prev'.
24686         * modules/unigbrk/u8-grapheme-prev: New file.
24687         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24688         * lib/unigbrk.in.h: Add prototype for new function.
24689         * lib/unigbrk/u8-grapheme-prev.c: New file.
24690         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24691
24692         New module 'u16-grapheme-prev'.
24693         * modules/unigbrk/u16-grapheme-prev: New file.
24694         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24695         * lib/unigbrk.in.h: Add prototype for new function.
24696         * lib/unigbrk/u16-grapheme-prev.c: New file.
24697         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24698
24699         New module 'u32-grapheme-prev'.
24700         * modules/unigbrk/u32-grapheme-prev: New file.
24701         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24702         * lib/unigbrk.in.h: Add prototype for new function.
24703         * lib/unigbrk/u32-grapheme-prev.c: New file.
24704         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24705
24706         New module 'u8-grapheme-breaks'.
24707         * modules/unigbrk/u8-grapheme-breaks: New file.
24708         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24709         * lib/unigbrk.in.h: Add prototype for new function.
24710         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24711         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24712
24713         New module 'u16-grapheme-breaks'.
24714         * modules/unigbrk/u16-grapheme-breaks: New file.
24715         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24716         * lib/unigbrk.in.h: Add prototype for new function.
24717         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24718         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24719
24720         New module 'u32-grapheme-breaks'.
24721         * modules/unigbrk/u32-grapheme-breaks: New file.
24722         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24723         * lib/unigbrk.in.h: Add prototype for new function.
24724         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24725         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24726
24727         New module 'ulc-grapheme-breaks'.
24728         * modules/unigbrk/ulc-grapheme-breaks: New file.
24729         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24730         * m4/locale-ar.m4: New file.
24731         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24732         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24733         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24734
24735 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24736
24737         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24738         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24739         modified how this file was generated before I initially submitted
24740         the module, but failed to regenerate it.  This meant that several
24741         of the level2 entries were wrong.
24742         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24743         Remove the division-by-2 that is folded into the table now that
24744         gbrkprop.h has been regenerated properly.  Now -1 entries are
24745         handled correctly.
24746
24747         New module 'unigbrk/uc-gbrk-prop-tests'.
24748         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24749         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24750         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24751         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24752
24753 2011-01-01  Bruno Haible  <bruno@clisp.org>
24754
24755         Avoid use of hexadecimal escapes.
24756         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24757         instead of hexadecimal escapes.
24758
24759 2011-01-01  Jim Meyering  <meyering@redhat.com>
24760
24761         maint: new rule to update copyright year ranges
24762         * Makefile (update-copyright): New rule.
24763
24764         maint: indent with TABs in Makefile
24765         * Makefile: Expand leading sequences of spaces to TABs
24766
24767         version-etc: update the copyright year it reports
24768         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24769
24770 2010-12-31  Bruno Haible  <bruno@clisp.org>
24771
24772         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24773         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24774         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24775         zero.
24776
24777 2010-12-31  Bruno Haible  <bruno@clisp.org>
24778
24779         pwrite: Work around HP-UX 11.11 bug.
24780         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24781         works and set REPLACE_PWRITE if not.
24782         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24783         function.
24784         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24785
24786 2010-12-31  Bruno Haible  <bruno@clisp.org>
24787
24788         pread: Work around HP-UX 11 bugs.
24789         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24790         and set REPLACE_PREAD if not.
24791         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24792
24793 2010-12-31  Eric Blake  <eblake@redhat.com>
24794
24795         nl_langinfo: fix YESEXPR on Irix 6.5
24796         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24797         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24798         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24799         it.
24800
24801 2010-12-31  Bruno Haible  <bruno@clisp.org>
24802
24803         iconv: Document HP-UX 11 bug.
24804         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24805
24806 2010-12-31  Bruno Haible  <bruno@clisp.org>
24807
24808         ldexpl: Fix link error on HP-UX 11.
24809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24810         LDEXPL_LIBM, using $ISNANL_LIBM.
24811
24812 2010-12-31  Eric Blake  <eblake@redhat.com>
24813
24814         ftello: avoid compilation failure with SunStudio c89
24815         * lib/ftello.c (ftello): Use lseek, not llseek.
24816
24817         tests: avoid failing coreutils tests on cygwin
24818         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24819         (create_exe_shims_): Return 0 when skipping.
24820
24821 2010-12-31  Bruno Haible  <bruno@clisp.org>
24822
24823         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24824         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24825
24826 2010-12-31  Bruno Haible  <bruno@clisp.org>
24827
24828         waitpid: Fix link error in C++ mode.
24829         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24830
24831 2010-12-31  Bruno Haible  <bruno@clisp.org>
24832
24833         isnan: Use GCC built-ins when possible.
24834         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24835         __builtin_isnan.
24836         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24837         (isnan): Define using GCC built-ins for GCC >= 4.0.
24838
24839 2010-12-31  Bruno Haible  <bruno@clisp.org>
24840
24841         isnand: Fix mistake.
24842         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24843         __builtin_isnand.
24844
24845 2010-12-31  Bruno Haible  <bruno@clisp.org>
24846
24847         open: Avoid C++ error on HP-UX 11.
24848         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24849
24850 2010-12-31  Bruno Haible  <bruno@clisp.org>
24851
24852         time_r: Add missing declarations on HP-UX 11.
24853         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24854         instead of HAVE_LOCALTIME_R.
24855         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24856         HAVE_LOCALTIME_R always.
24857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24858         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24859         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24860         HAVE_LOCALTIME_R.
24861         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24862         * doc/posix-functions/localtime_r.texi: Likewise.
24863
24864 2010-12-29  Eric Blake  <eblake@redhat.com>
24865
24866         mountlist: tweak previous commit
24867         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24868         Reported by Paul Eggert.
24869
24870         mountlist: fix local drive detection on cygwin
24871         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24872         that works for cygwin.
24873
24874 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24875
24876         ftoastr, snprintf: ftoastr + snprintf module
24877         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24878         since the snprintf module now should be good enough here.
24879         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24880         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24881         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24882         GNULIB_SNPRINTF only for the test directory, and the latter
24883         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24884         seems to suffice by itself.
24885
24886 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         alloca: one step towards thread-safety
24889         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24890         need for a static variable.  All callers changed.  This does not
24891         make the alloca replacement thread-safe, but it's one step.
24892
24893         tests: minor indenting change
24894         * tests/init.sh: Sync from coreutils housekeeping patch
24895         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24896         to keep lines within 80 columns.
24897
24898 2010-12-28  Jim Meyering  <meyering@redhat.com>
24899
24900         regex: don't infloop on persistent failing calloc
24901         * lib/regexec.c (build_trtable): Return failure indication upon
24902         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24903         In glibc, this was fixed for version 2.13:
24904         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24905
24906 2010-12-28  Bruno Haible  <bruno@clisp.org>
24907             Paul Eggert <eggert@cs.ucla.edu>
24908
24909         linkat: Make implementation robust against system behaviour variations.
24910         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24911         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24912         way, and to -2 if it needs a generic runtime test.
24913         * lib/linkat.c (solaris_optimized_link_immediate,
24914         solaris_optimized_link_follow): New functions.
24915         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24916         (check_same_link): Use it.
24917
24918 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24919
24920         New module 'unigbrk/base'.
24921         * modules/unigbrk/base: New file.
24922         * lib/unigbrk.in.h: New file.
24923
24924         New module 'unigbrk/uc-gbrk-prop'.
24925         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24926         * modules/unigbrk/uc-gbrk-prop: New file.
24927         * lib/unigbrk/gbrkprop.h: New file.
24928         * lib/unigbrk/uc-gbrk-prop.c: New file.
24929
24930         New module 'unigbrk/uc-is-grapheme-break'.
24931         * modules/unigbrk/uc-is-grapheme-break: New file.
24932         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24933         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24934         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24935         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24936         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24937
24938         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24939
24940 2010-12-27  Bruno Haible  <bruno@clisp.org>
24941
24942         linkat test: Avoid failure on Solaris 11 2010-11.
24943         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24944
24945 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24946
24947         utimens: work around glibc rounding bug on more platforms
24948         * lib/utimens.c (fdutimens): Work around rounding bug even if
24949         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24951
24952 2010-12-27  Bruno Haible  <bruno@clisp.org>
24953
24954         select tests: Improve comments.
24955         * tests/test-select.c (do_select): Add comments.
24956
24957 2010-12-27  Bruno Haible  <bruno@clisp.org>
24958
24959         select tests: Safer way of handling timeout.
24960         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24961         at every invocation.
24962
24963 2010-12-27  Bruno Haible  <bruno@clisp.org>
24964
24965         select tests: Use 'bool' where appropriate.
24966         * tests/test-select.c (connect_to_socket): Change argument type to
24967         'bool'.
24968
24969 2010-12-27  Bruno Haible  <bruno@clisp.org>
24970
24971         select tests: Use existing modules.
24972         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24973         (configure.ac): Don't test for unistd.h.
24974         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24975         declared in <unistd.h>.
24976
24977 2010-12-27  Bruno Haible  <bruno@clisp.org>
24978
24979         mbrtowc: Work around a Solaris 7 bug.
24980         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24981         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24982         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24983         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24984         MBRTOWC_NULL_ARG1_BUG.
24985         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24986         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24987         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24988         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24989
24990 2010-12-27  Jim Meyering  <meyering@redhat.com>
24991
24992         read-file.c: tweak syntax
24993         * lib/read-file.c (fread_file): Remove space after "*" in function
24994         definitions.
24995
24996 2010-12-27  Bruno Haible  <bruno@clisp.org>
24997
24998         times test: Avoid gcc warnings on OSF/1.
24999         * tests/test-times.c (main): Cast printf arguments from clock_t to
25000         'long int'.
25001
25002 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25003
25004         utimens: work around glibc rounding bug on older Linux kernels
25005         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25006         on Linux with a glibc whose utimes might not work, then work
25007         around a longstanding glibc bug involving rounding rather than
25008         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25010
25011 2010-12-26  Bruno Haible  <bruno@clisp.org>
25012
25013         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25014         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25015         _GL_CXXALIAS_SYS.
25016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25017
25018 2010-12-26  Bruno Haible  <bruno@clisp.org>
25019
25020         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25021         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25023         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25024         looking for the declaration.
25025         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25026         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25027         problem.
25028         * doc/posix-functions/inet_pton.texi: Likewise.
25029
25030 2010-12-26  Bruno Haible  <bruno@clisp.org>
25031
25032         arpa_inet: Use the common idioms with C++ support.
25033         * lib/arpa_inet.in.h: Include c++defs.h.
25034         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25035         support.
25036         * modules/arpa_inet (Depends-on): Add c++defs.
25037         (Makefile.am): Substitute the contents of c++defs.h.
25038         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25039         * modules/arpa_inet-c++-tests: New file.
25040         * tests/test-arpa_inet-c++.cc: New file.
25041
25042 2010-12-25  Bruno Haible  <bruno@clisp.org>
25043
25044         Fix more C++ link errors on Solaris 8.
25045         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25046         $(LIB_EACCESS).
25047         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25048         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25049         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25050         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25051         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25052
25053 2010-12-25  Bruno Haible  <bruno@clisp.org>
25054
25055         printf-posix: Fix link error when a non-GCC compiler is used.
25056         * lib/stdio.in.h (printf): When not using GCC, override printf
25057         correctly.
25058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25059
25060 2010-12-25  Bruno Haible  <bruno@clisp.org>
25061
25062         strerror_r-posix: Update doc.
25063         * doc/posix-functions/strerror_r.texi: Update doc about the return
25064         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25065
25066 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25067
25068         utimens: simplify the logic of the previous change
25069         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25070         This should not affect whether the test succeeds or fails.
25071
25072         utimens: configure better on hosts with NFS clock skew
25073         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25074         uses the clock of the local host.  It might use the clock of the
25075         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25077
25078 2010-12-25  Bruno Haible  <bruno@clisp.org>
25079
25080         ptsname test: Avoid failure on Solaris.
25081         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25082         open a pseudo-terminal; don't use BSD-style ptys.
25083         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25084
25085 2010-12-25  Bruno Haible  <bruno@clisp.org>
25086
25087         ptsname: Avoid ERANGE failure on some systems.
25088         * lib/ptsname.c (buffer): Increase size.
25089
25090 2010-12-25  Bruno Haible  <bruno@clisp.org>
25091
25092         rename, renameat: Avoid test failures at NFS mounted locations.
25093         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25094         so that subsequent mkdir calls succeed.
25095
25096 2010-12-25  Bruno Haible  <bruno@clisp.org>
25097
25098         iswblank: Fix C++ link error on Solaris 8.
25099         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25100         _GL_FUNCDECL_SYS.
25101
25102 2010-12-25  Bruno Haible  <bruno@clisp.org>
25103
25104         unistd: Fix C++ link error on Solaris 8.
25105         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25106
25107 2010-12-25  Bruno Haible  <bruno@clisp.org>
25108
25109         readlink doc: Mention an old glibc bug.
25110         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25111
25112 2010-12-25  Bruno Haible  <bruno@clisp.org>
25113
25114         fcntl-h: Fix for use of C++ on glibc systems.
25115         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25116         also on glibc systems in C++ mode.
25117         Reported by Gary V. Vaughan <gary@gnu.org>.
25118
25119 2010-12-25  Bruno Haible  <bruno@clisp.org>
25120
25121         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25122         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25123
25124 2010-12-25  Bruno Haible  <bruno@clisp.org>
25125
25126         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25127         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25128         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25129         test whether truncl works according to ISO C 99 with IEC 60559.
25130         * m4/truncl-ieee.m4: New file.
25131         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25132         m4/signbit.m4.
25133         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25134
25135 2010-12-25  Bruno Haible  <bruno@clisp.org>
25136
25137         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25138         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25139         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25140         test whether ceill works according to ISO C 99 with IEC 60559.
25141         * m4/ceill-ieee.m4: New file.
25142         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25143         m4/signbit.m4.
25144         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25145
25146 2010-12-25  Bruno Haible  <bruno@clisp.org>
25147
25148         Ensure all prerequisites of <wchar.h> are included.
25149         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25150         before <wchar.h>.
25151         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25152         gl_MBRLEN_NUL_RETVAL): Likewise.
25153         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25154         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25155         AC_FUNC_MBRTOWC): Likewise.
25156         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25157         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25159         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25160         Likewise.
25161         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25162         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25163         (gl_WCHAR_H): Improve comments.
25164         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25165
25166 2010-12-25  Bruno Haible  <bruno@clisp.org>
25167
25168         strtok_r: Fix C syntax error in autoconf macro.
25169         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25170         characters in test program.
25171
25172 2010-12-24  Bruno Haible  <bruno@clisp.org>
25173
25174         ceil, trunc, round: Fix gcc warnings.
25175         * lib/ceil.c (MIN): Undefine before redefining.
25176         * lib/trunc.c (MIN): Likewise.
25177         * lib/round.c (MIN): Likewise.
25178         Include <math.h> first.
25179
25180 2010-12-24  Bruno Haible  <bruno@clisp.org>
25181
25182         select tests: Avoid failures on OSF/1 5.1.
25183         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25184         failure of closing the last socket; it may fail with ECONNRESET.
25185
25186 2010-12-24  Eric Blake  <eblake@redhat.com>
25187
25188         stdint: avoid HP-UX 10.20 preprocessor bug
25189         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25190         than #if.
25191         * tests/test-floor2.c (main): Likewise.
25192         Reported by Peter O'Gorman.
25193
25194         pipe: make obsoletion transition easier
25195         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25196         * modules/pipe (Files): Include revived file.
25197         (Include): Drop reference, to mirror getdate's behavior.
25198
25199 2010-12-24  Bruno Haible  <bruno@clisp.org>
25200
25201         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25202         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25203         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25205
25206 2010-12-24  Bruno Haible  <bruno@clisp.org>
25207
25208         gethostname: Ensure declaration on NonStop Kernel.
25209         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25211
25212 2010-12-24  Bruno Haible  <bruno@clisp.org>
25213
25214         sys_select: Ensure all necessary types on NonStop Kernel.
25215         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25216         include <sys/time.h>.
25217         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25218         NonStop Kernel.
25219         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25220
25221 2010-12-24  Bruno Haible  <bruno@clisp.org>
25222
25223         sys_select: Remove unneeded include.
25224         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25225         have <sys/select.h>.
25226
25227 2010-12-24  Bruno Haible  <bruno@clisp.org>
25228
25229         gethostname: Provide a fallback for HOST_NAME_MAX.
25230         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25231         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25232         instead.
25233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25234
25235 2010-12-24  Bruno Haible  <bruno@clisp.org>
25236
25237         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25238         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25239         (SA_RESTART): Likewise.
25240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25241
25242 2010-12-24  Bruno Haible  <bruno@clisp.org>
25243
25244         signal: Define NSIG.
25245         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25246         * tests/test-signal.c (nsig): New variable.
25247         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25248
25249 2010-12-24  Bruno Haible  <bruno@clisp.org>
25250
25251         rename, renameat: Avoid test failures on OSF/1 5.1.
25252         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25253         alternative error codes.
25254         * tests/test-renameat.c (main): Likewise.
25255
25256 2010-12-24  Bruno Haible  <bruno@clisp.org>
25257
25258         *printf: Detect large precisions bug on Solaris 10/SPARC.
25259         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25260         by Paul Eggert.
25261         * tests/test-snprintf-posix.h (test_function): Add this test code here
25262         too.
25263         * tests/test-sprintf-posix.h (test_function): Likewise.
25264         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25265         * tests/test-vasprintf-posix.c (test_function): Likewise.
25266         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25267         around by gnulib.
25268         * doc/posix-functions/printf.texi: Likewise.
25269         * doc/posix-functions/snprintf.texi: Likewise.
25270         * doc/posix-functions/sprintf.texi: Likewise.
25271         * doc/posix-functions/vfprintf.texi: Likewise.
25272         * doc/posix-functions/vprintf.texi: Likewise.
25273         * doc/posix-functions/vsnprintf.texi: Likewise.
25274         * doc/posix-functions/vsprintf.texi: Likewise.
25275         * doc/posix-functions/dprintf.texi: Undo last commit.
25276         * doc/posix-functions/vdprintf.texi: Likewise.
25277
25278 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25279
25280         tests: port test-fdutimensat.c to Solaris 8
25281         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25282         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25283         On Solaris 8, it fails with errno == ENOSYS, because there is no
25284         futimens (so it can't use the fd), and there is no lutimens (so it
25285         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25286
25287         vsnprintf: make more consistent with snprintf; doc fixes
25288
25289         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25290         the byte count return problem was promoted from the snprintf-posix
25291         to the snprintf module.
25292         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25293         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25294         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25295         * tests/test-snprintf.c (main): Check the byte count returned.
25296         * tests/test-vsnprintf.c (main): Likewise.
25297
25298 2010-12-23  Eric Blake  <eblake@redhat.com>
25299
25300         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25301         * modules/sigpipe (License): Relax license.
25302
25303 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25304
25305         doc: document Solaris printf bug with large float precisions
25306         * doc/posix-functions/dprintf.texi (dprintf):
25307         * doc/posix-functions/fprintf.texi (fprintf):
25308         * doc/posix-functions/printf.texi (printf):
25309         * doc/posix-functions/snprintf.texi (snprintf):
25310         * doc/posix-functions/sprintf.texi (sprintf):
25311         * doc/posix-functions/vdprintf.texi (vdprintf):
25312         * doc/posix-functions/vfprintf.texi (vfprintf):
25313         * doc/posix-functions/vprintf.texi (vprintf):
25314         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25315         * doc/posix-functions/vsprintf.texi (vsprintf):
25316         Mention that these functions mishandle large floating point
25317         precisions on Solaris 10.  The same bug is also present in Solaris
25318         8, and I assume earlier.  This causes "cd gnulib-tests; make
25319         check" to fail on Solaris 8 (and I assume, later) when building
25320         the latest coreutils, in test-vasprintf-posix's call to
25321         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25322         the wide flavors (e.g., wprintf) so this patch just updates the
25323         documentation for the narrow ones.
25324
25325         test-posixtm.c: add two tests
25326         * tests/test-posixtm.c: Add two tests, to highlight the
25327         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25328         around this bug; this is merely to document it.
25329
25330 2010-12-22  Bruno Haible  <bruno@clisp.org>
25331
25332         getlogin_r: Work around portability problem on OSF/1.
25333         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25334         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25335         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25336         test for a truncated result.
25337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25338         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25339         * modules/getlogin_r (Depends-on): Add memchr.
25340         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25341
25342 2010-12-22  Bruno Haible  <bruno@clisp.org>
25343
25344         ptsname: Avoid test failure on OSF/1 5.1.
25345         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25346         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25347         (same_slave): New function.
25348         (main): Use it to compare ptsname's result with the expected file name.
25349
25350 2010-12-22  Bruno Haible  <bruno@clisp.org>
25351
25352         Port extended stdio modules to HP NonStop Kernel.
25353         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25354         macros.
25355         * lib/fbufmode.c: Update comments.
25356         * lib/fflush.c: Likewise.
25357         * lib/fpurge.c: Likewise.
25358         * lib/freadable.c: Likewise.
25359         * lib/freadahead.c: Likewise.
25360         * lib/freading.c: Likewise.
25361         * lib/freadptr.c: Likewise.
25362         * lib/freadseek.c: Likewise.
25363         * lib/fseeko.c: Likewise.
25364         * lib/fseterr.c: Likewise.
25365         * lib/fwritable.c: Likewise.
25366         * lib/fwriting.c: Likewise.
25367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25368
25369 2010-12-22  Bruno Haible  <bruno@clisp.org>
25370
25371         ttyname_r: Work around bug on OSF/1 5.1.
25372         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25373         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25374         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25375         present.
25376         * lib/ttyname_r.c (ttyname_r): Update comments.
25377
25378 2010-12-22  Bruno Haible  <bruno@clisp.org>
25379
25380         round: Implement result sign according to IEEE 754.
25381         * lib/round.c (MIN, MINUS_ZERO): New macros.
25382         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25383         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25384         * tests/test-round-ieee.c (main): Likewise.
25385         * tests/test-roundl-ieee.c (main): Likewise.
25386
25387         trunc: Implement result sign according to IEEE 754.
25388         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25389         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25390         * tests/test-trunc2.c: Include minus-zero.h.
25391         (MINUS_ZERO): New macro.
25392         (trunc_reference): Keep in sync with lib/trunc.c.
25393         * tests/test-truncf2.c: Include minus-zero.h.
25394         (MINUS_ZERO): New macro.
25395         (truncf_reference): Keep in sync with lib/trunc.c.
25396         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25397         * tests/test-trunc-ieee.c (main): Likewise.
25398         * tests/test-truncl-ieee.c (main): Likewise.
25399
25400         ceil: Implement result sign according to IEEE 754.
25401         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25402         (FUNC): Return -0.0 for -1 < x < 0.
25403         * tests/test-ceil2.c: Include minus-zero.h.
25404         (MINUS_ZERO): New macro.
25405         (ceil_reference): Keep in sync with lib/ceil.c.
25406         * tests/test-ceilf2.c: Include minus-zero.h.
25407         (MINUS_ZERO): New macro.
25408         (ceilf_reference): Keep in sync with lib/ceil.c.
25409         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25410         * tests/test-ceil-ieee.c (main): Likewise.
25411         * tests/test-ceill-ieee.c (main): Likewise.
25412
25413         floor: Implement result sign according to IEEE 754.
25414         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25415         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25416         * tests/test-floorf2.c (floorf_reference): Likewise.
25417         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25418         * tests/test-floor-ieee.c (main): Likewise.
25419         * tests/test-floorl-ieee.c (main): Likewise.
25420
25421 2010-12-22  Bruno Haible  <bruno@clisp.org>
25422
25423         getaddrinfo: Update doc.
25424         * doc/posix-functions/gai_strerror.texi: Return type is also different
25425         on AIX and HP-UX.
25426
25427 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         getaddrinfo, inet_ntop: Update doc for Solaris.
25430         * doc/posix-functions/gai_strerror.texi: Return type is also an
25431         issue on Solaris 9 and earlier.
25432         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25433         on Solaris 10 and earlier.
25434
25435 2010-12-21  Bruno Haible  <bruno@clisp.org>
25436
25437         New module 'roundl-ieee'.
25438         * modules/roundl-ieee: New file.
25439         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25440         test whether roundl works according to ISO C 99 with IEC 60559.
25441         * m4/roundl-ieee.m4: New file.
25442         * modules/roundl-ieee-tests: New file.
25443         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25444         * tests/test-roundl.c (main): Remove signbit tests.
25445         * modules/roundl-tests (Depends-on): Remove signbit.
25446         * doc/posix-functions/roundl.texi: Mention the new module.
25447
25448 2010-12-21  Bruno Haible  <bruno@clisp.org>
25449
25450         New module 'truncl-ieee'.
25451         * modules/truncl-ieee: New file.
25452         * modules/truncl-ieee-tests: New file.
25453         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25454         * tests/test-truncl.c (main): Remove signbit tests.
25455         * modules/truncl-tests (Depends-on): Remove signbit.
25456         * doc/posix-functions/truncl.texi: Mention the new module.
25457
25458 2010-12-21  Bruno Haible  <bruno@clisp.org>
25459
25460         New module 'ceill-ieee'.
25461         * modules/ceill-ieee: New file.
25462         * modules/ceill-ieee-tests: New file.
25463         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25464         * tests/test-ceill.c (main): Remove signbit tests.
25465         * modules/ceill-tests (Depends-on): Remove signbit.
25466         * doc/posix-functions/ceill.texi: Mention the new module.
25467
25468 2010-12-21  Bruno Haible  <bruno@clisp.org>
25469
25470         New module 'floorl-ieee'.
25471         * modules/floorl-ieee: New file.
25472         * modules/floorl-ieee-tests: New file.
25473         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25474         * tests/test-floorl.c (main): Remove signbit tests.
25475         * modules/floorl-tests (Depends-on): Remove signbit.
25476         * doc/posix-functions/floorl.texi: Mention the new module.
25477
25478 2010-12-21  Bruno Haible  <bruno@clisp.org>
25479
25480         New module 'round-ieee'.
25481         * modules/round-ieee: New file.
25482         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25483         whether round works according to ISO C 99 with IEC 60559.
25484         * m4/round-ieee.m4: New file.
25485         * modules/round-ieee-tests: New file.
25486         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25487         * tests/test-round1.c (main): Remove signbit tests.
25488         * modules/round-tests (Depends-on): Remove 'signbit'.
25489         * doc/posix-functions/round.texi: Mention the new module.
25490
25491 2010-12-21  Bruno Haible  <bruno@clisp.org>
25492
25493         New module 'trunc-ieee'.
25494         * modules/trunc-ieee: New file.
25495         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25496         whether trunc works according to ISO C 99 with IEC 60559.
25497         * m4/trunc-ieee.m4: New file.
25498         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25500         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25501         * modules/trunc-ieee-tests: New file.
25502         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25503         * tests/test-trunc1.c (main): Remove signbit tests.
25504         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25505         * doc/posix-functions/trunc.texi: Mention the new module.
25506
25507 2010-12-21  Bruno Haible  <bruno@clisp.org>
25508
25509         New module 'ceil-ieee'.
25510         * modules/ceil-ieee: New file.
25511         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25512         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25513         ISO C 99 with IEC 60559.
25514         * m4/ceil-ieee.m4: New file.
25515         * modules/ceil (Files): Add lib/ceil.c.
25516         (Depends-on): Add 'float'.
25517         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25518         * lib/math.in.h (ceil): New declaration.
25519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25520         REPLACE_CEIL.
25521         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25522         * modules/ceil-ieee-tests: New file.
25523         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25524         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25525         * doc/posix-functions/ceil.texi: Mention the new module.
25526
25527 2010-12-21  Bruno Haible  <bruno@clisp.org>
25528
25529         New module 'floor-ieee'.
25530         * modules/floor-ieee: New file.
25531         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25532         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25533         ISO C 99 with IEC 60559.
25534         * m4/floor-ieee.m4: New file.
25535         * modules/floor (Files): Add lib/floor.c.
25536         (Depends-on): Add 'float'.
25537         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25538         * lib/math.in.h (floor): New declaration.
25539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25540         REPLACE_FLOOR.
25541         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25542         * modules/floor-ieee-tests: New file.
25543         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25544         * tests/test-math-c++.cc: Check the signature of 'floor'.
25545         * doc/posix-functions/floor.texi: Mention the new module.
25546
25547 2010-12-21  Bruno Haible  <bruno@clisp.org>
25548
25549         New module 'roundf-ieee'.
25550         * modules/roundf-ieee: New file.
25551         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25552         test whether roundf works according to ISO C 99 with IEC 60559.
25553         * m4/roundf-ieee.m4: New file.
25554         * modules/roundf-ieee-tests: New file.
25555         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25556         * tests/test-roundf1.c (main): Remove signbit tests.
25557         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25558         * doc/posix-functions/roundf.texi: Mention the new module.
25559
25560 2010-12-21  Bruno Haible  <bruno@clisp.org>
25561
25562         New module 'truncf-ieee'.
25563         * modules/truncf-ieee: New file.
25564         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25565         test whether truncf works according to ISO C 99 with IEC 60559.
25566         * m4/truncf-ieee.m4: New file.
25567         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25569         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25570         * modules/truncf-ieee-tests: New file.
25571         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25572         * tests/test-truncf1.c (main): Remove signbit tests.
25573         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25574         * doc/posix-functions/truncf.texi: Mention the new module.
25575
25576 2010-12-21  Bruno Haible  <bruno@clisp.org>
25577
25578         New module 'ceilf-ieee'.
25579         * modules/ceilf-ieee: New file.
25580         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25581         test whether ceilf works according to ISO C 99 with IEC 60559.
25582         * m4/ceilf-ieee.m4: New file.
25583         * modules/ceilf-ieee-tests: New file.
25584         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25585         * tests/test-ceilf1.c (main): Remove signbit tests.
25586         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25587         * doc/posix-functions/ceilf.texi: Mention the new module.
25588
25589 2010-12-21  Bruno Haible  <bruno@clisp.org>
25590
25591         New module 'floorf-ieee'.
25592         * modules/floorf-ieee: New file.
25593         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25594         test whether floorf works according to ISO C 99 with IEC 60559.
25595         * m4/floorf-ieee.m4: New file.
25596         * modules/floorf-ieee-tests: New file.
25597         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25598         * tests/test-floorf1.c (main): Remove signbit tests.
25599         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25600         * doc/posix-functions/floorf.texi: Mention the new module.
25601
25602 2010-12-21  Bruno Haible  <bruno@clisp.org>
25603
25604         Support for minus zero in autoconf macros.
25605         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25606         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25607         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25608         * tests/minus-zero.h: Update comments.
25609
25610 2010-12-21  Bruno Haible  <bruno@clisp.org>
25611
25612         Tests for module 'ceil'.
25613         * modules/ceil-tests: New file.
25614         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25615         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25616
25617 2010-12-21  Bruno Haible  <bruno@clisp.org>
25618
25619         Tests for module 'floor'.
25620         * modules/floor-tests: New file.
25621         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25622         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25623
25624 2010-12-21  Bruno Haible  <bruno@clisp.org>
25625
25626         math: Fix indentation.
25627         * lib/math.in.h (floorf): Fix indentation.
25628
25629 2010-12-21  Bruno Haible  <bruno@clisp.org>
25630
25631         Fix cross-compilation guesses on Solaris.
25632         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25633         not match "solaris2.10".
25634         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25635         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25636         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25637
25638 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25639
25640         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25641         This fixes a problem observed with the latest coreutils snapshot
25642         that caused a test to fail on Solaris 8.  src/csplit.c's call
25643         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25644         earlier, instead of returning the number of bytes that would have
25645         been generated; this causes csplit to incorrectly report memory
25646         exhaustion.
25647         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25648         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25649         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25650         comments to match.
25651         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25652         Fix typo in matching older versions of Solaris: "solaris2.10"
25653         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25654         only for guessing while cross-compiling.
25655         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25656
25657 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25658
25659         ftoastr: fix comment again
25660         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25662         Also, simplify example a bit by using flags = 0.
25663
25664 2010-12-20  Bruno Haible  <bruno@clisp.org>
25665
25666         round*, trunc*: Update documentation regarding glibc.
25667         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25668         * doc/posix-functions/round.texi: Likewise.
25669         * doc/posix-functions/roundl.texi: Likewise.
25670         * doc/posix-functions/truncf.texi: Likewise.
25671         * doc/posix-functions/trunc.texi: Likewise.
25672         * doc/posix-functions/truncl.texi: Likewise.
25673
25674 2010-12-20  Bruno Haible  <bruno@clisp.org>
25675
25676         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25677         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25678         * doc/posix-functions/round.texi: Likewise.
25679         * doc/posix-functions/roundl.texi: Likewise.
25680
25681 2010-12-20  Bruno Haible  <bruno@clisp.org>
25682
25683         ttyname_r: Add missing declaration on HP-UX 11.
25684         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25685         HAVE_TTYNAME_R.
25686         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25687         declared. Set HAVE_TTYNAME_R always.
25688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25689         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25690         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25691         HAVE_TTYNAME_R.
25692         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25693
25694 2010-12-20  Bruno Haible  <bruno@clisp.org>
25695
25696         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25697         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25698         * doc/posix-functions/getlogin_r.texi: Likewise.
25699         * tests/test-getlogin.c: Include <errno.h>.
25700         (main): Avoid test failure on HP-UX 11.11.
25701         * tests/test-getlogin_r.c (main): Likewise.
25702
25703 2010-12-20  Bruno Haible  <bruno@clisp.org>
25704
25705         getlogin_r: Add missing declaration on HP-UX 11.
25706         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25707         declared also when it exists as a function.
25708         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25709
25710 2010-12-20  Bruno Haible  <bruno@clisp.org>
25711
25712         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25713         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25714         through wcrtomb.
25715
25716 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25717
25718         ftoastr: fix comment
25719         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25721
25722 2010-12-19  Bruno Haible  <bruno@clisp.org>
25723
25724         isnan: Ensure it is a macro.
25725         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25726         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25727         Solaris.
25728
25729 2010-12-19  Bruno Haible  <bruno@clisp.org>
25730
25731         ldexpl test: Fix link error on OSF/1 5.1.
25732         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25733
25734 2010-12-19  Bruno Haible  <bruno@clisp.org>
25735
25736         wctype: Make it work in C++ mode on OSF/1 5.1.
25737         * lib/wctype.in.h (iswblank): Declare but not define here.
25738         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25739         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25740         * modules/wctype (Files): Add lib/iswblank.c.
25741
25742 2010-12-19  Bruno Haible  <bruno@clisp.org>
25743
25744         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25745         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25746         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25747
25748 2010-12-19  Bruno Haible  <bruno@clisp.org>
25749
25750         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25751         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25752         _POSIX_PII_SOCKET.
25753         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25754         * doc/posix-functions/recvfrom.texi: Likewise.
25755         * doc/posix-functions/send.texi: Likewise.
25756         * doc/posix-functions/sendto.texi: Likewise.
25757
25758 2010-12-19  Bruno Haible  <bruno@clisp.org>
25759
25760         tcgetsid: Add missing declaration on OSF/1 5.1.
25761         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25762         HAVE_TCGETSID.
25763         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25764         Don't set HAVE_TCGETSID.
25765         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25766         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25767         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25768         HAVE_TCGETSID.
25769         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25770
25771 2010-12-19  Bruno Haible  <bruno@clisp.org>
25772
25773         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25774         * lib/stdio.in.h: During the include_next statement, let recursive
25775         includes of this file include only the system header file.
25776
25777 2010-12-19  Bruno Haible  <bruno@clisp.org>
25778
25779         iconv_open: Fix regression from 2010-12-04.
25780         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25781         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25782
25783 2010-12-19  Bruno Haible  <bruno@clisp.org>
25784
25785         stdbool test: Avoid a gcc warning.
25786         * tests/test-stdbool.c (main): Fail if e1 is false.
25787         Reported by Jim Meyering.
25788
25789 2010-12-19  Jim Meyering  <meyering@redhat.com>
25790
25791         setenv: restore to working order
25792         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25793         mistakenly removed.
25794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25795         HAVE_SETENV.
25796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25797         HAVE_SETENV.
25798
25799 2010-12-19  Bruno Haible  <bruno@clisp.org>
25800
25801         Document some different function declarations on OSF/1 5.1.
25802         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25803         * doc/posix-functions/inet_ntop.texi: Likewise.
25804         * doc/posix-functions/gethostname.texi: Likewise.
25805         * lib/unistd.in.h (gethostname): Update comment.
25806
25807 2010-12-19  Bruno Haible  <bruno@clisp.org>
25808
25809         doc: Mention vasprintf-posix module.
25810         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25811         the 'vasprintf-posix' module.
25812         * doc/glibc-functions/vasprintf.texi: Likewise.
25813
25814 2010-12-19  Bruno Haible  <bruno@clisp.org>
25815
25816         unsetenv: Add missing declaration on OSF/1 5.1.
25817         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25819         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25821         not HAVE_UNSETENV.
25822         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25823         HAVE_UNSETENV.
25824         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25825
25826 2010-12-19  Bruno Haible  <bruno@clisp.org>
25827
25828         setenv: Add missing declaration on OSF/1 5.1.
25829         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25831         declared. Don't set HAVE_SETENV.
25832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25833         not HAVE_SETENV.
25834         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25835         HAVE_SETENV.
25836         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25837
25838 2010-12-19  Bruno Haible  <bruno@clisp.org>
25839
25840         nl_langinfo tests: Avoid gcc warning.
25841         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25842
25843 2010-12-19  Bruno Haible  <bruno@clisp.org>
25844
25845         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25846         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25847         _GL_CXXALIAS_SYS.
25848
25849 2010-12-19  Bruno Haible  <bruno@clisp.org>
25850
25851         stdbool: Relax test.
25852         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25853         address to 'bool' work in static initializer, for compilers other than
25854         GCC.
25855
25856 2010-12-19  Bruno Haible  <bruno@clisp.org>
25857
25858         ftello: Add missing declaration on OSF/1 5.1.
25859         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25860         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25862         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25863         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25864
25865 2010-12-19  Bruno Haible  <bruno@clisp.org>
25866
25867         fseeko: Add missing declaration on OSF/1 5.1.
25868         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25871         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25872         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25873
25874 2010-12-19  Bruno Haible  <bruno@clisp.org>
25875
25876         fchdir: Add missing declaration on OSF/1 5.1.
25877         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25880         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25881         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25882
25883 2010-12-19  Bruno Haible  <bruno@clisp.org>
25884
25885         relocatable-prog-wrapper: Separate from relocatable-prog.
25886         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25887         uninstall-relocwrapper rule here.
25888         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25889         Reported by Ian Beckwith <ianb@erislabs.net>.
25890
25891 2010-12-19  Bruno Haible  <bruno@clisp.org>
25892
25893         unistr/u8-mbsnlen: Add missing dependency.
25894         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25895         Reported by Ian Beckwith <ianb@erislabs.net>.
25896
25897 2010-12-19  Bruno Haible  <bruno@clisp.org>
25898
25899         iconv: Make it possible again to use this module without 'iconv-h'.
25900         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25901         if it is not defined.
25902         Reported by Ian Beckwith <ianb@erislabs.net>.
25903
25904 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25905
25906         acl: port to Solaris 8 when copying from tmpfs to ufs
25907         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25908         error number.  Problem observed on Solaris 8 with latest
25909         coreutils, with "mv A B", where A is on a tmpfs file system and B
25910         is on a ufs file system.  This caused coreutils' mv/part-symlink
25911         test to fail.
25912
25913         tests: set fail=0 at start
25914         * tests/init.sh (setup_): Move fail=0 initialization here ...
25915         (mktempd_): ... from here, so that tests can rely on fail being
25916         set to 0 initially.  This fixes a problem in coreutils; see:
25917         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25918
25919 2010-12-18  Bruno Haible  <bruno@clisp.org>
25920
25921         memmem-simple: Stylistic changes.
25922         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25923         Fix preprocessor directive indentation.
25924
25925 2010-12-15  Pádraig Brady <P@draigBrady.com>
25926
25927         memmem, memmem-simple: reorganize and expand empty needle check
25928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25929         functional checks to memmem-simple so that one has a fully functional
25930         memmem by using just this module.
25931         Restrict the performance only check to the memmem module.
25932         Also expand the empty needle check to ensure the correct
25933         pointer is returned, not just a non NULL pointer.
25934         * doc/glibc-functions/memmem.texi: Rearrange the portability
25935         documentation to correlate with the rearranged checks.
25936         Clarify exactly how the memmem and memmem-simple modules
25937         relate to each other.
25938
25939 2010-12-15  Pádraig Brady <P@draigBrady.com>
25940             Bruno Haible  <bruno@clisp.org>
25941
25942         Improve cross-compilation guesses for uClibc.
25943         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25944         that uClibc does not have the glibc bug.
25945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25946         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25947
25948 2010-12-14  Eric Blake  <eblake@redhat.com>
25949
25950         configmake: provide fallbacks for oldest supported autotools
25951         * m4/configmake.m4: New file.
25952         * modules/configmake (Files): Ship it.
25953         (configure.ac): Use it to guarantee fallbacks.
25954
25955 2010-12-13  Pádraig Brady <P@draigBrady.com>
25956
25957         read-file: Improve handling of large files
25958         * lib/read-file.c (fread_file): Minimize realloc()s
25959         for regular files, and better manage sizes around SIZE_MAX.
25960
25961 2010-12-13  Eric Blake  <eblake@redhat.com>
25962
25963         cloexec, fcntl: relax license
25964         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25965         consent from all contributors.
25966         * modules/fcntl (License): Likewise.
25967
25968 2010-12-10  Bruno Haible  <bruno@clisp.org>
25969
25970         Tests for module 'pipe-posix'.
25971         * modules/pipe-posix-tests: New file.
25972         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25973
25974 2010-12-10  Bruno Haible  <bruno@clisp.org>
25975
25976         pipe-posix: Make it work in C++ mode.
25977         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25978         (pipe): Use common idiom, not a macro definition.
25979         * lib/pipe.c: New file.
25980         * m4/pipe.m4: New file.
25981         * modules/pipe-posix (Description): Enhance.
25982         (Files): Add lib/pipe.c, m4/pipe.m4.
25983         (configure.ac): Invoke gl_FUNC_PIPE.
25984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25985         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25986         * tests/test-unistd-c++.cc: Check the signature of pipe.
25987
25988 2010-12-10  Bruno Haible  <bruno@clisp.org>
25989
25990         Rename module 'pipe' to 'spawn-pipe'.
25991         * modules/spawn-pipe: New file, renamed from modules/pipe.
25992         (Files, configure.ac, Makefile.am): Update.
25993         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25994         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25995         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25996         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25997         "spawn-pipe.h" instead of "pipe.h".
25998         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25999         to gl_SPAWN_PIPE.
26000         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26001         (Files, Makefile.am): Update.
26002         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26003         Update.
26004         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26005         Include "spawn-pipe.h" instead of "pipe.h".
26006         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26007         * lib/javacomp.c: Likewise.
26008         * lib/javaversion.c: Likewise.
26009         * lib/pipe-filter-gi.c: Likewise.
26010         * lib/pipe-filter-ii.c: Likewise.
26011         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26012         * modules/javacomp (Depends-on): Likewise.
26013         * modules/javaversion (Depends-on): Likewise.
26014         * modules/pipe-filter-gi (Depends-on): Likewise.
26015         * modules/pipe-filter-ii (Depends-on): Likewise.
26016         * MODULES.html.sh (Executing programs): Update.
26017         * NEWS: Mention the change.
26018
26019 2010-12-10  Eric Blake  <eblake@redhat.com>
26020
26021         pipe-posix: new module
26022         * modules/pipe-posix: New file.
26023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26024         (gl_UNISTD_H): Check for declaration.
26025         * modules/unistd (Makefile.am): Substitute it.
26026         * lib/unistd.in.h (pipe): Provide it for mingw.
26027         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26028         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26029
26030 2010-12-07  Bruno Haible  <bruno@clisp.org>
26031
26032         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26033         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26034         u8_strcmp_gnu.
26035         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26036
26037 2010-12-06  Bruno Haible  <bruno@clisp.org>
26038
26039         Update internal documentation.
26040         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26041
26042 2010-12-04  Bruno Haible  <bruno@clisp.org>
26043
26044         Put more information about failed tests into the test return codes.
26045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26046         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26047         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26049         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26051         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26052         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26053         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26056         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26057         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26058         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26059         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26060         returns a bit mask.
26061         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26062         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26063         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26064         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26065         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26069         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26072         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26075         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26076         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26077         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26078         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26081         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26082         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26084         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26085         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26086         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26087         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26088         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26089         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26090         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26091         gl_PRINTF_PRECISION): Likewise.
26092         * m4/regex.m4 (gl_REGEX): Likewise.
26093         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26095         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26096         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26100         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26101         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26102         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26103         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26104         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26105         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26107         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26108         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26109         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26112         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26113         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26114         enumerated value.
26115         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26116
26117 2010-12-04  Bruno Haible  <bruno@clisp.org>
26118
26119         Update for Solaris 11 2010-11.
26120         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26121         Express, released in November 2010.
26122
26123 2010-12-04  Bruno Haible  <bruno@clisp.org>
26124
26125         nproc: Relax license.
26126         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26127         and Paul Eggert.
26128         Requested by Ludovic Courtès <ludo@gnu.org>.
26129
26130 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26131
26132         utimecmp: fine-grained src to nearby coarse-grained dest
26133
26134         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26135         and the source is on a file system with higher-resolution time
26136         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26137         not work, and the time stamps are close together, the algorithm to
26138         determine the exact resolution from the read-back mtime was buggy:
26139         it had a "!=" where it should have had an "==".  This bug has been
26140         in the code ever since it was introduced to gnulib.
26141         Problem reported by Dan Jacobson in
26142         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26143
26144 2010-11-30  Bruno Haible  <bruno@clisp.org>
26145
26146         strerror_r-posix: Fix autoconf test.
26147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26148
26149 2010-11-28  Bruno Haible  <bruno@clisp.org>
26150             Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         Tests for module 'getdomainname'.
26153         * modules/getdomainname-tests: New file.
26154         * tests/test-getdomainname.c: New file, based on
26155         tests/test-gethostname.c.
26156
26157 2010-11-28  Bruno Haible  <bruno@clisp.org>
26158             Paul Eggert  <eggert@cs.ucla.edu>
26159
26160         getdomainname: Use the system function when possible.
26161         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26162         (getdomainname): Replace if needed. Provide the declaration if it is
26163         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26164         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26165         (getdomainname): When the system has getdomainname, call the system
26166         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26167         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26168         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26169         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26170         the function if its second argument is of type 'int' or if it is found
26171         in libnsl.
26172         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26173         <sys/systeminfo.h> and sysinfo().
26174         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26176         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26177         HAVE_GETDOMAINNAME.
26178         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26179         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26180         * doc/glibc-functions/getdomainname.texi: Document the problems with
26181         the getdomainname declaration.
26182
26183 2010-11-28  Bruno Haible  <bruno@clisp.org>
26184
26185         sys_socket: Ensure ss_family field on AIX.
26186         * lib/sys_socket.in.h (ss_family): New macro definition.
26187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26188         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26189         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26190         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26191         * modules/sys_socket (Makefile.am): Substitute
26192         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26193         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26194
26195 2010-11-27  Bruno Haible  <bruno@clisp.org>
26196
26197         readline: Improve configure output.
26198         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26199         "checking for readline..." result understandable.
26200
26201 2010-11-27  Bruno Haible  <bruno@clisp.org>
26202
26203         *printf-posix: Detect a bug on Solaris 10/x86.
26204         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26205         for floating-point output.
26206         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26207         directive.
26208         * tests/test-snprintf-posix.h (test_function): Likewise.
26209         * tests/test-sprintf-posix.h (test_function): Likewise.
26210         * tests/test-vasprintf-posix.c (test_function): Likewise.
26211         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26212         * doc/posix-functions/printf.texi: Likewise.
26213         * doc/posix-functions/snprintf.texi: Likewise.
26214         * doc/posix-functions/sprintf.texi: Likewise.
26215         * doc/posix-functions/vfprintf.texi: Likewise.
26216         * doc/posix-functions/vprintf.texi: Likewise.
26217         * doc/posix-functions/vsnprintf.texi: Likewise.
26218         * doc/posix-functions/vsprintf.texi: Likewise.
26219         * doc/glibc-functions/obstack_printf.texi: Likewise.
26220         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26221
26222 2010-11-27  Bruno Haible  <bruno@clisp.org>
26223
26224         Fix link error when module libunistring-optional is in use.
26225         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26226         * modules/striconveha-tests (Makefile.am): Likewise.
26227
26228 2010-11-27  Bruno Haible  <bruno@clisp.org>
26229
26230         regex: Mention link dependencies.
26231         * modules/regex (Link): New section.
26232         * modules/rpmatch (Link): Likewise.
26233         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26234
26235 2010-11-27  Bruno Haible  <bruno@clisp.org>
26236
26237         ftoastr: Fix compilation error on Solaris.
26238         * lib/ftoastr.c: Include <config.h>.
26239
26240 2010-11-27  Bruno Haible  <bruno@clisp.org>
26241
26242         getloadavg: Update documentation.
26243         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26244
26245 2010-11-27  Bruno Haible  <bruno@clisp.org>
26246
26247         sys_socket: Fix test whether the functions are declared.
26248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26249         not <sys/select.h>.
26250
26251 2010-11-27  Bruno Haible  <bruno@clisp.org>
26252
26253         getpass: Make sure to get system declaration on some platforms.
26254         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26255         gl_USE_SYSTEM_EXTENSIONS.
26256         * modules/getpass (Depends-on): Add extensions.
26257
26258 2010-11-26  Bruno Haible  <bruno@clisp.org>
26259
26260         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26261         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26262         'iconv' module is present.
26263         (ICONV_CONST): New macro.
26264         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26265         ICONV_CONST.
26266         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26267         set ICONV_CONST.
26268         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26269         here.
26270         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26271         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26272         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26273         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26274         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26275         present.
26276
26277 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26278
26279         ftoastr: comment fix
26280         * lib/ftoastr.c: "little" -> "little or no" in comment
26281
26282 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         stdint: port to GCC 4.3 + OSX + Octave
26285         On this platform, stdint.h is buggy and defines int64_t to long
26286         long int.  The replacement defined it to long int, causing
26287         problems with C++ style name mangling.  Instead, trust the system
26288         definition if INT64_MAX is defined, and likewise for the unsigned
26289         variant.   Problem reported by Jarno Rajahalme in
26290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26291         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26292         and don't mess with int64_t and INT64_MAX in this case.
26293         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26294
26295 2010-11-24  Bruno Haible  <bruno@clisp.org>
26296
26297         doc: Corrections regarding MacOS X 10.4 and 10.5.
26298         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26299         MacOS X.
26300         Reported by Simon Josefsson.
26301
26302 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26303
26304         Uninstall ".bin" files installed by relocwrapper.
26305         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26306         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26307         unless it is already there.
26308
26309 2010-11-21  Bruno Haible  <bruno@clisp.org>
26310
26311         Update for NetBSD 5.0.
26312         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26313         NetBSD; the test fails on NetBSD 5.0.
26314         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26315         about NetBSD.
26316
26317 2010-11-21  Bruno Haible  <bruno@clisp.org>
26318
26319         Update for HP-UX 11.23 and HP-UX 11.31.
26320         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26321         HP-UX.
26322
26323 2010-11-21  Bruno Haible  <bruno@clisp.org>
26324
26325         Update for MacOS X 10.5.
26326         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26327         MacOS X; the test fails on MacOS X 10.5.8.
26328         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26329         about MacOS X.
26330
26331 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26332
26333         bootstrap: add bootstrap_sync option.
26334         See discussion at
26335         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26337         * build-aux/bootstrap: Accept --bootstrap-sync to update
26338         bootstrap if it is not identical to the local gnulib's
26339         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26340         enable this by default.  Accept --no-bootstrap-sync to disable
26341         it.
26342
26343 2010-11-20  Bruno Haible  <bruno@clisp.org>
26344
26345         Ensure that <features.h> is included before __GLIBC__ is tested.
26346         * lib/printf-parse.h: Include <features.h>.
26347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26348         Reported by Mike Frysinger <vapier@gentoo.org>.
26349
26350         Ensure that <features.h> is included before __GLIBC__ is tested.
26351         * lib/wchar.in.h: Include <features.h>.
26352         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26353         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26354         Reported by Mike Frysinger <vapier@gentoo.org>.
26355
26356         Ensure that <features.h> is included before __GLIBC__ is tested.
26357         * lib/arpa_inet.in.h: Include <features.h>.
26358         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26359         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26360         Reported by Mike Frysinger <vapier@gentoo.org>.
26361
26362         Ensure that <features.h> is included before __GLIBC__ is tested.
26363         * build-aux/link-warning.h: Include <features.h>.
26364         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26365         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26366         Reported by Mike Frysinger <vapier@gentoo.org>.
26367
26368         Ensure that <features.h> is included before __GLIBC__ is tested.
26369         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26370         Reported by Mike Frysinger <vapier@gentoo.org>.
26371
26372 2010-11-20  Bruno Haible  <bruno@clisp.org>
26373
26374         memmem: Fix autoconf test.
26375         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26376
26377 2010-11-20  Bruno Haible  <bruno@clisp.org>
26378
26379         Port to uClibc.
26380         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26381         * lib/fcntl.in.h: Likewise.
26382         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26383         * lib/mbrtowc.c (mbrtowc): Likewise.
26384         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26385         * lib/strerror_r.c: Likewise.
26386         * lib/unistr/u8-strnlen.c: Likewise.
26387         * lib/vasnprintf.c (decimal_point_char): Likewise.
26388         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26389         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26391         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26392         * tests/test-sigaction.c (handler, main): Likewise.
26393         * lib/freading.h: Treat uClibc like a non-glibc platform.
26394         * lib/freading.c: Likewise.
26395         * lib/gettext.h: Likewise.
26396         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26397         Likewise.
26398         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26399         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26400         * lib/propername.c (proper_name_utf8): Likewise.
26401         * lib/spawn.in.h: Likewise.
26402         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26403         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26404         mem_cd_iconveh_internal): Likewise.
26405         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26406         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26407         strstr, strcasestr): Likewise.
26408         * lib/unicodeio.c (unicode_to_mb): Likewise.
26409         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26410         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26411         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26412         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26413         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26414         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26415         * lib/unistr/u8-stpncpy.c: Likewise.
26416         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26417         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26418         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26419         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26420         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26421         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26425         Likewise.
26426         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26427         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26431         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26432         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26433         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26434         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26435         * tests/test-striconveha.c (main): Likewise.
26436         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26437         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26438         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26439         * doc/posix-functions/getline.texi: Likewise.
26440         Reported by Mike Frysinger <vapier@gentoo.org>.
26441
26442 2010-11-20  Bruno Haible  <bruno@clisp.org>
26443
26444         nproc: Fix condition.
26445         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26446         HAVE_PTHREAD_AFFINITY_NP.
26447
26448 2010-11-20  Bruno Haible  <bruno@clisp.org>
26449
26450         Fix a comment.
26451         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26452
26453 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26454
26455         ftoastr: don't assume snprintf
26456         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26457         Implement a subset of snprintf here, by using sprintf safely.
26458         * modules/ftoastr (Depends-on): Remove snprintf.
26459
26460 2010-11-19  Jim Meyering  <meyering@redhat.com>
26461
26462         test-rename.h: fix compilation failure
26463         * tests/test-rename.h (test_rename): Add omitted "}".
26464
26465 2010-11-17  Jim Meyering  <meyering@redhat.com>
26466
26467         maint.mk: add a URL discussing the no-@acronym policy
26468         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26469
26470 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26471
26472         ftoastr: depend on snprintf, improve comments
26473         * lib/ftoastr.c: Also mention Loitsch's draft.
26474         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26475         needed in the current implementation, but it might simplify
26476         speeding up the code later.
26477         * modules/ftoastr: Depend on snprintf; this improves portability.
26478         Suggested by Bruno Haible in the same email.
26479
26480         ftoastr: port to hosts lacking strtof and strtold
26481         Problem reported by Bruno Haible in
26482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26483         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26484         environment and strtold (and presumably strtof) are not available.
26485         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26486         (configure.ac): Require gl_C99_STRTOLD.
26487
26488 2010-11-18  Bruno Haible  <bruno@clisp.org>
26489
26490         c-strtold: Avoid link error on AIX 7.
26491         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26492         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26493         (gl_C_STRTOLD): Test whether strtold_l exists.
26494         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26495
26496 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26497
26498         intprops: new macro INT_BITS_STRLEN_BOUND
26499         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26500         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26501         not exposed.  Also, it uses a slightly tighter bound than before;
26502         though this makes no practical difference, we might as well be as
26503         tight as we easily can.
26504
26505         ftoastr: new module, for lossless conversion of floats to short strings
26506         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26507         * modules/ftoastr: New files.
26508
26509 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26510
26511         bootstrap: port to Solaris sed
26512         * build-aux/bootstrap (get_version): Port to Solaris sed.
26513         See Ralf Wildenhues's note in
26514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26515
26516 2010-11-14  Jim Meyering  <meyering@redhat.com>
26517
26518         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26519         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26520         and move definition closer to sole use.
26521
26522 2010-11-13  Jim Meyering  <meyering@redhat.com>
26523
26524         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26525         Now we require at least autoconf-2.59, which means the work-around
26526         is no longer needed.
26527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26528         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26530         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26531         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26532
26533 2010-11-13  Bruno Haible  <bruno@clisp.org>
26534
26535         rename, renameat: Avoid test failures at NFS mounted locations.
26536         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26537         functions.
26538         (test_rename): Use assert_nonexistent.
26539         * tests/test-rename.c: Include <dirent.h>.
26540         * tests/test-renameat.c: Likewise.
26541         Reported by Gary V. Vaughan <gary@gnu.org>.
26542
26543         rename, renameat: Document Linux bug with NFS
26544         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26545         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26546         * doc/posix-functions/renameat.texi: Likewise.
26547         Suggested by Eric Blake.
26548
26549 2010-11-13  Bruno Haible  <bruno@clisp.org>
26550
26551         rename test: Add comments.
26552         * tests/test-rename.h (test_rename): Add structure and comments.
26553
26554 2010-11-13  Eric Blake  <eblake@redhat.com>
26555
26556         maintainer-makefile: cover a few more files
26557         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26558         scripts generated within C files, for libvirt.
26559
26560 2010-11-13  Bruno Haible  <bruno@clisp.org>
26561
26562         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26563         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26564         character, return the number of bytes that belong together, not always
26565         1.
26566         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26567         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26568         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26569         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26570         number of bytes of an invalid character.
26571         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26572         (main): Invoke it.
26573         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26574         results.
26575         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26576         malformed byte sequences.
26577         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26578         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26579         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26580         Reported by Ben Pfaff and Paolo Bonzini.
26581
26582 2010-11-13  Bruno Haible  <bruno@clisp.org>
26583
26584         openat: Work around glibc bug with fchownat() and empty file names.
26585         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26586         (gl_FUNC_FCHOWNAT): Invoke it.
26587         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26588         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26589         Reported by Gary V. Vaughan <gary@gnu.org>.
26590
26591 2010-11-13  Bruno Haible  <bruno@clisp.org>
26592
26593         openat: Ensure autoconf macro ordering.
26594         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26595         gl_USE_SYSTEM_EXTENSIONS.
26596         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26597
26598 2010-11-13  Bruno Haible  <bruno@clisp.org>
26599
26600         Update comments.
26601         * lib/unistr/u8-check.c: Update file name in comments.
26602         * lib/unistr/u8-mblen.c: Likewise.
26603         * lib/unistr/u8-prev.c: Likewise.
26604         * lib/unistr/u8-strmblen.c: Likewise.
26605         * lib/unistr/u8-strmbtouc.c: Likewise.
26606
26607 2010-11-13  Jim Meyering  <meyering@redhat.com>
26608
26609         tests: avoid test failure on Solaris 10 due to lack of PATH export
26610         * tests/test-update-copyright.sh: Don't forget to export PATH.
26611
26612         init.sh: ensure that IFS is defined, just in case...
26613         * tests/init.sh (setup_): Ensure that IFS is defined,
26614         so that saving and restoring it works as expected.  This
26615         appears to be useful at least for an old version of dash
26616         from a long time ago (RH 6).  See here for details:
26617         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26618
26619         maint.mk: tighten "test a == b" check
26620         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26621         test to files that contain something like #!/bin/sh.
26622         Without this, coreutils would get two false positives in
26623         the comments of C source files.
26624
26625 2010-11-12  Eric Blake  <eblake@redhat.com>
26626
26627         bootstrap: fix typo in previous attempt
26628         * build-aux/bootstrap (buildreq): Correct the grouping.
26629         Reported by Paul Eggert.
26630
26631         maintainer-makefile: prohibit test x == x
26632         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26633         Based on a report by Matthias Bolte.
26634
26635         bootstrap: allow FreeBSD gzip
26636         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26637         which has no '.' and goes to stderr.
26638         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26639         Reported by Matthias Bolte.
26640
26641         maintainer-makefile: check for i18n setup
26642         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26643         will likely work.
26644
26645 2010-11-12  Bruno Haible  <bruno@clisp.org>
26646
26647         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26648         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26649         * lib/nanosleep.c (nanosleep): Likewise.
26650
26651 2010-11-11  Bruno Haible  <bruno@clisp.org>
26652
26653         fcntl-h: Fix for use of C++ on glibc systems.
26654         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26655         also on glibc systems in C++ mode.
26656         Reported by Gary V. Vaughan <gary@gnu.org>.
26657
26658 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26659
26660         mknod: avoid false failure with dash
26661         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26662
26663 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26664
26665         unlink: Fix "is it should" typo in diagnostic.
26666         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26668
26669 2010-11-11  Bruno Haible  <bruno@clisp.org>
26670
26671         Tests for module 'strerror_r-posix'.
26672         * modules/strerror_r-posix-tests: New file.
26673         * tests/test-strerror_r.c: New file.
26674         * tests/test-string-c++.cc: Check the signature of strerror_r.
26675
26676         New module 'strerror_r-posix'.
26677         * lib/string.in.h (strerror_r): New declaration.
26678         * lib/strerror_r.c: New file.
26679         * m4/strerror_r.m4: New file.
26680         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26681         of strerror_r.
26682         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26683         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26684         * modules/strerror_r-posix: New file.
26685         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26686         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26687         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26688         portability problems.
26689
26690 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26691
26692         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26693         line is also considered for output. Quoted function name in shell
26694         command, so temporary files for functions like MyClass::operator()
26695         are removed correctly without errors.
26696
26697 2010-11-09  Bruno Haible  <bruno@clisp.org>
26698
26699         * doc/posix-functions/strerror.texi: List more failing platforms.
26700
26701         * doc/posix-functions/strerror.texi: Add a comment.
26702
26703 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26704
26705         fdopendir: fix bug on MacOS X when low on file descriptors
26706
26707         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26708         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26709         All callers changed.
26710         (fdopendir): Invoke save_cwd at the top level, not after using
26711         multiple dup() calls to use up file descriptors.  Then retry
26712         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26713         less than the maximum number of open file descriptors, because
26714         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26715         on Mac OS X 10.6.4 for tar 1.24
26716         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26717         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26718         and for tar 1.25
26719         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26720
26721 2010-11-07  Bruno Haible  <bruno@clisp.org>
26722
26723         vasnprintf: Support I flag on glibc systems.
26724         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26725         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26726         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26727         snprintf function.
26728         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26729         glibc systems.
26730         * tests/test-vasnprintf-posix3.c: New file.
26731         * modules/vasnprintf-posix-tests (Files): Add it.
26732         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26733
26734 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26735
26736         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26737         * MODULES.html.sh: For compiler warnings, use name
26738         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26739
26740 2010-11-05  Eric Blake  <eblake@redhat.com>
26741
26742         ceil, floor: avoid spurious failure with icc
26743         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26744         [denormals-as-zero] when optimizing without -mieee-fp option.
26745         * tests/test-floorf2.c (floorf_reference): Likewise.
26746         * tests/test-ceilf1.c (dummy): New function.
26747         (main): Use it to outsmart icc's optimization.
26748         * tests/test-floorf1.c (dummy, main): Likewise.
26749
26750         tests: require working signbit
26751         * modules/ceilf-tests (Depends-on): Add signbit.
26752         * modules/ceill-tests (Depends-on): Likewise.
26753         * modules/floorf-tests (Depends-on): Likewise.
26754         * modules/floorl-tests (Depends-on): Likewise.
26755         * modules/round-tests (Depends-on): Likewise.
26756         * modules/roundf-tests (Depends-on): Likewise.
26757         * modules/roundl-tests (Depends-on): Likewise.
26758         * modules/trunc-tests (Depends-on): Likewise.
26759         * modules/truncf-tests (Depends-on): Likewise.
26760         * modules/truncl-tests (Depends-on): Likewise.
26761
26762         strtod: work around icc bug
26763         * lib/strtod.c (minus_zero): Define to working value.
26764         (strtod): Use it to avoid icc bug.
26765
26766         copysign: enhance tests
26767         * modules/copysign-tests (Files): Add minus-zero.h.
26768         * tests/test-copysign.c (main): Also test zeros.
26769
26770 2010-11-04  Eric Blake  <eblake@redhat.com>
26771
26772         ceil, floor, round, trunc: enhance tests of -0
26773         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26774         * tests/test-ceill.c (main): Likewise.
26775         * tests/test-floorf1.c (main): Likewise.
26776         * tests/test-floorl.c (main): Likewise.
26777         * tests/test-round1.c (main): Likewise.
26778         * tests/test-roundf1.c (main): Likewise.
26779         * tests/test-roundl.c (main): Likewise.
26780         * tests/test-trunc1.c (main): Likewise.
26781         * tests/test-truncf1.c (main): Likewise.
26782         * tests/test-truncl.c (main): Likewise.
26783
26784 2010-11-04  Eric Blake  <eblake@redhat.com>
26785
26786         frexp, tests: work around ICC bug with -zero
26787         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26788         works with more compilers.
26789         * tests/minus-zero.h: New file.
26790         * modules/ceilf-tests (Files): Include it.
26791         * modules/ceill-tests (Files): Likewise.
26792         * modules/floorf-tests (Files): Likewise.
26793         * modules/floorl-tests (Files): Likewise.
26794         * modules/frexp-nolibm-tests (Files): Likewise.
26795         * modules/frexp-tests (Files): Likewise.
26796         * modules/frexpl-nolibm-tests (Files): Likewise.
26797         * modules/frexpl-tests (Files): Likewise.
26798         * modules/isnan-tests (Files): Likewise.
26799         * modules/isnand-nolibm-tests (Files): Likewise.
26800         * modules/isnand-tests (Files): Likewise.
26801         * modules/isnanf-nolibm-tests (Files): Likewise.
26802         * modules/isnanf-tests (Files): Likewise.
26803         * modules/isnanl-nolibm-tests (Files): Likewise.
26804         * modules/isnanl-tests (Files): Likewise.
26805         * modules/round-tests (Files): Likewise.
26806         * modules/roundf-tests (Files): Likewise.
26807         * modules/roundl-tests (Files): Likewise.
26808         * modules/ldexpl-tests (Files): Likewise.
26809         * modules/signbit-tests (Files): Likewise.
26810         * modules/snprintf-posix-tests (Files): Likewise.
26811         * modules/sprintf-posix-tests (Files): Likewise.
26812         * modules/strtod-tests (Files): Likewise.
26813         * modules/trunc-tests (Files): Likewise.
26814         * modules/truncf-tests (Files): Likewise.
26815         * modules/truncl-tests (Files): Likewise.
26816         * modules/vsnprintf-posix-tests (Files): Likewise.
26817         * modules/vsprintf-posix-tests (Files): Likewise.
26818         * modules/vasnprintf-posix-tests (Files): Likewise.
26819         * modules/vasprintf-posix-tests (Files): Likewise.
26820         * tests/test-ceilf1.c (main): Use it.
26821         * tests/test-ceill.c (main): Likewise.
26822         * tests/test-floorf1.c (main): Likewise.
26823         * tests/test-floorl.c (main): Likewise.
26824         * tests/test-frexp.c (main): Likewise.
26825         * tests/test-frexpl.c (main): Likewise.
26826         * tests/test-isnan.c (main): Likewise.
26827         * tests/test-isnand.h (main): Likewise.
26828         * tests/test-isnanf.h (main): Likewise.
26829         * tests/test-isnanl.h (main): Likewise.
26830         * tests/test-ldexpl.c (main): Likewise.
26831         * tests/test-round.c (main): Likewise.
26832         * tests/test-roundf.c (main): Likewise.
26833         * tests/test-roundl.c (main): Likewise.
26834         * tests/test-signbit.c (test_signbitf, test_signbitd)
26835         (test_signbitl): Likewise.
26836         * tests/test-snprintf-posix.h (test_function): Likewise.
26837         * tests/test-sprintf-posix.h (test_function): Likewise.
26838         * tests/test-strtod.c (main): Likewise.
26839         * tests/test-trunc1.c (main): Likewise.
26840         * tests/test-truncf1.c (main): Likewise.
26841         * tests/test-truncl.c (main): Likewise.
26842
26843         isnanl: work around icc bug
26844         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26845
26846 2010-11-03  Eric Blake  <eblake@redhat.com>
26847
26848         tests: fix compiler warnings
26849         * tests/test-getopt.h (test_getopt): Fix condition.
26850         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26851         * tests/test-pipe2.c (main): Likewise.
26852         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26853
26854         utimens: fix broken m4 test
26855         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26856
26857 2010-10-28  Bruno Haible  <bruno@clisp.org>
26858
26859         posix_spawn*, getdtablesize: Relax license.
26860         * modules/posix_spawn (License): Change to LGPLv2+.
26861         * modules/posix_spawnp (License): Likewise.
26862         * modules/posix_spawn-internal (License): Likewise.
26863         * modules/posix_spawnattr_init (License): Likewise.
26864         * modules/posix_spawnattr_getflags (License): Likewise.
26865         * modules/posix_spawnattr_setflags (License): Likewise.
26866         * modules/posix_spawnattr_getpgroup (License): Likewise.
26867         * modules/posix_spawnattr_setpgroup (License): Likewise.
26868         * modules/posix_spawnattr_getschedparam (License): Likewise.
26869         * modules/posix_spawnattr_setschedparam (License): Likewise.
26870         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26871         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26872         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26873         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26874         * modules/posix_spawnattr_getsigmask (License): Likewise.
26875         * modules/posix_spawnattr_setsigmask (License): Likewise.
26876         * modules/posix_spawnattr_destroy (License): Likewise.
26877         * modules/posix_spawn_file_actions_init (License): Likewise.
26878         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26879         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26880         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26881         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26882         * modules/getdtablesize (License): Likewise.
26883         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26884
26885 2010-10-26  Bruno Haible  <bruno@clisp.org>
26886
26887         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26888         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26889         Cygwin and mingw.
26890         Suggested by Eric Blake.
26891
26892 2010-10-26  Bruno Haible  <bruno@clisp.org>
26893
26894         stdio: Work around compilation error due to renameat() on Solaris 10.
26895         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26896         * lib/renameat.c: Don't include <unistd.h> here.
26897         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26898         Reported by Paul Eggert and Eric Blake.
26899
26900 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26901
26902         renameat: port to Solaris 10, which declares renameat in unistd.h
26903
26904         * lib/renameat.c: Include unistd.h before stdio.h, because
26905         Solaris 10 declares renameat in unistd.h.  Problem encountered
26906         when building GNU tar 1.24 on Solaris 10.
26907
26908 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26909
26910         fdopendir: fix C89 compilation
26911         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26912         compilers.
26913
26914 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26915
26916         inttostr: simplify by removing unnecessary redundancy
26917         * lib/anytostr.c: Don't include verify.h.
26918         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26919         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26920         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26921         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26922         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26923         Likewise.
26924         * modules/inttostr (Depends-on): Remove 'verify'.
26925
26926 2010-10-23  Bruno Haible  <bruno@clisp.org>
26927
26928         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26929         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26930         Reported by Eric Blake.
26931
26932 2010-10-23  Bruno Haible  <bruno@clisp.org>
26933
26934         Tests: Fix LOCALE_JA on MirBSD 10.
26935         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26936         to an UTF-8 locale.
26937         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26939         Reported by Eric Blake.
26940
26941 2010-10-21  Bruno Haible  <bruno@clisp.org>
26942
26943         nl_langinfo test: Avoid test failure on NetBSD 5.
26944         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26945         Reported by Eric Blake.
26946
26947 2010-10-21  Eric Blake  <eblake@redhat.com>
26948
26949         c-stack: work around libsigsegv 2.8 bug
26950         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26951         overflow on at least PowerPC64.
26952
26953 2010-10-17  Bruno Haible  <bruno@clisp.org>
26954
26955         userspec: Drop redundant file.
26956         * modules/userspec (Files): Remove lib/inttostr.h.
26957
26958 2010-10-17  Bruno Haible  <bruno@clisp.org>
26959
26960         nl_langinfo tests: Silence some warnings.
26961         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26962         Reported by Jim Meyering.
26963
26964 2010-10-17  Bruno Haible  <bruno@clisp.org>
26965
26966         Make use of GCC's attribute __alloc_size__.
26967         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26968         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26969         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26970         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26971         __alloc_size__.
26972         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26973         Suggested by Jim Meyering.
26974
26975 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26976
26977         bootstrap: anchor .gitignore entries.
26978         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26979         with...
26980         (insert_vc_ignore): ... this new function, which prepends `/' to
26981         all .gitignore entries before passing them to
26982         insert_sorted_if_absent.
26983
26984 2010-10-16  Bruno Haible  <bruno@clisp.org>
26985
26986         nextafter: Fix configure check.
26987         * modules/nextafter (configure.ac): Correct expected prototype.
26988
26989 2010-10-16  Bruno Haible  <bruno@clisp.org>
26990
26991         termios: Update documentation.
26992         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26993
26994 2010-10-16  Bruno Haible  <bruno@clisp.org>
26995
26996         tests: Make them compile with TinyCC.
26997         * tests/test-strstr.c (main): Remove parentheses around array
26998         initializer.
26999
27000 2010-10-15  Eric Blake  <eblake@redhat.com>
27001
27002         ignore-value: make header idempotent
27003         * lib/ignore-value.h: Add double-inclusion guards.
27004         Reported by Stefan Berger.
27005
27006 2010-10-15  Jim Meyering  <meyering@redhat.com>
27007
27008         GNUmakefile: handle "stable" target, not "major"
27009         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27010         lists in maint.mk and announce-gen.  Without this, "make stable"
27011         would fail to ensure that $(VERSION) is up to date.
27012
27013 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27014
27015         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27016         & co.
27017
27018 2010-10-14  Bruno Haible  <bruno@clisp.org>
27019
27020         vasnprintf: Don't set errno to 0.
27021         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27022         block that sets it to 0.
27023         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27024
27025 2010-10-14  Bruno Haible  <bruno@clisp.org>
27026
27027         socketlib: Fix.
27028         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27029         gl_PREREQ_SYS_H_WINSOCK2.
27030         Reported by Ian Beckwith <ianb@erislabs.net>.
27031
27032 2010-10-13  Jim Meyering  <meyering@redhat.com>
27033
27034         test-select-stdin.c: avoid warn_unused_result warnings
27035         * tests/test-select-stdin.c: Include "macros.h".
27036         ASSERT that read and fflush succeed.
27037
27038 2010-10-13  Jim Meyering  <meyering@redhat.com>
27039
27040         git-version-gen: do require git-VC'd files in cwd
27041         * build-aux/git-version-gen: Reject a git version string
27042         if there are no commits associated with the current directory.
27043         This avoids an unlikely false-positive (unrelated dir whose parent
27044         repository also contains a tag matching v*), as pointed out
27045         by Giuseppe Scrivano in
27046         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27047
27048 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27049
27050         argv-iter: omit nonconforming declaration
27051         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27052         enum arg_iter_err declaration, which doesn't conform to C99.
27053         Solaris 10 cc warns about this.
27054
27055 2010-10-13  Eric Blake  <eblake@redhat.com>
27056
27057         termios: fix compilation on mingw
27058         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27059         (gl_TERMIOS_H): Adjust it on mingw.
27060         * modules/termios (Makefile.am): Substitute new key.
27061         * lib/termios.in.h (includes): Make include_next conditional.
27062         * doc/posix-headers/termios.texi (termios.h): Update
27063         documentation.
27064         Reported by Daniel P. Berrange.
27065
27066 2010-10-13  Jim Meyering  <meyering@redhat.com>
27067
27068         git-version-gen: don't require that .git/ be in the current dir
27069         * build-aux/git-version-gen: Adjust this script so that it works
27070         when run from any working directory beneath the top-level .git/-
27071         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27073
27074         test-select: avoid warn_unused_result warnings
27075         * tests/test-select.c: Include "macros.h".
27076         ASSERT that each call to read, write, and pipe succeeds.
27077         While not technically required, also check each "close".
27078         * modules/select-tests (Files): Add tests/macros.h.
27079
27080         test-symlinkat: remove declaration of unused local
27081         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27082
27083         test-inttostr: avoid shadowing warnings
27084         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27085         and use malloc rather than the stack for the same reason as
27086         mentioned in the comment justifying the other allocation.
27087
27088 2010-10-11  Bruno Haible  <bruno@clisp.org>
27089
27090         stdlib: Allow multiple gnulib generated replacements to coexist.
27091         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27092         Reported by Sam Steingold <sds@gnu.org>.
27093
27094 2010-10-11  Jim Meyering  <meyering@redhat.com>
27095
27096         fix a documentation typo
27097         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27098
27099 2010-10-11  Eric Blake  <eblake@redhat.com>
27100
27101         futimens: work around Solaris 11 bug
27102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27103         * tests/test-futimens.h (test_futimens): Enhance, rather than
27104         weaken test.
27105         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27106
27107 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27108
27109         Indentation.
27110         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27111         higher-level operators more to the left.
27112
27113 2010-10-11  Jim Meyering  <meyering@redhat.com>
27114
27115         test-futimens: avoid unwarranted test failure on Solaris 5.11
27116         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27117         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27118         because it tries to dereference the NULL name argument.
27119
27120 2010-10-11  Bruno Haible  <bruno@clisp.org>
27121
27122         Indentation.
27123         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27124         indentation.
27125
27126 2010-10-11  Jim Meyering  <meyering@redhat.com>
27127
27128         spawn.in.h: make indentation consistent with parentheses
27129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27130         Make indentation consistent with parentheses.
27131
27132 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27133
27134         Fix mismatched parens in previous commit
27135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27136         parens.
27137
27138 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27139
27140         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27141
27142         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27143         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27144         * lib/malloca.c: Include "verify.h".
27145         (verify1): Remove, replacing with a verify call.
27146         * lib/relocwrapper.c (verify1): Likewise.
27147         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27148         Likewise.
27149         * modules/malloca (Depends-on): Add 'verify'.
27150         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27151         * modules/vasnprintf (Depends-on): Add 'verify'.
27152         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27153         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27154         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27155         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27156         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27157         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27158         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27159
27160         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27161
27162         Formerly the style was sometimes 2*X - 1, because the C standard
27163         was wrongly thought to disallow ?: in integral constant expressions.
27164         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27165         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27166         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27167         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27168         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27169         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27170         verify that time_t cannot be floating.
27171
27172 2010-10-08  Eric Blake  <eblake@redhat.com>
27173
27174         time: enforce recent POSIX ruling that time_t is integral
27175         * lib/time.in.h (__time_t_must_be_integral): Detect any
27176         problematic systems, allowing the rest of gnulib to assume POSIX.
27177
27178 2010-10-08  Jim Meyering  <meyering@redhat.com>
27179
27180         fdopendir: fix a bug on systems lacking openat and /proc support
27181         OpenBSD 4.7 is one such system.  The most noticeable effect was
27182         failure of any application making nontrivial use of fts: rm, du,
27183         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27184           ./rm: traversal failed: `a': Bad file descriptor
27185         Debugging that, you see that even though FD 6 was closed just
27186         prior to the opendir call in fd_clone_opendir, its resulting
27187         dir->dd_fd was 8, rather than the expected value of 6:
27188
27189         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27190         93                close (fd);
27191         (gdb) n
27192         94                dir = fd_clone_opendir (dupfd);
27193         (gdb) n
27194         95                saved_errno = errno;
27195         (gdb) p dir->dd_fd
27196         $11 = 8
27197
27198         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27199         The problem is that on OpenBSD, fd_clone_opendir has to resort
27200         to using the old-style save/restore CWD mechanism, due to its
27201         lack of openat/proc support, and *that* would steal the FD (6)
27202         that opendir was supposed to use.
27203
27204         The fix is to squirrel away the desired FD so that save_cwd uses a
27205         different one, and then free the dest FD right before calling opendir.
27206         That guarantees opendir will use the required file descriptor.
27207
27208         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27209
27210 2010-10-08  Bruno Haible  <bruno@clisp.org>
27211
27212         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27213         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27214
27215 2010-10-08  Bruno Haible  <bruno@clisp.org>
27216
27217         nanosleep: Make replacement POSIX compliant.
27218         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27219         is out of range.
27220         Reported by Jim Meyering.
27221
27222 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27223
27224         bootstrap: add hook for altering gnulib.mk, for Bison
27225         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27226         the Bison bootstrapping process can rewrite file names and variables
27227         in this file before later parts of 'bootstrap' use the file.
27228         Bison wants to include lib/gnulib.mk from the top-level makefile,
27229         so it needs the file names in this file to be relative to the top
27230         level, not relative to lib; plus it needs variable names to be
27231         rewritten.
27232         (slurp): Use the new function.
27233
27234         bootstrap: reformat for readability
27235         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27236
27237 2010-10-08  Eric Blake  <eblake@redhat.com>
27238
27239         docs: update cygwin progress
27240         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27241         1.7.7.
27242         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27243         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27244         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27245         * doc/posix-functions/carg.texi (carg): Likewise.
27246         * doc/posix-functions/cargf.texi (cargf): Likewise.
27247         * doc/posix-functions/casin.texi (casin): Likewise.
27248         * doc/posix-functions/casinf.texi (casinf): Likewise.
27249         * doc/posix-functions/casinh.texi (casinh): Likewise.
27250         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27251         * doc/posix-functions/catan.texi (catan): Likewise.
27252         * doc/posix-functions/catanf.texi (catanf): Likewise.
27253         * doc/posix-functions/catanh.texi (catanh): Likewise.
27254         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27255         * doc/posix-functions/ccos.texi (ccos): Likewise.
27256         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27257         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27258         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27259         * doc/posix-functions/cexp.texi (cexp): Likewise.
27260         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27261         * doc/posix-functions/cimag.texi (cimag): Likewise.
27262         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27263         * doc/posix-functions/clog.texi (clog): Likewise.
27264         * doc/posix-functions/clogf.texi (clogf): Likewise.
27265         * doc/posix-functions/conj.texi (conj): Likewise.
27266         * doc/posix-functions/conjf.texi (conjf): Likewise.
27267         * doc/posix-functions/cpow.texi (cpow): Likewise.
27268         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27269         * doc/posix-functions/cproj.texi (cproj): Likewise.
27270         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27271         * doc/posix-functions/creal.texi (creal): Likewise.
27272         * doc/posix-functions/crealf.texi (crealf): Likewise.
27273         * doc/posix-functions/csin.texi (csin): Likewise.
27274         * doc/posix-functions/csinf.texi (csinf): Likewise.
27275         * doc/posix-functions/csinh.texi (csinh): Likewise.
27276         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27277         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27278         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27279         * doc/posix-functions/ctan.texi (ctan): Likewise.
27280         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27281         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27282         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27283         * doc/posix-headers/complex.texi (complex.h): Likewise.
27284
27285 2010-10-07  Jim Meyering  <meyering@redhat.com>
27286
27287         parse-datetime: avoid compilation failure on OpenBSD 4.7
27288         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27289         This works around a compilation failure on OpenBSD 4.7:
27290         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27291
27292 2010-10-07  Eric Blake  <eblake@redhat.com>
27293
27294         docs: update cygwin progress
27295         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27296         1.7.6.
27297         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27298         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27299         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27300         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27301         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27302         Likewise.
27303         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27304         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27305         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27306         Likewise.
27307         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27308         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27309         Likewise.
27310         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27311         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27312         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27313         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27314         Likewise.
27315         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27316         Likewise.
27317         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27318
27319         docs: update parse-datetime history
27320         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27321         documentation of this function's history and alternatives.
27322
27323         cygwin: use more robust version check
27324         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27325         exclude an eventual cygwin 1.9.1.
27326         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27328         (gl_FUNC_STRCASESTR): Likewise.
27329         Reported by Bruno Haible.
27330
27331 2010-10-06  Bruno Haible  <bruno@clisp.org>
27332
27333         string, sys_select: Avoid #including large headers unless necessary.
27334         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27335         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27336         OSF/1, BeOS, Haiku.
27337         Reported by Jim Meyering.
27338
27339 2010-10-05  Eric Blake  <eblake@redhat.com>
27340
27341         memmem, strstr, strcasestr: fix bug with long periodic needle
27342         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27343         periodic needle having false positive.
27344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27345         and cygwin 1.7.7.
27346         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27348         (gl_FUNC_STRCASESTR): Likewise.
27349         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27350         * tests/test-memmem.c (main): Expose the bug.
27351         * tests/test-strcasestr.c (main): Likewise.
27352         * tests/test-strstr.c (main): Likewise.
27353         * tests/test-c-strcasestr.c (main): Likewise.
27354         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27355         * doc/posix-functions/strstr.texi (strstr): Likewise.
27356         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27357         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27358
27359 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27360
27361         parse-datetime: do some more renaming
27362         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27363         parse_datetime, not get_date.  Mention the renaming.
27364         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27365         in comments.
27366         * m4/bison.m4: Likewise.
27367
27368 2010-10-05  Eric Blake  <eblake@redhat.com>
27369
27370         parse-datetime: better name than get_date
27371         * NEWS: Reword the deprecation notice.
27372         * modules/get_date: Rename to modules/parse-datetime.
27373         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27374         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27375         * lib/get_date.y: Rename to lib/parse-datetime.y.
27376         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27377         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27378         * doc/getdate.texi: Provide fallback wrapper.
27379         * lib/getdate.h: Move guts, and wrap...
27380         * lib/parse-datetime.h: ...new file.
27381         * lib/parse-datetime.y (get_date): Rename...
27382         (parse_datetime): ...to this.
27383         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27384         (gl_PARSE_DATETIME): ...to this.
27385         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27386         documentation.
27387         * modules/getdate (Files): Provide fallback docs and header.
27388         (Notice, Depends-on): Update references.
27389         * tests/test-parse-datetime.c: Likewise.
27390         * DEPENDENCIES: Likewise.
27391         * MODULES.html.sh (Date and time <time.h>): Likewise.
27392         * doc/parse-datetime.texi (Date input formats)
27393         (Authors of parse_datetime): Likewise.
27394         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27395         (Include): Likewise.
27396         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27397         * gnulib-tool: Likewise.
27398         * m4/bison.m4 (gl_BISON): Likewise.
27399         Suggested by Bruno Haible.
27400
27401 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27402
27403         more ports to Solaris tr, which needs [] around ranges
27404         * gnulib-tool: Solaris tr needs [] around ranges.
27405         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27406         * tests/test-pipe-filter-gi1.c (main): Likewise.
27407         * tests/test-pipe-filter-ii1.c (main): Likewise.
27408
27409 2010-10-05  Eric Blake  <eblake@redhat.com>
27410
27411         bootstrap: fix Solaris regression
27412         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27413         around ranges.
27414         Reported by Pádraig Brady.
27415
27416         bootstrap: work with pkg-config
27417         * build-aux/bootstrap (check_versions): Also transliterate - in
27418         prerequisite name.
27419         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27420         prerequisites that were already found, to avoid confusion.
27421         Reported by Justin Clift.
27422
27423         faccessat: remove unused wrappers
27424         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27425         presence of these wrappers dragged in -lgen on Solaris.
27426         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27427
27428 2010-10-05  Jim Meyering  <meyering@redhat.com>
27429
27430         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27431         * Makefile (sc_pragma_columns): New syntax-check rule.
27432
27433 2010-10-04  Bruno Haible  <bruno@clisp.org>
27434
27435         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27436         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27437         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27438         Reported by Bruce Korb and Eric Blake.
27439
27440 2010-10-04  Bruno Haible  <bruno@clisp.org>
27441
27442         threadlib: Make option --with-libpth-prefix work.
27443         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27444         use $LIBPTH, not just -lpth.
27445
27446 2010-10-04  Bruno Haible  <bruno@clisp.org>
27447
27448         Avoid line length limitation from HP NonStop system header files.
27449         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27450         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27451         * lib/ctype.in.h: Likewise.
27452         * lib/dirent.in.h: Likewise.
27453         * lib/errno.in.h: Likewise.
27454         * lib/fcntl.in.h: Likewise.
27455         * lib/float.in.h: Likewise.
27456         * lib/getopt.in.h: Likewise.
27457         * lib/iconv.in.h: Likewise.
27458         * lib/inttypes.in.h: Likewise.
27459         * lib/langinfo.in.h: Likewise.
27460         * lib/locale.in.h: Likewise.
27461         * lib/math.in.h: Likewise.
27462         * lib/netdb.in.h: Likewise.
27463         * lib/netinet_in.in.h: Likewise.
27464         * lib/poll.in.h: Likewise.
27465         * lib/pthread.in.h: Likewise.
27466         * lib/pty.in.h: Likewise.
27467         * lib/sched.in.h: Likewise.
27468         * lib/se-selinux.in.h: Likewise.
27469         * lib/search.in.h: Likewise.
27470         * lib/signal.in.h: Likewise.
27471         * lib/spawn.in.h: Likewise.
27472         * lib/stdarg.in.h: Likewise.
27473         * lib/stddef.in.h: Likewise.
27474         * lib/stdint.in.h: Likewise.
27475         * lib/stdio.in.h: Likewise.
27476         * lib/stdlib.in.h: Likewise.
27477         * lib/string.in.h: Likewise.
27478         * lib/strings.in.h: Likewise.
27479         * lib/sys_file.in.h: Likewise.
27480         * lib/sys_ioctl.in.h: Likewise.
27481         * lib/sys_select.in.h: Likewise.
27482         * lib/sys_socket.in.h: Likewise.
27483         * lib/sys_stat.in.h: Likewise.
27484         * lib/sys_time.in.h: Likewise.
27485         * lib/sys_times.in.h: Likewise.
27486         * lib/sys_utsname.in.h: Likewise.
27487         * lib/sys_wait.in.h: Likewise.
27488         * lib/sysexits.in.h: Likewise.
27489         * lib/termios.in.h: Likewise.
27490         * lib/time.in.h: Likewise.
27491         * lib/unistd.in.h: Likewise.
27492         * lib/wchar.in.h: Likewise.
27493         * lib/wctype.in.h: Likewise.
27494         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27495         * modules/ctype (Makefile.am): Likewise.
27496         * modules/dirent (Makefile.am): Likewise.
27497         * modules/errno (Makefile.am): Likewise.
27498         * modules/fcntl-h (Makefile.am): Likewise.
27499         * modules/float (Makefile.am): Likewise.
27500         * modules/getopt-posix (Makefile.am): Likewise.
27501         * modules/iconv-h (Makefile.am): Likewise.
27502         * modules/inttypes (Makefile.am): Likewise.
27503         * modules/langinfo (Makefile.am): Likewise.
27504         * modules/locale (Makefile.am): Likewise.
27505         * modules/math (Makefile.am): Likewise.
27506         * modules/netdb (Makefile.am): Likewise.
27507         * modules/netinet_in (Makefile.am): Likewise.
27508         * modules/poll-h (Makefile.am): Likewise.
27509         * modules/pthread (Makefile.am): Likewise.
27510         * modules/pty (Makefile.am): Likewise.
27511         * modules/sched (Makefile.am): Likewise.
27512         * modules/search (Makefile.am): Likewise.
27513         * modules/selinux-h (Makefile.am): Likewise.
27514         * modules/signal (Makefile.am): Likewise.
27515         * modules/spawn (Makefile.am): Likewise.
27516         * modules/stdarg (Makefile.am): Likewise.
27517         * modules/stddef (Makefile.am): Likewise.
27518         * modules/stdint (Makefile.am): Likewise.
27519         * modules/stdio (Makefile.am): Likewise.
27520         * modules/stdlib (Makefile.am): Likewise.
27521         * modules/string (Makefile.am): Likewise.
27522         * modules/strings (Makefile.am): Likewise.
27523         * modules/sys_file (Makefile.am): Likewise.
27524         * modules/sys_ioctl (Makefile.am): Likewise.
27525         * modules/sys_select (Makefile.am): Likewise.
27526         * modules/sys_socket (Makefile.am): Likewise.
27527         * modules/sys_stat (Makefile.am): Likewise.
27528         * modules/sys_time (Makefile.am): Likewise.
27529         * modules/sys_times (Makefile.am): Likewise.
27530         * modules/sys_utsname (Makefile.am): Likewise.
27531         * modules/sys_wait (Makefile.am): Likewise.
27532         * modules/sysexits (Makefile.am): Likewise.
27533         * modules/termios (Makefile.am): Likewise.
27534         * modules/time (Makefile.am): Likewise.
27535         * modules/unistd (Makefile.am): Likewise.
27536         * modules/wchar (Makefile.am): Likewise.
27537         * modules/wctype (Makefile.am): Likewise.
27538
27539 2010-10-04  Bruno Haible  <bruno@clisp.org>
27540
27541         read-file tests: Avoid a test failure on NonStop Kernel.
27542         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27543         a regular file.
27544         Reported by Joachim Schmitz <schmitz@hp.com>.
27545
27546 2010-10-03  Bruno Haible  <bruno@clisp.org>
27547
27548         gnulib-tool: Fixes for --create-testdir with --libtool.
27549         * gnulib-tool (func_get_automake_snippet): Don't augment
27550         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27551         an executable.
27552         (func_create_testdir): Handle module 'alloca' like func_import.
27553         Reported by Bruce Korb <bruce.korb@gmail.com>.
27554
27555 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27556
27557         Avoid some lines longer than 80 characters.
27558         * lib/stdint.in.h: Break long comment lines.
27559         * lib/math.in.h: Likewise.
27560         (_GL_NUM_UINT_WORDS): New macro, for readability.
27561         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27562         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27563         * lib/stdlib.in.h: Likewise.
27564         * lib/spawn.in.h: Likewise.
27565         * lib/sys_socket.in.h: Update an URL.
27566         * lib/sys_stat.in.h: Break long line.
27567
27568 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27569
27570         Improve pmccabe2html.
27571         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27572         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27573         when the sources change. Remove the line in the HTML about "Used
27574         ranges" (which implied that there might be other unused ranges),
27575         rename "Resume" to "Summary" (easier to understand for more users).
27576         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27577         styles, and some unnecessary blank lines.
27578
27579 2010-10-03  Bruno Haible  <bruno@clisp.org>
27580             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27581
27582         acl: Add support for ACLs on NonStop Kernel.
27583         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27584         Check whether the function aclsort() exists.
27585         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27586         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27587         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27588         (acl_nontrivial [HAVE_ACLSORT]: New function.
27589         (file_has_acl): Implement for NonStop Kernel.
27590         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27591         (qset_acl): Implement for NonStop Kernel.
27592         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27593         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27594         (main): Implement for NonStop Kernel.
27595         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27596         Kernel. Handle this flavor.
27597         * tests/test-set-mode-acl.sh: Likewise.
27598         * tests/test-copy-acl.sh: Likewise.
27599         * tests/test-copy-file.sh: Likewise.
27600
27601 2010-10-03  Bruno Haible  <bruno@clisp.org>
27602
27603         Info about ACLs on NonStop Kernel.
27604         * doc/acl-resources.txt: Add info about NonStop Kernel.
27605         References by Joachim Schmitz <schmitz@hp.com>.
27606
27607 2010-10-02  Bruno Haible  <bruno@clisp.org>
27608
27609         Define missing EDQUOT on NonStop Kernel.
27610         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27611         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27613         missing.
27614         * doc/posix-headers/errno.texi: Mention the NSK bug.
27615         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27616         Reported by Joachim Schmitz <schmitz@hp.com>.
27617
27618 2010-10-02  Bruno Haible  <bruno@clisp.org>
27619
27620         Update doc for POSIX:2008.
27621         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27622         Update URL of POSIX specification.
27623
27624 2010-10-02  Bruno Haible  <bruno@clisp.org>
27625
27626         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27627         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27628         from gnulib, not from Automake.
27629
27630 2010-10-02  Bruno Haible  <bruno@clisp.org>
27631
27632         New module 'system-posix'.
27633         * modules/system-posix: New file.
27634         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27635         module is present.
27636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27637         GNULIB_SYSTEM_POSIX.
27638         * modules/stdlib (Depends-on): Remove sys_wait.
27639         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27640         * doc/posix-functions/system.texi: Mention the new module.
27641         * doc/posix-headers/stdlib.texi: Likewise.
27642         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27643         define test_sys_wait_macros to a no-op.
27644         Reported by Sam Steingold <sds@gnu.org>.
27645
27646 2010-09-30  Bruno Haible  <bruno@clisp.org>
27647
27648         More renaming from 'getdate' to 'get_date'.
27649         * doc/get_date.texi: Renamed from doc/getdate.texi.
27650         * modules/get_date (Files): Update.
27651         * MODULES.html.sh (Date and time <time.h>): Update.
27652         * DEPENDENCIES: Update.
27653         * gnulib-tool: Update comment.
27654         * m4/bison.m4 (gl_BISON): Likewise.
27655         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27656
27657 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27658
27659         bootstrap: support ACLOCAL_FLAGS during aclocal
27660         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27661         can add additional -I dir for third-party .m4 files.
27662
27663 2010-09-30  Eric Blake  <eblake@redhat.com>
27664
27665         bootstrap: use glibtoolize on MacOS
27666         * build-aux/bootstrap (check_versions): Convert libtool into
27667         libtoolize.
27668         (tool search): Move libtool check earlier, and look for
27669         glibtoolize for MacOS.
27670         (gnulib_tool_options): Auto-add --libtool when appropriate.
27671         Reported by Justin Clift.
27672
27673         poll: fix typo that broke test on MacOS
27674         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27675         Reported by Justin Clift.
27676
27677         getdate: rename to get_date
27678         Note: getdate.h is not renamed, to minimize client impact.
27679         * modules/getdate: Mark obsolete.  Move old contents...
27680         * modules/get_date: ...to new module name.
27681         * modules/getdate-tests: Move...
27682         * modules/get_date-tests: ...here.
27683         * m4/getdate.m4: Move...
27684         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27685         * lib/getdate.y: Move...
27686         * lib/get_date.y: ...here.
27687         * tests/test-getdate.c: Move...
27688         * tests/test-get_date.c: ...here.
27689         * doc/posix-functions/getdate.texi (getdate): Update name.
27690         * NEWS: Mention the change.
27691
27692 2010-09-29  Bruno Haible  <bruno@clisp.org>
27693
27694         Separate the module 'waitpid' from the module 'sys_wait'.
27695         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27696         present.
27697         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27698         gl_MODULE_INDICATOR_FOR_TESTS.
27699         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27700         * modules/sys_wait (Depends-on): Remove waitpid.
27701         (Makefile.am): Substitute GNULIB_WAITPID.
27702         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27703         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27704         signature only if the 'waitpid' module is present.
27705         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27706         * NEWS: Mention the change.
27707         * modules/grantpt (Depends-on): Add waitpid.
27708         * modules/wait-process (Depends-on): Likewise.
27709
27710 2010-09-29  Bruno Haible  <bruno@clisp.org>
27711
27712         More tests for module 'sys_wait'.
27713         * modules/sys_wait-c++-tests: New file.
27714         * tests/test-sys_wait-c++.cc: New file.
27715         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27716         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27717
27718 2010-09-29  Bruno Haible  <bruno@clisp.org>
27719
27720         New module 'waitpid'.
27721         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27722         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27723         Don't include <process.h>.
27724         (waitpid): Declare only, using modern idiom.
27725         * m4/waitpid.m4: New file.
27726         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27727         * modules/waitpid: New file.
27728         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27729         (Makefile.am): Update.
27730         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27731
27732 2010-09-28  Bruno Haible  <bruno@clisp.org>
27733
27734         poll: Assume ANSI C.
27735         * lib/poll.c (poll): Use an ANSI C declaration.
27736
27737 2010-09-28  Bruno Haible  <bruno@clisp.org>
27738
27739         poll-h: Create poll.h on all platforms.
27740         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27741         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27742         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27743         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27744         (gl_REPLACE_POLL_H): Don't set POLL_H.
27745         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27746         * modules/poll-h (Depends-on): Add include_next.
27747         (Makefile.am): Create poll.h unconditionally. Substitute also
27748         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27749
27750 2010-09-28  Bruno Haible  <bruno@clisp.org>
27751
27752         Tests for module 'poll-h'.
27753         * modules/poll-h-c++-tests: New file.
27754         * tests/test-poll-h-c++.cc: New file.
27755
27756         Tests for module 'poll-h'.
27757         * modules/poll-h-tests: New file.
27758         * tests/test-poll-h.c: New file.
27759
27760 2010-09-28  Bruno Haible  <bruno@clisp.org>
27761
27762         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27763         * modules/poll-h (Depends-on): Add 'extensions'.
27764
27765 2010-09-28  Bruno Haible  <bruno@clisp.org>
27766
27767         New module 'poll-h'.
27768         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27769         (poll): Use modern idiom.
27770         * modules/poll-h: New file.
27771         * modules/poll (Files): Remove lib/poll.in.h.
27772         (Depends-on): Add poll-h.
27773         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27774         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27775         * m4/poll_h.m4: New file.
27776         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27777         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27778         and invoke gl_REPLACE_POLL_H.
27779         * lib/poll.c: Use common idiom.
27780         * tests/test-poll.c: Likewise.
27781         * doc/posix-headers/poll.texi: Mention the poll-h module.
27782         Suggested by Eric Blake.
27783
27784 2010-09-26  Bruno Haible  <bruno@clisp.org>
27785
27786         sys_wait: Implement WSTOPSIG.
27787         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27788         Reported by Simon Josefsson.
27789
27790 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27791
27792         stdlib, sys_wait: Avoid compilation error on mingw.
27793         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27794
27795 2010-09-26  Bruno Haible  <bruno@clisp.org>
27796
27797         stdlib tests: Avoid code duplication.
27798         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27799         * modules/sys_wait-tests (Files): Likewise.
27800         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27801         * tests/test-stdlib.c: Include test-sys_wait.h.
27802         (main): Invoke test_sys_wait_macros.
27803         * tests/test-sys_wait.c: Include test-sys_wait.h.
27804         (main): Invoke test_sys_wait_macros.
27805
27806 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27807
27808         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27809         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27810         sure Windows sockets are working before calling getaddrinfo.
27811         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27812         * doc/gnulib.texi (Windows sockets): Fix typo.
27813
27814 2010-09-25  Bruno Haible  <bruno@clisp.org>
27815
27816         Tests for module 'regex-quote'.
27817         * modules/regex-quote-tests: New file.
27818         * tests/test-regex-quote.c: New file.
27819
27820         New module 'regex-quote'.
27821         * lib/regex-quote.h: New file.
27822         * lib/regex-quote.c: New file.
27823         * modules/regex-quote: New file.
27824         Suggested by Reuben Thomas <rrt@sc3d.org>.
27825
27826 2010-09-24  Bruno Haible  <bruno@clisp.org>
27827
27828         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27829         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27830
27831 2010-09-23  Bruno Haible  <bruno@clisp.org>
27832
27833         setenv: Relax license.
27834         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27835         Blake.
27836         Requested by Eric Blake.
27837
27838 2010-09-22  Bruno Haible  <bruno@clisp.org>
27839
27840         termios: Relax license.
27841         * modules/termios (License): Change to LGPLv2+.
27842         Requested by Eric Blake.
27843
27844 2010-09-22  Bruno Haible  <bruno@clisp.org>
27845
27846         threadlib: Allow the package to change the default to 'no'.
27847         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27848         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27849         Reported by Paul Eggert.
27850
27851 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27852             Bruno Haible  <bruno@clisp.org>
27853
27854         Fix endless loop in mbmemcasecoll.
27855         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27856         byte.
27857         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27858
27859 2010-09-22  Bruno Haible  <bruno@clisp.org>
27860
27861         Tests for module 'memcoll'.
27862         * modules/memcoll-tests: New file.
27863         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27864
27865         memcoll, xmemcoll: Clarify size vs. length.
27866         * modules/memcoll.c (memcoll0): Clarify specification.
27867         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27868         passed to collate_error.
27869
27870 2010-09-22  Bruno Haible  <bruno@clisp.org>
27871
27872         Tests for module 'memcasecmp'.
27873         * modules/memcasecmp-tests: New file.
27874         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27875
27876 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27877
27878         * lib/pthread.in.h: Add split double-inclusion guard, and include
27879         system <pthread.h> if there is one.  Use @@-style as in other
27880         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27881         pthread.h doesn't.
27882         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27883         (pthread_mutexattr_settype, pthread_mutex_trylock):
27884         New static inline functions, if there's no system <pthread.h>.
27885         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27886         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27887         Approximate with mutexes if the system lacks spinlocks, as in
27888         MacOS.
27889         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27890         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27891         @@-style.  Check for spinlocks separately.
27892         (gl_PTHREAD_DEFAULTS): New macro.
27893         * modules/pthread: Redo to use a more typical style for in.h files.
27894
27895 2010-09-21  Eric Blake  <eblake@redhat.com>
27896
27897         net_if: enhance tests
27898         * tests/test-net_if.c (main): Move signature checks earlier.
27899         Print failures to stderr.
27900         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27901         Document the bug that we do not yet fix.
27902
27903 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27904
27905         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27906         about gnulib, not GSS.
27907
27908 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27909
27910         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27911         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27912         for Emacs.
27913         * build-aux/pmccabe2html: Make Makefile.am example code more
27914         cut-and-paste friendly.
27915
27916 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27917
27918         * tests/test-net_if.c: New file.
27919         * modules/net_if-tests: New file.
27920
27921 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27922
27923         pthread: add pthread_spin_destroy
27924         * lib/pthread.in.h (pthread_spin_destroy): New function.
27925
27926 2010-09-19  Bruno Haible  <bruno@clisp.org>
27927
27928         gnulib-tool: Fix --help output.
27929         * gnulib-tool (func_usage): Fix help message.
27930         Reported by Reuben Thomas <rrt@sc3d.org>.
27931
27932 2010-09-18  Jim Meyering  <meyering@redhat.com>
27933
27934         maint.mk: avoid unexpanded \n in two diagnostics
27935         * top/maint.mk (sc_prohibit_always_true_header_tests):
27936         Don't use a literal \n in a halt=... assignment.  It would not be
27937         expanded, and the two \n bytes would appear in the diagnostic output
27938         rather than the desired newline.  Use halt=$$(printf ... instead.
27939         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27940
27941 2010-09-18  Bruno Haible  <bruno@clisp.org>
27942
27943         netinet_in: Doc tweak.
27944         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27945         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27946
27947 2010-09-18  Jim Meyering  <meyering@redhat.com>
27948
27949         init.sh: correct an outdated comment
27950         * tests/init.sh (create_exe_shims_):  s/function/alias/
27951
27952         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27953         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27954         a file named "*.exe" is removed between the glob expansion and the
27955         processing of that oddly named file.
27956
27957 2010-09-17  Eric Blake  <eblake@redhat.com>
27958
27959         mirbsd: add some more support
27960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27961         in BSD family.
27962         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27963         devices as OpenBSD.
27964         * m4/host-os.m4 (mirbsd): Add MirBSD.
27965
27966         tests: fix unportable assumption on sys/wait.h
27967         * tests/test-sys_wait.c (main): Relax test.
27968         * tests/test-stdlib.c (main): Likewise.
27969
27970         init.sh: accommodate directory with no .exes
27971         * tests/init.sh: Accomodate directory containing only scripts.
27972
27973         tests: avoid compiler warning
27974         * tests/test-stdlib.c (main): Use the variable.
27975
27976         fdutimens, fdutimensat: update signature, again
27977         * lib/utimens.h (gl_futimens): Delete, and move signature...
27978         (fdutimens): ...here.
27979         (fdutimensat): Rearrange signature.
27980         (lutimensat): Rename variable for clarity.
27981         * lib/fdutimensat.c (fdutimensat): Update signature.
27982         * lib/utimens.c (fdutimens): Likewise.
27983         (gl_futimens): Delete.
27984         (utimens, lutimens): Update callers.
27985         * lib/futimens.c (futimens): Likewise.
27986         * tests/test-fdutimensat.c: Likewise.
27987         * tests/test-utimens.c: Likewise.
27988         * tests/test-futimens.h: Update comment.
27989         * NEWS: Mention this.
27990         Suggested by Paul Eggert.
27991
27992 2010-09-17  Bruno Haible  <bruno@clisp.org>
27993
27994         Take over the maintenance of some older macros from Autoconf.
27995         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27996         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27997         GNU Autoconf.
27998         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27999         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28000
28001 2010-09-17  Eric Blake  <eblake@redhat.com>
28002
28003         fdutimensat: drop atflag validation
28004         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28005         with valid fd, to close a race scenario where futimens is
28006         unsupported and FILE was replaced by a symlink.
28007         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28008         accordingly.
28009         Suggested by Paul Eggert.
28010
28011 2010-09-16  Bruno Haible  <bruno@clisp.org>
28012
28013         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28014         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28015
28016 2010-09-16  Bruno Haible  <bruno@clisp.org>
28017
28018         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28019         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28020         login_tty exists.
28021         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28022
28023 2010-09-16  Bruno Haible  <bruno@clisp.org>
28024
28025         login_tty: Make the replacement code work on BSD systems.
28026         * lib/login_tty.c: Include <sys/ioctl.h>.
28027         (login_tty): Use ioctl TIOCSCTTY when available.
28028         * modules/login_tty (Depends-on): Add sys_ioctl.
28029         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28030
28031 2010-09-16  Bruno Haible  <bruno@clisp.org>
28032
28033         login_tty: Stricter unit test.
28034         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28035         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28036         and tcgetsid() after login_tty.
28037         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28038
28039 2010-09-16  Bruno Haible  <bruno@clisp.org>
28040
28041         New module 'tcgetsid'.
28042         * lib/tcgetsid.c: New file.
28043         * m4/tcgetsid.m4: New file.
28044         * modules/tcgetsid: New file.
28045         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28046         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28047         GNULIB_TCGETSID, HAVE_TCGETSID.
28048         * lib/termios.in.h: Include <sys/types.h>.
28049         (tcgetsid): New declaration.
28050         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28051         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28052         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28053         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28054
28055 2010-09-16  Bruno Haible  <bruno@clisp.org>
28056
28057         Tests for module 'termios'.
28058         * modules/termios-c++-tests: New file.
28059         * modules/termios-tests: New file.
28060         * tests/test-termios-c++.cc: New file.
28061         * tests/test-termios.c: New file.
28062
28063         New module 'termios'.
28064         * modules/termios: New file.
28065         * lib/termios.in.h: New file.
28066         * m4/termios_h.m4: New file.
28067         * doc/posix-headers/termios.texi: Mention the new module.
28068
28069 2010-09-16  Eric Blake  <eblake@redhat.com>
28070
28071         fdutimensat: add an atflag parameter
28072         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28073         * lib/utimens.h (fdutimensat): Update prototype.
28074         * tests/test-fdutimensat.c: Adjust test to match.
28075         * NEWS: Document the change.
28076         Suggested by Paul Eggert.
28077
28078 2010-09-16  Bruno Haible  <bruno@clisp.org>
28079
28080         Fix typos in comments.
28081         * lib/striconveh.h: Fix typo in comment.
28082         * lib/login_tty.c (login_tty): Likewise.
28083
28084 2010-09-15  Bruno Haible  <bruno@clisp.org>
28085
28086         stdlib: clarify MirBSD WEXITSTATUS bug
28087         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28088         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28089
28090 2010-09-15  Eric Blake  <eblake@redhat.com>
28091
28092         stdlib: work around MirBSD WEXITSTATUS bug
28093         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28094         * modules/stdlib (Depends-on): Add sys_wait.
28095         * tests/test-sys_wait.c (main): Enhance test.
28096         * tests/test-stdlib.c (main): Likewise.
28097         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28098
28099         docs: mention MacOS issue with WEXITSTATUS(constant)
28100         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28101         issue.
28102         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28103
28104         strnlen: add tests
28105         * modules/strnlen-tests: New file.
28106         * tests/test-strnlen.c: Likewise.
28107
28108 2010-09-14  Bruno Haible  <bruno@clisp.org>
28109
28110         unistr/base: Avoid link errors when module 'libunistring' is also used.
28111         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28112         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28113         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28114         Declare also when HAVE_LIBUNISTRING is set.
28115         Reported by Pádraig Brady <P@draigbrady.com>.
28116
28117 2010-09-14  Eric Blake  <eblake@redhat.com>
28118
28119         test-rawmemchr: make more robust
28120         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28121         (Depends-on, configure.ac): Add needed prerequisites to use it.
28122         * modules/memchr-tests (Files, Depends-on, configure.ac):
28123         Likewise, to avoid implicit reliance on memchr module prereqs.
28124         * tests/test-memchr.c (main): Ensure proper masking.
28125         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28126         reads.
28127
28128         memchr: detect glibc Alpha bug
28129         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28131         Alpha.
28132         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28133         * tests/test-memchr.c (main): Enhance test.
28134         Reported by Nelson H. F. Beebe.
28135
28136 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28137
28138         fts, getcwd, glob: audit for dirfd returning -1
28139         * lib/fts.c (opendir): Remove #define; no longer used.
28140         (opendirat): New arg PDIR_FD.  All callers changed.
28141         (fts_build, _opendir2): Use new opendirat to avoid the need for
28142         dirfd, or for checking whether dirfd returns a negative value.
28143         Don't use opendir; always use openat followed by fdopendir.
28144         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28145         it.
28146         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28147         returns -1 here.
28148         * modules/fts (Depends-on): Remove dirfd.
28149         * modules/getcwd (Depends-on): Likewise.
28150
28151 2010-09-13  Eric Blake  <eblake@redhat.com>
28152
28153         float: fix broken MirBSD header
28154         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28155         * doc/posix-headers/float.texi (float.h): Document it.
28156
28157 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28158
28159         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28160         * lib/fts.c (opendirat): New arg extra_flags.
28161         (__opendir2): Use it to avoid following symlinks when opening
28162         a directory, if symlinks are not supposed to be followed.  See
28163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28164
28165         fdopendir: preserve argument fd before returning
28166         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28167         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28168         (fdopendir): Use them, arranging for FD to be open to the same
28169         directory that it was when it started.  (It might be temporarily
28170         closed while fdopendir is running, so this not thread- or
28171         signal-safe.)  Be careful to do the right thing even when file
28172         descriptors are scarce and dup fails with errno == EMFILE.  See
28173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28174
28175 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28176
28177         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28178         * NEWS: Document change.
28179         * m4/regex.m4: Disable test for regoff_t size.
28180
28181 2010-09-13  Jim Meyering  <meyering@redhat.com>
28182
28183         fts: don't operate on an invalid file descriptor after failed dup
28184         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28185         negative file descriptor.
28186
28187 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28188
28189         savedir: add streamsavedir, deprecate fdsavedir
28190         * NEWS: Mention deprecation of fdsavedir.
28191         * lib/savedir.c (streamsavedir): New extern function, whose name
28192         ends in "savedir" to be consistent with the others.  This differs
28193         from savedirstream in that it doesn't close its argument.  The
28194         next version of GNU tar will use this instead of fdsavedir, to
28195         avoid some race conditions and conserve file descriptors.
28196         (savedirstream): Reimplement as a wrapper around streamsavedir.
28197         (fdsavedir): Add a comment deprecating this function.  As far as
28198         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28199         * lib/savedir.h (streamsavedir): New decl.
28200         (fdsavedir): Add a comment deprecating this.
28201
28202 2010-09-10  Bruno Haible  <bruno@clisp.org>
28203
28204         langinfo: Fix last commit.
28205         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28206         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28208
28209 2010-09-10  Bruno Haible  <bruno@clisp.org>
28210
28211         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28212         * lib/progreloc.c (O_EXEC): Define fallback.
28213
28214 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28217         * NEWS: Document recent changes to fcntl-h.
28218         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28219         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28220         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28221         Similarly for O_SEARCH; this last was already true, but not documented.
28222         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28223         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28224         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28225         Likewise.
28226         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28227         is zero, not whether it is defined.
28228         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28229         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28230         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28231
28232 2010-09-10  Bruno Haible  <bruno@clisp.org>
28233
28234         langinfo, nl_langinfo: Fix for IRIX 5.3.
28235         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28236         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28237         HAVE_LANGINFO_YESEXPR.
28238         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28239         HAVE_LANGINFO_YESEXPR.
28240         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28241         HAVE_LANGINFO_T_FMT_AMPM is 0.
28242         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28243         HAVE_LANGINFO_YESEXPR is 0.
28244         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28245         NOEXPR.
28246         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28247         * doc/posix-functions/nl_langinfo.texi: Likewise.
28248         Reported by Eric Blake.
28249
28250 2010-09-10  Bruno Haible  <bruno@clisp.org>
28251
28252         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28253         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28254         on FreeBSD 8.0 and OpenBSD 4.6.
28255         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28256         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28257         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28258         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28259         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28260         ac_includes_default.
28261         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28262
28263 2010-09-09  Eric Blake  <eblake@redhat.com>
28264
28265         strsignal: work around NetBSD bug
28266         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28267         * lib/string.in.h (includes): Likewise.
28268         * doc/posix-functions/strsignal.texi (strsignal): Document the
28269         bug.
28270         Reported by Nelson H. F. Beebe.
28271
28272         gnulib-tool: work with NetBSD /bin/sh
28273         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28274         (func_get_description, func_get_comment, func_get_status)
28275         (func_get_notice, func_get_applicability, func_get_filelist)
28276         (func_get_dependencies, func_get_autoconf_early_snippet)
28277         (func_get_autoconf_snippet, func_get_automake_snippet)
28278         (func_get_include_directive, func_get_link_directive)
28279         (func_get_license, func_get_maintainer, func_import): Avoid
28280         shell syntax errors from parsing syntax extensions.
28281
28282 2010-09-09  Bruno Haible  <bruno@clisp.org>
28283
28284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28285         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28286         a reliable way to determine whether the 'alias' command works.
28287
28288 2010-09-08  Jim Meyering  <meyering@redhat.com>
28289
28290         init.sh: penalize a set-x-impaired shell; don't disqualify it
28291         * tests/init.sh: Too many shells corrupt application stderr when
28292         you set -x, so we can't afford to disqualify them, since at least
28293         on Irix-6.5, that would disqualify all bourne shells.
28294         Instead, use a two-pass approach.
28295         On the first pass, try to find a shell that meets the stricter
28296         condition that set -x does not corrupt stderr.
28297         If no shell meets the stricter condition, retest each candidate
28298         shell, but without that extra condition.  Finally, when
28299         VERBOSE=yes is requested and set -x might cause trouble, simply
28300         issue a warning and refrain from enabling debug output.
28301
28302 2010-09-08  Eric Blake  <eblake@redhat.com>
28303
28304         unsetenv: fix OpenBSD bug
28305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28306         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28307         documentation.
28308         Reported by Jim Meyering.
28309
28310         strtod: work around IRIX 6.5 bug
28311         * lib/strtod.c (strtod): Reparse number on shorter string if
28312         exponent parse was invalid.
28313         * tests/test-strtod.c (main): Add check for "0x1p 2".
28314         Reported by Tom G. Christensen.
28315
28316         getopt: optimize previous patch
28317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28318         empty variable.  Speed up awk script.
28319         Reported by Paolo Bonzini.
28320
28321 2010-09-08  Jim Meyering  <meyering@redhat.com>
28322
28323         test.sh: disqualify shells for which set -x corrupts stderr
28324         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28325         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28326         appear in stderr output.  For example, this command:
28327             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28328         prints "P=1" on those two systems:
28329
28330 2010-09-08  Bruno Haible  <bruno@clisp.org>
28331
28332         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28333         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28334         commands, because some shells ignore redirections when there is an
28335         error in the command lookup.
28336         Reported by Eric Blake.
28337
28338 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28339
28340         * lib/regex.h: Fix a mention of `regex_compile' (should be
28341         `re_compile_pattern').
28342         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28343         (re_set_registers): Correct name of parameter in comment.
28344
28345         * doc/regex.texi: Add documentation for missing syntax flags.
28346         Remove commented-out documentation of defunct syntax option
28347         RE_NO_EMPTY_ALTS.
28348         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28349         Add documentation of re_set_registers.
28350         Document trick to re-use a pattern buffer by setting fastmap manually.
28351         Update documentation of struct re_pattern_buffer per public members.
28352         Uncomment documentation of equivalence class operators and
28353         collating symbol operators, since they are now implemented,
28354         Explain leftmost-longest matching in relation to alternatives.
28355         Tidy documentation of substring matching.
28356         Remove POSIX documentation, which is done better in
28357         glibc, and refer the reader there. Keep BSD API documentation, as
28358         that is not readily available elsewhere.
28359
28360 2010-09-07  Eric Blake  <eblake@redhat.com>
28361
28362         getopt: handle POSIXLY_CORRECT set but not exported
28363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28364         export state of POSIXLY_CORRECT, due to bash set -o posix.
28365         Reported by Dustin J. Mitchell.
28366
28367 2010-09-05  Bruno Haible  <bruno@clisp.org>
28368
28369         gnulib-tool: Highlight the changed options.
28370         * gnulib-tool (func_usage): Display the --import, --add-import,
28371         --remove-import explanations in bold font.
28372
28373 2010-09-06  Karl Berry  <karl@gnu.org>
28374
28375         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28376
28377 2010-09-05  Bruno Haible  <bruno@clisp.org>
28378
28379         uniwidth/width: Update comment.
28380         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28381         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28382
28383 2010-09-05  Bruno Haible  <bruno@clisp.org>
28384
28385         isinf, isnan: Relax license.
28386         * modules/isinf (License): Change from GPL to LGPL, with consent from
28387         Ben Pfaff.
28388         * modules/isnan (License): Likewise.
28389         Requested by Ludovic Courtès.
28390
28391 2010-09-04  Bruno Haible  <bruno@clisp.org>
28392
28393         gnulib-tool: Help migration from --import to --add-import or --update.
28394         * gnulib-tool: Emit a verbose error message when --import is used
28395         without any module name.
28396
28397 2010-09-04  Bruno Haible  <bruno@clisp.org>
28398
28399         Update doc about gnulib-tool.
28400         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28401         'gnulib-tool --update' in more detail.
28402         Reported by Eric Blake.
28403
28404 2010-09-04  Bruno Haible  <bruno@clisp.org>
28405
28406         gnulib-tool: Change --import. New options --add/remove-import.
28407         * gnulib-tool: New options --add-import, --remove-import.
28408         (func_usage): Document them.
28409         (have_associative): Define always.
28410         (func_import): In import mode, don't merge the specified settings with
28411         the cached settings. Implement remove-import mode.
28412         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28413         Explain when to use them versus --import.
28414         (Simple update): Use --add-import instead of --import.
28415         * NEWS: Mention the change.
28416
28417 2010-09-04  Bruno Haible  <bruno@clisp.org>
28418
28419         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28420         separate gnulib.mk.
28421
28422 2010-09-04  Bruno Haible  <bruno@clisp.org>
28423
28424         gnulib-tool: Don't talk about CVS any more.
28425         * gnulib-tool (func_usage, func_import): Write "version control"
28426         instead of CVS.
28427
28428 2010-09-04  Jim Meyering  <meyering@redhat.com>
28429
28430         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28431         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28432         false positives (whose names may be ill-chosen) when searching
28433         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28434         would cause a false-positive.
28435
28436         avoid coreutils "make distcheck" failure
28437         Coreutils tests with an absolute build directory name that contains
28438         a space.  Not quoting this directory name caused a failure.
28439         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28440         * tests/test-vc-list-files-cvs.sh: Likewise.
28441
28442 2010-09-04  Bruno Haible  <bruno@clisp.org>
28443
28444         gnulib-tool: Avoid error when run in a package without Makefile.am.
28445         * gnulib-tool: When collecting the m4dirs in a package that does not
28446         have a Makefile.am, eliminate those directories that contain no
28447         gnulib-cache.m4. Fix expression that counts these directories.
28448
28449 2010-09-04  Bruno Haible  <bruno@clisp.org>
28450
28451         update-copyright test: Improve output when perl is missing or too old.
28452         * tests/test-update-copyright.sh: Move test of Perl version down after
28453         the test whether Perl exists. Provide an explanation relating Perl's
28454         error message to Automake's SKIP: message.
28455
28456 2010-09-04  Bruno Haible  <bruno@clisp.org>
28457
28458         Don't augment PATH in TESTS_ENVIRONMENT.
28459         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28460         set abs_aux_dir instead of augmenting PATH.
28461         * modules/vc-list-files-tests (Makefile.am): Likewise.
28462         * tests/test-update-copyright.sh: Augment PATH here.
28463         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28464         path_prepend_.
28465         * tests/test-vc-list-files-git.sh: Likewise.
28466
28467 2010-09-04  Jim Meyering  <meyering@redhat.com>
28468
28469         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28470         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28471
28472 2010-09-04  Bruno Haible  <bruno@clisp.org>
28473
28474         strdup: Fix compilation error in C++ mode.
28475         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28476         the macro.
28477
28478 2010-09-04  Bruno Haible  <bruno@clisp.org>
28479
28480         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28481         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28482         macro into a function.
28483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28484
28485 2010-09-04  Bruno Haible  <bruno@clisp.org>
28486
28487         Set PATH_SEPARATOR the same way autoconf does.
28488         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28489         the value of PATH_SEPARATOR the same way autoconf-generated configure
28490         scripts do.
28491         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28492         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28493
28494 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28495
28496         Set PATH_SEPARATOR the same way autoconf does.
28497         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28498         the same way autoconf-generated configure scripts do.
28499         * posix-modules: Likewise.
28500
28501 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28502
28503         hash: fix safe_hasher const typo
28504         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28505         const; otherwise, there is a type error later.
28506
28507 2010-09-02  Jim Meyering  <meyering@redhat.com>
28508
28509         test-update-copyright.sh: require perl 5.8.0
28510         * tests/test-update-copyright.sh: Require 5.8.0,
28511         which Tom G. Christensen has confirmed is adequate,
28512         while 5.6.1 is not.
28513
28514 2010-09-02  Eric Blake  <eblake@redhat.com>
28515
28516         tests: init.sh improvements for re-exec'ing with zsh
28517         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28518         -vx through shell re-exec.
28519         Reported by Tom G. Christensen.
28520
28521         wctype: fix typo in previous commit
28522         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28523         Reported by Ludovic Courtès.
28524
28525 2010-09-02  Jim Meyering  <meyering@redhat.com>
28526
28527         test-update-copyright.sh: skip test if Perl is too old
28528         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28529         Reported by Tom G. Christensen.
28530
28531 2010-09-02  Bruno Haible  <bruno@clisp.org>
28532
28533         wctype: Avoid compilation error on IRIX 6.5.30.
28534         * lib/wctype.in.h (iswblank): Declare with a replacement if
28535         REPLACE_ISWBLANK is set.
28536         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28537         declared. Set REPLACE_ISWBLANK.
28538         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28539         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28540         * doc/posix-headers/wctype.texi: Likewise.
28541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28542
28543 2010-09-01  Bruno Haible  <bruno@clisp.org>
28544
28545         New module 'socketlib'.
28546         * modules/socketlib: New file.
28547         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28548         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28549         * modules/sockets (Depends-on): Add socketlib.
28550         Suggested by Sam Steingold <sds@gnu.org>.
28551
28552 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28553
28554         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28555
28556         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28557         when one needs search access to a directory but not read access.
28558         On systems where it is available, it works in some cases where
28559         O_RDONLY does not, namely on directories that are searchable but
28560         not readable, and which need only to be searchable.  If O_SEARCH
28561         is not available, fall back to the traditional method of using
28562         O_RDONLY.
28563
28564         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28565         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28566         when opening a directory that needs only to be searchable.
28567         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28568         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28569         * lib/openat-proc.c (openat_proc_name): Likewise.
28570         * lib/openat.c (openat_needs_fchdir): Likewise.
28571         * lib/save-cwd.c (save_cwd): Likewise.
28572         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28573
28574 2010-08-28  Bruno Haible  <bruno@clisp.org>
28575
28576         New module 'host-cpu-c-abi'.
28577         * modules/host-cpu-c-abi: New file.
28578         * m4/host-cpu-c-abi.m4: New file, based on part of
28579         clisp/src/m4/general.m4.
28580         Requested by Sam Steingold <sds@gnu.org>.
28581
28582 2010-08-31  Eric Blake  <eblake@redhat.com>
28583         and Jim Meyering  <meyering@redhat.com>
28584
28585         hash: factor, and guard against misbehaving hasher function
28586         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28587         of table->hasher's return value.  Also protect against a hash value
28588         so large that adding it to table->bucket results in a NULL pointer.
28589         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28590         Use it in place of open-coded check-and-abort.
28591
28592 2010-08-30  Bruno Haible  <bruno@clisp.org>
28593
28594         hash: silence spurious clang warning
28595         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28596         Reported by Eric Blake.
28597
28598 2010-08-30  Eric Blake  <eblake@redhat.com>
28599
28600         strstr, memmem, strcasestr: avoid leaked shell message
28601         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28602         FreeBSD.
28603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28605
28606         tests: silence clang warning
28607         * tests/test-malloca.c (do_allocation): Avoid dead store.
28608
28609 2010-08-29  Bruno Haible  <bruno@clisp.org>
28610
28611         gettext: Fix recent mistake.
28612         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28613
28614 2010-08-29  Bruno Haible  <bruno@clisp.org>
28615
28616         selinux-h: Offer a --without-selinux option.
28617         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28618         --without-selinux was specified, skip all tests and define
28619         HAVE_SELINUX_SELINUX_H to 0.
28620         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28621         set LIB_SELINUX to empty.
28622         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28623         gl_LIBSELINUX. If --without-selinux was specified, replace
28624         selinux/context.h.
28625         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28626
28627 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28628             Bruno Haible  <bruno@clisp.org>
28629
28630         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28631         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28632         of HAVE_REALLOC.
28633         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28634         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28635         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28636         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28637
28638 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28639             Bruno Haible  <bruno@clisp.org>
28640
28641         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28642         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28643         HAVE_CALLOC.
28644         * lib/xmalloc.c: Update accordingly.
28645         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28646         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28647         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28648
28649 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28650             Bruno Haible  <bruno@clisp.org>
28651
28652         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28653         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28654         HAVE_MALLOC.
28655         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28656         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28657         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28658
28659 2010-08-29  Bruno Haible  <bruno@clisp.org>
28660
28661         Update modules list.
28662         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28663         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28664         (String handling <string.h>): Add astrxfrm.
28665         (File system functions): Add readlinkat.
28666
28667 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28668
28669         Tests for module 'realloc-gnu'.
28670         * modules/realloc-gnu-tests: New file.
28671         * tests/test-realloc-gnu.c: New file.
28672
28673         Tests for module 'calloc-gnu'.
28674         * modules/calloc-gnu-tests: New file.
28675         * tests/test-calloc-gnu.c: New file.
28676
28677         Tests for module 'malloc-gnu'.
28678         * modules/malloc-gnu-tests: New file.
28679         * tests/test-malloc-gnu.c: New file.
28680
28681 2010-08-28  Bruno Haible  <bruno@clisp.org>
28682
28683         Rename module 'realloc' -> 'realloc-gnu'.
28684         * modules/realloc-gnu: New file, copied from modules/realloc.
28685         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28686         obsolete.
28687         * modules/mgetgroups (Depends-on): Update.
28688         * doc/posix-functions/realloc.texi: Update.
28689         * NEWS: Mention the change.
28690
28691         Rename module 'calloc' -> 'calloc-gnu'.
28692         * modules/calloc-gnu: New file, copied from modules/calloc.
28693         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28694         obsolete.
28695         * doc/posix-functions/calloc.texi: Update.
28696         * NEWS: Mention the change.
28697
28698         Rename module 'malloc' -> 'malloc-gnu'.
28699         * modules/malloc-gnu: New file, copied from modules/malloc.
28700         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28701         obsolete.
28702         * modules/argp (Depends-on): Update.
28703         * modules/regex (Depends-on): Update.
28704         * doc/posix-functions/malloc.texi: Update.
28705         * NEWS: Mention the change.
28706
28707 2010-08-28  Eric Blake  <eblake@redhat.com>
28708
28709         pread, pwrite: add missing dependency
28710         * modules/pread (Depends-on): Add extensions.
28711         * modules/pwrite (Depends-on): Likewise.
28712
28713 2010-08-28  Bruno Haible  <bruno@clisp.org>
28714
28715         unistr/u*-strchr: Fix tests dependencies.
28716         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28717         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28718         Reported by Ian Beckwith <ianb@erislabs.net>.
28719
28720 2010-08-28  Bruno Haible  <bruno@clisp.org>
28721
28722         read-file: Don't occupy too much unused memory.
28723         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28724
28725 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28726             Eric Blake  <eblake@redhat.com>
28727             Bruno Haible  <bruno@clisp.org>
28728
28729         read-file: Avoid memory reallocations with regular files.
28730         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28731         (fread_file): With regular files, use the remaining length as the
28732         initial buffer size.  Check against overflow.
28733         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28734         sys_stat.
28735
28736 2010-08-28  Bruno Haible  <bruno@clisp.org>
28737
28738         ftello: Relax license.
28739         * modules/ftello (License): Relax to LGPLv2+.
28740         Reported by Eric Blake.
28741
28742 2010-08-28  Bruno Haible  <bruno@clisp.org>
28743
28744         Avoid relocwrapper link errors due to gnulib replacement functions.
28745         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28746         function.
28747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28748
28749 2010-08-28  Bruno Haible  <bruno@clisp.org>
28750
28751         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28752         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28753         defined.
28754         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28755         Suggested by Eric Blake.
28756
28757 2010-08-28  Bruno Haible  <bruno@clisp.org>
28758
28759         sys_socket, netdb: Ensure socklen_t gets defined.
28760         * modules/sys_socket (Depends-on): Add socklen.
28761         * modules/netdb (Depends-on): Likewise.
28762         * modules/getaddrinfo (Depends-on): Remove socklen.
28763         * modules/getsockopt (Depends-on): Likewise.
28764         * modules/setsockopt (Depends-on): Likewise.
28765         * tests/test-sys_socket.c: Check that socklen_t is defined.
28766         * tests/test-netdb.c: Likewise.
28767         * m4/socklen.m4: Update comments.
28768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28769
28770 2010-08-27  Eric Blake  <eblake@redhat.com>
28771
28772         login_tty: add missing dependency
28773         * modules/login_tty (Depends-on): Add pty.
28774
28775 2010-08-26  Eric Blake  <eblake@redhat.com>
28776
28777         lib-symbol-versions: fix m4 quoting
28778         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28779         format for AC_LINK_IFELSE.
28780
28781         glob: fix compile test
28782         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28783
28784         btowc: fix missing file
28785         * modules/btowc (Files): Also ship locale-fr.m4.
28786
28787         lseek: fix link test
28788         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28789         AC_LINK_IFELSE.
28790
28791         include_next: silence autoconf 2.68 warning
28792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28793         AC_COMPILE_IFELSE as special.
28794         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28795         autoconf < 2.68.
28796
28797         acl: fix compilation test
28798         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28799         AC_COMPILE_IFELSE.
28800
28801 2010-08-26  Bruno Haible  <bruno@clisp.org>
28802
28803         Modernize AC_TRY_RUN invocations.
28804         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28805         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28806         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28807         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28808         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28809         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28810         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28812         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28815         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28816         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28819         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28820         gl_MBRLEN_NUL_RETVAL): Likewise.
28821         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28822         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28823         Likewise.
28824         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28825         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28826         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28827         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28828         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28829         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28830         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28831         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28832         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28833         Likewise.
28834         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28835         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28838         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28839         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28841         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28842         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28844
28845 2010-08-26  Bruno Haible  <bruno@clisp.org>
28846
28847         Modernize AC_TRY_LINK invocations.
28848         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28849         AC_TRY_LINK.
28850         * m4/argp.m4 (gl_ARGP): Likewise.
28851         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28852         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28853         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28856         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28857         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28858         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28859         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28860         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28861         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28862         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28863         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28864         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28865         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28866         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28867         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28868         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28869         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28870         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28871         Likewise.
28872         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28873         Likewise.
28874         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28875         Likewise.
28876         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28878         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28879         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28880         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28881         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28882         * m4/servent.m4 (gl_SERVENT): Likewise.
28883         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28884         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28886         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28887         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28888         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28891         * modules/tsearch-tests (configure.ac): Likewise.
28892
28893 2010-08-26  Bruno Haible  <bruno@clisp.org>
28894
28895         Modernize AC_TRY_COMPILE invocations.
28896         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28897         AC_TRY_COMPILE.
28898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28899         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28900         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28902         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28903         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28904         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28905         * m4/lock.m4 (gl_LOCK): Likewise.
28906         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28907         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28908         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28909         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28910         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28911         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28912         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28913         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28914         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28915         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28916         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28917         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28918         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28919         extraneous semicolon.
28920
28921 2010-08-26  Jim Meyering  <meyering@redhat.com>
28922
28923         stat-time: relax license LGPL
28924         * modules/stat-time (License): Change from GPL to LGPL,
28925         with consent from all contributors, for use in libguile.
28926         Requested by Ludovic Courtès.
28927
28928 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28929
28930         poll: return immediately on POLLHUP.
28931         * lib/poll.c (poll): Always set timeout before wait_timeout is
28932         computed.
28933
28934 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28935
28936         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28937         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28938         rmdir ("dir/.//"), unlinkat.
28939
28940 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28941
28942         stdbool: avoid spurious failure with modern xlc
28943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28944
28945 2010-08-24  Bruno Haible  <bruno@clisp.org>
28946
28947         getloadavg: simplify code
28948         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28949         gl_have_func. Update comments.
28950
28951 2010-08-24  Eric Blake  <eblake@redhat.com>
28952
28953         getloadavg: don't define SVR4 on cygwin
28954         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28955         only define SVR4 when -lkvm is required.
28956         Reported by Yaakov Selkowitz.
28957
28958 2010-08-24  Bruno Haible  <bruno@clisp.org>
28959
28960         priv-set: fix comment
28961         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28962
28963 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28964
28965         priv-set: fix comments
28966         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28967         to match code, as suggested by David Bartley in:
28968         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28969
28970 2010-08-23  Eric Blake  <eblake@redhat.com>
28971
28972         stdbool: avoid rejecting clang
28973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28974         * tests/test-stdbool.c: Enable more tests if using the system
28975         <stdbool.h> instead of the gnulib replacement.
28976         (main): Move xlc bug test to a runtime test for all compilers.
28977         Reported by Anders Kaseorg.
28978
28979         argz: fix shell quoting issue
28980         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28981         Reported by Charles Wilson.
28982
28983 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28984             Erik Faye-Lund <kusmabite@gmail.com>
28985
28986         poll, select: handle ERROR_BROKEN_PIPE.
28987         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28988         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28989         * lib/select.c (win32_compute_revents): Do not mark a pipe
28990         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28991
28992 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28993
28994         fts: allow compilation with C++
28995         * lib/fts_.h: Specify extern "C" linkage with C++.
28996
28997 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28998
28999         Fix gnulib-tool sed script de-commentation for AIX sed.
29000         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29001         sed.
29002
29003 2010-08-17  Eric Blake  <eblake@redhat.com>
29004
29005         test-stddef: test for (some) offsetof bugs
29006         * tests/test-stddef.c: Enhance test to ensure correct type of
29007         offsetof.
29008         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29009         that we are not fixing at this time.
29010
29011 2010-08-15  Bruno Haible  <bruno@clisp.org>
29012
29013         stpncpy: Allow stpncpy to be defined as a macro.
29014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29015         if it's already correctly declared.
29016         * lib/string.in.h (stpncpy): Undefine before redefining.
29017         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29018
29019 2010-08-14  Bruno Haible  <bruno@clisp.org>
29020
29021         Rename module 'memxfrm' to 'amemxfrm'.
29022         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29023         (amemxfrm): Renamed from memxfrm.
29024         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29025         (amemxfrm): Renamed from memxfrm.
29026         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29027         * NEWS: Mention the change.
29028         * MODULES.html.sh (String handling <string.h>): Update.
29029         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29030         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29031         * lib/unicase/u16-casexfrm.c: Likewise.
29032         * lib/unicase/u32-casexfrm.c: Likewise.
29033         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29034         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29035         * lib/uninorm/u16-normxfrm.c: Likewise.
29036         * lib/uninorm/u32-normxfrm.c: Likewise.
29037         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29038         memxfrm.
29039         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29040         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29041         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29042         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29043         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29044         Suggested by Paul Eggert.
29045
29046 2010-08-14  Bruno Haible  <bruno@clisp.org>
29047
29048         Tests for module 'astrxfrm'.
29049         * modules/astrxfrm-tests: New file.
29050         * tests/test-astrxfrm.c: New file.
29051
29052         New module 'astrxfrm'.
29053         * lib/astrxfrm.h: New file.
29054         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29055         * modules/astrxfrm: New file.
29056
29057 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29058
29059         regex: Tweak doc.
29060         * doc/regex.texi (Overview): Don't mention regex.c.
29061         (GNU Regular Expression Compiling): Likewise.
29062         (Match-end-of-line Operator): Mention 'not_eol'.
29063
29064 2010-08-14  Brian Gough  <bjg@gnu.org>
29065             Bruno Haible  <bruno@clisp.org>
29066
29067         git-merge-changelog: add doc relating to use with bzr and hg.
29068         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29069
29070 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29071
29072         pthread: fix pthread.h creation for srcdir != builddir
29073         * modules/pthread (Makefile.am): Fix the rule to work also in a
29074         non-srcdir build.
29075
29076 2010-08-13  Karl Berry  <karl@gnu.org>
29077
29078         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29079         * doc/posix-*/*: force line break before @url of POSIX
29080         specifications.
29081         Suggested by Werner Lemberg.
29082
29083 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29084
29085         strtod: fix const diagnostic
29086         * lib/strtod.c (strtod): Don't assign const char * to char *,
29087         as this elicits a warning from GCC when warnings are enabled.
29088
29089 2010-08-10  Pádraig Brady <P@draigbrady.com>
29090         and Eric Blake  <eblake@redhat.com>
29091
29092         copy-acl: ignore ENOTSUP on HP-UX
29093         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29094         so that it is available for HP-UX.
29095         * lib/copy-acl.c (qcopy_acl): Use it.
29096         Reported by Patrick M. Callahan.
29097
29098 2010-08-10  Eric Blake  <eblake@redhat.com>
29099
29100         open, chown: relax license
29101         * modules/open (License): Change to LGPLv2+, with consent by all
29102         authors, for use in augeas.
29103         * modules/chown (License): Likewise.
29104         * modules/lchown (Likewise): Likewise.
29105         Requested by Adam Stokes.
29106
29107 2010-08-09  Karl Berry  <karl@gnu.org>
29108
29109         * build-aux/ar-lib: new file, import from Automake.
29110         * config/srclist.txt: autocheck for updates.
29111
29112 2010-08-09  Eric Blake  <eblake@redhat.com>
29113
29114         readlinkat: adjust client modules
29115         * modules/areadlinkat (Depends-on): Use readlinkat, not
29116         symlinkat.
29117         * modules/areadlinkat-with-size (Depends-on): Likewise.
29118
29119         mknod: be more vocal about danger of running tests as root
29120         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29121         root, since that is just asking for problems.
29122         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29123
29124         readlinkat: split into its own module
29125         * modules/symlinkat: Split readlinkat...
29126         * modules/readlinkat: ...into separate module.
29127         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29128         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29129         * lib/symlinkat.c (readlinkat): Move...
29130         * lib/readlinkat.c: ...into new file.
29131         * modules/symlinkat-tests: Split readlinkat test...
29132         * modules/readlinkat-tests: ...into separate module.
29133         * tests/test-symlinkat.c: Split...
29134         * tests/test-readlinkat.c: ...into new file.
29135         * NEWS: Document the split.
29136         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29137         * lib/unistd.in.h (readlinkat): Likewise.
29138         Suggested by Bruno Haible.
29139
29140 2010-08-08  Bruno Haible  <bruno@clisp.org>
29141
29142         memxfrm: Speed up.
29143         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29144         that usually only one call to strxfrm is necessary for each string
29145         part.
29146         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29147
29148 2010-08-07  Karl Berry  <karl@gnu.org>
29149
29150         * doc/posix-headers/limits.texi,
29151         * doc/posix-functions/malloc.texi,
29152         * doc/posix-functions/strsignal.texi: missing @item.
29153         * doc/ld-version-script.texi: spurious leading i.
29154         * doc/regex.texi (Interval Operators): no commas inside @var.
29155
29156 2010-08-01  Bruno Haible  <bruno@clisp.org>
29157
29158         Integrate the regex documentation.
29159         * doc/gnulib.texi: Define 'cn' index.
29160         (Regular expressions): New a chapter that includes regex.texi and
29161         regexprops-generic.texi.
29162         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29163         syntax.
29164
29165         Whitespace cleanup.
29166         * doc/regex.texi: Remove trailing spaces.
29167
29168         Add regex documentation.
29169         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29170         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29171         Written by Kathy A. Hargreaves and Karl Berry.
29172
29173 2010-08-01  Bruno Haible  <bruno@clisp.org>
29174
29175         link: Update documentation.
29176         * doc/posix-functions/link.texi: Update regarding Solaris.
29177
29178 2010-07-31  Bruno Haible  <bruno@clisp.org>
29179
29180         Update modules list.
29181         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29182         (String handling <string.h>): Add memcmp2, memxfrm.
29183         (Container data structures): Add xlist, xsublist, xoset.
29184         (Core language properties): Add alignof, unused-parameter.
29185         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29186         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29187         (Unibyte characters <ctype.h>): New section.
29188         (String handling <string.h>): New section.
29189         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29190         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29191         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29192         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29193         tan, tanh, tanl, y0, y1, yn.
29194         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29195         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29196         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29197         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29198         unlockpt, vdprintf, vdprintf-posix.
29199         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29200         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29201         xconcat-filename.
29202         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29203         getdtablesize, pipe2, pipe2-safer.
29204         (Security): New section.
29205         (Networking functions): Add accept4.
29206         (Signal handling): Add sigpipe.
29207         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29208         mbmemcasecoll.
29209         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29210         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29211         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29212         pipe-filter-ii.
29213         (Misc): Add argp-version-etc, login_tty, parse-duration.
29214
29215 2010-07-31  Bruno Haible  <bruno@clisp.org>
29216
29217         Improve doc in MODULES.html.
29218         * modules/linkat (Description): Add the word "function".
29219         * modules/mkfifo (Description): Likewise.
29220         * modules/mknod (Description): Likewise.
29221         * modules/remove (Description): Likewise.
29222         * modules/renameat (Description): Likewise.
29223         * modules/stat (Description): Likewise.
29224         * modules/symlink (Description): Likewise.
29225         * modules/unlink (Description): Likewise.
29226
29227 2010-07-31  Bruno Haible  <bruno@clisp.org>
29228
29229         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29230         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29231         option --enable/disable-c++ instead of --enable/disable-cxx.
29232         * NEWS: Mention the change.
29233
29234 2010-07-31  Bruno Haible  <bruno@clisp.org>
29235
29236         readlink, areadlink: Relax test a bit.
29237         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29238         alternative to ENOTDIR.
29239         * tests/test-areadlink.h (test_areadlink): Likewise.
29240         Reported by Rainer Tammer.
29241
29242 2010-07-31  Bruno Haible  <bruno@clisp.org>
29243
29244         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29245         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29246         character, perform the search using U_STRCHR.
29247         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29248         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29249         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29250         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29251         Suggested by Paolo Bonzini.
29252
29253 2010-07-31  Bruno Haible  <bruno@clisp.org>
29254
29255         unistr/u*-strstr: Fix dependencies.
29256         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29257         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29258         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29259
29260 2010-07-31  Bruno Haible  <bruno@clisp.org>
29261
29262         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29263         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29264         the beginning of the loop.
29265         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29266         cases in 'switch' statement.
29267
29268         unistr/u8-strchr: Fix several bugs.
29269         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29270         the string. When not found, return NULL, not a pointer near the end.
29271
29272         More tests for unistr/u8-strchr.
29273         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29274         that the function does not read past the first occurrence of the byte
29275         being searched.
29276         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29277         * tests/unistr/test-u16-strchr.c (main): New function.
29278         * tests/unistr/test-u32-strchr.c (main): New function.
29279
29280 2010-07-31  Bruno Haible  <bruno@clisp.org>
29281
29282         posix-modules: Ignore backup files of documentation files.
29283         * posix-modules: grep only through files named *.texi.
29284
29285 2010-07-31  Bruno Haible  <bruno@clisp.org>
29286
29287         symlinkat: Fix documentation.
29288         * doc/posix-functions/readlinkat.texi: Fix module name.
29289
29290 2010-07-31  Bruno Haible  <bruno@clisp.org>
29291
29292         fchownat: Replace also when chown has the trailing slash bug.
29293         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29294         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29295         introduced on 2010-04-10.
29296         Reported by Rainer Tammer.
29297
29298 2010-07-31  Bruno Haible  <bruno@clisp.org>
29299
29300         linkat: Work around AIX 7.1 bug.
29301         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29302         whether linkat handles trailing slash correctly. If not, replace linkat
29303         and define LINKAT_TRAILING_SLASH_BUG.
29304         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29305         check whether (fd1,file1) points to a directory if file1 or file2 ends
29306         in a slash. Code taken from lib/link.c.
29307         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29308         Reported by Rainer Tammer.
29309
29310 2010-07-31  Bruno Haible  <bruno@clisp.org>
29311
29312         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29313         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29314         This disables an xlc optimization that was causing wrong test results.
29315         Reported by Rainer Tammer.
29316
29317 2010-07-31  Bruno Haible  <bruno@clisp.org>
29318
29319         iconv: Work around AIX 6.1..7.1 bug.
29320         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29321         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29322         cross-compiling, guess no on all versions of AIX.
29323         Reported by Rainer Tammer.
29324
29325 2010-07-31  Bruno Haible  <bruno@clisp.org>
29326
29327         readlink: Relax test a bit.
29328         * tests/test-readlink.h (test_readlink): Allow different errno value
29329         when readlink is called with a file name that ends in / and refers to
29330         a file.
29331         Suggested by Eric Blake.
29332         Reported by Rainer Tammer.
29333
29334 2010-07-31  Bruno Haible  <bruno@clisp.org>
29335
29336         copysign: Does not require -lm on glibc systems.
29337         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29338         gl_COMMON_DOUBLE_MATHFUNC.
29339         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29340
29341 2010-07-31  Bruno Haible  <bruno@clisp.org>
29342
29343         duplocale: Work around AIX 7.1 bug.
29344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29345         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29346         * lib/duplocale.c (rpl_duplocale): Update comment.
29347         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29348         Reported by Rainer Tammer.
29349
29350 2010-07-30  Bruno Haible  <bruno@clisp.org>
29351
29352         dirfd: Avoid link error on AIX 7.1.
29353         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29354         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29355         exist, set REPLACE_DIRFD.
29356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29357         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29358         * doc/posix-functions/dirfd.texi: Update.
29359         Reported by Rainer Tammer.
29360
29361 2010-07-30  Eric Blake  <eblake@redhat.com>
29362
29363         strtod: next round of AIX fixes
29364         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29365         exponent.
29366         * tests/test-strtod.c (main): Enhance tests.
29367         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29368         Reported by Rainer Tammer.
29369
29370         futimens: fix configure check
29371         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29372         Reported by Bruno Haible.
29373
29374 2010-07-30  Bruno Haible  <bruno@clisp.org>
29375
29376         getline: Update regarding AIX.
29377         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29378         Reported by Rainer Tammer.
29379
29380 2010-07-30  Bruno Haible  <bruno@clisp.org>
29381
29382         wcwidth: Drop replacement on AIX 7.
29383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29384         AIX 7.
29385         Reported by Rainer Tammer.
29386
29387 2010-07-30  Bruno Haible  <bruno@clisp.org>
29388
29389         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29391         a 'char *'.
29392         Reported by Rainer Tammer.
29393
29394 2010-07-30  Bruno Haible  <bruno@clisp.org>
29395
29396         unlink: Update regarding AIX.
29397         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29398         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29399         Reported by Rainer Tammer.
29400
29401 2010-07-30  Bruno Haible  <bruno@clisp.org>
29402
29403         symlink: Update regarding AIX.
29404         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29405         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29406         Reported by Rainer Tammer.
29407
29408 2010-07-30  Bruno Haible  <bruno@clisp.org>
29409
29410         strndup: Update regarding AIX.
29411         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29412         AIX 7.
29413         Reported by Rainer Tammer.
29414
29415 2010-07-30  Bruno Haible  <bruno@clisp.org>
29416
29417         stat: Update regarding AIX.
29418         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29419         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29420         Reported by Rainer Tammer.
29421
29422 2010-07-30  Bruno Haible  <bruno@clisp.org>
29423
29424         truncl: Fix autoconf test.
29425         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29426         whether truncl works.
29427         Reported by Rainer Tammer.
29428
29429 2010-07-30  Bruno Haible  <bruno@clisp.org>
29430
29431         round: Update regarding AIX.
29432         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29433         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29434         Reported by Rainer Tammer.
29435
29436 2010-07-30  Bruno Haible  <bruno@clisp.org>
29437
29438         rename: Update regarding AIX.
29439         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29440         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29441         Reported by Rainer Tammer.
29442
29443 2010-07-30  Bruno Haible  <bruno@clisp.org>
29444
29445         printf.m4: Update regarding AIX.
29446         * m4/printf.m4: Update comments regarding AIX.
29447         Reported by Rainer Tammer.
29448
29449 2010-07-30  Bruno Haible  <bruno@clisp.org>
29450
29451         iconv: Update regarding AIX.
29452         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29453         AIX 7.
29454         Reported by Rainer Tammer.
29455
29456 2010-07-30  Bruno Haible  <bruno@clisp.org>
29457
29458         getopt: Update regarding AIX.
29459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29460         no on AIX.
29461         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29462         Reported by Rainer Tammer.
29463
29464 2010-07-30  Bruno Haible  <bruno@clisp.org>
29465
29466         ldexpl; Update regarding AIX.
29467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29468         on AIX 7.
29469         Reported by Rainer Tammer.
29470
29471 2010-07-30  Bruno Haible  <bruno@clisp.org>
29472
29473         frexpl: Update regarding AIX.
29474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29475         on AIX 7.
29476         Reported by Rainer Tammer.
29477
29478 2010-07-30  Bruno Haible  <bruno@clisp.org>
29479
29480         open, fopen: Update regarding AIX.
29481         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29482         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29483         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29484         * doc/posix-functions/fopen.texi: Likewise.
29485         Reported by Rainer Tammer.
29486
29487 2010-07-30  Bruno Haible  <bruno@clisp.org>
29488
29489         chown: Update doc regarding AIX.
29490         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29491         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29492         Reported by Rainer Tammer.
29493
29494 2010-07-30  Eric Blake  <eblake@redhat.com>
29495
29496         strtod: fix bug in replacement function on AIX
29497         * lib/strtod.c (strtod): Special case broken "0x" parse in
29498         underlying strtod.
29499         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29500         * doc/posix-functions/strtod.texi (strtod): Likewise.
29501         Reported by Rainer Tammer.
29502
29503 2010-07-30  Bruno Haible  <bruno@clisp.org>
29504
29505         mbrlen: Fix cross-compilation guess for AIX.
29506         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29507         guess. Leftover from 2008-12-22.
29508
29509 2010-07-30  Bruno Haible  <bruno@clisp.org>
29510
29511         mbrtowc: Fix cross-compilation guess for AIX.
29512         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29513         guess. Leftover from 2008-12-21.
29514
29515 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29516
29517         init.sh: work around trap limitation of some shells
29518         * tests/init.sh (setup_): Move exit trap outside of shell function.
29519
29520 2010-07-29  Eric Blake  <eblake@redhat.com>
29521
29522         strtod: aid debugging
29523         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29524         understanding why strtod is rejected.
29525
29526 2010-07-28  Bruno Haible  <bruno@clisp.org>
29527
29528         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29529         * lib/unistr/u8-chr.c: Include <string.h>.
29530         * tests/unistr/test-u8-chr.c: Likewise.
29531         * tests/unistr/test-u16-chr.c: Likewise.
29532         * tests/unistr/test-u32-chr.c: Likewise.
29533         * tests/unistr/test-u8-strchr.c: Likewise.
29534         * tests/unistr/test-u16-strchr.c: Likewise.
29535         * tests/unistr/test-u32-strchr.c: Likewise.
29536         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29537         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29538         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29539         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29540
29541 2010-07-28  Bruno Haible  <bruno@clisp.org>
29542
29543         Use spaces for indentation, not tabs.
29544         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29545
29546 2010-07-27  Bruno Haible  <bruno@clisp.org>
29547
29548         mbspcasecmp: Fix function specification.
29549         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29550         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29551         Reported by Eric Blake <eblake@redhat.com>.
29552
29553 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29554
29555         timespec: use cast and not conditional, as truncation isn't possible
29556         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29557         instead of a conditional.  Comment about the situation in more detail.
29558         This undoes most of the 2009-10-29 patch.
29559
29560 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29561
29562         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29563         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29564         * lib/unistr/u8-strchr.c: Likewise.
29565         * modules/unistr/u8-chr: Depend on memchr.
29566
29567         unistr/u*-strchr: add tests
29568         * modules/unistr/u8-strchr-tests: New file.
29569         * modules/unistr/u16-strchr-tests: New file.
29570         * modules/unistr/u32-strchr-tests: New file.
29571         * tests/unistr/test-strchr.h: New file.
29572         * tests/unistr/test-u8-strchr.c: New file.
29573         * tests/unistr/test-u16-strchr.c: New file.
29574         * tests/unistr/test-u32-strchr.c: New file.
29575
29576         unistr/u*-chr: test multibyte sequences more
29577         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29578         test vector.
29579         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29580         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29581         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29582
29583         unistr/u*-chr: test multibyte sequences
29584         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29585
29586         unistr/u*-chr: prepare for multibyte tests
29587         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29588         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29589         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29590         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29591         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29592         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29593
29594 2010-07-18  Bruno Haible  <bruno@clisp.org>
29595
29596         unistr/u8-strchr: Optimize non-ASCII argument case.
29597         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29598         because the first byte often matches anyway.
29599         Reported by Pádraig Brady <P@draigbrady.com>.
29600
29601 2010-07-15  Karl Berry  <karl@gnu.org>
29602
29603         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29604
29605 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29606
29607         getcwd: on Solaris, work better if ancestors are inaccessible
29608         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29609         buffer and size, try again with a large buffer.  This works better
29610         on Solaris, since its getcwd succeeds even if the path to the root
29611         is inaccessible, and this is helpful in common cases such as .zfs
29612         hidden directories.  Problem reported by J Chapman Flack in
29613         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29614         Use system getcwd if it's declared, not merely if it's partly
29615         working; use the partly-working test only to avoid needless effort
29616         if the system getcwd fails.
29617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29618         comment that was already obsolete and is now even more obsolete.
29619         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29620         now might call strdup.
29621
29622 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29623
29624         pthread: Add enough so that coreutils/src/sort.c compiles.
29625         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29626         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29627         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29628         Include <sys/types.h>, in case it defines pthread_t.
29629         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29630         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29631         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29632         (pthread_rwlockattr_t, pthread_spinlock_t):
29633         New typedefs, if HAVE_PTHREAD_T is not defined.
29634         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29635         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29636         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29637         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29638         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29639         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29640         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29641         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29642         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29643         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29644         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29645         New macros.
29646         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29647         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29648         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29649         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29650         (pthread_spin_unlock): New dummy functions.
29651         (pthread_create): Return EAGAIN; don't set errno.
29652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29653         require AC_C_INLINE.
29654         * modules/pthread (Depends-on): Add sched, time.
29655         (pthread.h): Use AM_V_GEN.
29656
29657 2010-07-13  Bruno Haible  <bruno@clisp.org>
29658
29659         striconveh: Don't malloc memory if the result buffer is sufficient.
29660         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29661         buffer if its size is sufficient.
29662         Reported by Ludovic Courtès <ludo@gnu.org>.
29663
29664 2010-07-13  Bruno Haible  <bruno@clisp.org>
29665
29666         strtod: Add safety check.
29667         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29668
29669 2010-07-12  Bruno Haible  <bruno@clisp.org>
29670
29671         Unify tests that set gl_cv_func_ldexpl_no_libm.
29672         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29673         gl_FUNC_LDEXPL.
29674         (gl_FUNC_LDEXPL): Invoke it.
29675         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29676
29677 2010-07-12  Bruno Haible  <bruno@clisp.org>
29678
29679         Unify tests that set gl_cv_func_ldexp_no_libm.
29680         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29681         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29682         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29683         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29684         * modules/strtod (Files): Add m4/ldexp.m4.
29685
29686 2010-07-12  Bruno Haible  <bruno@clisp.org>
29687
29688         Unify tests that set gl_cv_func_frexpl_no_libm.
29689         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29690         gl_FUNC_FREXPL_NO_LIBM.
29691         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29693
29694 2010-07-12  Bruno Haible  <bruno@clisp.org>
29695
29696         Unify tests that set gl_cv_func_frexp_no_libm.
29697         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29698         gl_FUNC_FREXP_NO_LIBM.
29699         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29700         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29701
29702 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29703
29704         memcoll: clarify sizes versus lengths, document better, and tweak perf
29705         * lib/memcoll.c (strcoll_loop, memcoll0):
29706         Improve quality of descriptive comments.  Name variables
29707         consistently as to whether they are lengths (which do not include
29708         terminating null) versus sizes (which do).
29709         * lib/xmemcoll.c (xmemcoll0): Likewise.
29710         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29711         returned when s1size == 0; this is easier to compile and saves
29712         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29713
29714 2010-07-12  Bruno Haible  <bruno@clisp.org>
29715
29716         Tests for module '_Exit'.
29717         * modules/_Exit-tests: New file.
29718         * tests/test-_Exit.sh: New file.
29719         * tests/test-_Exit.c: New file.
29720
29721         New module '_Exit'.
29722         * lib/stdlib.in.h (__attribute__): New macro.
29723         (_Exit): New declaration.
29724         * lib/_Exit.c: New file.
29725         * m4/_Exit.m4: New file.
29726         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29727         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29728         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29729         * modules/_Exit: New file.
29730         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29731         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29732
29733 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29734
29735         strtod: make it more-accurate typically, and don't require libm
29736         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29737         Include limits.h.  Don't include string.h.
29738         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29739         (locale_isspace): New function, so that no casts are needed to
29740         check whether *s is a space.
29741         (ldexp): Provide an unused dummy if not available.
29742         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29743         (strtod): Use them.  This implementation prefers to use the
29744         underlying strtod if available, falling back on our own code
29745         only to fix known bugs.  This is more likely to produce an
29746         accurate result.  Also, it avoids the use of libm functions.
29747         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29748         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29749         was absent, but it caused a test failure with coreutils.
29750         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29751         with libm.
29752         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29753         * modules/strtod-tests (Makefile.am): Likewise.
29754
29755 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29756             Bruno Haible  <bruno@clisp.org>
29757
29758         unistr/u8-strchr: Optimize ASCII argument case.
29759         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29760
29761 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29762
29763         (x)memcoll: minor tweaks
29764         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29765         is after the type that it qualifies.
29766         (memcoll0): Likewise.
29767         * lib/memcoll.h (memcoll0): Likewise.
29768         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29769         * lib/xmemcoll.h (xmemcoll0): Likewise.
29770         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29771         differs from memcoll in that the NUL byte is part of the argument.
29772         Omit the abort-checks, as performance is a real issue here.  Plus,
29773         the checks were wrong anyway (an off-by-one error).  Omit local
29774         variable 'diff', as it's a bit clearer that way.
29775         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29776         no longer needed.
29777
29778 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29779
29780         (x)memcoll: speedup when input is known to be NUL delimited
29781         * lib/memcoll.c: Include stdlib.
29782         (memcoll0): New function.
29783         (strcoll_loop): New function, refactored for use in both memcoll
29784         and memcoll0.
29785         * lib/memcoll.h (memcoll0): Add prototype.
29786         * lib/xmemcoll.c (xmemcoll0): New function.
29787         (collate_error): New function, refactored for use in both xmemcoll
29788         and xmemcoll0.
29789         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29790         * m4/memcoll.m4: add inline invocation.
29791
29792 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29793
29794         * build-aux/bootstrap: Remove any local translations
29795         from the translation project synchronization directory,
29796         so that local only translations are not distributed.
29797
29798 2010-07-04  Bruno Haible  <bruno@clisp.org>
29799
29800         fsusage: Clarify which code applies to which platforms.
29801         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29802         platform.
29803         * lib/fsusage.c (get_fs_usage): Likewise.
29804
29805 2010-07-04  Bruno Haible  <bruno@clisp.org>
29806
29807         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29808         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29809         Reported by Martin Lambers <marlam@marlam.de>.
29810
29811 2010-07-04  Jim Meyering  <meyering@redhat.com>
29812
29813         hash: once again explicitly disallow insertion of NULL
29814         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29815         inserting a NULL pointer cannot work with these functions.
29816         Add a comment with details.
29817         This reverts part of the 2010-07-01 commit, 5bef1a35
29818         "hash: extend module to deal with non-pointer keys".
29819
29820 2010-07-01  Bruno Haible  <bruno@clisp.org>
29821
29822         stdbool: Update doc.
29823         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29824         Info from Christian Weisgerber <naddy@mips.inka.de>.
29825
29826 2010-07-01  Jim Meyering  <meyering@redhat.com>
29827
29828         hash: extend module to deal with non-pointer keys
29829         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29830         but that allows insertion of non-pointer entries.
29831         Do not disallow an ENTRY value of NULL.
29832         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29833         * lib/hash.h (hash_insert0): Declare.
29834
29835 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29836
29837         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29838         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29839         not present (i.e. with autoconf 2.59 and when using gettextize, not
29840         gnulib), require AC_GNU_SOURCE instead.
29841
29842 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29843
29844         idpriv-drop: Fix tests.
29845         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29846         not to the test-idpriv-droptemp program.
29847
29848 2010-06-29  Bruno Haible  <bruno@clisp.org>
29849
29850         string: Fix syntax error with g++ 2.96.
29851         * lib/string.in.h (__pure__): Remove definition.
29852         (_GL_ATTRIBUTE_PURE): New macro.
29853         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29854         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29855         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29856
29857 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29858
29859         unitypes: Fix bug introduced on 2010-05-18.
29860         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29861
29862 2010-06-22  Eric Blake  <eblake@redhat.com>
29863
29864         memmem: slight optimization
29865         * lib/str-two-way.h (critical_factorization): Update comments.
29866         Reduce work during factorization phase.
29867         Reported by Carlos Bueno <carlos@bueno.org>.
29868
29869 2010-06-21  Bruno Haible  <bruno@clisp.org>
29870
29871         Fix HAVE_CALLOC_POSIX misnomer.
29872         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29873         !HAVE_CALLOC_POSIX.
29874         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29875         HAVE_CALLOC_POSIX.
29876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29877         instead of HAVE_CALLOC_POSIX.
29878         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29879         HAVE_CALLOC_POSIX.
29880
29881         Use modern idiom for calloc() replacement.
29882         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29883         AC_FUNC_CALLOC.
29884         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29885         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29886         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29887         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29888         (gl_REPLACE_CALLOC): New macro.
29889
29890 2010-06-21  Bruno Haible  <bruno@clisp.org>
29891
29892         Fix HAVE_REALLOC_POSIX misnomer.
29893         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29894         !HAVE_REALLOC_POSIX.
29895         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29896         HAVE_REALLOC_POSIX.
29897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29898         instead of HAVE_REALLOC_POSIX.
29899         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29900         HAVE_REALLOC_POSIX.
29901
29902         Use modern idiom for realloc() replacement.
29903         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29904         AC_FUNC_REALLOC.
29905         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29906         Autoconf's AC_FUNC_REALLOC.
29907         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29908         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29909         (gl_REPLACE_REALLOC): New macro.
29910         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29911
29912 2010-06-21  Bruno Haible  <bruno@clisp.org>
29913
29914         Fix HAVE_MALLOC_POSIX misnomer.
29915         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29916         !HAVE_MALLOC_POSIX.
29917         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29918         HAVE_MALLOC_POSIX.
29919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29920         instead of HAVE_MALLOC_POSIX.
29921         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29922         HAVE_MALLOC_POSIX.
29923
29924         Use modern idiom for malloc() replacement.
29925         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29926         AC_FUNC_MALLOC.
29927         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29928         Autoconf's AC_FUNC_MALLOC.
29929         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29930         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29931         (gl_REPLACE_MALLOC): New macro.
29932         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29933
29934 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29935
29936         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29937         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29938         This macro takes 3 arguments, not 4.
29939
29940 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29941
29942         ipv6: fix detection under mingw
29943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29944         in6_addr.
29945
29946 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29947
29948         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29949         that strtod() works when cross-compiling to a glibc version known
29950         to work.
29951
29952 2010-06-15  Bruno Haible  <bruno@clisp.org>
29953
29954         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29955
29956 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29957
29958         select: Correct timeout.
29959         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29960
29961 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29962
29963         git-version-gen: init shell var to avoid env var influence
29964         * build-aux/git-version-gen (v): Init shell var to empty.
29965
29966 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29967
29968         priv-set: Don't assume that priv.h exists merely because getppriv does.
29969         See Jan Andersen's bug report about AIX 5L in
29970         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29971         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29972         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29973         * lib/priv-set.h: Likewise.
29974         * tests/test-priv-set.c: Likewise.
29975
29976 2010-06-13  Bruno Haible  <bruno@clisp.org>
29977
29978         relocatable: Make it easier to test whether to install wrappers.
29979         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29980         RELOCATABLE_VIA_WRAPPER.
29981
29982 2010-06-13  Bruno Haible  <bruno@clisp.org>
29983
29984         gnulib-tool: Display specified modules and dependencies differently.
29985         * gnulib-tool (func_show_module_list): New function.
29986         (func_import, func_create_testdir): Invoke it.
29987         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29988
29989 2010-06-13  Bruno Haible  <bruno@clisp.org>
29990
29991         gnulib-tool: Align code of func_import and func_create_testdir.
29992         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29993         specified_modules.
29994
29995 2010-06-12  Jim Meyering  <meyering@redhat.com>
29996
29997         test-inttostr: avoid spurious failure on Solaris 9
29998         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29999         to accept "%ju".  Reported by Bruno Haible.
30000
30001 2010-06-11  Jim Meyering  <meyering@redhat.com>
30002
30003         test-sys_socket: mark variables as used more readably
30004         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30005         as "used" explicitly via (void) statement casts.  This is more
30006         readable than using them in an artificial return expression.
30007         Suggestion from Bruno Haible.
30008
30009 2010-06-11  Bruno Haible  <bruno@clisp.org>
30010
30011         Avoid some more warnings from "gcc -Wwrite-strings".
30012         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30013         to 'const char *'.
30014         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30015         * tests/test-c-strcasestr.c (main): Likewise.
30016         * tests/test-mbscasestr1.c (main): Likewise.
30017         * tests/test-mbscasestr2.c (main): Likewise.
30018         * tests/test-memmem.c (main): Likewise.
30019         * tests/test-strstr.c (main): Likewise.
30020         * tests/test-strcasestr.c (main): Likewise.
30021
30022 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30023
30024         init.sh: change framework_failure_ to fail with status 99, not 1
30025         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30026         automake's parallel-tests rule that this is an unexpected failure,
30027         even if the test is listed in XFAIL_TESTS.
30028
30029 2010-06-11  Jim Meyering  <meyering@redhat.com>
30030
30031         test-inttostr: avoid warnings about 4-6KB literal strings
30032         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30033         Include "macros.h", for its definition of ASSERT.
30034         (CK): s/assert/ASSERT/
30035         * modules/inttostr-tests (Files): Add macros.h.
30036
30037         init.sh: don't use $ME_ or skip_ before they are defined
30038         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30039         their first uses.  Also hoist their companions: warn_, fail_,
30040         framework_failure_, $stderr_fileno.  Prompted by a patch from
30041         Stefano Lattarini.
30042
30043         test-sys_socket: avoid set-but-not-used warnings from gcc
30044         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30045         avoid warning about set-but-not-used variables.
30046
30047         test-xvasprintf: avoid 'const' discard warnings
30048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30049         "const" when assigning from literal strings.
30050         (test_xasprintf): Add "void" in function argument list to placate
30051         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30052
30053         tests: avoid compilation warnings in argmatch and exclude tests...
30054         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30055         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30056         Since it always exits, declare with the "noreturn" attribute.
30057         * tests/test-argmatch.c: Likewise.
30058
30059         tests: avoid 'const' discard warnings in mbsstr tests
30060         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30061         * tests/test-mbsstr2.c (main): Likewise.
30062
30063         test-verify: avoid warning from gcc's -Wmissing-declarations
30064         * tests/test-verify.c (function): Declare to be static.
30065
30066         test-inttostr.c: include <string.h> for use of strcmp
30067         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30068
30069         test-linkat: avoid failed assertion on "other" architectures
30070         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30071         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30072         sparc: https://bugs.launchpad.net/bugs/591968
30073
30074 2010-06-11  Jim Meyering  <meyering@redhat.com>
30075
30076         printf.m4: avoid autoconf's "Expanded Before Required" warning
30077         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30078         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30079         autoconf warning.
30080
30081 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30082
30083         Replacement header templates are now named with ".in", not "_".
30084         * doc/gnulib-intro.texi: Correct.
30085
30086 2010-06-10  Jim Meyering  <meyering@redhat.com>
30087
30088         inttostr-tests: depend on snprintf, not snprintf-posix
30089         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30090         snprintf-posix, to avoid this aclocal failure:
30091           missing file gnulib-tests/vasnprintf.c
30092           configure.ac:45: error: expected source file, required through \
30093           AC_LIBSOURCES, not found
30094
30095 2010-06-10  Jim Meyering  <meyering@redhat.com>
30096
30097         inttostr: add a new function, inttostr, and tests
30098         The namesake function was not available.  The existence of the
30099         template file, inttostr.c makes its addition nontrivial.
30100         * lib/anytostr.c: Rename from inttostr.c.
30101         (anytostr): Rename from inttostr.
30102         * lib/inttostr.c: New file.
30103         * modules/inttostr (Files): Add anytostr.c.
30104         (Makefile.am): Set lib_SOURCES instead of ...
30105         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30106         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30107         * lib/offtostr.c: Likewise.
30108         * lib/uinttostr.c: Likewise.
30109         * lib/umaxtostr.c: Likewise.
30110         * modules/inttostr-tests: New file.
30111         * tests/test-inttostr.c: New file.  Test these functions.
30112
30113 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30114             Bruno Haible  <bruno@clisp.org>
30115
30116         Add "Extending Gnulib" chapter to manual.
30117         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30118         chapter.
30119         (Extending Gnulib): New chapter.
30120         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30121         chapter.
30122
30123 2010-06-09  Bruno Haible  <bruno@clisp.org>
30124
30125         Avoid relocwrapper link errors due to gnulib replacement functions.
30126         * lib/areadlink.c: Use the system's malloc, realloc functions.
30127         (areadlink): Set errno to ENOMEM explicitly.
30128         * modules/areadlink (Depends-on): Remove malloc-posix.
30129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30130
30131 2010-06-09  Bruno Haible  <bruno@clisp.org>
30132
30133         Avoid relocwrapper link errors due to gnulib replacement functions.
30134         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30135         * lib/malloca.c: Likewise.
30136         * lib/relocatable.c: Likewise.
30137         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30138         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30139         * lib/setenv.c: Use the system's malloc, realloc functions.
30140         * lib/strerror.c: Use the system's sprintf function.
30141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30142
30143 2010-06-04  Bruno Haible  <bruno@clisp.org>
30144
30145         Prefer documented low-level autoconf macro names.
30146         * m4/lib-link.m4: Use m4_translit instead of translit.
30147         * m4/environ.m4: Likewise.
30148         * m4/mathfunc.m4: Likewise.
30149         * m4/onceonly.m4: Likewise.
30150         * m4/stdint.m4: Likewise.
30151         Suggested by Eric Blake.
30152
30153 2010-06-04  Martin Lambers  <marlam@marlam.de>
30154             Bruno Haible  <bruno@clisp.org>
30155
30156         havelib: Allow library names with '+' characters.
30157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30158         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30159
30160 2010-06-09  Bruno Haible  <bruno@clisp.org>
30161
30162         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30163         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30164         realloc failed.
30165
30166 2010-06-08  Peter Simons  <simons@cryp.to>
30167
30168         maint.mk: make the news-check rule more configurable
30169         * top/maint.mk (news-check-lines-spec): New variable.
30170         (news-check): Use "sed -n 1,10p" in place of "head".
30171
30172 2010-06-07  Jim Meyering  <meyering@redhat.com>
30173
30174         do-release-commit-and-tag: fix typo in --help
30175         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30176
30177         regex: avoid new dead-code warning with gcc-4.6.0
30178         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30179         if-block containing a while-loop.  It's been unused for at least
30180         5 years.
30181
30182 2010-06-05  Bruno Haible  <bruno@clisp.org>
30183
30184         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30185         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30186
30187 2010-06-04  Bruno Haible  <bruno@clisp.org>
30188
30189         Update to GNU gettext 0.18.1.
30190         * modules/gettext (configure.ac): Require gettext infrastructure from
30191         version 0.18.1.
30192
30193 2010-06-03  Bruno Haible  <bruno@clisp.org>
30194
30195         Don't use AC_LIBOBJ with file names in subdirectories.
30196         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30197         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30198         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30199         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30200         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30201         gl_LIBUNISTRING_LIBSOURCE.
30202         (Makefile.am): Augment lib_SOURCES here, conditionally.
30203         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30204
30205 2010-06-03  Bruno Haible  <bruno@clisp.org>
30206
30207         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30208         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30209         expansion does not end with a newline.
30210         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30211         unnecessary newline.
30212
30213 2010-06-03  Bruno Haible  <bruno@clisp.org>
30214
30215         Reduce dependencies.
30216         * tests/test-quotearg.h: New file, extracted from
30217         tests/test-quotearg.c.
30218         * tests/test-quotearg-simple.c: New file, extracted from
30219         tests/test-quotearg.c.
30220         * tests/test-quotearg.c: Don't include <ctype.h>.
30221         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30222         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30223         use_quote_double_quotes, use_quotearg_colon): Moved to
30224         tests/test-quotearg.h.
30225         (results_g, flag_results, custom_quotes, custom_results): Moved
30226         to tests/test-quotearg-simple.c.
30227         (main): Moved the part that does not depend on gettext to
30228         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30229         performed.
30230         * modules/quotearg-simple: New file.
30231         * modules/quotearg-simple-tests: New file.
30232         * modules/quotearg (Depends-on): Add quotearg-simple.
30233         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30234         (Files): Add tests/test-quotearg.h.
30235         Reported by Paolo Bonzini.
30236
30237 2010-06-03  Bruno Haible  <bruno@clisp.org>
30238
30239         Reduce dependencies.
30240         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30241
30242 2010-06-03  Bruno Haible  <bruno@clisp.org>
30243
30244         time: Undefine more broken macros.
30245         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30246         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30247         Reported by Eric Blake.
30248
30249 2010-06-03  Bruno Haible  <bruno@clisp.org>
30250
30251         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30252         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30253         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30254         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30255         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30256         Reported by Ludovic Courtès <ludo@gnu.org>.
30257
30258 2010-06-02  Eric Blake  <eblake@redhat.com>
30259
30260         time: work with mingw + pthreads-win32 library
30261         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30262         if timespec is defined only in pthread.h.
30263         * modules/time (Makefile.am): Substitute it.
30264         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30265         <pthread.h>, when needed.
30266         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30267         from the library.
30268
30269 2010-05-31  Bruno Haible  <bruno@clisp.org>
30270
30271         Avoid expanding two macros in the wrong order.
30272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30273         gl_LIBUNISTRING if it is defined.
30274         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30275         autoconf >= 2.64.
30276         Reported by Ludovic Courtès <ludo@gnu.org>.
30277
30278 2010-05-27  Jim Meyering  <meyering@redhat.com>
30279
30280         maint.mk: also prohibit "#undef" of always-defined symbols
30281         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30282         Allow more than one space before the symbol name.
30283         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30284         the regexp uses alternation.
30285
30286 2010-05-26  Eric Blake  <eblake@redhat.com>
30287
30288         maint.mk: avoid echo -e
30289         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30290         Convert all uses of echo -* to printf.
30291         Reported by Matthias Bolte.
30292
30293 2010-05-25  Bruno Haible  <bruno@clisp.org>
30294
30295         Update to GNU gettext 0.18, part 2.
30296         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30297         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30298
30299 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30300
30301         Add missing include in test-pwrite.c.
30302         * tests/test-pwrite.c: Include string.h, for strcmp.
30303
30304 2010-05-24  Bruno Haible  <bruno@clisp.org>
30305
30306         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30307
30308 2010-05-24  Bruno Haible  <bruno@clisp.org>
30309
30310         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30311         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30312         iconveh_error argument.
30313         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30314         U_STRCONV_TO_LOCALE.
30315         * lib/unistr/u16-strcoll.c: Likewise.
30316         * lib/unistr/u32-strcoll.c: Likewise.
30317         * modules/unistr/u8-strcoll (Depends-on): Add
30318         uniconv/u8-strconv-to-enc, localcharset. Remove
30319         uniconv/u8-strconv-to-locale.
30320         (configure.ac): Bump version number.
30321         * modules/unistr/u16-strcoll (Depends-on): Add
30322         uniconv/u16-strconv-to-enc, localcharset. Remove
30323         uniconv/u16-strconv-to-locale.
30324         (configure.ac): Bump version number.
30325         * modules/unistr/u32-strcoll (Depends-on): Add
30326         uniconv/u32-strconv-to-enc, localcharset. Remove
30327         uniconv/u32-strconv-to-locale.
30328         (configure.ac): Bump version number.
30329
30330 2010-05-24  Bruno Haible  <bruno@clisp.org>
30331
30332         Avoid a test failure on NetBSD 5.0.
30333         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30334         an iconv() bug.
30335
30336 2010-05-24  Bruno Haible  <bruno@clisp.org>
30337
30338         Adjust #include directive style.
30339         * modules/regex (Includes): Recommend to write <regex.h>.
30340
30341 2010-05-24  Bruno Haible  <bruno@clisp.org>
30342
30343         regex: Don't require alloca.
30344         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30345         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30346         only inside if (0).
30347
30348 2010-05-23  Jim Meyering  <meyering@redhat.com>
30349
30350         test-renameat.c: include <sys/stat.h>
30351         * tests/test-renameat.c: Include <sys/stat.h>; required for
30352         definition of S_IS* macros.
30353
30354 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30355
30356         Update maintainer documentation for 'relocatable-prog' module.
30357         * doc/relocatable-maint.texi: Update.
30358         Comments by Bruno Haible.
30359
30360 2010-05-23  Bruno Haible  <bruno@clisp.org>
30361
30362         git-merge-changelog: Enable --split-merged-entry by default.
30363         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30364         (usage): Don't mention this option any more.
30365         Reported by Ralf Wildenhues.
30366
30367 2010-05-23  Jim Meyering  <meyering@redhat.com>
30368
30369         test-pwrite: do not leave behind a test file named "out"
30370         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30371         The trivial-looking use of init.sh is really necessary.
30372         It ensures that the temporary file, "out", is created in
30373         a temporary directory, and removed upon termination.
30374         * tests/test-pwrite.sh: Re-add file.
30375         * modules/pwrite-tests: Reference it.
30376
30377 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30378
30379         Fix output redirection buglet in init.sh.
30380         * tests/init.sh: Fix redirection of stderr.
30381
30382 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30383
30384         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30385
30386 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30387
30388         * modules/valgrind-tests: New file.
30389         * m4/valgrind-tests.m4: New file.
30390         * doc/valgrind-tests.texi: New file.
30391         * doc/gnulib.texi (Running self-tests under valgrind): New
30392         section.
30393
30394 2010-05-19  Bruno Haible  <bruno@clisp.org>
30395
30396         Clean up dead code in recent commit.
30397         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30398         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30399         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30400         Suggested by Paolo Bonzini.
30401
30402 2010-05-19  Bruno Haible  <bruno@clisp.org>
30403
30404         Avoid valgrind error reports from libunistring.
30405         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30406         * modules/libunistring (Files): Add it.
30407         * modules/libunistring-optional (Files): Likewise.
30408
30409 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30410             Bruno Haible  <bruno@clisp.org>
30411
30412         New module 'libunistring-optional'.
30413         * modules/libunistring-optional: New file.
30414         * m4/libunistring-base.m4: New file.
30415         * m4/libunistring-optional.m4: New file.
30416         * lib/unicase.in.h: Renamed from lib/unicase.h.
30417         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30418         * lib/unictype.in.h: Renamed from lib/unictype.h.
30419         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30420         * lib/uniname.in.h: Renamed from lib/uniname.h.
30421         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30422         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30423         * lib/unistr.in.h: Renamed from lib/unistr.h.
30424         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30425         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30426         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30427         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30428         gl_LIBUNISTRING. If the library was found, determine the installed
30429         version and set LIBUNISTRING_VERSION.
30430         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30431         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30432         handle a configuration option --with-included-libunistring.
30433         * modules/libunistring (Files): Add m4/absolute-header.m4.
30434         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30435         Add m4/libunistring-base.m4.
30436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30437         (Makefile.am): Build unicase.h from unicase.in.h.
30438         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30439         Add m4/libunistring-base.m4.
30440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30441         (Makefile.am): Build uniconv.h from uniconv.in.h.
30442         * modules/unictype/base (Files): Use unictype.in.h instead of
30443         unictype.h. Add m4/libunistring-base.m4.
30444         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30445         (Makefile.am): Build unictype.h from unictype.in.h.
30446         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30447         Add m4/libunistring-base.m4.
30448         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30449         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30450         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30451         Add m4/libunistring-base.m4.
30452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30453         (Makefile.am): Build uniname.h from uniname.in.h.
30454         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30455         Add m4/libunistring-base.m4.
30456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30457         (Makefile.am): Build uninorm.h from uninorm.in.h.
30458         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30459         unistdio.h. Add m4/libunistring-base.m4.
30460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30461         (Makefile.am): Build unistdio.h from unistdio.in.h.
30462         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30463         Add m4/libunistring-base.m4.
30464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30465         (Makefile.am): Build unistr.h from unistr.in.h.
30466         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30467         Add m4/libunistring-base.m4.
30468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30469         (Makefile.am): Build unitypes.h from unitypes.in.h.
30470         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30471         Add m4/libunistring-base.m4.
30472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30473         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30474         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30475         uniwidth.h. Add m4/libunistring-base.m4.
30476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30477         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30478         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30479         instead of augmenting lib_SOURCES.
30480         * modules/unicase/empty-suffix-context: Likewise.
30481         * modules/unicase/locale-language: Likewise.
30482         * modules/unicase/tolower: Likewise.
30483         * modules/unicase/totitle: Likewise.
30484         * modules/unicase/toupper: Likewise.
30485         * modules/unicase/u8-casecmp: Likewise.
30486         * modules/unicase/u8-casecoll: Likewise.
30487         * modules/unicase/u8-casefold: Likewise.
30488         * modules/unicase/u8-casexfrm: Likewise.
30489         * modules/unicase/u8-ct-casefold: Likewise.
30490         * modules/unicase/u8-ct-tolower: Likewise.
30491         * modules/unicase/u8-ct-totitle: Likewise.
30492         * modules/unicase/u8-ct-toupper: Likewise.
30493         * modules/unicase/u8-is-cased: Likewise.
30494         * modules/unicase/u8-is-casefolded: Likewise.
30495         * modules/unicase/u8-is-lowercase: Likewise.
30496         * modules/unicase/u8-is-titlecase: Likewise.
30497         * modules/unicase/u8-is-uppercase: Likewise.
30498         * modules/unicase/u8-prefix-context: Likewise.
30499         * modules/unicase/u8-suffix-context: Likewise.
30500         * modules/unicase/u8-tolower: Likewise.
30501         * modules/unicase/u8-totitle: Likewise.
30502         * modules/unicase/u8-toupper: Likewise.
30503         * modules/unicase/u16-casecmp: Likewise.
30504         * modules/unicase/u16-casecoll: Likewise.
30505         * modules/unicase/u16-casefold: Likewise.
30506         * modules/unicase/u16-casexfrm: Likewise.
30507         * modules/unicase/u16-ct-casefold: Likewise.
30508         * modules/unicase/u16-ct-tolower: Likewise.
30509         * modules/unicase/u16-ct-totitle: Likewise.
30510         * modules/unicase/u16-ct-toupper: Likewise.
30511         * modules/unicase/u16-is-cased: Likewise.
30512         * modules/unicase/u16-is-casefolded: Likewise.
30513         * modules/unicase/u16-is-lowercase: Likewise.
30514         * modules/unicase/u16-is-titlecase: Likewise.
30515         * modules/unicase/u16-is-uppercase: Likewise.
30516         * modules/unicase/u16-prefix-context: Likewise.
30517         * modules/unicase/u16-suffix-context: Likewise.
30518         * modules/unicase/u16-tolower: Likewise.
30519         * modules/unicase/u16-totitle: Likewise.
30520         * modules/unicase/u16-toupper: Likewise.
30521         * modules/unicase/u32-casecmp: Likewise.
30522         * modules/unicase/u32-casecoll: Likewise.
30523         * modules/unicase/u32-casefold: Likewise.
30524         * modules/unicase/u32-casexfrm: Likewise.
30525         * modules/unicase/u32-ct-casefold: Likewise.
30526         * modules/unicase/u32-ct-tolower: Likewise.
30527         * modules/unicase/u32-ct-totitle: Likewise.
30528         * modules/unicase/u32-ct-toupper: Likewise.
30529         * modules/unicase/u32-is-cased: Likewise.
30530         * modules/unicase/u32-is-casefolded: Likewise.
30531         * modules/unicase/u32-is-lowercase: Likewise.
30532         * modules/unicase/u32-is-titlecase: Likewise.
30533         * modules/unicase/u32-is-uppercase: Likewise.
30534         * modules/unicase/u32-prefix-context: Likewise.
30535         * modules/unicase/u32-suffix-context: Likewise.
30536         * modules/unicase/u32-tolower: Likewise.
30537         * modules/unicase/u32-totitle: Likewise.
30538         * modules/unicase/u32-toupper: Likewise.
30539         * modules/unicase/ulc-casecmp: Likewise.
30540         * modules/unicase/ulc-casecoll: Likewise.
30541         * modules/unicase/ulc-casexfrm: Likewise.
30542         * modules/uniconv/u8-conv-from-enc: Likewise.
30543         * modules/uniconv/u8-conv-to-enc: Likewise.
30544         * modules/uniconv/u8-strconv-from-enc: Likewise.
30545         * modules/uniconv/u8-strconv-from-locale: Likewise.
30546         * modules/uniconv/u8-strconv-to-enc: Likewise.
30547         * modules/uniconv/u8-strconv-to-locale: Likewise.
30548         * modules/uniconv/u16-conv-from-enc: Likewise.
30549         * modules/uniconv/u16-conv-to-enc: Likewise.
30550         * modules/uniconv/u16-strconv-from-enc: Likewise.
30551         * modules/uniconv/u16-strconv-from-locale: Likewise.
30552         * modules/uniconv/u16-strconv-to-enc: Likewise.
30553         * modules/uniconv/u16-strconv-to-locale: Likewise.
30554         * modules/uniconv/u32-conv-from-enc: Likewise.
30555         * modules/uniconv/u32-conv-to-enc: Likewise.
30556         * modules/uniconv/u32-strconv-from-enc: Likewise.
30557         * modules/uniconv/u32-strconv-from-locale: Likewise.
30558         * modules/uniconv/u32-strconv-to-enc: Likewise.
30559         * modules/uniconv/u32-strconv-to-locale: Likewise.
30560         * modules/unictype/bidicategory-byname: Likewise.
30561         * modules/unictype/bidicategory-name: Likewise.
30562         * modules/unictype/bidicategory-of: Likewise.
30563         * modules/unictype/bidicategory-test: Likewise.
30564         * modules/unictype/block-list: Likewise.
30565         * modules/unictype/block-test: Likewise.
30566         * modules/unictype/category-C: Likewise.
30567         * modules/unictype/category-Cc: Likewise.
30568         * modules/unictype/category-Cf: Likewise.
30569         * modules/unictype/category-Cn: Likewise.
30570         * modules/unictype/category-Co: Likewise.
30571         * modules/unictype/category-Cs: Likewise.
30572         * modules/unictype/category-L: Likewise.
30573         * modules/unictype/category-Ll: Likewise.
30574         * modules/unictype/category-Lm: Likewise.
30575         * modules/unictype/category-Lo: Likewise.
30576         * modules/unictype/category-Lt: Likewise.
30577         * modules/unictype/category-Lu: Likewise.
30578         * modules/unictype/category-M: Likewise.
30579         * modules/unictype/category-Mc: Likewise.
30580         * modules/unictype/category-Me: Likewise.
30581         * modules/unictype/category-Mn: Likewise.
30582         * modules/unictype/category-N: Likewise.
30583         * modules/unictype/category-Nd: Likewise.
30584         * modules/unictype/category-Nl: Likewise.
30585         * modules/unictype/category-No: Likewise.
30586         * modules/unictype/category-P: Likewise.
30587         * modules/unictype/category-Pc: Likewise.
30588         * modules/unictype/category-Pd: Likewise.
30589         * modules/unictype/category-Pe: Likewise.
30590         * modules/unictype/category-Pf: Likewise.
30591         * modules/unictype/category-Pi: Likewise.
30592         * modules/unictype/category-Po: Likewise.
30593         * modules/unictype/category-Ps: Likewise.
30594         * modules/unictype/category-S: Likewise.
30595         * modules/unictype/category-Sc: Likewise.
30596         * modules/unictype/category-Sk: Likewise.
30597         * modules/unictype/category-Sm: Likewise.
30598         * modules/unictype/category-So: Likewise.
30599         * modules/unictype/category-Z: Likewise.
30600         * modules/unictype/category-Zl: Likewise.
30601         * modules/unictype/category-Zp: Likewise.
30602         * modules/unictype/category-Zs: Likewise.
30603         * modules/unictype/category-and: Likewise.
30604         * modules/unictype/category-and-not: Likewise.
30605         * modules/unictype/category-byname: Likewise.
30606         * modules/unictype/category-name: Likewise.
30607         * modules/unictype/category-none: Likewise.
30608         * modules/unictype/category-of: Likewise.
30609         * modules/unictype/category-or: Likewise.
30610         * modules/unictype/category-test: Likewise.
30611         * modules/unictype/combining-class: Likewise.
30612         * modules/unictype/ctype-alnum: Likewise.
30613         * modules/unictype/ctype-alpha: Likewise.
30614         * modules/unictype/ctype-blank: Likewise.
30615         * modules/unictype/ctype-cntrl: Likewise.
30616         * modules/unictype/ctype-digit: Likewise.
30617         * modules/unictype/ctype-graph: Likewise.
30618         * modules/unictype/ctype-lower: Likewise.
30619         * modules/unictype/ctype-print: Likewise.
30620         * modules/unictype/ctype-punct: Likewise.
30621         * modules/unictype/ctype-space: Likewise.
30622         * modules/unictype/ctype-upper: Likewise.
30623         * modules/unictype/ctype-xdigit: Likewise.
30624         * modules/unictype/decimal-digit: Likewise.
30625         * modules/unictype/digit: Likewise.
30626         * modules/unictype/mirror: Likewise.
30627         * modules/unictype/numeric: Likewise.
30628         * modules/unictype/property-alphabetic: Likewise.
30629         * modules/unictype/property-ascii-hex-digit: Likewise.
30630         * modules/unictype/property-bidi-arabic-digit: Likewise.
30631         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30632         * modules/unictype/property-bidi-block-separator: Likewise.
30633         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30634         * modules/unictype/property-bidi-common-separator: Likewise.
30635         * modules/unictype/property-bidi-control: Likewise.
30636         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30637         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30638         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30639         * modules/unictype/property-bidi-european-digit: Likewise.
30640         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30641         * modules/unictype/property-bidi-left-to-right: Likewise.
30642         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30643         * modules/unictype/property-bidi-other-neutral: Likewise.
30644         * modules/unictype/property-bidi-pdf: Likewise.
30645         * modules/unictype/property-bidi-segment-separator: Likewise.
30646         * modules/unictype/property-bidi-whitespace: Likewise.
30647         * modules/unictype/property-byname: Likewise.
30648         * modules/unictype/property-combining: Likewise.
30649         * modules/unictype/property-composite: Likewise.
30650         * modules/unictype/property-currency-symbol: Likewise.
30651         * modules/unictype/property-dash: Likewise.
30652         * modules/unictype/property-decimal-digit: Likewise.
30653         * modules/unictype/property-default-ignorable-code-point: Likewise.
30654         * modules/unictype/property-deprecated: Likewise.
30655         * modules/unictype/property-diacritic: Likewise.
30656         * modules/unictype/property-extender: Likewise.
30657         * modules/unictype/property-format-control: Likewise.
30658         * modules/unictype/property-grapheme-base: Likewise.
30659         * modules/unictype/property-grapheme-extend: Likewise.
30660         * modules/unictype/property-grapheme-link: Likewise.
30661         * modules/unictype/property-hex-digit: Likewise.
30662         * modules/unictype/property-hyphen: Likewise.
30663         * modules/unictype/property-id-continue: Likewise.
30664         * modules/unictype/property-id-start: Likewise.
30665         * modules/unictype/property-ideographic: Likewise.
30666         * modules/unictype/property-ids-binary-operator: Likewise.
30667         * modules/unictype/property-ids-trinary-operator: Likewise.
30668         * modules/unictype/property-ignorable-control: Likewise.
30669         * modules/unictype/property-iso-control: Likewise.
30670         * modules/unictype/property-join-control: Likewise.
30671         * modules/unictype/property-left-of-pair: Likewise.
30672         * modules/unictype/property-line-separator: Likewise.
30673         * modules/unictype/property-logical-order-exception: Likewise.
30674         * modules/unictype/property-lowercase: Likewise.
30675         * modules/unictype/property-math: Likewise.
30676         * modules/unictype/property-non-break: Likewise.
30677         * modules/unictype/property-not-a-character: Likewise.
30678         * modules/unictype/property-numeric: Likewise.
30679         * modules/unictype/property-other-alphabetic: Likewise.
30680         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30681         * modules/unictype/property-other-grapheme-extend: Likewise.
30682         * modules/unictype/property-other-id-continue: Likewise.
30683         * modules/unictype/property-other-id-start: Likewise.
30684         * modules/unictype/property-other-lowercase: Likewise.
30685         * modules/unictype/property-other-math: Likewise.
30686         * modules/unictype/property-other-uppercase: Likewise.
30687         * modules/unictype/property-paired-punctuation: Likewise.
30688         * modules/unictype/property-paragraph-separator: Likewise.
30689         * modules/unictype/property-pattern-syntax: Likewise.
30690         * modules/unictype/property-pattern-white-space: Likewise.
30691         * modules/unictype/property-private-use: Likewise.
30692         * modules/unictype/property-punctuation: Likewise.
30693         * modules/unictype/property-quotation-mark: Likewise.
30694         * modules/unictype/property-radical: Likewise.
30695         * modules/unictype/property-sentence-terminal: Likewise.
30696         * modules/unictype/property-soft-dotted: Likewise.
30697         * modules/unictype/property-space: Likewise.
30698         * modules/unictype/property-terminal-punctuation: Likewise.
30699         * modules/unictype/property-test: Likewise.
30700         * modules/unictype/property-titlecase: Likewise.
30701         * modules/unictype/property-unassigned-code-value: Likewise.
30702         * modules/unictype/property-unified-ideograph: Likewise.
30703         * modules/unictype/property-uppercase: Likewise.
30704         * modules/unictype/property-variation-selector: Likewise.
30705         * modules/unictype/property-white-space: Likewise.
30706         * modules/unictype/property-xid-continue: Likewise.
30707         * modules/unictype/property-xid-start: Likewise.
30708         * modules/unictype/property-zero-width: Likewise.
30709         * modules/unictype/scripts: Likewise.
30710         * modules/unictype/syntax-c-ident: Likewise.
30711         * modules/unictype/syntax-c-whitespace: Likewise.
30712         * modules/unictype/syntax-java-ident: Likewise.
30713         * modules/unictype/syntax-java-whitespace: Likewise.
30714         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30715         * modules/unilbrk/u8-width-linebreaks: Likewise.
30716         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30717         * modules/unilbrk/u16-width-linebreaks: Likewise.
30718         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30719         * modules/unilbrk/u32-width-linebreaks: Likewise.
30720         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30721         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30722         * modules/uniname/uniname: Likewise.
30723         * modules/uninorm/canonical-decomposition: Likewise.
30724         * modules/uninorm/composition: Likewise.
30725         * modules/uninorm/decomposing-form: Likewise.
30726         * modules/uninorm/decomposition: Likewise.
30727         * modules/uninorm/filter: Likewise.
30728         * modules/uninorm/nfc: Likewise.
30729         * modules/uninorm/nfd: Likewise.
30730         * modules/uninorm/nfkc: Likewise.
30731         * modules/uninorm/nfkd: Likewise.
30732         * modules/uninorm/u8-normalize: Likewise.
30733         * modules/uninorm/u8-normcmp: Likewise.
30734         * modules/uninorm/u8-normcoll: Likewise.
30735         * modules/uninorm/u8-normxfrm: Likewise.
30736         * modules/uninorm/u16-normalize: Likewise.
30737         * modules/uninorm/u16-normcmp: Likewise.
30738         * modules/uninorm/u16-normcoll: Likewise.
30739         * modules/uninorm/u16-normxfrm: Likewise.
30740         * modules/uninorm/u32-normalize: Likewise.
30741         * modules/uninorm/u32-normcmp: Likewise.
30742         * modules/uninorm/u32-normcoll: Likewise.
30743         * modules/uninorm/u32-normxfrm: Likewise.
30744         * modules/unistdio/u8-asnprintf: Likewise.
30745         * modules/unistdio/u8-asprintf: Likewise.
30746         * modules/unistdio/u8-snprintf: Likewise.
30747         * modules/unistdio/u8-sprintf: Likewise.
30748         * modules/unistdio/u8-u8-asnprintf: Likewise.
30749         * modules/unistdio/u8-u8-asprintf: Likewise.
30750         * modules/unistdio/u8-u8-snprintf: Likewise.
30751         * modules/unistdio/u8-u8-sprintf: Likewise.
30752         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30753         * modules/unistdio/u8-u8-vasprintf: Likewise.
30754         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30755         * modules/unistdio/u8-u8-vsprintf: Likewise.
30756         * modules/unistdio/u8-vasnprintf: Likewise.
30757         * modules/unistdio/u8-vasprintf: Likewise.
30758         * modules/unistdio/u8-vsnprintf: Likewise.
30759         * modules/unistdio/u8-vsprintf: Likewise.
30760         * modules/unistdio/u16-asnprintf: Likewise.
30761         * modules/unistdio/u16-asprintf: Likewise.
30762         * modules/unistdio/u16-snprintf: Likewise.
30763         * modules/unistdio/u16-sprintf: Likewise.
30764         * modules/unistdio/u16-u16-asnprintf: Likewise.
30765         * modules/unistdio/u16-u16-asprintf: Likewise.
30766         * modules/unistdio/u16-u16-snprintf: Likewise.
30767         * modules/unistdio/u16-u16-sprintf: Likewise.
30768         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30769         * modules/unistdio/u16-u16-vasprintf: Likewise.
30770         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30771         * modules/unistdio/u16-u16-vsprintf: Likewise.
30772         * modules/unistdio/u16-vasnprintf: Likewise.
30773         * modules/unistdio/u16-vasprintf: Likewise.
30774         * modules/unistdio/u16-vsnprintf: Likewise.
30775         * modules/unistdio/u16-vsprintf: Likewise.
30776         * modules/unistdio/u32-asnprintf: Likewise.
30777         * modules/unistdio/u32-asprintf: Likewise.
30778         * modules/unistdio/u32-snprintf: Likewise.
30779         * modules/unistdio/u32-sprintf: Likewise.
30780         * modules/unistdio/u32-u32-asnprintf: Likewise.
30781         * modules/unistdio/u32-u32-asprintf: Likewise.
30782         * modules/unistdio/u32-u32-snprintf: Likewise.
30783         * modules/unistdio/u32-u32-sprintf: Likewise.
30784         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30785         * modules/unistdio/u32-u32-vasprintf: Likewise.
30786         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30787         * modules/unistdio/u32-u32-vsprintf: Likewise.
30788         * modules/unistdio/u32-vasnprintf: Likewise.
30789         * modules/unistdio/u32-vasprintf: Likewise.
30790         * modules/unistdio/u32-vsnprintf: Likewise.
30791         * modules/unistdio/u32-vsprintf: Likewise.
30792         * modules/unistdio/ulc-asnprintf: Likewise.
30793         * modules/unistdio/ulc-asprintf: Likewise.
30794         * modules/unistdio/ulc-fprintf: Likewise.
30795         * modules/unistdio/ulc-snprintf: Likewise.
30796         * modules/unistdio/ulc-sprintf: Likewise.
30797         * modules/unistdio/ulc-vasnprintf: Likewise.
30798         * modules/unistdio/ulc-vasprintf: Likewise.
30799         * modules/unistdio/ulc-vfprintf: Likewise.
30800         * modules/unistdio/ulc-vsnprintf: Likewise.
30801         * modules/unistdio/ulc-vsprintf: Likewise.
30802         * modules/unistr/u8-check: Likewise.
30803         * modules/unistr/u8-chr: Likewise.
30804         * modules/unistr/u8-cmp: Likewise.
30805         * modules/unistr/u8-cmp2: Likewise.
30806         * modules/unistr/u8-cpy: Likewise.
30807         * modules/unistr/u8-cpy-alloc: Likewise.
30808         * modules/unistr/u8-endswith: Likewise.
30809         * modules/unistr/u8-mblen: Likewise.
30810         * modules/unistr/u8-mbsnlen: Likewise.
30811         * modules/unistr/u8-mbtouc: Likewise.
30812         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30813         * modules/unistr/u8-mbtoucr: Likewise.
30814         * modules/unistr/u8-move: Likewise.
30815         * modules/unistr/u8-next: Likewise.
30816         * modules/unistr/u8-prev: Likewise.
30817         * modules/unistr/u8-set: Likewise.
30818         * modules/unistr/u8-startswith: Likewise.
30819         * modules/unistr/u8-stpcpy: Likewise.
30820         * modules/unistr/u8-stpncpy: Likewise.
30821         * modules/unistr/u8-strcat: Likewise.
30822         * modules/unistr/u8-strchr: Likewise.
30823         * modules/unistr/u8-strcmp: Likewise.
30824         * modules/unistr/u8-strcoll: Likewise.
30825         * modules/unistr/u8-strcpy: Likewise.
30826         * modules/unistr/u8-strcspn: Likewise.
30827         * modules/unistr/u8-strdup: Likewise.
30828         * modules/unistr/u8-strlen: Likewise.
30829         * modules/unistr/u8-strmblen: Likewise.
30830         * modules/unistr/u8-strmbtouc: Likewise.
30831         * modules/unistr/u8-strncat: Likewise.
30832         * modules/unistr/u8-strncmp: Likewise.
30833         * modules/unistr/u8-strncpy: Likewise.
30834         * modules/unistr/u8-strnlen: Likewise.
30835         * modules/unistr/u8-strpbrk: Likewise.
30836         * modules/unistr/u8-strrchr: Likewise.
30837         * modules/unistr/u8-strspn: Likewise.
30838         * modules/unistr/u8-strstr: Likewise.
30839         * modules/unistr/u8-strtok: Likewise.
30840         * modules/unistr/u8-to-u16: Likewise.
30841         * modules/unistr/u8-to-u32: Likewise.
30842         * modules/unistr/u8-uctomb: Likewise.
30843         * modules/unistr/u16-check: Likewise.
30844         * modules/unistr/u16-chr: Likewise.
30845         * modules/unistr/u16-cmp: Likewise.
30846         * modules/unistr/u16-cmp2: Likewise.
30847         * modules/unistr/u16-cpy: Likewise.
30848         * modules/unistr/u16-cpy-alloc: Likewise.
30849         * modules/unistr/u16-endswith: Likewise.
30850         * modules/unistr/u16-mblen: Likewise.
30851         * modules/unistr/u16-mbsnlen: Likewise.
30852         * modules/unistr/u16-mbtouc: Likewise.
30853         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30854         * modules/unistr/u16-mbtoucr: Likewise.
30855         * modules/unistr/u16-move: Likewise.
30856         * modules/unistr/u16-next: Likewise.
30857         * modules/unistr/u16-prev: Likewise.
30858         * modules/unistr/u16-set: Likewise.
30859         * modules/unistr/u16-startswith: Likewise.
30860         * modules/unistr/u16-stpcpy: Likewise.
30861         * modules/unistr/u16-stpncpy: Likewise.
30862         * modules/unistr/u16-strcat: Likewise.
30863         * modules/unistr/u16-strchr: Likewise.
30864         * modules/unistr/u16-strcmp: Likewise.
30865         * modules/unistr/u16-strcoll: Likewise.
30866         * modules/unistr/u16-strcpy: Likewise.
30867         * modules/unistr/u16-strcspn: Likewise.
30868         * modules/unistr/u16-strdup: Likewise.
30869         * modules/unistr/u16-strlen: Likewise.
30870         * modules/unistr/u16-strmblen: Likewise.
30871         * modules/unistr/u16-strmbtouc: Likewise.
30872         * modules/unistr/u16-strncat: Likewise.
30873         * modules/unistr/u16-strncmp: Likewise.
30874         * modules/unistr/u16-strncpy: Likewise.
30875         * modules/unistr/u16-strnlen: Likewise.
30876         * modules/unistr/u16-strpbrk: Likewise.
30877         * modules/unistr/u16-strrchr: Likewise.
30878         * modules/unistr/u16-strspn: Likewise.
30879         * modules/unistr/u16-strstr: Likewise.
30880         * modules/unistr/u16-strtok: Likewise.
30881         * modules/unistr/u16-to-u32: Likewise.
30882         * modules/unistr/u16-to-u8: Likewise.
30883         * modules/unistr/u16-uctomb: Likewise.
30884         * modules/unistr/u32-check: Likewise.
30885         * modules/unistr/u32-chr: Likewise.
30886         * modules/unistr/u32-cmp: Likewise.
30887         * modules/unistr/u32-cmp2: Likewise.
30888         * modules/unistr/u32-cpy: Likewise.
30889         * modules/unistr/u32-cpy-alloc: Likewise.
30890         * modules/unistr/u32-endswith: Likewise.
30891         * modules/unistr/u32-mblen: Likewise.
30892         * modules/unistr/u32-mbsnlen: Likewise.
30893         * modules/unistr/u32-mbtouc: Likewise.
30894         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30895         * modules/unistr/u32-mbtoucr: Likewise.
30896         * modules/unistr/u32-move: Likewise.
30897         * modules/unistr/u32-next: Likewise.
30898         * modules/unistr/u32-prev: Likewise.
30899         * modules/unistr/u32-set: Likewise.
30900         * modules/unistr/u32-startswith: Likewise.
30901         * modules/unistr/u32-stpcpy: Likewise.
30902         * modules/unistr/u32-stpncpy: Likewise.
30903         * modules/unistr/u32-strcat: Likewise.
30904         * modules/unistr/u32-strchr: Likewise.
30905         * modules/unistr/u32-strcmp: Likewise.
30906         * modules/unistr/u32-strcoll: Likewise.
30907         * modules/unistr/u32-strcpy: Likewise.
30908         * modules/unistr/u32-strcspn: Likewise.
30909         * modules/unistr/u32-strdup: Likewise.
30910         * modules/unistr/u32-strlen: Likewise.
30911         * modules/unistr/u32-strmblen: Likewise.
30912         * modules/unistr/u32-strmbtouc: Likewise.
30913         * modules/unistr/u32-strncat: Likewise.
30914         * modules/unistr/u32-strncmp: Likewise.
30915         * modules/unistr/u32-strncpy: Likewise.
30916         * modules/unistr/u32-strnlen: Likewise.
30917         * modules/unistr/u32-strpbrk: Likewise.
30918         * modules/unistr/u32-strrchr: Likewise.
30919         * modules/unistr/u32-strspn: Likewise.
30920         * modules/unistr/u32-strstr: Likewise.
30921         * modules/unistr/u32-strtok: Likewise.
30922         * modules/unistr/u32-to-u16: Likewise.
30923         * modules/unistr/u32-to-u8: Likewise.
30924         * modules/unistr/u32-uctomb: Likewise.
30925         * modules/uniwbrk/u8-wordbreaks: Likewise.
30926         * modules/uniwbrk/u16-wordbreaks: Likewise.
30927         * modules/uniwbrk/u32-wordbreaks: Likewise.
30928         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30929         * modules/uniwbrk/wordbreak-property: Likewise.
30930         * modules/uniwidth/u8-strwidth: Likewise.
30931         * modules/uniwidth/u8-width: Likewise.
30932         * modules/uniwidth/u16-strwidth: Likewise.
30933         * modules/uniwidth/u16-width: Likewise.
30934         * modules/uniwidth/u32-strwidth: Likewise.
30935         * modules/uniwidth/u32-width: Likewise.
30936         * modules/uniwidth/width: Likewise.
30937         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30938         with $(LIBUNISTRING).
30939         * modules/unicase/ignorable-tests: Likewise.
30940         * modules/unicase/locale-language-tests: Likewise.
30941         * modules/unicase/tolower-tests: Likewise.
30942         * modules/unicase/totitle-tests: Likewise.
30943         * modules/unicase/toupper-tests: Likewise.
30944         * modules/unicase/u8-casecmp-tests: Likewise.
30945         * modules/unicase/u8-casecoll-tests: Likewise.
30946         * modules/unicase/u8-casefold-tests: Likewise.
30947         * modules/unicase/u8-is-cased-tests: Likewise.
30948         * modules/unicase/u8-is-casefolded-tests: Likewise.
30949         * modules/unicase/u8-is-lowercase-tests: Likewise.
30950         * modules/unicase/u8-is-titlecase-tests: Likewise.
30951         * modules/unicase/u8-is-uppercase-tests: Likewise.
30952         * modules/unicase/u8-tolower-tests: Likewise.
30953         * modules/unicase/u8-totitle-tests: Likewise.
30954         * modules/unicase/u8-toupper-tests: Likewise.
30955         * modules/unicase/u16-casecmp-tests: Likewise.
30956         * modules/unicase/u16-casecoll-tests: Likewise.
30957         * modules/unicase/u16-casefold-tests: Likewise.
30958         * modules/unicase/u16-is-cased-tests: Likewise.
30959         * modules/unicase/u16-is-casefolded-tests: Likewise.
30960         * modules/unicase/u16-is-lowercase-tests: Likewise.
30961         * modules/unicase/u16-is-titlecase-tests: Likewise.
30962         * modules/unicase/u16-is-uppercase-tests: Likewise.
30963         * modules/unicase/u16-tolower-tests: Likewise.
30964         * modules/unicase/u16-totitle-tests: Likewise.
30965         * modules/unicase/u16-toupper-tests: Likewise.
30966         * modules/unicase/u32-casecmp-tests: Likewise.
30967         * modules/unicase/u32-casecoll-tests: Likewise.
30968         * modules/unicase/u32-casefold-tests: Likewise.
30969         * modules/unicase/u32-is-cased-tests: Likewise.
30970         * modules/unicase/u32-is-casefolded-tests: Likewise.
30971         * modules/unicase/u32-is-lowercase-tests: Likewise.
30972         * modules/unicase/u32-is-titlecase-tests: Likewise.
30973         * modules/unicase/u32-is-uppercase-tests: Likewise.
30974         * modules/unicase/u32-tolower-tests: Likewise.
30975         * modules/unicase/u32-totitle-tests: Likewise.
30976         * modules/unicase/u32-toupper-tests: Likewise.
30977         * modules/unicase/ulc-casecmp-tests: Likewise.
30978         * modules/unicase/ulc-casecoll-tests: Likewise.
30979         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30980         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30981         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30982         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30983         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30984         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30985         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30986         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30987         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30988         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30989         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30990         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30991         * modules/unictype/bidicategory-byname-tests: Likewise.
30992         * modules/unictype/bidicategory-name-tests: Likewise.
30993         * modules/unictype/bidicategory-of-tests: Likewise.
30994         * modules/unictype/bidicategory-test-tests: Likewise.
30995         * modules/unictype/block-list-tests: Likewise.
30996         * modules/unictype/block-of-tests: Likewise.
30997         * modules/unictype/block-test-tests: Likewise.
30998         * modules/unictype/category-C-tests: Likewise.
30999         * modules/unictype/category-Cc-tests: Likewise.
31000         * modules/unictype/category-Cf-tests: Likewise.
31001         * modules/unictype/category-Cn-tests: Likewise.
31002         * modules/unictype/category-Co-tests: Likewise.
31003         * modules/unictype/category-Cs-tests: Likewise.
31004         * modules/unictype/category-L-tests: Likewise.
31005         * modules/unictype/category-Ll-tests: Likewise.
31006         * modules/unictype/category-Lm-tests: Likewise.
31007         * modules/unictype/category-Lo-tests: Likewise.
31008         * modules/unictype/category-Lt-tests: Likewise.
31009         * modules/unictype/category-Lu-tests: Likewise.
31010         * modules/unictype/category-M-tests: Likewise.
31011         * modules/unictype/category-Mc-tests: Likewise.
31012         * modules/unictype/category-Me-tests: Likewise.
31013         * modules/unictype/category-Mn-tests: Likewise.
31014         * modules/unictype/category-N-tests: Likewise.
31015         * modules/unictype/category-Nd-tests: Likewise.
31016         * modules/unictype/category-Nl-tests: Likewise.
31017         * modules/unictype/category-No-tests: Likewise.
31018         * modules/unictype/category-P-tests: Likewise.
31019         * modules/unictype/category-Pc-tests: Likewise.
31020         * modules/unictype/category-Pd-tests: Likewise.
31021         * modules/unictype/category-Pe-tests: Likewise.
31022         * modules/unictype/category-Pf-tests: Likewise.
31023         * modules/unictype/category-Pi-tests: Likewise.
31024         * modules/unictype/category-Po-tests: Likewise.
31025         * modules/unictype/category-Ps-tests: Likewise.
31026         * modules/unictype/category-S-tests: Likewise.
31027         * modules/unictype/category-Sc-tests: Likewise.
31028         * modules/unictype/category-Sk-tests: Likewise.
31029         * modules/unictype/category-Sm-tests: Likewise.
31030         * modules/unictype/category-So-tests: Likewise.
31031         * modules/unictype/category-Z-tests: Likewise.
31032         * modules/unictype/category-Zl-tests: Likewise.
31033         * modules/unictype/category-Zp-tests: Likewise.
31034         * modules/unictype/category-Zs-tests: Likewise.
31035         * modules/unictype/category-and-not-tests: Likewise.
31036         * modules/unictype/category-and-tests: Likewise.
31037         * modules/unictype/category-byname-tests: Likewise.
31038         * modules/unictype/category-name-tests: Likewise.
31039         * modules/unictype/category-none-tests: Likewise.
31040         * modules/unictype/category-of-tests: Likewise.
31041         * modules/unictype/category-or-tests: Likewise.
31042         * modules/unictype/category-test-withtable-tests: Likewise.
31043         * modules/unictype/combining-class-tests: Likewise.
31044         * modules/unictype/ctype-alnum-tests: Likewise.
31045         * modules/unictype/ctype-alpha-tests: Likewise.
31046         * modules/unictype/ctype-blank-tests: Likewise.
31047         * modules/unictype/ctype-cntrl-tests: Likewise.
31048         * modules/unictype/ctype-digit-tests: Likewise.
31049         * modules/unictype/ctype-graph-tests: Likewise.
31050         * modules/unictype/ctype-lower-tests: Likewise.
31051         * modules/unictype/ctype-print-tests: Likewise.
31052         * modules/unictype/ctype-punct-tests: Likewise.
31053         * modules/unictype/ctype-space-tests: Likewise.
31054         * modules/unictype/ctype-upper-tests: Likewise.
31055         * modules/unictype/ctype-xdigit-tests: Likewise.
31056         * modules/unictype/decimal-digit-tests: Likewise.
31057         * modules/unictype/digit-tests: Likewise.
31058         * modules/unictype/mirror-tests: Likewise.
31059         * modules/unictype/numeric-tests: Likewise.
31060         * modules/unictype/property-alphabetic-tests: Likewise.
31061         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31062         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31063         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31064         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31065         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31066         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31067         * modules/unictype/property-bidi-control-tests: Likewise.
31068         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31069         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31070         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31071         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31072         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31073         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31074         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31075         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31076         * modules/unictype/property-bidi-pdf-tests: Likewise.
31077         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31078         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31079         * modules/unictype/property-byname-tests: Likewise.
31080         * modules/unictype/property-combining-tests: Likewise.
31081         * modules/unictype/property-composite-tests: Likewise.
31082         * modules/unictype/property-currency-symbol-tests: Likewise.
31083         * modules/unictype/property-dash-tests: Likewise.
31084         * modules/unictype/property-decimal-digit-tests: Likewise.
31085         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31086         * modules/unictype/property-deprecated-tests: Likewise.
31087         * modules/unictype/property-diacritic-tests: Likewise.
31088         * modules/unictype/property-extender-tests: Likewise.
31089         * modules/unictype/property-format-control-tests: Likewise.
31090         * modules/unictype/property-grapheme-base-tests: Likewise.
31091         * modules/unictype/property-grapheme-extend-tests: Likewise.
31092         * modules/unictype/property-grapheme-link-tests: Likewise.
31093         * modules/unictype/property-hex-digit-tests: Likewise.
31094         * modules/unictype/property-hyphen-tests: Likewise.
31095         * modules/unictype/property-id-continue-tests: Likewise.
31096         * modules/unictype/property-id-start-tests: Likewise.
31097         * modules/unictype/property-ideographic-tests: Likewise.
31098         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31099         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31100         * modules/unictype/property-ignorable-control-tests: Likewise.
31101         * modules/unictype/property-iso-control-tests: Likewise.
31102         * modules/unictype/property-join-control-tests: Likewise.
31103         * modules/unictype/property-left-of-pair-tests: Likewise.
31104         * modules/unictype/property-line-separator-tests: Likewise.
31105         * modules/unictype/property-logical-order-exception-tests: Likewise.
31106         * modules/unictype/property-lowercase-tests: Likewise.
31107         * modules/unictype/property-math-tests: Likewise.
31108         * modules/unictype/property-non-break-tests: Likewise.
31109         * modules/unictype/property-not-a-character-tests: Likewise.
31110         * modules/unictype/property-numeric-tests: Likewise.
31111         * modules/unictype/property-other-alphabetic-tests: Likewise.
31112         * modules/unictype/property-other-default-ignorable-code-point-tests:
31113         Likewise.
31114         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31115         * modules/unictype/property-other-id-continue-tests: Likewise.
31116         * modules/unictype/property-other-id-start-tests: Likewise.
31117         * modules/unictype/property-other-lowercase-tests: Likewise.
31118         * modules/unictype/property-other-math-tests: Likewise.
31119         * modules/unictype/property-other-uppercase-tests: Likewise.
31120         * modules/unictype/property-paired-punctuation-tests: Likewise.
31121         * modules/unictype/property-paragraph-separator-tests: Likewise.
31122         * modules/unictype/property-pattern-syntax-tests: Likewise.
31123         * modules/unictype/property-pattern-white-space-tests: Likewise.
31124         * modules/unictype/property-private-use-tests: Likewise.
31125         * modules/unictype/property-punctuation-tests: Likewise.
31126         * modules/unictype/property-quotation-mark-tests: Likewise.
31127         * modules/unictype/property-radical-tests: Likewise.
31128         * modules/unictype/property-sentence-terminal-tests: Likewise.
31129         * modules/unictype/property-soft-dotted-tests: Likewise.
31130         * modules/unictype/property-space-tests: Likewise.
31131         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31132         * modules/unictype/property-test-tests: Likewise.
31133         * modules/unictype/property-titlecase-tests: Likewise.
31134         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31135         * modules/unictype/property-unified-ideograph-tests: Likewise.
31136         * modules/unictype/property-uppercase-tests: Likewise.
31137         * modules/unictype/property-variation-selector-tests: Likewise.
31138         * modules/unictype/property-white-space-tests: Likewise.
31139         * modules/unictype/property-xid-continue-tests: Likewise.
31140         * modules/unictype/property-xid-start-tests: Likewise.
31141         * modules/unictype/property-zero-width-tests: Likewise.
31142         * modules/unictype/scripts-tests: Likewise.
31143         * modules/unictype/syntax-c-ident-tests: Likewise.
31144         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31145         * modules/unictype/syntax-java-ident-tests: Likewise.
31146         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31147         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31148         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31149         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31150         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31151         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31152         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31153         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31154         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31155         * modules/uniname/uniname-tests: Likewise.
31156         * modules/uninorm/canonical-decomposition-tests: Likewise.
31157         * modules/uninorm/compat-decomposition-tests: Likewise.
31158         * modules/uninorm/composition-tests: Likewise.
31159         * modules/uninorm/decomposing-form-tests: Likewise.
31160         * modules/uninorm/decomposition-tests: Likewise.
31161         * modules/uninorm/filter-tests: Likewise.
31162         * modules/uninorm/nfc-tests: Likewise.
31163         * modules/uninorm/nfd-tests: Likewise.
31164         * modules/uninorm/nfkc-tests: Likewise.
31165         * modules/uninorm/nfkd-tests: Likewise.
31166         * modules/uninorm/u8-normcmp-tests: Likewise.
31167         * modules/uninorm/u8-normcoll-tests: Likewise.
31168         * modules/uninorm/u16-normcmp-tests: Likewise.
31169         * modules/uninorm/u16-normcoll-tests: Likewise.
31170         * modules/uninorm/u32-normcmp-tests: Likewise.
31171         * modules/uninorm/u32-normcoll-tests: Likewise.
31172         * modules/unistdio/u8-asnprintf-tests: Likewise.
31173         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31174         * modules/unistdio/u8-vasprintf-tests: Likewise.
31175         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31176         * modules/unistdio/u8-vsprintf-tests: Likewise.
31177         * modules/unistdio/u16-asnprintf-tests: Likewise.
31178         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31179         * modules/unistdio/u16-vasprintf-tests: Likewise.
31180         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31181         * modules/unistdio/u16-vsprintf-tests: Likewise.
31182         * modules/unistdio/u32-asnprintf-tests: Likewise.
31183         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31184         * modules/unistdio/u32-vasprintf-tests: Likewise.
31185         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31186         * modules/unistdio/u32-vsprintf-tests: Likewise.
31187         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31188         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31189         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31190         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31191         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31192         * modules/unistr/u8-check-tests: Likewise.
31193         * modules/unistr/u8-chr-tests: Likewise.
31194         * modules/unistr/u8-cmp-tests: Likewise.
31195         * modules/unistr/u8-cmp2-tests: Likewise.
31196         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31197         * modules/unistr/u8-cpy-tests: Likewise.
31198         * modules/unistr/u8-mblen-tests: Likewise.
31199         * modules/unistr/u8-mbsnlen-tests: Likewise.
31200         * modules/unistr/u8-mbtouc-tests: Likewise.
31201         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31202         * modules/unistr/u8-mbtoucr-tests: Likewise.
31203         * modules/unistr/u8-move-tests: Likewise.
31204         * modules/unistr/u8-next-tests: Likewise.
31205         * modules/unistr/u8-prev-tests: Likewise.
31206         * modules/unistr/u8-set-tests: Likewise.
31207         * modules/unistr/u8-stpcpy-tests: Likewise.
31208         * modules/unistr/u8-stpncpy-tests: Likewise.
31209         * modules/unistr/u8-strcat-tests: Likewise.
31210         * modules/unistr/u8-strcmp-tests: Likewise.
31211         * modules/unistr/u8-strcoll-tests: Likewise.
31212         * modules/unistr/u8-strcpy-tests: Likewise.
31213         * modules/unistr/u8-strdup-tests: Likewise.
31214         * modules/unistr/u8-strlen-tests: Likewise.
31215         * modules/unistr/u8-strmblen-tests: Likewise.
31216         * modules/unistr/u8-strmbtouc-tests: Likewise.
31217         * modules/unistr/u8-strncat-tests: Likewise.
31218         * modules/unistr/u8-strncmp-tests: Likewise.
31219         * modules/unistr/u8-strncpy-tests: Likewise.
31220         * modules/unistr/u8-strnlen-tests: Likewise.
31221         * modules/unistr/u8-to-u16-tests: Likewise.
31222         * modules/unistr/u8-to-u32-tests: Likewise.
31223         * modules/unistr/u8-uctomb-tests: Likewise.
31224         * modules/unistr/u16-check-tests: Likewise.
31225         * modules/unistr/u16-chr-tests: Likewise.
31226         * modules/unistr/u16-cmp-tests: Likewise.
31227         * modules/unistr/u16-cmp2-tests: Likewise.
31228         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31229         * modules/unistr/u16-cpy-tests: Likewise.
31230         * modules/unistr/u16-mblen-tests: Likewise.
31231         * modules/unistr/u16-mbsnlen-tests: Likewise.
31232         * modules/unistr/u16-mbtouc-tests: Likewise.
31233         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31234         * modules/unistr/u16-mbtoucr-tests: Likewise.
31235         * modules/unistr/u16-move-tests: Likewise.
31236         * modules/unistr/u16-next-tests: Likewise.
31237         * modules/unistr/u16-prev-tests: Likewise.
31238         * modules/unistr/u16-set-tests: Likewise.
31239         * modules/unistr/u16-stpcpy-tests: Likewise.
31240         * modules/unistr/u16-stpncpy-tests: Likewise.
31241         * modules/unistr/u16-strcat-tests: Likewise.
31242         * modules/unistr/u16-strcmp-tests: Likewise.
31243         * modules/unistr/u16-strcoll-tests: Likewise.
31244         * modules/unistr/u16-strcpy-tests: Likewise.
31245         * modules/unistr/u16-strdup-tests: Likewise.
31246         * modules/unistr/u16-strlen-tests: Likewise.
31247         * modules/unistr/u16-strmblen-tests: Likewise.
31248         * modules/unistr/u16-strmbtouc-tests: Likewise.
31249         * modules/unistr/u16-strncat-tests: Likewise.
31250         * modules/unistr/u16-strncmp-tests: Likewise.
31251         * modules/unistr/u16-strncpy-tests: Likewise.
31252         * modules/unistr/u16-strnlen-tests: Likewise.
31253         * modules/unistr/u16-to-u32-tests: Likewise.
31254         * modules/unistr/u16-to-u8-tests: Likewise.
31255         * modules/unistr/u16-uctomb-tests: Likewise.
31256         * modules/unistr/u32-check-tests: Likewise.
31257         * modules/unistr/u32-chr-tests: Likewise.
31258         * modules/unistr/u32-cmp-tests: Likewise.
31259         * modules/unistr/u32-cmp2-tests: Likewise.
31260         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31261         * modules/unistr/u32-cpy-tests: Likewise.
31262         * modules/unistr/u32-mblen-tests: Likewise.
31263         * modules/unistr/u32-mbsnlen-tests: Likewise.
31264         * modules/unistr/u32-mbtouc-tests: Likewise.
31265         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31266         * modules/unistr/u32-mbtoucr-tests: Likewise.
31267         * modules/unistr/u32-move-tests: Likewise.
31268         * modules/unistr/u32-next-tests: Likewise.
31269         * modules/unistr/u32-prev-tests: Likewise.
31270         * modules/unistr/u32-set-tests: Likewise.
31271         * modules/unistr/u32-stpcpy-tests: Likewise.
31272         * modules/unistr/u32-stpncpy-tests: Likewise.
31273         * modules/unistr/u32-strcat-tests: Likewise.
31274         * modules/unistr/u32-strcmp-tests: Likewise.
31275         * modules/unistr/u32-strcoll-tests: Likewise.
31276         * modules/unistr/u32-strcpy-tests: Likewise.
31277         * modules/unistr/u32-strdup-tests: Likewise.
31278         * modules/unistr/u32-strlen-tests: Likewise.
31279         * modules/unistr/u32-strmblen-tests: Likewise.
31280         * modules/unistr/u32-strmbtouc-tests: Likewise.
31281         * modules/unistr/u32-strncat-tests: Likewise.
31282         * modules/unistr/u32-strncmp-tests: Likewise.
31283         * modules/unistr/u32-strncpy-tests: Likewise.
31284         * modules/unistr/u32-strnlen-tests: Likewise.
31285         * modules/unistr/u32-to-u16-tests: Likewise.
31286         * modules/unistr/u32-to-u8-tests: Likewise.
31287         * modules/unistr/u32-uctomb-tests: Likewise.
31288         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31289         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31290         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31291         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31292         * modules/uniwidth/u8-strwidth-tests: Likewise.
31293         * modules/uniwidth/u8-width-tests: Likewise.
31294         * modules/uniwidth/u16-strwidth-tests: Likewise.
31295         * modules/uniwidth/u16-width-tests: Likewise.
31296         * modules/uniwidth/u32-strwidth-tests: Likewise.
31297         * modules/uniwidth/u32-width-tests: Likewise.
31298         * modules/uniwidth/width-tests: Likewise.
31299
31300 2010-05-18  Richard Jones  <rjones@redhat.com>
31301
31302         doc: users.txt: list hivex
31303         * users.txt: Add hivex.
31304
31305 2010-05-18  Richard Jones  <rjones@redhat.com>
31306
31307         doc: users.txt: list febootstrap
31308         * users.txt: Add febootstrap.
31309
31310 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31311
31312         bootstrap: fix an error when gnulib is not used as a git submodule
31313         * build-aux/bootstrap (gnulib_path): If its length is zero then
31314         assign "gnulib" to it.
31315         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31316
31317 2010-05-16  Bruno Haible  <bruno@clisp.org>
31318
31319         Avoid autoconf warnings about AM_ICONV.
31320         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31321         2.64.
31322
31323 2010-05-16  Bruno Haible  <bruno@clisp.org>
31324
31325         absolute-header: Make the macro usable in more situations.
31326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31327         from gl_ABSOLUTE_HEADER.
31328         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31329
31330 2010-05-16  James Youngman  <jay@gnu.org>
31331
31332         doc: update users.txt
31333         * users.txt: Add CSSC.
31334
31335 2010-05-16  Jim Meyering  <meyering@redhat.com>
31336
31337         init.sh: fix an error in the previous change; add more comments
31338         * tests/init.sh: Compare exit code in loop against 9, not 2.
31339         Patch by Bruno Haible.
31340         Make the two tests more similar by adding an empty "then" clause.
31341         Add comments.
31342
31343         init.sh: avoid unnecessary shell re-exec
31344         * tests/init.sh: Improve the re-exec-required check to first test the
31345         current shell.  If it passes the test, do not search for a shell that
31346         does pass, and do not re-exec.  This test is particularly contorted to
31347         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31348         of $(...) evokes a syntax error and causes immediate shell exit with
31349         status 2.  Bruno Haible reported that the re-exec made it impossible
31350         to single-step through any init.sh-using script.
31351
31352 2010-05-16  Bruno Haible  <bruno@clisp.org>
31353
31354         Fix collision between gnulib's and libintl's printf replacements.
31355         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31356         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31357         (printf): When using GNU C, map the __printf__ function to rpl_printf
31358         via __asm__. When not using GNU C, define rpl_printf instead of
31359         __printf__.
31360         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31361         commit.
31362         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31363         commit.
31364         * m4/asm-underscore.m4: New file.
31365         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31366         * modules/stdio (Files): Add m4/asm-underscore.m4.
31367         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31368         Reported by Ben Pfaff.
31369
31370 2010-05-16  Bruno Haible  <bruno@clisp.org>
31371
31372         verify: Avoid skipping the test on openSUSE 11.0.
31373         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31374
31375 2010-05-13  Bruno Haible  <bruno@clisp.org>
31376
31377         Avoid useless warnings from G++.
31378         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31379         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31381
31382 2010-05-11  Jim Meyering  <meyering@redhat.com>
31383
31384         maint.mk: tweak preceding change
31385         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31386         regexps tighter by anchoring at EOL, and make the new group "shy"
31387         for slightly decreased overhead.
31388
31389 2010-05-11  Eric Blake  <eblake@redhat.com>
31390
31391         maint.mk: gnulib doesn't guarantee NSIG
31392         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31393
31394 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31395
31396         test-pwrite.c: Remove unused variable declaration.
31397         * tests/test-pwrite.c (main): Remove read_buf declaration.
31398
31399         Remove useless test-pwrite.sh file.
31400         * tests/test-pwrite.sh: Delete file.
31401         * modules/pwrite-tests: Remove references.
31402         Reported by Bruno Haible.
31403
31404 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31405
31406         init.sh: fix a typo
31407         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31408
31409 2010-05-10  Jim Meyering  <meyering@redhat.com>
31410
31411         maint.mk: avoid using a temporary file in the always-defined-macros check
31412         * top/maint.mk (.re-defmac): Remove rule.
31413         (gl_trap_): Remove definition.
31414         (sc_prohibit_always-defined_macros): Rewrite not to create and
31415         depend on a temporary file.  Instead, depend on GNU grep's ability
31416         to read a list of regular expressions from stdin when given "-f -".
31417
31418 2010-05-09  Bruno Haible  <bruno@clisp.org>
31419
31420         Update to GNU gettext 0.18, part 1.
31421         * m4/gettext.m4: Update to GNU gettext 0.18.
31422         * m4/intl.m4: Likewise.
31423         * m4/po.m4: Likewise.
31424         * modules/gettext (Files): Add m4/fcntl-o.m4.
31425         (configure.ac): Require gettext infrastructure from version 0.18.
31426
31427 2010-05-09  Jim Meyering  <meyering@redhat.com>
31428
31429         init.sh: enable MALLOC_PERTURB_
31430         * tests/init.sh: Enable glibc's malloc-perturbing option.
31431
31432         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31433         With my recent change in init.sh from the two-line form:
31434             -#   : ${srcdir=.}
31435             -#   . "$srcdir/init.sh"; path_prepend_ .
31436             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31437         I noticed that using the one-line form would cause this test
31438         to fail with a false-positive, or to stop working altogether,
31439         depending on whether help-version changed or all the tests did.
31440         * top/maint.mk (_hv_regex): Remove this definition.
31441         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31442         (_hv_regex_strong): Use a stronger regex to check for conformance.
31443         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31444         Give a separate diagnostic for lack of conforming use.
31445
31446         maint.mk: prohibit definition of symbols defined by gnulib
31447         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31448         definition of symbols defined by gnulib.
31449
31450 2010-05-09  Bruno Haible  <bruno@clisp.org>
31451
31452         acl: Avoid test failure on Cygwin-hosted mingw.
31453         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31454
31455 2010-05-09  Bruno Haible  <bruno@clisp.org>
31456
31457         error: Use system's fcntl function.
31458         * lib/error.c (fcntl): Undefine.
31459
31460 2010-05-09  Jim Meyering  <meyering@redhat.com>
31461
31462         verify: adjust formatting to be more consistent
31463         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31464         argument-list '('s, and after one comma.
31465
31466 2010-05-09  Bruno Haible  <bruno@clisp.org>
31467
31468         error: More reliable output on mingw.
31469         * lib/error.c: Include <windows.h>.
31470         (is_open): New function.
31471         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31472         defined.
31473
31474 2010-05-09  Bruno Haible  <bruno@clisp.org>
31475
31476         vasnprintf: Fix syntax errors in libintl build on mingw.
31477         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31478         pad_ourselves and prec_ourselves after use.
31479
31480 2010-05-08  Bruno Haible  <bruno@clisp.org>
31481
31482         * lib/config.charset: Update comments for Cygwin 1.7.
31483         * lib/localcharset.c: Likewise.
31484
31485 2010-05-07  Jim Meyering  <meyering@redhat.com>
31486
31487         init.sh: improve comments
31488         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31489         . "${srcdir=.}/init.sh"; path_prepend_ .
31490         Add a note about path_prepend_ and the alternative of using
31491         TESTS_ENVIRONMENT.
31492
31493 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31494
31495         exclude: Unescape hashed patterns in wildcard mode.
31496         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31497         to the hash list.
31498         * tests/test-exclude8.sh: New test case.
31499         * modules/exclude-tests: Add new test.
31500
31501 2010-05-05  Eric Blake  <eblake@redhat.com>
31502
31503         verify: automate tests
31504         * modules/verify-tests: New module.
31505         * tests/test-verify.sh: New file.
31506         * tests/test-verify.c: Guard each negative test with a unique id.
31507         Also avoid warning about unused left hand of comma expressions.
31508
31509 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31510
31511         Further improvements to verify.h, suggested by Eric Blake.
31512         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31513         the GL_* versions, to avoid collision with OpenGL.
31514         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31515         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31516         than testing merely whether it's defined.
31517
31518         Modify verify.h to pacify gcc -Wredundant_decls.
31519         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31520         These use the prefix "GL_" since they're likely to be useful elsewhere.
31521         We may need to break them out into a different .h file.
31522         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31523         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31524         of verify_function__.
31525
31526 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31527
31528         Tests for module pwrite.
31529         * modules/pwrite-tests: New file.
31530         * tests/test-pwrite.sh: New file.
31531         * tests/test-pwrite.c: New file.
31532
31533         New module pwrite.
31534         * lib/unistd.in.h (pwrite): New declaration.
31535         * lib/pwrite.c: New file, from glibc with modifications.
31536         * m4/pwrite.m4: New file.
31537         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31538         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31539         REPLACE_PWRITE.
31540         * modules/pwrite: New file.
31541         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31542         REPLACE_PWRITE.
31543         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31544         * doc/posix-functions/pwrite.texi: Mention the new module.
31545
31546 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31547
31548         pread: Update documentation.
31549         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31550
31551 2010-05-04  Eric Blake  <eblake@redhat.com>
31552
31553         docs: update cygwin progress
31554         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31555         this bug.
31556         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31557         Added in cygwin 1.7.2.
31558         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31559         Likewise.
31560         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31561         Likewise.
31562         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31563         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31564         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31565         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31566         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31567         Mention nproc module.
31568         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31569         bug in cygwin 1.7.5 addition.
31570         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31571         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31572         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31573         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31574         1.7.5.
31575         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31576         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31577         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31578         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31579         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31580         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31581         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31582         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31583         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31584         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31585         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31586         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31587         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31588         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31589         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31590         Likewise.
31591         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31592         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31593         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31594         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31595         Likewise.
31596         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31597         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31598         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31599         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31600         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31601         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31602         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31603         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31604         Likewise.
31605         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31606         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31607         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31608         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31609         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31610         Likewise.
31611         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31612         Likewise.
31613         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31614         Likewise.
31615         * doc/glibc-functions/xdrrec_endofrecord.texi
31616         (xdrrec_endofrecord): Likewise.
31617         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31618         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31619         Likewise.
31620         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31621         Likewise.
31622
31623 2010-05-04  Jim Meyering  <meyering@redhat.com>
31624
31625         gendocs.sh: make its "-s FILE" option more useful
31626         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31627         $PACKAGE to reflect the probably-different basename of "FILE".
31628
31629 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31630
31631         bootstrap: don't ignore download_po_files failure
31632         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31633         failure.
31634
31635 2010-05-03  Jim Meyering  <meyering@redhat.com>
31636
31637         maint.mk: allow to pass options to gendocs.sh
31638         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31639         (gendocs_options_): New overridable variable.
31640
31641         gnu-web-doc-update: don't ignore configure or build failure
31642         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31643
31644         announce-gen: backslash-escape '@'s in --help output
31645         * build-aux/announce-gen: Fix syntax errors.
31646
31647         maint.mk, announce-gen: allow project-specific announcement mail headers
31648         * top/maint.mk (translation_project_): Define default.
31649         (announcement_Cc_, announcement_mail_headers_): Likewise.
31650         (announcement): Invoke announce-gen with new --mail-headers option.
31651         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31652
31653         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31654         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31655         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31656         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31657         line in the "err2" output file when running "make check" in verbose
31658         mode (i.e., with set -x enabled).
31659
31660 2010-05-03  Bruno Haible  <bruno@clisp.org>
31661
31662         wctob: Fix for weird platforms.
31663         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31664         argument value.
31665
31666 2010-05-03  Jim Meyering  <meyering@redhat.com>
31667
31668         maint.mk: prohibit unwarranted use of <strings.h>
31669         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31670         strings.h in a file that does not also use strcasecmp, strncasecmp,
31671         ffs or ffsll.
31672
31673         maint.mk: remove obsolete comments
31674         * top/maint.mk: Remove stale, commented-out rules.
31675
31676 2010-05-02  Bruno Haible  <bruno@clisp.org>
31677
31678         wcwidth: Declare also when it's aliased.
31679         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31680         macro.
31681
31682 2010-05-02  Bruno Haible  <bruno@clisp.org>
31683
31684         Fix regression from 2010-04-25.
31685         * gnulib-tool (func_modules_transitive_closure): Check the status of
31686         all modules, not only of the tests that are of the form foo-tests where
31687         foo is a module.
31688
31689 2010-05-02  Bruno Haible  <bruno@clisp.org>
31690
31691         wctob: Work around nasty Cygwin 1.7.2 bug.
31692         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31693         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31694
31695 2010-05-01  Bruno Haible  <bruno@clisp.org>
31696
31697         fpurge: Sharper test.
31698         * tests/test-fpurge.c (main): Add one more ftell check.
31699         * modules/fpurge-tests (Depends-on): Add ftell.
31700         Suggested by Eric Blake.
31701
31702 2010-05-01  Bruno Haible  <bruno@clisp.org>
31703
31704         ftello: Another test.
31705         * tests/test-ftello3.c: New file.
31706         * modules/ftello-tests (Files): Add it.
31707         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31708         MOSTLYCLEANFILES.
31709
31710         ftell: Another test.
31711         * tests/test-ftell3.c: New file.
31712         * modules/ftell-tests (Files): Add it.
31713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31714         MOSTLYCLEANFILES.
31715
31716 2010-05-01  Bruno Haible  <bruno@clisp.org>
31717
31718         ftell, ftello: Work around Solaris bug.
31719         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31720         * lib/ftello.c: Include stdio-impl.h.
31721         (ftello): On Solaris, when _IOWRT is set, compute the result without
31722         looking at _IOREAD.
31723         * modules/ftello (Files): Add lib/stdio-impl.h.
31724         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31725         * doc/posix-functions/ftello.texi: Likewise.
31726         Reported by Eric Blake.
31727
31728 2010-05-01  Bruno Haible  <bruno@clisp.org>
31729
31730         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31731         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31732         the _IOWRT flag is also set.
31733
31734 2010-05-01  Bruno Haible  <bruno@clisp.org>
31735
31736         Fix doc about a HP-UX stdio bug.
31737         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31738         * doc/posix-functions/ftello.texi: Likewise.
31739
31740 2010-05-01  Bruno Haible  <bruno@clisp.org>
31741
31742         lseek test: Fix failure on Solaris.
31743         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31744         output.
31745
31746 2010-04-30  Jim Meyering  <meyering@redhat.com>
31747
31748         bootstrap: don't ignore failure to generate po*/Makevars
31749         * build-aux/bootstrap (with_gettext): Don't ignore failure
31750         to create po/Makevars or runtime-po/Makevars.
31751
31752 2010-04-29  Eric Blake  <eblake@redhat.com>
31753
31754         headers: relax license to LGPLv2+
31755         * modules/fcntl-h (License): Relax license.
31756         * modules/getopt-posix (License): Likewise.
31757         * modules/locale (License): Likewise.
31758         * modules/math (License): Likewise.
31759         * modules/pty (License): Likewise.
31760         * modules/sched (License): Likewise.
31761         * modules/search (License): Likewise.
31762         * modules/spawn (License): Likewise.
31763         * modules/stdarg (License): Likewise.
31764         * modules/sysexits (License): Likewise.
31765
31766 2010-04-29  Jim Meyering  <meyering@redhat.com>
31767
31768         inttypes: relax license to LGPLv2+
31769         * modules/inttypes (License): Relax license.
31770
31771 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31772
31773         * top/maint.mk (indent): Run twice to produce idempotent results.
31774
31775 2010-04-28  Bruno Haible  <bruno@clisp.org>
31776
31777         getdate: Generate getdate.c in the source directory.
31778         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31779         MOSTLYCLEANFILES.
31780         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31781
31782 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31783
31784         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31785         is not declared as a const *; avoid warnings in that case.
31786
31787 2010-04-28  Eric Blake  <eblake@redhat.com>
31788
31789         canonicalize-lgpl: avoid compiler warning
31790         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31791         declaration' / 'extraneous semicolon' warning with some compilers.
31792         Reported by Andreas Gruenbacher.
31793
31794 2010-04-28  Jim Meyering  <meyering@redhat.com>
31795
31796         init.sh: ensure a more reliable exit status when exiting via trap
31797         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31798         Inspired by patches from Dmitry V. Levin.
31799         Also trap on signal 3 (SIGQUIT).
31800
31801 2010-04-27  Bruno Haible  <bruno@clisp.org>
31802
31803         Update doc about utimes().
31804         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31805         'utimens' module.
31806         Reported by Andreas Gruenbacher <agruen@suse.de>.
31807
31808 2010-04-27  Eric Blake  <eblake@redhat.com>
31809
31810         full-read, full-write: relax license
31811         * modules/full-read (License): Drop to LGPLv2+.
31812         * modules/full-write (License): Likewise.
31813         * modules/safe-read (License): Likewise.
31814         * modules/safe-write (License): Likewise.
31815
31816         pthread: mention library for linking
31817         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31818
31819 2010-04-27  Jim Meyering  <meyering@redhat.com>
31820
31821         maint.mk: fix a bug introduced in last change
31822         * top/maint.mk (gl_assured_headers_): Now that all names are on
31823         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31824         is not anchored to end of word, it should be adequate.
31825
31826         maint.mk: avoid side-effect in latest syntax-check
31827         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31828         to run commands via $(shell...), and hence to incur cost only when
31829         the new rule is actually run.
31830
31831         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31832         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31833         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31834         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31835         (gl_assured_headers_, az_, AZ_): Define.
31836         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31837
31838 2010-04-26  Jim Meyering  <jim@meyering.net>
31839             Bruno Haible  <bruno@clisp.org>
31840
31841         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31842         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31843         Prompted by an exchange with Gilles Espinasse.
31844
31845 2010-04-26  Jim Meyering  <meyering@redhat.com>
31846
31847         git-version-gen: aesthetic tweak
31848         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31849         so that the command remains on a single line.
31850
31851 2010-04-26  Eric Blake  <eblake@redhat.com>
31852
31853         git-version-gen: allow use on EBCDIC hosts
31854         * build-aux/git-version-gen (dirty): Use literal rather than tying
31855         ourselves to ascii.
31856         Reported by Steve Goetze.
31857
31858 2010-04-25  Bruno Haible  <bruno@clisp.org>
31859
31860         netdb: Add support for GNULIB_POSIXCHECK.
31861         * lib/netdb.in.h: Include warn-on-use.h.
31862         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31863         functions are used when GNULIB_POSIXCHECK is defined and the
31864         getaddrinfo module is not in use.
31865         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31866         freeaddrinfo, gai_strerror, getnameinfo are declared.
31867         * modules/netdb (Depends-on): Add warn-on-use.
31868         (Makefile.am): Include warn-on-use.h in netdb.h.
31869
31870 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31871
31872         build: avoid "make check" failure without .git/ directory
31873         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31874         there is no .git/ directory.
31875
31876 2010-04-25  Bruno Haible  <bruno@clisp.org>
31877
31878         ptsname: Fix misuse of ttyname_r.
31879         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31880         of errno.
31881
31882 2010-04-25  Bruno Haible  <bruno@clisp.org>
31883
31884         ttyname_r: Make it work on Solaris 10.
31885         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31886         if the system function has the POSIX declaration. Test whether the
31887         function fails if the buffer is less than 128 bytes large.
31888         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31889         system's ttyname_r function. Provide a reasonably large buffer.
31890         * modules/ttyname_r (Depends-on): Add extensions.
31891         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31892
31893 2010-04-25  Bruno Haible  <bruno@clisp.org>
31894
31895         Use the 'extensions' module for some more functions on Solaris.
31896         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31897         module.
31898         * doc/posix-functions/ctime_r.texi: Likewise.
31899         * doc/posix-functions/getgrgid_r.texi: Likewise.
31900         * doc/posix-functions/getgrnam_r.texi: Likewise.
31901         * doc/posix-functions/getpwnam_r.texi: Likewise.
31902         * doc/posix-functions/getpwuid_r.texi: Likewise.
31903         * doc/posix-functions/readdir_r.texi: Likewise.
31904         * doc/posix-functions/sigwait.texi: Likewise.
31905         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31906         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31907
31908 2010-04-25  Bruno Haible  <bruno@clisp.org>
31909
31910         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31911         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31912         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31913         * lib/ttyname_r.c: Include <limits.h>.
31914         (ttyname_r): Define using the system's ttyname_r function, if it exists
31915         and not on Solaris.
31916         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31917         set.
31918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31919         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31920         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31921         Reported by Simon Josefsson.
31922
31923 2010-04-25  Bruno Haible  <bruno@clisp.org>
31924
31925         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31926         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31927         * doc/posix-functions/ctime_r.texi: Likewise.
31928         * doc/posix-functions/getgrgid_r.texi: Likewise.
31929         * doc/posix-functions/getgrnam_r.texi: Likewise.
31930         * doc/posix-functions/getlogin_r.texi: Likewise.
31931         * doc/posix-functions/getpwnam_r.texi: Likewise.
31932         * doc/posix-functions/getpwuid_r.texi: Likewise.
31933         * doc/posix-functions/readdir_r.texi: Likewise.
31934         * doc/posix-functions/sigwait.texi: Likewise.
31935         * doc/posix-functions/ttyname_r.texi: Likewise.
31936         Reported by Simon Josefsson.
31937
31938 2010-04-25  Bruno Haible  <bruno@clisp.org>
31939
31940         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31941         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31942         also to --create-testdir.
31943         (func_acceptable): Don't consider the status of *-tests modules here.
31944         (func_modules_transitive_closure): Consider it here, before including a
31945         test module.
31946         (func_import, func_create_testdir): Set inc_all_direct_tests,
31947         inc_all_indirect_tests.
31948         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31949         --create-testdir and --create-megatestdir.
31950
31951 2010-04-25  Bruno Haible  <bruno@clisp.org>
31952
31953         gnulib-tool: Add --without-*-tests options.
31954         * gnulib-tool (func_usage): Document the --without-*-tests options.
31955         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31956         excl_unportable_tests): New variables.
31957         Fail if they are specified with --import or --update.
31958         (func_acceptable): Respect the excl_*_tests variables.
31959         (func_import): Set the excl_*_tests variables to empty.
31960
31961 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31962             Bruno Haible  <bruno@clisp.org>
31963
31964         Work around a MacOS X 10.4 bug with openpty.
31965         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31966         * tests/test-openpty.c (main): Close the master side explicitly.
31967
31968 2010-04-25  Bruno Haible  <bruno@clisp.org>
31969
31970         strnlen: Fix a C++ test error on MacOS X and Solaris.
31971         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31972         the function is not declared.
31973         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31974         Simon Josefsson.
31975
31976 2010-04-24  Bruno Haible  <bruno@clisp.org>
31977
31978         Avoid a gcc warning.
31979         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31980         of correct type for %08lx directive.
31981         Reported by Eric Blake.
31982
31983 2010-04-24  Bruno Haible  <bruno@clisp.org>
31984
31985         vasnprintf: Correct errno value in case of out-of-memory.
31986         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31987         or sprintf. Use the errno value from SNPRINTF or sprintf.
31988         Reported by Ian Beckwith <ianb@erislabs.net>.
31989
31990 2010-04-24  Bruno Haible  <bruno@clisp.org>
31991
31992         ansi-c++-opt: Find correct compiler when cross-compiling.
31993         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31994         AC_CHECK_PROGS.
31995         Reported by Simon Josefsson.
31996
31997 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31998
31999         vc-list-files: Add support for subversion
32000         * build-aux/vc-list-files: Use "svn list" to generate the list of
32001         files controlled by subversion.
32002
32003 2010-04-23  Jim Meyering  <meyering@redhat.com>
32004
32005         vc-list-files tests: convert to use init.sh
32006         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32007         path_prepend_.
32008         Use Exit, not exit.
32009         Use skip_ rather than open coding it.
32010         Remove trap set-up and compare definitions.
32011         * tests/test-vc-list-files-git.sh: Likewise.
32012         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32013
32014 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32015
32016         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32017         backup files.
32018
32019 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32020
32021         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32022
32023 2010-04-20  Eric Blake  <eblake@redhat.com>
32024
32025         tests: be robust to ignored SIGPIPE
32026         * tests/test-select-in.sh: Consume all output.
32027         * tests/test-lseek.sh: Check correct exit status, while avoiding
32028         EPIPE.
32029
32030 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32031             Bruno Haible  <bruno@clisp.org>
32032
32033         visibility: Don't use -fvisibility if it leads to a warning.
32034         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32035         yes, don't pretend that visibility works if it leads to a warning.
32036         Reported by Mike Gran <spk121@yahoo.com>.
32037
32038 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32039
32040         * build-aux/bootstrap: Use "git -h" for testing for supported options
32041         instead of "git --help".  The short-form option only shows a summary,
32042         and doesn't layout the full man page.  Grep for the full option name
32043         in the summary, too.
32044
32045 2010-04-19  Bruno Haible  <bruno@clisp.org>
32046
32047         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32048         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32049         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32050         mention of RELOCATABLE_STRIP.
32051         Reported by Sylvain Beucler <beuc@beuc.net>.
32052
32053 2010-04-19  Bruno Haible  <bruno@clisp.org>
32054
32055         * lib/diffseq.h: Fix typo in comment.
32056         Reported by Eric Blake.
32057
32058 2010-04-19  Bruno Haible  <bruno@clisp.org>
32059
32060         ioctl: Move autoconf macro to a .m4 file.
32061         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32062         * modules/ioctl (Files): Add it.
32063         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32064         Reported by Ian Beckwith <ianb@erislabs.net>.
32065
32066 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32067             Bruno Haible  <bruno@clisp.org>
32068
32069         diffseq: Accommodate use-case with abstract arrays.
32070         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32071         is not defined.
32072         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32073         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32074
32075 2010-04-18  Bruno Haible  <bruno@clisp.org>
32076
32077         * doc/posix-headers/stdbool.texi: More precise wording.
32078
32079 2010-04-17  Jim Meyering  <meyering@redhat.com>
32080
32081         maint.mk: use gnu-style indentation in an embedded perl script
32082         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32083         Rename variable: s/two/last_two_bytes/
32084
32085 2010-04-16  Eric Blake  <eblake@redhat.com>
32086
32087         test-stdbool: skip test that fails with Solaris CC
32088         * tests/test-stdbool.c (f): Skip test that causes compilation
32089         error under buggy C++ compiler.
32090         * lib/stdbool.in.h: Document the limitation.
32091         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32092
32093         setenv: allow compilation with C++
32094         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32095         register keyword.
32096
32097         stdint: allow test to pass with C++
32098         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32099
32100         getopt: allow compilation with C++
32101         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32102         struct.
32103         * lib/getopt.c (_getopt_internal_r): Use correct type.
32104         Reported by Dagobert Michelson, via Joel E. Denny.
32105
32106 2010-04-16  Bruno Haible  <bruno@clisp.org>
32107
32108         Override netdb.h always.
32109         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32111         Reported by Ludovic Courtès <ludo@gnu.org>.
32112
32113 2010-04-15  Bruno Haible  <bruno@clisp.org>
32114
32115         openpty: Fix mistake from 2010-03-21.
32116         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32117         Reported by Simon Josefsson.
32118
32119 2010-04-15  Eric Blake  <eblake@redhat.com>
32120
32121         test-forkpty: fix expected signature
32122         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32123         Reported by Simon Josefsson.
32124
32125 2010-04-15  Jim Meyering  <meyering@redhat.com>
32126
32127         maint.mk: texinfo_suffix_re_: correct the default regexp
32128         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32129
32130         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32131         make it configurable via texinfo_suffix_re_.
32132
32133 2010-04-14  Eric Blake  <eblake@redhat.com>
32134
32135         strtok_r: relax license to LGPLv2+
32136         * modules/strtok_r (License): Relax license.
32137         Reported by Matthias Bolte.
32138
32139 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32140
32141         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32142         version 1.4.4 by default instead of requiring the libgcrypt
32143         version used during build.  This makes it possible to use the
32144         application with older but still binary compatible libgcrypt
32145         versions.
32146
32147 2010-04-13  Eric Blake  <eblake@redhat.com>
32148
32149         getopt-gnu: match recent glibc fixes and posix ruling
32150         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32151         '+' handling, when requesting extensions.
32152         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32153         'W;' handling.
32154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32155         * doc/posix-functions/getopt.texi (getopt): Document this.
32156         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32158         Likewise.
32159
32160         getopt: merge bug fixes from glibc
32161         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32162         diagnostics.  Honor '+:' correctly.  Reject ';'.
32163
32164         getopt-posix: detect MacOS bug
32165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32166         optind when missing a required argument.
32167         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32168         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32169         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32170         Likewise.
32171
32172         getopt-posix: avoid spurious failure on Solaris
32173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32174         an indicator that setting optind=1 is sufficient for reset.
32175
32176         getopt-posix: avoid spurious failure on FreeBSD
32177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32178         in POSIX mode, since the m4 test uses it.
32179
32180         gnulib-tool: silence warning on BSD sh
32181         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32182
32183 2010-04-13  Jim Meyering  <meyering@redhat.com>
32184
32185         doc: users.txt: GNU patch now uses gnulib
32186         * users.txt: Add patch.
32187
32188 2010-04-12  Jim Meyering  <meyering@redhat.com>
32189
32190         maint.mk: generate more concise timing data for syntax-check rules
32191         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32192         " done" from each line that reports a syntax-check test duration.
32193
32194 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32195
32196         git-version-gen: use "git update-index..." rather than "git status"
32197         * build-aux/git-version-gen: Use git update-index --refresh, not
32198         "git status".  With some versions of git, "git status" would fail
32199         to update the index and result in an unwarranted "-dirty" suffix.
32200
32201 2010-04-11  Jim Meyering  <meyering@redhat.com>
32202
32203         openat: correct formatting (no semantic change)
32204         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32205         Suggested by Bruno Haible.
32206
32207 2010-04-11  Bruno Haible  <bruno@clisp.org>
32208
32209         Stricter declaration checking in testdirs.
32210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32211         If for_tests is true, augment AM_CPPFLAGS to define
32212         GNULIB_STRICT_CHECKING.
32213         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32214         GNULIB_STRICT_CHECKING is defined, verify that the function is
32215         declared.
32216
32217 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32218             Bruno Haible  <bruno@clisp.org>
32219
32220         libunistring: Improve configure output.
32221         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32222         Don't say "consider installing GNU libunistring" when checking again
32223         with libiconv.
32224
32225 2010-04-11  Bruno Haible  <bruno@clisp.org>
32226
32227         libunistring: Correct value of $LTLIBUNISTRING.
32228         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32229         correct the value of $LTLIBUNISTRING.
32230
32231 2010-04-11  Bruno Haible  <bruno@clisp.org>
32232
32233         havelib: Add static libraries to LIBS in the right order.
32234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32235         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32236
32237 2010-04-11  Bruno Haible  <bruno@clisp.org>
32238
32239         libunistring: Detect libunistring also when it depends on libiconv.
32240         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32241         the second AC_LIB_HAVE_LINKFLAGS invocation.
32242
32243 2010-04-11  James Youngman  <jay@gnu.org>
32244
32245         close-stream: declare local scalars to be "const"
32246         * lib/close-stream.c (close_stream): Make boolean variables const
32247         to document the fact that we set but do not change them.
32248
32249 2010-04-11  Bruno Haible  <bruno@clisp.org>
32250
32251         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32252
32253 2010-04-11  Jim Meyering  <meyering@redhat.com>
32254
32255         maint.mk: don't include dist-check.mk
32256         * top/maint.mk: Remove bogus include directive.
32257
32258         maint.mk: improve empty-line-at-EOF check
32259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32260         solution, rather than tail+Perl-based one.  The latter would read
32261         a few kilobytes from the end of each file, and did not handle empty
32262         files properly.
32263
32264         maint.mk: print the elapsed time for each syntax-check rule
32265         * top/maint.mk (sc_m_rules_): Save start time in a file.
32266         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32267         (local-check): Interpose the .z rules
32268
32269 2010-04-11  Jim Meyering  <meyering@redhat.com>
32270
32271         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32272         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32273         empty file with one that ends in an empty line.
32274
32275 2010-04-10  Bruno Haible  <bruno@clisp.org>
32276
32277         mkdir: Make it work on mingw64.
32278         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32279         * lib/mkdir.c: Update comment.
32280         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
32281
32282 2010-04-10  Bruno Haible  <bruno@clisp.org>
32283
32284         Don't override improved macro from newer autoconf.
32285         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32286         autoconf >= 2.62.
32287         Reported by Joel E. Denny <jdenny@clemson.edu>.
32288
32289 2010-04-10  Jim Meyering  <meyering@redhat.com>
32290
32291         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32293
32294         maint.mk: correct a diagnostic
32295         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32296         in diagnostic; now use $prohibit.
32297
32298 2010-04-10  Bruno Haible  <address@hidden>
32299
32300         fchownat: Fix a C++ test error on Solaris 8.
32301         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32302         the function does not exist.
32303
32304 2010-04-10  Bruno Haible  <bruno@clisp.org>
32305
32306         vasnprintf: Add more tests.
32307         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32308         (test_function): Test converting an invalid wide string.
32309
32310         vasnprintf: Correct handling of unconvertible wide string arguments.
32311         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32312         VASNPRINTF.
32313         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32314         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32315         smaller than the expected maximum need for the directive. Set errno to
32316         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32317         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32319         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32320         * modules/vasnprintf (Files): Add m4/printf.m4.
32321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32322
32323 2010-04-10  Bruno Haible  <bruno@clisp.org>
32324
32325         vasnprintf: Fix crash in %ls directive.
32326         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32327         string is passed as argument to %ls, with no precision and no width.
32328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32329
32330 2010-04-10  Bruno Haible  <bruno@clisp.org>
32331
32332         vasnprintf: Fix multiple test failures on mingw.
32333         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32334         _snprintf, or snwprintf, not _snwprintf.
32335
32336 2010-04-10  Bruno Haible  <bruno@clisp.org>
32337
32338         write: Fix a C++ test error on mingw.
32339         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32340
32341 2010-04-10  Bruno Haible  <bruno@clisp.org>
32342
32343         vasnprintf test: Reduce code duplication.
32344         * tests/test-vasnprintf.c (test_function): New function, extracted from
32345         test_vasnprintf.
32346         (test_vasnprintf, test_asnprintf): Invoke it.
32347
32348 2010-04-10  Bruno Haible  <bruno@clisp.org>
32349
32350         strnlen: Fix warning in C++ mode on MacOS X.
32351         * lib/string.in.h (strnlen): Use the modern idiom.
32352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32353         defining strnlen as a macro already in <config.h>.
32354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32355         REPLACE_STRNLEN.
32356         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32357         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32358
32359 2010-04-08  James Youngman  <jay@gnu.org>
32360
32361         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32362         the example.
32363
32364 2010-04-09  Jim Meyering  <meyering@redhat.com>
32365
32366         maint.mk: print better diagnostic when there is no $(_hv_file)
32367         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32368         announce that when $(_hv_file) (aka help-version) does not exist.
32369
32370         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32371         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32372         not try to interpret its random input bytes.  Jarno Rajahalme reported
32373         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32374         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32375         (mktempd_): Likewise, just in case.
32376
32377         ftruncate: add two years to projected module removal date: 2012
32378         * m4/ftruncate.m4: Adjust comments.
32379
32380         ftruncate: mark module as obsolete; even MinGW provides it, now
32381         * modules/ftruncate (Status): Obsolete.
32382         (Notice): Say that.
32383         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32385
32386 2010-04-08  Bruno Haible  <bruno@clisp.org>
32387
32388         Fix side effects from tests-related modules.
32389         * modules/dprintf-posix (Comment): New section.
32390         * modules/fprintf-posix (Comment): Likewise.
32391         * modules/obstack-printf-posix (Comment): Likewise.
32392         * modules/printf-posix (Comment): Likewise.
32393         * modules/snprintf-posix (Comment): Likewise.
32394         * modules/sprintf-posix (Comment): Likewise.
32395         * modules/vasnprintf-posix (Comment): Likewise.
32396         * modules/vasprintf-posix (Comment): Likewise.
32397         * modules/vdprintf-posix (Comment): Likewise.
32398         * modules/vfprintf-posix (Comment): Likewise.
32399         * modules/vprintf-posix (Comment): Likewise.
32400         * modules/vsnprintf-posix (Comment): Likewise.
32401         * modules/vsprintf-posix (Comment): Likewise.
32402         * modules/xprintf-posix (Comment): Likewise.
32403         * modules/xvasprintf-posix (Comment): Likewise.
32404         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32405         * modules/floorf-tests (Depends-on): Likewise.
32406         * modules/round-tests (Depends-on): Likewise.
32407         * modules/roundf-tests (Depends-on): Likewise.
32408         * modules/trunc-tests (Depends-on): Likewise.
32409         * modules/truncf-tests (Depends-on): Likewise.
32410         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32411         'fprintf-posix' module is not present.
32412         * tests/test-floorf2.c (check): Likewise.
32413         * tests/test-trunc2.c (check): Likewise.
32414         * tests/test-truncf2.c (check): Likewise.
32415         * tests/test-round2.c (equal): Likewise.
32416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32417
32418 2010-04-07  Karl Berry  <karl@gnu.org>
32419
32420         * config/srclist.txt,
32421         * config/srclistvars.sh,
32422         * config/srclist-update: doc fixes.
32423
32424 2010-04-07  Jim Meyering  <meyering@redhat.com>
32425
32426         maint.mk: add a PATH crosschecking syntax-check rule
32427         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32428         Useful if you use a test like the one in help-version (coreutils,
32429         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32430         printed by prog --version.
32431
32432 2010-04-06  Bruno Haible  <bruno@clisp.org>
32433
32434         Fix link error on mingw.
32435         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32436         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32437
32438 2010-04-06  Bruno Haible  <bruno@clisp.org>
32439
32440         Assume rmdir exists.
32441         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32442
32443 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32444
32445         doc: update users.txt
32446         * users.txt: Add gcal.
32447
32448 2010-04-06  Jim Meyering  <meyering@redhat.com>
32449
32450         init.sh: simply unset TMPDIR rather than risking env -i
32451         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32452         although it probably works fine on all Unix-based systems, some
32453         systems (Cygwin?) cannot tolerate a totally cleared environment.
32454         Suggestion from Eric Blake.
32455
32456 2010-04-06  Jim Meyering  <meyering@redhat.com>
32457
32458         init.sh: portability fix: use env's POSIX-specified -i option not -u
32459         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32460         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32461
32462 2010-04-05  Bruno Haible  <bruno@clisp.org>
32463
32464         btowc: Work around Cygwin 1.7.2 bug.
32465         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32466         does not map NUL to 0.
32467         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32468
32469 2010-04-05  Bruno Haible  <bruno@clisp.org>
32470
32471         Make the multithread modules work on Cygwin 1.7.2.
32472         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32473         imported symbols can be declared weak, so that it returns "no" on
32474         Cygwin 1.7.2.
32475
32476 2010-04-05  Bruno Haible  <bruno@clisp.org>
32477
32478         Use the module 'strncat'.
32479         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32480
32481         Tests for module 'strncat'.
32482         * modules/strncat-tests: New file.
32483         * tests/test-strncat.c: New file.
32484
32485         New module 'strncat'.
32486         * lib/string.in.h (strncat): New declaration.
32487         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32488         * m4/strncat.m4: New file, based on m4/memchr.m4.
32489         * modules/strncat: New file.
32490         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32491         is declared.
32492         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32493         REPLACE_STRNCAT.
32494         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32495         REPLACE_STRNCAT.
32496         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32497         module.
32498         * tests/test-string-c++.cc: Check signature of strncat.
32499
32500 2010-04-05  Jim Meyering  <meyering@redhat.com>
32501
32502         xstrtoumax-tests: convert to use init.sh
32503         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32504         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32505         Use Exit, not exit.
32506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32507
32508         xstrtoimax-tests: convert to use init.sh
32509         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32510         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32511         Use Exit, not exit.
32512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32513
32514 2010-04-05  Bruno Haible  <bruno@clisp.org>
32515
32516         sys_socket: Avoid #define replacements in C++ mode.
32517         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32518         warning to the function if possible, rather than #defining the symbol
32519         to a dysfunctional alias.
32520
32521 2010-04-05  Bruno Haible  <bruno@clisp.org>
32522
32523         fseeko: Fix C++ test error on mingw.
32524         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32525         gl_FUNC_FSEEKO.
32526         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32527         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32529         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32530
32531 2010-04-05  Bruno Haible  <bruno@clisp.org>
32532
32533         duplocale: Improve test output.
32534         * tests/test-duplocale.c (main): Print reason for skipped test.
32535
32536 2010-04-05  Bruno Haible  <bruno@clisp.org>
32537
32538         Assume rmdir exists.
32539         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32540         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32541
32542 2010-04-05  Bruno Haible  <bruno@clisp.org>
32543
32544         Fix link error on Solaris 8 with cc.
32545         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32546
32547 2010-04-05  Bruno Haible  <bruno@clisp.org>
32548
32549         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32550         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32551
32552 2010-04-05  Bruno Haible  <bruno@clisp.org>
32553
32554         vasprintf: Update documentation.
32555         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32556
32557 2010-04-05  Bruno Haible  <bruno@clisp.org>
32558
32559         ptsname: Improve test.
32560         * tests/test-ptsname.c (main): Also try the various master names of BSD
32561         systems.
32562
32563 2010-04-05  Bruno Haible  <bruno@clisp.org>
32564
32565         memchr: Avoid a possible C++ test error.
32566         * lib/string.in.h (memchr): Provide declaration if function is missing.
32567         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32568         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32570         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32571
32572 2010-04-05  Bruno Haible  <bruno@clisp.org>
32573
32574         strtok_r: Improve idiom.
32575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32576         AC_LIBOBJ is used.
32577
32578 2010-04-05  Bruno Haible  <bruno@clisp.org>
32579
32580         strdup: Improve idiom.
32581         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32582         AC_LIBOBJ is used.
32583         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32584         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32585         when AC_LIBOBJ is used.
32586
32587 2010-04-05  Bruno Haible  <bruno@clisp.org>
32588
32589         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32590         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32591         don't set REPLACE_MBSINIT to 1.
32592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32593         don't set REPLACE_MBRTOWC to 1.
32594         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32595         exist, don't set REPLACE_MBSRTOWCS to 1.
32596         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32597         exist, don't set REPLACE_MBSNRTOWCS to 1.
32598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32599         don't set REPLACE_WCRTOMB to 1.
32600         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32601         exist, don't set REPLACE_WCSRTOMBS to 1.
32602         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32603         exist, don't set REPLACE_WCSNRTOMBS to 1.
32604
32605 2010-04-05  Bruno Haible  <bruno@clisp.org>
32606
32607         ldexpl: Improve idiom.
32608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32609         make sure to set HAVE_DECL_LDEXPL to 0.
32610
32611 2010-04-05  Jim Meyering  <meyering@redhat.com>
32612
32613         xstrtol-tests: convert to use init.sh
32614         * modules/xstrtol-tests (Files): Add tests/init.sh.
32615         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32616         Use Exit, not exit.
32617         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32618
32619         atexit-tests: convert to use init.sh
32620         * modules/atexit-tests (Files): Add tests/init.sh.
32621         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32622         Use Exit, not exit.
32623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32624
32625         init.sh: fix typo
32626         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32627
32628         init.sh: make it easier for a test script to write to the tty, ...
32629         when using automake's parallel-tests mode.
32630         * tests/init.sh (stderr_fileno_): Define overridable variable.
32631         (warn_): New function, to use it.
32632         (fail_, skip_, framework_failure_): Use warn_.
32633
32634 2010-04-04  Bruno Haible  <bruno@clisp.org>
32635
32636         btowc: Avoid warning.
32637         * lib/btowc.c: Include <stdlib.h>.
32638         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32639
32640 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32641             Bruno Haible  <bruno@clisp.org>
32642
32643         wchar: Port to NetBSD 1.5.
32644         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32645         * lib/wctype.in.h (WEOF): Likewise.
32646
32647 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32648             Bruno Haible  <bruno@clisp.org>
32649
32650         Port extended stdio to NetBSD 1.5.
32651         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32652         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32653         older.
32654
32655 2010-04-04  Bruno Haible  <bruno@clisp.org>
32656
32657         string: Remove unused substitution.
32658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32659         HAVE_DECL_STRERROR.
32660         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32661
32662 2010-04-04  Bruno Haible  <bruno@clisp.org>
32663
32664         strtod: Avoid a possible C++ test error.
32665         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32666         set REPLACE_STRTOD.
32667
32668 2010-04-04  Bruno Haible  <bruno@clisp.org>
32669
32670         strerror: Update documentation.
32671         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32672
32673 2010-04-04  Bruno Haible  <bruno@clisp.org>
32674
32675         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32676         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32677         _GL_CXXALIAS_SYS_CAST.
32678
32679 2010-04-04  Bruno Haible  <bruno@clisp.org>
32680
32681         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32682         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32683         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32684         REPLACE_FREXPL to 1.
32685         * doc/posix-functions/frexpl.texi: Update documentation.
32686
32687 2010-04-04  Bruno Haible  <bruno@clisp.org>
32688
32689         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32690         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32691
32692 2010-04-04  Bruno Haible  <bruno@clisp.org>
32693
32694         Implement nanosleep for native Windows.
32695         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32696
32697 2010-04-04  Bruno Haible  <bruno@clisp.org>
32698
32699         math: Fix some C++ test errors on Solaris 8.
32700         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32701
32702 2010-04-04  Bruno Haible  <bruno@clisp.org>
32703
32704         math: Fix some C++ test errors on Cygwin.
32705         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32706         truncl): Provide declaration if the system does not have it.
32707         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32708         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32709         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32710         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32711         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32712         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32713         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32714         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32715         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32716         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32717         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32718         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32719         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32720         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32721         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32722         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32724         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32725         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32726         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32727         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32728         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32729
32730 2010-04-04  Bruno Haible  <bruno@clisp.org>
32731
32732         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32733         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32734         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32735         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32736         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32737         * m4/isinf.m4 (gl_ISINF): Likewise.
32738         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32739
32740 2010-04-04  Bruno Haible  <bruno@clisp.org>
32741
32742         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32743         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32744
32745 2010-04-04  Bruno Haible  <bruno@clisp.org>
32746
32747         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32748         * modules/tmpfile (configure.ac): Update.
32749
32750         tmpfile: Fix C++ test error on mingw.
32751         * lib/stdio.in.h (tmpfile): New declaration.
32752         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32753         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32754         * modules/tmpfile (Depends-on): Add stdio.
32755         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32756         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32757         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32758         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32759         REPLACE_TMPFILE.
32760         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32761
32762 2010-04-04  Bruno Haible  <bruno@clisp.org>
32763
32764         ioctl: Fix C++ test error on mingw.
32765         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32766         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32767         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32768
32769 2010-04-03  Bruno Haible  <bruno@clisp.org>
32770
32771         wcwidth: Fix C++ test error on mingw.
32772         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32774         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32775
32776 2010-04-03  Bruno Haible  <bruno@clisp.org>
32777
32778         nanosleep: Fix C++ test error on mingw.
32779         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32780         * lib/time.in.h (nanosleep): Use modern idiom.
32781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32782         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32783         REPLACE_NANOSLEEP to 1.
32784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32785         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32786
32787 2010-04-03  Bruno Haible  <bruno@clisp.org>
32788
32789         strptime: Fix C++ test error on mingw.
32790         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32791         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32792         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32793         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32795         not REPLACE_STRPTIME.
32796         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32797         REPLACE_STRPTIME.
32798
32799 2010-04-03  Bruno Haible  <bruno@clisp.org>
32800
32801         timegm: Fix C++ test error on mingw.
32802         * lib/time.in.h (timegm): Use modern idiom.
32803         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32804         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32806         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32807
32808 2010-04-03  Bruno Haible  <bruno@clisp.org>
32809
32810         timegm: Assume declaration if function exists.
32811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32812         if it exists. Don't clobber ac_cv_func_timegm.
32813
32814 2010-04-03  Bruno Haible  <bruno@clisp.org>
32815
32816         time_r: Fix C++ test error on mingw.
32817         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32818         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32819         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32821         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32822
32823 2010-04-03  Bruno Haible  <bruno@clisp.org>
32824
32825         time_r: Minor updates.
32826         * modules/time_r (Description): Mention the provided functions.
32827         * lib/time_r.c: Don't include <string.h>.
32828         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32829         * doc/posix-functions/localtime_r.texi: Likewise.
32830
32831 2010-04-03  Bruno Haible  <bruno@clisp.org>
32832
32833         time: Fix regression introduced on 2010-03-08.
32834         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32835         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32836
32837 2010-04-03  Jim Meyering  <meyering@redhat.com>
32838
32839         maint.mk: don't silently disable project-specific syntax-check rules
32840         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32841         that they need to convert their project-specific syntax-check rules
32842         to use the new _sc_search_regexp.
32843
32844 2010-04-03  Bruno Haible  <bruno@clisp.org>
32845
32846         fchdir: Fix regression introduced on 2010-03-08.
32847         * lib/unistd.in.h (fchdir): Fix declaration.
32848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32850         REPLACE_FCHDIR.
32851         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32852         REPLACE_FCHDIR.
32853
32854 2010-04-03  Bruno Haible  <bruno@clisp.org>
32855
32856         getpagesize: Fix C++ test error on mingw.
32857         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32858         system does not declare the function.
32859         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32860         declared.
32861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32862         HAVE_DECL_GETPAGESIZE.
32863         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32864
32865 2010-04-03  Bruno Haible  <bruno@clisp.org>
32866
32867         stdio: Make C++ tests work on mingw.
32868         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32869         does not declare the function.
32870
32871 2010-04-03  Bruno Haible  <bruno@clisp.org>
32872
32873         ftello: Fix C++ test error on mingw.
32874         * lib/stdio.in.h (ftello): Use modern idiom.
32875         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32876         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32877         is missing and that it needs to be replaced.
32878         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32880         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32881
32882 2010-04-03  Bruno Haible  <bruno@clisp.org>
32883
32884         fseeko: Fix C++ test error on mingw.
32885         * lib/stdio.in.h (fseeko): Use modern idiom.
32886         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32887         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32888         is missing and that it needs to be replaced.
32889         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32891         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32892
32893 2010-04-03  Bruno Haible  <bruno@clisp.org>
32894
32895         mkstemp: Fix C++ test error on mingw.
32896         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32898         function is missing and that it needs to be replaced.
32899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32900         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32901
32902 2010-04-03  Bruno Haible  <bruno@clisp.org>
32903
32904         stpncpy: Fix C++ test error on mingw.
32905         * lib/string.in.h (stpncpy): Use modern idiom.
32906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32907         function is missing and that it needs to be replaced.
32908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32909         REPLACE_STPNCPY.
32910         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32911
32912 2010-04-03  Bruno Haible  <bruno@clisp.org>
32913
32914         sys_stat: Fix C++ test error on mingw.
32915         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32916         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32917
32918 2010-04-03  Bruno Haible  <bruno@clisp.org>
32919
32920         pty: Update doc.
32921         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32922
32923 2010-04-03  Bruno Haible  <bruno@clisp.org>
32924
32925         unistd: Fix C++ test error on mingw.
32926         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32927
32928 2010-04-03  Bruno Haible  <bruno@clisp.org>
32929
32930         Update doc regarding mingw.
32931         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32932         * doc/glibc-functions/login_tty.texi: Likewise.
32933         * doc/glibc-functions/forkpty.texi: Likewise.
32934
32935 2010-04-03  Bruno Haible  <bruno@clisp.org>
32936
32937         stdlib: Avoid compilation failure of c-strtold on mingw.
32938         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32939
32940 2010-04-03  Bruno Haible  <bruno@clisp.org>
32941
32942         locale: Make C++ tests work on Cygwin and mingw.
32943         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32944         cannot provide the function.
32945         Reported by Simon Josefsson.
32946
32947 2010-04-03  Bruno Haible  <bruno@clisp.org>
32948
32949         localename: Port to MacOS X 10.6.
32950         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32951         memory layout of the locales in MacOS X 10.6 as well.
32952         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32953
32954 2010-04-02  Bruno Haible  <bruno@clisp.org>
32955
32956         gnulib-tool: Ensure that long-running tests are executed last.
32957         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32958         running tests after the one for the other tests.
32959
32960 2010-04-02  Bruno Haible  <bruno@clisp.org>
32961
32962         gnulib-tool: Ensure the tests in the main directory are executed first.
32963         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32964         start with the current directory.
32965
32966 2010-04-02  Bruno Haible  <bruno@clisp.org>
32967
32968         Tests for module 'havelib', moved here from GNU gettext.
32969         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32970         modifications.
32971         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32972         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32973         with modifications.
32974         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32975         modifications.
32976         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32977         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32978         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32979         with modifications.
32980         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32981         with modifications.
32982         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32983         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32984         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32985         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32986         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32987         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32988         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32989         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32990         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32991         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32992         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32993         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32994         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32995         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32996         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32997         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32998         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32999         with modifications.
33000         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33001         with modifications.
33002         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33003         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33004         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33005         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33006         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33007         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33008         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33009         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33010         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33011         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33012         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33013         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33014         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33015         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33016         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33017         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33018         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33019         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33020         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33021         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33022         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33023         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33024         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33025         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33026         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33027         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33028         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33029         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33030         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33031         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33032         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33033         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33034         * tests/havelib/rpathx/rpathx.c: New file, from
33035         gettext/autoconf-lib-link.
33036         * tests/havelib/rpathx/Makefile.am: New file, from
33037         gettext/autoconf-lib-link.
33038         * tests/havelib/rpathx/configure.ac: New file, from
33039         gettext/autoconf-lib-link with modifications.
33040         * tests/havelib/rpathy/rpathy.c: New file, from
33041         gettext/autoconf-lib-link.
33042         * tests/havelib/rpathy/Makefile.am: New file, from
33043         gettext/autoconf-lib-link.
33044         * tests/havelib/rpathy/configure.ac: New file, from
33045         gettext/autoconf-lib-link with modifications.
33046         * tests/havelib/rpathz/rpathz.c: New file, from
33047         gettext/autoconf-lib-link.
33048         * tests/havelib/rpathz/Makefile.am: New file, from
33049         gettext/autoconf-lib-link.
33050         * tests/havelib/rpathz/configure.ac: New file, from
33051         gettext/autoconf-lib-link with modifications.
33052         * tests/havelib/rpathlx/usex.c: New file, from
33053         gettext/autoconf-lib-link.
33054         * tests/havelib/rpathlx/Makefile.am: New file, from
33055         gettext/autoconf-lib-link.
33056         * tests/havelib/rpathlx/configure.ac: New file, from
33057         gettext/autoconf-lib-link with modifications.
33058         * tests/havelib/rpathly/usey.c: New file, from
33059         gettext/autoconf-lib-link.
33060         * tests/havelib/rpathly/Makefile.am: New file, from
33061         gettext/autoconf-lib-link.
33062         * tests/havelib/rpathly/configure.ac: New file, from
33063         gettext/autoconf-lib-link with modifications.
33064         * tests/havelib/rpathlz/usez.c: New file, from
33065         gettext/autoconf-lib-link.
33066         * tests/havelib/rpathlz/Makefile.am: New file, from
33067         gettext/autoconf-lib-link.
33068         * tests/havelib/rpathlz/configure.ac: New file, from
33069         gettext/autoconf-lib-link with modifications.
33070         * tests/havelib/rpathlyx/usey.c: New file, from
33071         gettext/autoconf-lib-link.
33072         * tests/havelib/rpathlyx/Makefile.am: New file, from
33073         gettext/autoconf-lib-link.
33074         * tests/havelib/rpathlyx/configure.ac: New file, from
33075         gettext/autoconf-lib-link with modifications.
33076         * tests/havelib/rpathlzyx/usez.c: New file, from
33077         gettext/autoconf-lib-link.
33078         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33079         gettext/autoconf-lib-link.
33080         * tests/havelib/rpathlzyx/configure.ac: New file, from
33081         gettext/autoconf-lib-link with modifications.
33082         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33083         with modifications.
33084
33085 2010-04-02  Bruno Haible  <bruno@clisp.org>
33086
33087         gnulib-tool: Create distributed built sources also for the tests.
33088         * gnulib-tool (func_create_testdir): Also generate distributed built
33089         sources in the tests directory.
33090
33091 2010-04-02  Bruno Haible  <bruno@clisp.org>
33092
33093         gnulib-tool: Obey user's environment variables.
33094         * gnulib-tool (func_create_testdir): When creating built sources,
33095         respect the environment variables for autoconf, automake, etc. given by
33096         the user.
33097
33098 2010-04-02  Bruno Haible  <bruno@clisp.org>
33099
33100         gnulib-tool: Provide the value of --m4-base to modules.
33101         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33102         of gl_m4_base.
33103
33104 2010-04-02  Eric Blake  <eblake@redhat.com>
33105
33106         maint.mk: fix some fallout
33107         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33108         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33109
33110 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33111
33112         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33113         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33114         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33115         (sc_cast_of_x_alloc_return_value): Likewise.
33116         (sc_cast_of_alloca_return_value): Likewise.
33117         (sc_space_tab): Likewise.
33118         (sc_prohibit_atoi_atof): Likewise.
33119         (sc_prohibit_magic_number_exit): Likewise.
33120         (sc_error_exit_success): Likewise.
33121         (sc_file_system): Likewise.
33122         (sc_prohibit_have_config_h): Likewise.
33123         (sc_require_config_h): Likewise.
33124         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33125         (sc_obsolete_symbols): Likewise.
33126         (sc_changelog): Likewise.
33127         (sc_program_name): Likewise.
33128         (sc_the_the): Likewise.
33129         (sc_trailing_blank): Likewise.
33130         (sc_two_space_separator_in_usage): Likewise.
33131         (sc_useless_cpp_parens): Likewise.
33132         (sc_GPL_version): Likewise.
33133         (sc_GFDL_version): Likewise.
33134         (sc_texinfo_acronym): Likewise.
33135         (sc_prohibit_cvs_keyword): Likewise.
33136         (sc_prohibit_stat_st_blocks): Likewise.
33137         (sc_prohibit_S_IS_definition): Likewise.
33138         (sc_redundant_const): Likewise.
33139         (sc_makefile_TAB_only_indentation): Likewise.
33140         (sc_m4_quote_check): Likewise.
33141         (sc_makefile_path_separator_check): Likewise.
33142         (sc_copyright_check): Likewise.
33143         (sc_Wundef_boolean): Likewise.
33144         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33145
33146         maint.mk: match 0 or more whitespace-before-function-call '('
33147         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33148         that have zero or two-and-more spaces between the function name
33149         and the open parenthesis.
33150         (sc_error_message_warn_fatal): Likewise.
33151         (sc_error_message_uppercase): Likewise.
33152         (sc_error_message_period): Likewise.
33153
33154 2010-03-31  Eric Blake  <eblake@redhat.com>
33155
33156         maint.mk: check for [ as well as test
33157         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33158         Based on a libvirt report by Matthias Bolte.
33159
33160         gnumakefile: don't squelch _version output
33161         * top/GNUmakefile (_version): Create one-shot dependency rather
33162         than using $(shell) when version must be regenerated.
33163         (_autoreconf): Run verbosely, by default.
33164
33165         sys_time: avoid compiler warnings
33166         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33167         unconditional, fixing regression from 2010-03-29.
33168         Reported by Simon Josefsson.
33169
33170 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33171
33172         maint.mk: s/_header_without_use/_sc_header_without_use/
33173         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33174         (sc_prohibit_assert_without_use): Use the new name.
33175         (sc_prohibit_close_stream_without_use): Likewise.
33176         (sc_prohibit_getopt_without_use): Likewise.
33177         (sc_prohibit_quotearg_without_use): Likewise.
33178         (sc_prohibit_quote_without_use): Likewise.
33179         (sc_prohibit_long_options_without_use): Likewise.
33180         (sc_prohibit_inttostr_without_use): Likewise.
33181         (sc_prohibit_ignore_value_without_use): Likewise.
33182         (sc_prohibit_error_without_use): Likewise.
33183         (sc_prohibit_xalloc_without_use): Likewise.
33184         (sc_prohibit_hash_without_use): Likewise.
33185         (sc_prohibit_hash_pjw_without_use): Likewise.
33186         (sc_prohibit_safe_read_without_use): Likewise.
33187         (sc_prohibit_argmatch_without_use): Likewise.
33188         (sc_prohibit_canonicalize_without_use): Likewise.
33189         (sc_prohibit_root_dev_ino_without_use): Likewise.
33190         (sc_prohibit_openat_without_use): Likewise.
33191         (sc_prohibit_c_ctype_without_use): Likewise.
33192         (sc_prohibit_signal_without_use): Likewise.
33193         (sc_prohibit_intprops_without_use): Likewise.
33194
33195 2010-03-30  Eric Blake  <eblake@redhat.com>
33196
33197         maint: improve module indicators
33198         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33199         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33200         columns, and avoid extra macro expansion.
33201
33202         fdopendir: work around FreeBSD bug
33203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33204         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33205         * modules/dirent (Makefile.am): Substitute it.
33206         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33207         declaration.
33208         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33209         fix.
33210         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33211
33212 2010-03-29  Bruno Haible  <bruno@clisp.org>
33213
33214         Emit #pragma system_header after the inclusion guard, not before.
33215         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33216         guard that spans the entire file, not before. This enables an
33217         optimization in GCC's preprocessor.
33218         * lib/ctype.in.h: Likewise.
33219         * lib/dirent.in.h: Likewise.
33220         * lib/errno.in.h: Likewise.
33221         * lib/float.in.h: Likewise.
33222         * lib/getopt.in.h: Likewise.
33223         * lib/iconv.in.h: Likewise.
33224         * lib/langinfo.in.h: Likewise.
33225         * lib/locale.in.h: Likewise.
33226         * lib/math.in.h: Likewise.
33227         * lib/netdb.in.h: Likewise.
33228         * lib/netinet_in.in.h: Likewise.
33229         * lib/pty.in.h: Likewise.
33230         * lib/sched.in.h: Likewise.
33231         * lib/se-selinux.in.h: Likewise.
33232         * lib/search.in.h: Likewise.
33233         * lib/spawn.in.h: Likewise.
33234         * lib/stdarg.in.h: Likewise.
33235         * lib/stdint.in.h: Likewise.
33236         * lib/string.in.h: Likewise.
33237         * lib/strings.in.h: Likewise.
33238         * lib/sys_file.in.h: Likewise.
33239         * lib/sys_ioctl.in.h: Likewise.
33240         * lib/sys_time.in.h: Likewise.
33241         * lib/sys_times.in.h: Likewise.
33242         * lib/sys_utsname.in.h: Likewise.
33243         * lib/sys_wait.in.h: Likewise.
33244         * lib/sysexits.in.h: Likewise.
33245         * lib/wctype.in.h: Likewise.
33246
33247 2010-03-28  James Youngman  <jay@gnu.org>
33248
33249         save-cwd: don't leak a file descriptor when the caller execs.
33250         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33251         saved file descriptor.
33252         * modules/save-cwd (Depends-on): Depend on cloexec.
33253
33254 2010-03-29  Bruno Haible  <bruno@clisp.org>
33255
33256         Remove vestiges of fts-lgpl module.
33257         * lib/fts_.h: Assume GNULIB_FTS is 1.
33258         * lib/fts.c: Likewise.
33259         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33260
33261 2010-03-28  Bruno Haible  <bruno@clisp.org>
33262
33263         Fix definition of tests witness macro.
33264         * gnulib-tool (func_import): Fix definition of witness macro.
33265
33266 2010-03-28  Bruno Haible  <bruno@clisp.org>
33267
33268         Fix ioctl's protoype on glibc systems.
33269         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33270         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33271         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33272         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33273         signature. If not, arrange to replace the ioctl function.
33274         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33275         REPLACE_IOCTL.
33276         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33277         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33278         Reported by Ludovic Courtès <ludo@gnu.org>.
33279
33280 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33281
33282         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33283         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33284         made it so grep -r --include=GLOB* ... did not work.
33285
33286 2010-03-26  Jim Meyering  <meyering@redhat.com>
33287             Eric Blake  <eblake@redhat.com>
33288
33289         maint.mk: prohibit use of test's -o and -a operators
33290         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33291
33292 2010-03-28  Bruno Haible  <bruno@clisp.org>
33293
33294         Remove unused GNULIB_XYZ macro definitions.
33295         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33296         invocation.
33297
33298 2010-03-28  Bruno Haible  <bruno@clisp.org>
33299
33300         Mark privileged tests modules.
33301         * modules/idpriv-drop-tests (Status): New section.
33302         * modules/idpriv-droptemp-tests (Status): New section.
33303
33304 2010-03-28  Bruno Haible  <bruno@clisp.org>
33305
33306         Split C++ tests into separate tests modules.
33307         * modules/dirent-c++-tests: New file, extracted from
33308         modules/dirent-tests.
33309         * modules/dirent-tests: Depend on it.
33310         * modules/fcntl-h-c++-tests: New file, extracted from
33311         modules/fcntl-h-tests.
33312         * modules/fcntl-h-tests: Depend on it.
33313         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33314         * modules/glob-tests: Depend on it.
33315         * modules/iconv-h-c++-tests: New file, extracted from
33316         modules/iconv-h-tests.
33317         * modules/iconv-h-tests: Depend on it.
33318         * modules/langinfo-c++-tests: New file, extracted from
33319         modules/langinfo-tests.
33320         * modules/langinfo-tests: Depend on it.
33321         * modules/locale-c++-tests: New file, extracted from
33322         modules/locale-tests.
33323         * modules/locale-tests: Depend on it.
33324         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33325         * modules/math-tests: Depend on it.
33326         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33327         * modules/pty-tests: Depend on it.
33328         * modules/search-c++-tests: New file, extracted from
33329         modules/search-tests.
33330         * modules/search-tests: Depend on it.
33331         * modules/signal-c++-tests: New file, extracted from
33332         modules/signal-tests.
33333         * modules/signal-tests: Depend on it.
33334         * modules/spawn-c++-tests: New file, extracted from
33335         modules/spawn-tests.
33336         * modules/spawn-tests: Depend on it.
33337         * modules/stdio-c++-tests: New file, extracted from
33338         modules/stdio-tests.
33339         * modules/stdio-tests: Depend on it.
33340         * modules/stdlib-c++-tests: New file, extracted from
33341         modules/stdlib-tests.
33342         * modules/stdlib-tests: Depend on it.
33343         * modules/string-c++-tests: New file, extracted from
33344         modules/string-tests.
33345         * modules/string-tests: Depend on it.
33346         * modules/sys_ioctl-c++-tests: New file, extracted from
33347         modules/sys_ioctl-tests.
33348         * modules/sys_ioctl-tests: Depend on it.
33349         * modules/sys_select-c++-tests: New file, extracted from
33350         modules/sys_select-tests.
33351         * modules/sys_select-tests: Depend on it.
33352         * modules/sys_socket-c++-tests: New file, extracted from
33353         modules/sys_socket-tests.
33354         * modules/sys_socket-tests: Depend on it.
33355         * modules/sys_stat-c++-tests: New file, extracted from
33356         modules/sys_stat-tests.
33357         * modules/sys_stat-tests: Depend on it.
33358         * modules/sys_time-c++-tests: New file, extracted from
33359         modules/sys_time-tests.
33360         * modules/sys_time-tests: Depend on it.
33361         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33362         * modules/time-tests: Depend on it.
33363         * modules/unistd-c++-tests: New file, extracted from
33364         modules/unistd-tests.
33365         * modules/unistd-tests: Depend on it.
33366         * modules/wchar-c++-tests: New file, extracted from
33367         modules/wchar-tests.
33368         * modules/wchar-tests: Depend on it.
33369         * modules/wctype-c++-tests: New file, extracted from
33370         modules/wctype-tests.
33371         * modules/wctype-tests: Depend on it.
33372         Reported by Simon Josefsson.
33373
33374 2010-03-28  Bruno Haible  <bruno@clisp.org>
33375
33376         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33377         * gnulib-tool (func_exists_module): New function, extracted from
33378         func_verify_module.
33379         (func_verify_module): Use it.
33380         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33381         'foo' only if 'foo' exists.
33382         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33383         module.
33384
33385 2010-03-28  Bruno Haible  <bruno@clisp.org>
33386
33387         gnulib-tool: Add support for special categories of tests.
33388         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33389         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33390         (func_usage): Document them.
33391         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33392         inc_unportable_tests, inc_all_tests): New variables.
33393         (func_acceptable): Consider these variables.
33394         (func_modules_transitive_closure): Make it work when the 'Status' field
33395         consists of multiple words.
33396         (func_import): Store and restore the values of inc_cxx_tests,
33397         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33398         inc_all_tests in gnulib-comp.m4.
33399         (func_create_testdir): Set inc_all_tests to true.
33400         * doc/gnulib.texi (Extra tests modules): New section.
33401         Suggested by Jim Meyering.
33402
33403 2010-03-28  Bruno Haible  <bruno@clisp.org>
33404
33405         ansi-c++-opt: Allow turning off the C++ build by default.
33406         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33407         gl_CXX_CHOICE_DEFAULT_NO is defined.
33408         Requested by Eric Blake.
33409
33410 2010-03-28  Bruno Haible  <bruno@clisp.org>
33411
33412         unistd: Avoid #define replacements in C++ mode.
33413         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33414         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33415         setsockopt, shutdown, select): In C++, attach a warning to the function
33416         if possible, rather than #defining the symbol to a dysfunctional alias.
33417         Reported by John W. Eaton <jwe@gnu.org>.
33418
33419 2010-03-28  Bruno Haible  <bruno@clisp.org>
33420
33421         Fix link errors on mingw.
33422         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33423         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33424         $(LIBSOCKET).
33425         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33426         $(LIBSOCKET).
33427
33428 2010-03-28  Bruno Haible  <bruno@clisp.org>
33429             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33430
33431         lib-ignore: Determine different options for different compilers.
33432         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33433         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33434         Add comments.
33435         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33436         * NEWS: Mention the change.
33437
33438 2010-03-27  Bruno Haible  <bruno@clisp.org>
33439
33440         Remove unused GNULIB_XYZ macro definitions.
33441         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33442         * modules/fseek (configure.ac): Likewise.
33443         * modules/ioctl (configure.ac): Likewise.
33444         * modules/open (configure.ac): Likewise.
33445         * modules/stdlib-safer (configure.ac): Likewise.
33446
33447 2010-03-27  Bruno Haible  <bruno@clisp.org>
33448
33449         Add a remark about certain modules.
33450         * modules/malloc (Comment): New section.
33451         * modules/realloc (Comment): Likewise.
33452         * modules/sigpipe (Comment): Likewise.
33453
33454 2010-03-27  Bruno Haible  <bruno@clisp.org>
33455
33456         Resolve conflict between the two kinds of module indicators.
33457         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33458         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33459         * modules/canonicalize (configure.ac): Invoke
33460         gl_MODULE_INDICATOR_FOR_TESTS.
33461         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33462         GNULIB_XYZ.
33463         * tests/test-dirent-c++.cc: Likewise.
33464         * tests/test-dirent-safer.c: Likewise.
33465         * tests/test-dup2.c: Likewise.
33466         * tests/test-fchdir.c: Likewise.
33467         * tests/test-fcntl-h-c++.cc: Likewise.
33468         * tests/test-getopt.c: Likewise.
33469         * tests/test-getopt.h: Likewise.
33470         * tests/test-langinfo-c++.cc: Likewise.
33471         * tests/test-locale-c++.cc: Likewise.
33472         * tests/test-math-c++.cc: Likewise.
33473         * tests/test-pty-c++.cc: Likewise.
33474         * tests/test-search-c++.cc: Likewise.
33475         * tests/test-signal-c++.cc: Likewise.
33476         * tests/test-spawn-c++.cc: Likewise.
33477         * tests/test-stdio-c++.cc: Likewise.
33478         * tests/test-stdlib-c++.cc: Likewise.
33479         * tests/test-string-c++.cc: Likewise.
33480         * tests/test-sys_ioctl-c++.cc: Likewise.
33481         * tests/test-sys_select-c++.cc: Likewise.
33482         * tests/test-sys_socket-c++.cc: Likewise.
33483         * tests/test-sys_stat-c++.cc: Likewise.
33484         * tests/test-sys_time-c++.cc: Likewise.
33485         * tests/test-time-c++.cc: Likewise.
33486         * tests/test-unistd-c++.cc: Likewise.
33487         * tests/test-wchar-c++.cc: Likewise.
33488         * tests/uninorm/test-u8-nfc.c: Likewise.
33489         * tests/uninorm/test-u8-nfd.c: Likewise.
33490         * tests/uninorm/test-u8-nfkc.c: Likewise.
33491         * tests/uninorm/test-u8-nfkd.c: Likewise.
33492         * tests/uninorm/test-u16-nfc.c: Likewise.
33493         * tests/uninorm/test-u16-nfd.c: Likewise.
33494         * tests/uninorm/test-u16-nfkc.c: Likewise.
33495         * tests/uninorm/test-u16-nfkd.c: Likewise.
33496         * tests/uninorm/test-u32-nfc.c: Likewise.
33497         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33498         * tests/uninorm/test-u32-nfd.c: Likewise.
33499         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33500         * tests/uninorm/test-u32-nfkc.c: Likewise.
33501         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33502         * tests/uninorm/test-u32-nfkd.c: Likewise.
33503         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33504         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33505
33506 2010-03-27  Bruno Haible  <bruno@clisp.org>
33507
33508         Distinguish two kinds of module indicators.
33509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33510         gl_MODULE_INDICATOR.
33511         (gl_MODULE_INDICATOR): New macro.
33512         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33513         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33514         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33515         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33516         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33517         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33518         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33519         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33520         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33521         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33522         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33523         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33526         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33527         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33528         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33529         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33530         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33533         * modules/cloexec (configure.ac): Likewise.
33534         * modules/getopt-gnu (configure.ac): Likewise.
33535         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33536         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33537         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33538         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33539
33540 2010-03-27  Bruno Haible  <bruno@clisp.org>
33541
33542         New module description field 'Comment'.
33543         * gnulib-tool: New option --extract-comment.
33544         (func_usage): Document it.
33545         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33546         (func_get_comment): New function.
33547         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33548
33549 2010-03-27  Bruno Haible  <bruno@clisp.org>
33550
33551         Addendum to 2010-02-07 commit.
33552         * gnulib-tool (func_usage): Document --extract-applicability option.
33553
33554 2010-03-27  Bruno Haible  <bruno@clisp.org>
33555
33556         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33557         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33558         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33559         rather than link errors.
33560
33561 2010-03-27  Bruno Haible  <bruno@clisp.org>
33562
33563         Avoid side effects from tests-related modules on the compilation of lib.
33564         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33565         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33566         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33567         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33568         macro.
33569         (func_import): Define a witness macro. Assign it a value that depends
33570         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33571         tests-related modules.
33572         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33573         Reported by Jim Meyering.
33574
33575 2010-03-27  Bruno Haible  <bruno@clisp.org>
33576
33577         Factorize common .m4 code.
33578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33580         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33581         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33583         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33584         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33585         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33586         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33588         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33589         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33590         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33592         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33593         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33594         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33595         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33597         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33598         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33603         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33604         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33606         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33607         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33608         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33609         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33610
33611 2010-03-27  Bruno Haible  <bruno@clisp.org>
33612
33613         Fix a compilation error on Cygwin with g++ >= 4.3.
33614         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33615         if it is undefined or if we alias it to chmod.
33616         (lstat): Don't warn about the use of this function if it is undefined
33617         or if we alias it to stat.
33618         Reported by Simon Josefsson.
33619
33620 2010-03-27  Bruno Haible  <bruno@clisp.org>
33621
33622         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33623         * modules/getlogin (configure.ac): Update.
33624
33625         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33626         * modules/getlogin_r (configure.ac): Update.
33627
33628         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33630         * modules/inet_ntop (configure.ac): Update.
33631
33632         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33633         * modules/inet_pton (configure.ac): Update.
33634
33635         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33636         * modules/mbslen (configure.ac): Update.
33637
33638         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33639         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33640         * modules/forkpty (configure.ac): Update.
33641         * modules/openpty (configure.ac): Update.
33642
33643 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33644
33645         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33646         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33647
33648 2010-03-25  Eric Blake  <eblake@redhat.com>
33649
33650         maint: use pragma consistently across replacement headers
33651         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33652         * lib/dirent.in.h (system_header): Likewise.
33653         * lib/errno.in.h (system_header): Likewise.
33654         * lib/float.in.h (system_header): Likewise.
33655         * lib/getopt.in.h (system_header): Likewise.
33656         * lib/iconv.in.h (system_header): Likewise.
33657         * lib/inttypes.in.h (system_header): Likewise.
33658         * lib/langinfo.in.h (system_header): Likewise.
33659         * lib/locale.in.h (system_header): Likewise.
33660         * lib/math.in.h (system_header): Likewise.
33661         * lib/netdb.in.h (system_header): Likewise.
33662         * lib/netinet_in.in.h (system_header): Likewise.
33663         * lib/pty.in.h (system_header): Likewise.
33664         * lib/sched.in.h (system_header): Likewise.
33665         * lib/se-selinux.in.h (system_header): Likewise.
33666         * lib/search.in.h (system_header): Likewise.
33667         * lib/spawn.in.h (system_header): Likewise.
33668         * lib/stdarg.in.h (system_header): Likewise.
33669         * lib/stdint.in.h (system_header): Likewise.
33670         * lib/string.in.h (system_header): Likewise.
33671         * lib/strings.in.h (system_header): Likewise.
33672         * lib/sys_file.in.h (system_header): Likewise.
33673         * lib/sys_ioctl.in.h (system_header): Likewise.
33674         * lib/sys_socket.in.h (system_header): Likewise.
33675         * lib/sys_times.in.h (system_header): Likewise.
33676         * lib/sys_utsname.in.h (system_header): Likewise.
33677         * lib/sys_wait.in.h (system_header): Likewise.
33678         * lib/sysexits.in.h (system_header): Likewise.
33679         * lib/unistd.in.h (system_header): Likewise.
33680         * lib/wctype.in.h (system_header): Likewise.
33681
33682         arpa/inet: fix mingw compilation warning
33683         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33684         Reported by Matthew Bolte.
33685
33686 2010-03-25  Bruno Haible  <bruno@clisp.org>
33687
33688         Avoid collision between gnulib wrapper and libintl wrapper.
33689         * lib/printf.c (printf): Don't define if a printf wrapper is already
33690         defined in intl/printf.c.
33691         Reported by Michel Boaventura <michel@michelboaventura.com>.
33692
33693 2010-03-25  Bruno Haible  <bruno@clisp.org>
33694
33695         Use ANSI C.
33696         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33697
33698 2010-03-25  Bruno Haible  <bruno@clisp.org>
33699
33700         Minor formatting changes.
33701         * lib/acosl.c: Insert space before function argument list.
33702         * lib/argz.c: Likewise.
33703         * lib/asinl.c: Likewise.
33704         * lib/expl.c: Likewise.
33705         * lib/gen-uni-tables.c: Likewise.
33706         * lib/gettext.h: Likewise.
33707         * lib/glthread/lock.h: Likewise.
33708         * lib/tanl.c: Likewise.
33709         * lib/uniname/uniname.c: Likewise.
33710         * tests/test-idpriv-drop.c: Likewise.
33711         * tests/test-idpriv-droptemp.c: Likewise.
33712         * tests/test-lock.c: Likewise.
33713         * tests/test-tls.c: Likewise.
33714         * lib/argp-help.c: Insert space before function-like macro argument
33715         list.
33716         * lib/memcmp.c: Likewise.
33717         * tests/test-base64.c: Likewise.
33718         * lib/localename.c: Insert space before sizeof's argument list.
33719         * lib/safe-alloc.h: Likewise.
33720         * lib/file-set.h: Insert space before macro argument list.
33721         * tests/test-argp.c: Likewise.
33722         * lib/argp-namefrob.h: Insert space before function parameter list.
33723         * lib/getaddrinfo.c: Likewise.
33724         * lib/netdb.in.h: Likewise.
33725         * lib/parse-duration.h: Likewise.
33726         * lib/parse-duration.c: Likewise.
33727         * lib/poll.c: Likewise.
33728         * lib/select.c: Likewise.
33729         * lib/trim.h: Likewise.
33730         * tests/test-usleep.c: Likewise.
33731         * lib/ldexpl.c: Insert space before function parameter list and before
33732         function argument list.
33733         * lib/logl.c: Likewise.
33734         * lib/sqrtl.c: Likewise.
33735         * lib/trim.c: Likewise.
33736         * lib/cosl.c: Use GNU style indentation. Insert space before function
33737         argument list.
33738         * lib/sinl.c: Likewise.
33739         * lib/tsearch.c: Insert space after 'for'.
33740         Reported by Jim Meyering.
33741
33742 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33743
33744         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33745         config header before grepping, as it's not present before
33746         autoreconf/configure are run.  Reported by Simon Josefsson.
33747
33748 2010-03-23  Bruno Haible  <bruno@clisp.org>
33749
33750         pt_chown: Make it work with automake < 1.11.
33751         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33752         Reported by Simon Josefsson.
33753
33754 2010-03-23  Bruno Haible  <bruno@clisp.org>
33755
33756         pt_chown: Don't depend on GPLed modules.
33757         * lib/pt_chown.c: Don't include idpriv.h.
33758         (main): Don't drop privileges.
33759         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33760         Reported by Simon Josefsson.
33761
33762 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33763
33764         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33765         suggestions from karl@freefriends.org (Karl Berry).
33766
33767 2010-03-22  Eric Blake  <eblake@redhat.com>
33768
33769         gethostname: further tweaks
33770         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33771         are overriding gethostname.
33772         Suggested by Bruno Haible.
33773
33774 2010-03-21  Bruno Haible  <bruno@clisp.org>
33775
33776         Fix comments.
33777         * lib/forkpty.c (rpl_forkpty): Fix comment.
33778         * lib/openpty.c (rpl_openpty): Likewise.
33779         Reported by Eric Blake.
33780
33781 2010-03-22  Eric Blake  <eblake@redhat.com>
33782
33783         gethostname: fix build on mingw
33784         * lib/unistd.in.h (includes): Work around fact that mingw
33785         <winsock2.h> re-includes <unistd.h>, by avoiding any
33786         redeclarations if we are being included by <winsock2.h>.
33787         Reported by Matthias Bolte.
33788
33789 2010-03-21  Bruno Haible  <bruno@clisp.org>
33790
33791         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33792         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33793         modifications.
33794         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33795         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33796         provide the replacement.
33797         * modules/forkpty (Depends-on): Add openpty, login_tty.
33798         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33799         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33800         * doc/glibc-functions/forkpty.texi: More supported platforms.
33801         * config/srclist.txt: Add forkpty.c (commented).
33802
33803 2010-03-21  Bruno Haible  <bruno@clisp.org>
33804
33805         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33806         (Makefile.am): Verify that PTY_LIB is defined.
33807
33808         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33809
33810 2010-03-21  Bruno Haible  <bruno@clisp.org>
33811
33812         Tests for module 'login_tty'.
33813         * modules/login_tty-tests: New file.
33814         * tests/test-login_tty.c: New file.
33815
33816         New module 'login_tty'.
33817         * lib/login_tty.c: New file.
33818         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33819         * modules/login_tty: New file.
33820         * doc/glibc-functions/login_tty.texi: Mention the new module.
33821
33822 2010-03-21  Bruno Haible  <bruno@clisp.org>
33823
33824         login_tty: Documentation.
33825         * doc/glibc-functions/login_tty.texi: New file.
33826         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33827
33828 2010-03-21  Bruno Haible  <bruno@clisp.org>
33829
33830         pty: Consistent macro naming.
33831         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33832         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33833         * modules/pty (configure.ac): Update.
33834
33835 2010-03-21  Bruno Haible  <bruno@clisp.org>
33836
33837         Tests for openpty: Make stricter.
33838         * tests/test-openpty.c (main): Add test of canonical processing and
33839         erase.
33840         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33841
33842         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33843         * lib/openpty.c (openpty): New replacement function.
33844         * lib/pty.in.h: Include <termios.h>.
33845         (openpty): Update declaration. Add comments.
33846         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33847         is not declared, arrange to provide the replacement. Check for _getpty
33848         and posix_openpt.
33849         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33850         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33851         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33852         * modules/pty-tests (test_pty_c___LDADD): New variable.
33853         * doc/glibc-functions/openpty.texi: More supported platforms.
33854
33855 2010-03-21  Bruno Haible  <bruno@clisp.org>
33856
33857         setenv: Tweaks.
33858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33859         the test program.
33860         * doc/posix-functions/setenv.texi: Update platforms list.
33861
33862 2010-03-21  Bruno Haible  <bruno@clisp.org>
33863
33864         New module 'unlockpt'.
33865         * lib/unlockpt.c: New file, from glibc with modifications.
33866         * m4/unlockpt.m4: New file.
33867         * modules/unlockpt: New file.
33868         * lib/stdlib.in.h (unlockpt): New declaration.
33869         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33870         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33871         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33872         HAVE_UNLOCKPT.
33873         * doc/posix-functions/unlockpt.texi: Mention the new module.
33874         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33875         * config/srclist.txt: Add unlockpt.c (commented).
33876
33877 2010-03-21  Jim Meyering  <meyering@redhat.com>
33878
33879         maint.mk: prohibit inclusion of "intprops.h" without use
33880         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33881
33882 2010-03-21  Bruno Haible  <bruno@clisp.org>
33883
33884         New module 'grantpt'.
33885         * lib/grantpt.c: New file, from glibc with modifications.
33886         * m4/grantpt.m4: New file.
33887         * modules/grantpt: New file.
33888         * lib/stdlib.in.h (grantpt): New declaration.
33889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33891         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33892         HAVE_GRANTPT.
33893         * doc/posix-functions/grantpt.texi: Mention the new module.
33894         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33895         * config/srclist.txt: Add grantpt.c (commented).
33896
33897 2010-03-21  Bruno Haible  <bruno@clisp.org>
33898
33899         New module 'pt_chown'.
33900         * lib/pt_chown.c: New file, from glibc with modifications.
33901         * lib/pty-private.h: New file, from glibc with modifications.
33902         * modules/pt_chown: New file.
33903         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33904
33905 2010-03-21  Bruno Haible  <bruno@clisp.org>
33906
33907         Tests for module 'ptsname'.
33908         * modules/ptsname-tests: New file.
33909         * tests/test-ptsname.c: New file.
33910
33911         New module 'ptsname'.
33912         * lib/ptsname.c: New file, from glibc with modifications.
33913         * m4/ptsname.m4: New file.
33914         * modules/ptsname: New file.
33915         * lib/stdlib.in.h (ptsname): New declaration.
33916         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33917         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33918         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33919         HAVE_PTSNAME.
33920         * doc/posix-functions/ptsname.texi: Mention the new module.
33921         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33922         * config/srclist.txt: Add ptsname.c (commented).
33923
33924 2010-03-21  Bruno Haible  <bruno@clisp.org>
33925
33926         Tests for module 'ttyname_r'.
33927         * modules/ttyname_r-tests: New file.
33928         * tests/test-ttyname_r.c: New file.
33929
33930         New module 'ttyname_r'.
33931         * lib/ttyname_r.c: New file.
33932         * m4/ttyname_r.m4: New file.
33933         * modules/ttyname_r: New file.
33934         * lib/unistd.in.h (ttyname_r): New declaration.
33935         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33936         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33937         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33938         HAVE_TTYNAME_R.
33939         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33940         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33941
33942 2010-03-20  Bruno Haible  <bruno@clisp.org>
33943
33944         signal: Undefine macro definitions in C++ mode.
33945         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33946         sigfillset): Undefine macro definitions from the system header in C++
33947         mode.
33948         Reported by John W. Eaton <jwe@gnu.org>.
33949
33950 2010-03-20  Bruno Haible  <bruno@clisp.org>
33951
33952         Ensure no #include statements inside extern "C" { ... }.
33953         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33954         contain #include statements.
33955         * lib/time.in.h: Likewise.
33956
33957 2010-03-20  Bruno Haible  <bruno@clisp.org>
33958
33959         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33960         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33961         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33962         Reported by John W. Eaton <jwe@gnu.org>.
33963
33964 2010-03-20  Bruno Haible  <bruno@clisp.org>
33965
33966         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33967         Reported by Jim Meyering.
33968
33969 2010-03-20  Bruno Haible  <bruno@clisp.org>
33970
33971         pipe: Set errno upon failure.
33972         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33973         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33974         errno value in error message.
33975
33976 2010-03-20  Bruno Haible  <bruno@clisp.org>
33977             Jim Meyering  <meyering@redhat.com>
33978
33979         lchown: Avoid "unused variable" warning.
33980         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33981
33982 2010-03-20  Bruno Haible  <bruno@clisp.org>
33983
33984         Work around unlink() bug on MacOS X 10.5.6.
33985         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33986         attempting to unlink a parent directory.
33987         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33988         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33989         activate for the replacement function.
33990         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33991
33992 2010-03-20  Bruno Haible  <bruno@clisp.org>
33993
33994         Fix link errors on Solaris 8.
33995         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33996         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33997
33998 2010-03-19  Jim Meyering  <meyering@redhat.com>
33999
34000         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34001         The _LIBC implementation of build_range_exp correctly honors the
34002         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34003         However, the non-_LIBC implementation would ignore that syntax-bit
34004         flag and return REG_ERANGE unconditionally.
34005         This change makes it honor that flag.
34006         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34007         Make two pointer parameters "const".
34008         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34009         (parse_bracket_exp): Update caller.
34010
34011         regex.m4: correct the reversed range endpoint ([b-a]) test
34012         * m4/regex.m4: When requiring that [b-a] evoke failure,
34013         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34014         test pass once again for x86-based systems.
34015
34016 2010-03-19  Bruno Haible  <bruno@clisp.org>
34017
34018         scandir: Fix link error on Solaris 8.
34019         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34020         macros.
34021
34022 2010-03-19  Bruno Haible  <bruno@clisp.org>
34023
34024         getusershell: Fix documentation.
34025         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34026         module.
34027         * doc/glibc-functions/setusershell.texi: Likewise.
34028
34029         getusershell: Provide declaration, missing on Solaris 9.
34030         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34031         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34032         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34033         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34035         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34036         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34037         HAVE_GETUSERSHELL.
34038         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34039
34040 2010-03-19  Bruno Haible  <bruno@clisp.org>
34041
34042         wctype: Provide iswblank function.
34043         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34044         exists and is fine.
34045         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34046         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34047         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34048         * doc/posix-functions/iswblank.texi: Update.
34049
34050 2010-03-19  Bruno Haible  <bruno@clisp.org>
34051
34052         Tests of module 'pty' in C++ mode.
34053         * modules/pty-tests: New file.
34054         * tests/test-pty-c++.cc: New file.
34055         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34056
34057 2010-03-19  Eric Blake  <eblake@redhat.com>
34058
34059         logb: fix documentation
34060         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34061         1.5 declaration bug.
34062
34063         forkpty, openpty: prefer glibc's const-safe prototype
34064         * lib/forkpty.c (rpl_forkpty): New file.
34065         * lib/openpty.c (rpl_openpty): Likewise.
34066         * modules/forkpty (Files): Distribute it.
34067         * modules/openpty (Files): Likewise.
34068         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34069         check...
34070         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34071         replacement for for non-const BSD signature.
34072         * modules/pty (Makefile.am): Substitute witnesses.
34073         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34074         * tests/test-forkpty.c: Update signature check.
34075         * tests/test-openpty.c: Likewise.
34076         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34077         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34078
34079         forkpty, openpty: split functions into new modules
34080         * modules/pty (Makefile.am): Substitute new witnesses.
34081         (Libraries): Move library detection...
34082         * modules/forkpty: ...into new module.
34083         * modules/openpty: Another new module.
34084         * modules/pty-tests: Rename and split...
34085         * modules/forkpty-tests: ...to this...
34086         * modules/openpty-tests: ...and this.
34087         * tests/test-pty.c: Rename and split...
34088         * tests/test-forkpty.c: ...to this...
34089         * tests/test-openpty.c: ...and this.
34090         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34091         (gl_PTY): Split library searching...
34092         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34093         (gl_FORKPTY, gl_OPENPTY): New macros.
34094         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34095         * NEWS: Mention the split.
34096         * MODULES.html.sh (Misc): Document the modules.
34097         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34098         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34099
34100         pty: improve replacement header
34101         * lib/pty.in.h: New file.
34102         * modules/pty (Files): Ship it.
34103         (Makefile.am): Always build replacement.
34104         * m4/pty.m4: Rename...
34105         * m4/pty_h.m4: ...to this.
34106         (gl_PTY): Modernize setting of witness macros; update check of
34107         forkpty to take proper advantage of cache.
34108         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34109
34110         getopt: avoid compiler warning
34111         * lib/getopt.c (attribute_hidden): Remove unused macro.
34112
34113 2010-03-18  Bruno Haible  <bruno@clisp.org>
34114
34115         Fix link errors on Solaris 8.
34116         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34117         * modules/search-tests (test_search_c___LDADD): Likewise.
34118         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34119         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34120         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34121         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34122         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34123         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34124         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34125
34126 2010-03-18  Bruno Haible  <bruno@clisp.org>
34127
34128         Fix bug introduced on 2010-03-14.
34129         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34130         (gl_SPAWN_H): Require it.
34131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34132         Reported by Simon Josefsson.
34133
34134 2010-03-18  Bruno Haible  <bruno@clisp.org>
34135
34136         Fix typo introduced on 2009-12-31.
34137         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34138         posix_spawn_file_actions_adddup2.
34139
34140 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34141         and Eric Blake  <eblake@redhat.com>
34142
34143         test-vc-list-files-git: make more robust
34144         * tests/test-vc-list-files-git.sh: Unset problematic environment
34145         variables.  Chain commands together.
34146
34147 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34148
34149         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34150         `AC_CHECK_DECL' invocation.
34151
34152 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34153
34154         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34155         appears before executable statements. Suggested by Petr Sumbera
34156         <Petr.Sumbera@Sun.COM>.
34157
34158 2010-03-14  Bruno Haible  <bruno@clisp.org>
34159
34160         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34161         portability problems. Instead use a simpler test.
34162         (main): Check that invalid arguments are rejected only on Linux.
34163
34164 2010-03-14  Bruno Haible  <bruno@clisp.org>
34165
34166         Fix bug introduced on 2009-12-31.
34167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34168         gl_PREREQ_SYS_H_WINSOCK2 always.
34169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34170         SYS_SOCKET_H variable.
34171         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34172         Update comments.
34173         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34175         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34176         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34177         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34178
34179 2010-03-14  Bruno Haible  <bruno@clisp.org>
34180
34181         Fix values returned by sinl, cosl.
34182         * lib/trigl.h: Add specification comments.
34183         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34184         that combines the values from the precomputed table with the values of
34185         the Chebyshev polynomials.
34186
34187 2010-03-14  Bruno Haible  <bruno@clisp.org>
34188
34189         Fix compilation error when modules 'posix_spawn[p]' are not used.
34190         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34192
34193 2010-03-14  Bruno Haible  <bruno@clisp.org>
34194
34195         Fix compilation error on mingw when module 'time_r' is not used.
34196         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34197         is 1.
34198         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34199         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34200         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34202
34203 2010-03-14  Bruno Haible  <bruno@clisp.org>
34204
34205         Fix compilation error with Sun C.
34206         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34207         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34208         instead of GCC specific ULONG_LONG_MAX.
34209         * lib/xstrtoll.c: Likewise.
34210         * lib/xstrtoull.c: Likewise.
34211
34212 2010-03-13  Bruno Haible  <bruno@clisp.org>
34213
34214         Allow the user to disable C++ code and tests.
34215         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34216         (gl_PROG_ANSI_CXX): Require it.
34217
34218 2010-03-13  Bruno Haible  <bruno@clisp.org>
34219
34220         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34221         cases.
34222
34223 2010-03-13  Bruno Haible  <bruno@clisp.org>
34224
34225         Test that gnulib does not break the standard C++ headers.
34226         * tests/test-locale-c++2.cc: New file.
34227         * modules/locale-tests (Files): Add it.
34228         (Makefile.am): Compile it for test-locale-c++.
34229         * tests/test-math-c++2.cc: New file.
34230         * modules/math-tests (Files): Add it.
34231         (Makefile.am): Compile it for test-math-c++.
34232         * tests/test-signal-c++2.cc: New file.
34233         * modules/signal-tests (Files): Add it.
34234         (Makefile.am): Compile it for test-signal-c++.
34235         * tests/test-stdio-c++2.cc: New file.
34236         * modules/stdio-tests (Files): Add it.
34237         (Makefile.am): Compile it for test-stdio-c++.
34238         * tests/test-stdlib-c++2.cc: New file.
34239         * modules/stdlib-tests (Files): Add it.
34240         (Makefile.am): Compile it for test-stdlib-c++.
34241         * tests/test-string-c++2.cc: New file.
34242         * modules/string-tests (Files): Add it.
34243         (Makefile.am): Compile it for test-string-c++.
34244         * tests/test-time-c++2.cc: New file.
34245         * modules/time-tests (Files): Add it.
34246         (Makefile.am): Compile it for test-time-c++.
34247         Reported by John W. Eaton <jwe@gnu.org>.
34248
34249 2010-03-13  Bruno Haible  <bruno@clisp.org>
34250
34251         * gnulib-tool (func_usage): Clarify which options are available for
34252         --create-testdir and --create-megatestdir.
34253
34254 2010-03-13  Bruno Haible  <bruno@clisp.org>
34255
34256         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34257         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34258         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34259         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34260         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34261         when appropriate.
34262         Reported by Jim Meyering.
34263
34264 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34265
34266         * gnulib-tool (func_import): Explain origin of code.
34267
34268 2010-03-12  Bruno Haible  <bruno@clisp.org>
34269
34270         Fix problem with automake's definition of CXXLINK.
34271         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34272         Reported by Simon Josefsson and Ludovic Courtès.
34273
34274 2010-03-12  Bruno Haible  <bruno@clisp.org>
34275
34276         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34277         stable releases.
34278
34279 2010-03-11  Bruno Haible  <bruno@clisp.org>
34280
34281         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34282         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34283         whether the system provides one variant or multiple variants of the
34284         function.
34285         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34286         C++ compilers.
34287         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34288         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34289         Reported by Jim Meyering.
34290
34291 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34292
34293         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34294
34295 2010-03-08  Bruno Haible  <bruno@clisp.org>
34296
34297         gnulib-tool: Add support for --libtool in --create-testdir.
34298         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34299         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34300
34301 2010-03-08  Eric Blake  <eblake@redhat.com>
34302
34303         gnulib-tool.texi: mention possibility of git submodule
34304         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34305         submodules.
34306         * doc/.gitignore: Ignore another generated file.
34307
34308 2010-03-08  Karl Berry  <karl@gnu.org>
34309
34310         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34311         of committing gnulib files while skipping others.
34312
34313 2010-03-07  Bruno Haible  <bruno@clisp.org>
34314
34315         Tests of module 'wctype' in C++ mode.
34316         * tests/test-wctype-c++.cc: New file.
34317         * modules/wctype-tests (Files): Add it and tests/signature.h.
34318         (Depends-on): Add ansi-c++-opt.
34319         (Makefile.am): Arrange to compile and run test-wctype-c++.
34320
34321         Tests of module 'wchar' in C++ mode.
34322         * tests/test-wchar-c++.cc: New file.
34323         * modules/wchar-tests (Files): Add it and tests/signature.h.
34324         (Depends-on): Add ansi-c++-opt.
34325         (Makefile.am): Arrange to compile and run test-wchar-c++.
34326         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34327         gl_MODULE_INDICATOR.
34328
34329         Tests of module 'unistd' in C++ mode.
34330         * tests/test-unistd-c++.cc: New file.
34331         * modules/unistd-tests (Files): Add it and tests/signature.h.
34332         (Depends-on): Add ansi-c++-opt.
34333         (Makefile.am): Arrange to compile and run test-unistd-c++.
34334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34335         gl_MODULE_INDICATOR.
34336
34337         Tests of module 'time' in C++ mode.
34338         * tests/test-time-c++.cc: New file.
34339         * modules/time-tests (Files): Add it and tests/signature.h.
34340         (Depends-on): Add ansi-c++-opt.
34341         (Makefile.am): Arrange to compile and run test-time-c++.
34342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34343
34344         Tests of module 'sys_time' in C++ mode.
34345         * tests/test-sys_time-c++.cc: New file.
34346         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34347         (Depends-on): Add ansi-c++-opt.
34348         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34349         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34350         gl_MODULE_INDICATOR.
34351
34352         Tests of module 'sys_stat' in C++ mode.
34353         * tests/test-sys_stat-c++.cc: New file.
34354         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34355         (Depends-on): Add ansi-c++-opt.
34356         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34357         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34358         gl_MODULE_INDICATOR.
34359
34360         Tests of module 'sys_socket' in C++ mode.
34361         * tests/test-sys_socket-c++.cc: New file.
34362         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34363         (Depends-on): Add ansi-c++-opt.
34364         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34365         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34366         gl_MODULE_INDICATOR.
34367
34368         Tests of module 'sys_select' in C++ mode.
34369         * tests/test-sys_select-c++.cc: New file.
34370         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34371         (Depends-on): Add ansi-c++-opt.
34372         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34373         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34374         gl_MODULE_INDICATOR.
34375
34376         Tests of module 'sys_ioctl' in C++ mode.
34377         * tests/test-sys_ioctl-c++.cc: New file.
34378         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34379         (Depends-on): Add ansi-c++-opt.
34380         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34382         gl_MODULE_INDICATOR.
34383
34384         Tests of module 'string' in C++ mode.
34385         * tests/test-string-c++.cc: New file.
34386         * modules/string-tests (Files): Add it and tests/signature.h.
34387         (Depends-on): Add ansi-c++-opt.
34388         (Makefile.am): Arrange to compile and run test-string-c++.
34389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34390         gl_MODULE_INDICATOR.
34391
34392         Tests of module 'stdlib' in C++ mode.
34393         * tests/test-stdlib-c++.cc: New file.
34394         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34395         (Depends-on): Add ansi-c++-opt.
34396         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34397         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34398         gl_MODULE_INDICATOR.
34399
34400         Tests of module 'stdio' in C++ mode.
34401         * tests/test-stdio-c++.cc: New file.
34402         * modules/stdio-tests (Files): Add it and tests/signature.h.
34403         (Depends-on): Add ansi-c++-opt.
34404         (Makefile.am): Arrange to compile and run test-stdio-c++.
34405         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34406         gl_MODULE_INDICATOR.
34407
34408         Tests of module 'spawn' in C++ mode.
34409         * tests/test-spawn-c++.cc: New file.
34410         * modules/spawn-tests (Files): Add it and tests/signature.h.
34411         (Depends-on): Add ansi-c++-opt.
34412         (Makefile.am): Arrange to compile and run test-spawn-c++.
34413         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34414         gl_MODULE_INDICATOR.
34415
34416         Tests of module 'signal' in C++ mode.
34417         * tests/test-signal-c++.cc: New file.
34418         * modules/signal-tests (Files): Add it and tests/signature.h.
34419         (Depends-on): Add ansi-c++-opt.
34420         (Makefile.am): Arrange to compile and run test-signal-c++.
34421         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34422         gl_MODULE_INDICATOR.
34423
34424         Tests of module 'search' in C++ mode.
34425         * tests/test-search-c++.cc: New file.
34426         * modules/search-tests (Files): Add it and tests/signature.h.
34427         (Depends-on): Add ansi-c++-opt.
34428         (Makefile.am): Arrange to compile and run test-search-c++.
34429         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34430         gl_MODULE_INDICATOR.
34431
34432         Tests of module 'math' in C++ mode.
34433         * tests/test-math-c++.cc: New file.
34434         * modules/math-tests (Files): Add it and tests/signature.h.
34435         (Depends-on): Add ansi-c++-opt.
34436         (Makefile.am): Arrange to compile and run test-math-c++.
34437         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34438
34439         Tests of module 'locale' in C++ mode.
34440         * tests/test-locale-c++.cc: New file.
34441         * modules/locale-tests (Files): Add it and tests/signature.h.
34442         (Depends-on): Add ansi-c++-opt.
34443         (Makefile.am): Arrange to compile and run test-locale-c++.
34444         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34445         gl_MODULE_INDICATOR.
34446
34447         Tests of module 'langinfo' in C++ mode.
34448         * tests/test-langinfo-c++.cc: New file.
34449         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34450         (Depends-on): Add ansi-c++-opt.
34451         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34452         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34453         gl_MODULE_INDICATOR.
34454
34455         Tests of module 'iconv-h' in C++ mode.
34456         * tests/test-iconv-h-c++.cc: New file.
34457         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34458         (Depends-on): Add ansi-c++-opt.
34459         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34460
34461         Tests of module 'glob' in C++ mode.
34462         * tests/test-glob-c++.cc: New file.
34463         * modules/glob-tests (Files): Add it.
34464         (Depends-on): Add ansi-c++-opt.
34465         (Makefile.am): Arrange to compile and run test-glob-c++.
34466
34467         Tests of module 'fcntl-h' in C++ mode.
34468         * tests/test-fcntl-h-c++.cc: New file.
34469         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34470         (Depends-on): Add ansi-c++-opt.
34471         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34472         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34473         gl_MODULE_INDICATOR.
34474
34475         Tests of module 'dirent' in C++ mode.
34476         * tests/test-dirent-c++.cc: New file.
34477         * modules/dirent-tests (Files): Add it and tests/signature.h.
34478         (Depends-on): Add ansi-c++-opt.
34479         (Makefile.am): Arrange to compile and run test-dirent-c++.
34480         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34481         gl_MODULE_INDICATOR.
34482
34483         New module 'ansi-c++-opt'.
34484         * modules/ansi-c++-opt: New file.
34485         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34486
34487         Document C++ namespace mode.
34488         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34489
34490         wctype: Avoid #define replacements in C++ mode.
34491         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34492         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34493         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34494         In C++, define a namespaced alias symbol.
34495         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34496         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34497         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34498         rule.
34499
34500         wchar: Avoid #define replacements in C++ mode.
34501         * lib/wchar.in.h: Include c++defs.h.
34502         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34503         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34504         symbol.
34505         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34506         * modules/wchar (Depends-on): Add c++defs.
34507         (Makefile.am): Update wchar.h rule.
34508
34509         unistd: Avoid #define replacements in C++ mode.
34510         * lib/unistd.in.h: Include c++defs.h.
34511         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34512         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34513         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34514         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34515         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34516         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34517         symbol.
34518         (environ): Update.
34519         * modules/unistd (Depends-on): Add c++defs.
34520         (Makefile.am): Update unistd.h rule.
34521
34522         time: Avoid #define replacements in C++ mode.
34523         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34524         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34525         define a namespaced alias symbol.
34526         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34527         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34528         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34529         * modules/time (Depends-on): Add c++defs, warn-on-use.
34530         (Makefile.am): Update time.h rule.
34531         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34532         * modules/nanosleep (configure.ac): Likewise.
34533         * modules/strptime (configure.ac): Likewise.
34534         * modules/timegm (configure.ac): Likewise.
34535
34536         sys_time: Avoid #define replacements in C++ mode.
34537         * lib/sys_time.in.h: Include c++defs.h.
34538         (gettimeofday): In C++, define a namespaced alias symbol.
34539         * modules/sys_time (Depends-on): Add c++defs.
34540         (Makefile.am): Update sys/time.h rule.
34541
34542         sys_stat: Avoid #define replacements in C++ mode.
34543         * lib/sys_stat.in.h: Include c++defs.h.
34544         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34545         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34546         namespaced alias symbol.
34547         In C++, define a namespaced alias symbol.
34548         * modules/sys_stat (Depends-on): Add c++defs.
34549         (Makefile.am): Update sys/stat.h rule.
34550
34551         sys_socket: Avoid #define replacements in C++ mode.
34552         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34553         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34554         definitions also when the system has a <sys/socket.h>.
34555         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34556         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34557         In C++, define a namespaced alias symbol.
34558         * modules/sys_socket (Depends-on): Add c++defs.
34559         (Makefile.am): Update sys/socket.h rule.
34560
34561         sys_select: Avoid #define replacements in C++ mode.
34562         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34563         definitions also when the system has a <sys/select.h>.
34564         (select): In C++, define a namespaced alias symbol.
34565         * modules/sys_select (Depends-on): Add c++defs.
34566         (Makefile.am): Update sys/select.h rule.
34567
34568         sys_ioctl: Avoid #define replacements in C++ mode.
34569         * lib/sys_ioctl.in.h: Include c++defs.h.
34570         (ioctl): In C++, define a namespaced alias symbol.
34571         * modules/sys_ioctl (Depends-on): Add c++defs.
34572         (Makefile.am): Update sys/ioctl.h rule.
34573
34574         string: Avoid #define replacements in C++ mode.
34575         * lib/string.in.h: Include c++defs.h.
34576         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34577         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34578         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34579         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34580         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34581         * modules/string (Depends-on): Add c++defs.
34582         (Makefile.am): Update string.h rule.
34583
34584         stdlib: Avoid #define replacements in C++ mode.
34585         * lib/stdlib.in.h: Include c++defs.h.
34586         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34587         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34588         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34589         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34590         symbol.
34591         * modules/stdlib (Depends-on): Add c++defs.
34592         (Makefile.am): Update stdlib.h rule.
34593
34594         stdio: Avoid #define replacements in C++ mode.
34595         * lib/stdio.in.h: Include c++defs.h.
34596         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34597         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34598         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34599         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34600         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34601         namespaced alias symbol.
34602         * modules/stdio (Depends-on): Add c++defs.
34603         (Makefile.am): Update stdio.h rule.
34604
34605         spawn: Avoid #define replacements in C++ mode.
34606         * lib/spawn.in.h: Include c++defs.h.
34607         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34608         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34609         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34610         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34611         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34612         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34613         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34614         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34615         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34616         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34617         In C++, define a namespaced alias symbol.
34618         * modules/spawn (Depends-on): Add c++defs.
34619         (Makefile.am): Update spawn.h rule.
34620
34621         signal: Avoid #define replacements in C++ mode.
34622         * lib/signal.in.h: Include c++defs.h.
34623         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34624         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34625         namespaced alias symbol.
34626         * modules/signal (Depends-on): Add c++defs.
34627         (Makefile.am): Update signal.h rule.
34628
34629         search: Avoid #define replacements in C++ mode.
34630         * lib/search.in.h: Include c++defs.h.
34631         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34632         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34633         symbol.
34634         * modules/search (Depends-on): Add c++defs.
34635         (Makefile.am): Update search.h rule.
34636
34637         math: Avoid #define replacements in C++ mode.
34638         * lib/math.in.h: Include c++defs.h.
34639         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34640         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34641         trunc, truncl): In C++, define a namespaced alias symbol.
34642         * modules/math (Depends-on): Add c++defs.
34643         (Makefile.am): Update math.h rule.
34644
34645         locale: Avoid #define replacements in C++ mode.
34646         * lib/locale.in.h: Include c++defs.h.
34647         (duplocale): In C++, define a namespaced alias symbol.
34648         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34649         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34650         * modules/locale (Depends-on): Add c++defs.
34651         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34652
34653         langinfo: Avoid #define replacements in C++ mode.
34654         * lib/langinfo.in.h: Include c++defs.h.
34655         (nl_langinfo): In C++, define a namespaced alias symbol.
34656         * modules/langinfo (Depends-on): Add c++defs.
34657         (Makefile.am): Update langinfo.h rule.
34658
34659         iconv-h: Avoid #define replacements in C++ mode.
34660         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34661         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34662         symbol.
34663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34664         whenever iconv is present.
34665         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34666         (Makefile.am): Update iconv.h rule.
34667
34668         glob: Avoid #define replacements in C++ mode.
34669         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34670         (_gl_glob_errfunc_fn): New type.
34671         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34672         symbol.
34673         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34674         (Makefile.am): Update glob.h rule.
34675
34676         fcntl-h: Avoid #define replacements in C++ mode.
34677         * lib/fcntl.in.h: Include c++defs.h.
34678         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34679         * modules/fcntl-h (Depends-on): Add c++defs.
34680         (Makefile.am): Update fcntl.h rule.
34681
34682         dirent: Avoid #define replacements in C++ mode.
34683         * lib/dirent.in.h: Include c++defs.h.
34684         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34685         namespaced alias symbol.
34686         (dirfd): Update declaration.
34687         * modules/dirent (Depends-on): Add c++defs.
34688         (Makefile.am): Update dirent.h rule.
34689
34690         ctype: Make it usable in C++ code.
34691         * lib/ctype.in.h: Include c++defs.h.
34692         (isblank): Declare as extern "C".
34693         * modules/ctype (Depends-on): Add c++defs.
34694         (Makefile.am): Update ctype.h rule.
34695
34696         New module 'c++defs'.
34697         * modules/c++defs: New file.
34698         * build-aux/c++defs.h: New file.
34699         Reported by John W. Eaton <jwe@gnu.org>.
34700
34701 2010-03-07  Bruno Haible  <bruno@clisp.org>
34702
34703         logb: Provide missing declaration for Cygwin.
34704         * lib/math.in.h (logb): New declaration.
34705         * m4/logb.m4: New file.
34706         * modules/logb (Files): Add m4/logb.m4.
34707         (Depends-on): Add math.
34708         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34709         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34711         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34712         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34713
34714 2010-03-07  Bruno Haible  <bruno@clisp.org>
34715
34716         Fix test-cond link error.
34717         * tests/test-cond.c: Include <stdio.h>.
34718
34719 2010-03-07  Bruno Haible  <bruno@clisp.org>
34720
34721         Fix test-dirent-safer link error.
34722         * modules/dirent-safer-tests (Makefile.am): Define
34723         test_dirent_safer_LDADD.
34724
34725 2010-03-07  Bruno Haible  <bruno@clisp.org>
34726
34727         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34728         among default module list.
34729
34730 2010-03-07  Bruno Haible  <bruno@clisp.org>
34731
34732         Fix link error on platforms with GNU libiconv.
34733         * modules/unistr/u8-strcoll-tests (Makefile): Define
34734         test_u8_strcoll_LDADD.
34735         * modules/unistr/u16-strcoll-tests (Makefile): Define
34736         test_u16_strcoll_LDADD.
34737         * modules/unistr/u32-strcoll-tests (Makefile): Define
34738         test_u32_strcoll_LDADD.
34739
34740 2010-03-07  Bruno Haible  <bruno@clisp.org>
34741
34742         Use POSIX declarations for socket functions.
34743         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34744         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34745         rpl_sendto): Change declaration to match POSIX.
34746         * lib/connect.c (rpl_connect): Likewise.
34747         * lib/accept.c (rpl_accept): Likewise.
34748         * lib/bind.c (rpl_bind): Likewise.
34749         * lib/getpeername.c (rpl_getpeername): Likewise.
34750         * lib/getsockname.c (rpl_getsockname): Likewise.
34751         * lib/recv.c (rpl_recv): Likewise.
34752         * lib/send.c (rpl_send): Likewise.
34753         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34754         * lib/sendto.c (rpl_sendto): Likewise.
34755
34756 2010-03-06  Bruno Haible  <bruno@clisp.org>
34757
34758         Clarify access, euidaccess, faccessat.
34759         * doc/posix-functions/faccessat.texi: Mention security problem under
34760         "Other problems", not "Portability problems".
34761         * doc/posix-functions/access.texi: Likewise. Mention a related security
34762         problem.
34763         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34764         * lib/euidaccess.c: Add comments about platforms.
34765         * lib/unistd.in.h (access, euidaccess): Add warnings.
34766
34767 2010-03-07  Bruno Haible  <bruno@clisp.org>
34768
34769         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34770         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34771         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34772         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34773         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34774         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34775         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34776         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34777         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34778         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34779         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34780         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34781         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34782         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34783         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34784         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34785         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34786         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34787         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34788         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34789         Likewise.
34790         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34791         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34792         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34793         Likewise.
34794         * tests/test-spawn.c (main): Make it work when
34795         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34796
34797 2010-03-07  Bruno Haible  <bruno@clisp.org>
34798
34799         Fix incorrect Makefile.am generation in German locale.
34800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34801         Execute sed command with character range in C locale.
34802
34803 2010-03-06  Bruno Haible  <bruno@clisp.org>
34804
34805         Tests for module 'iconv-h'.
34806         * modules/iconv-h-tests: New file.
34807         * tests/test-iconv-h.c: New file.
34808
34809         New module 'iconv-h'.
34810         * modules/iconv-h: New file.
34811         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34812         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34813         (configure.ac): Remove gl_ICONV_H.
34814         (Makefile.am): Remove rule for iconv.h.
34815
34816 2010-03-06  Bruno Haible  <bruno@clisp.org>
34817
34818         More consistent naming of *.m4 files.
34819         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34820         * modules/wctype (Files): Update.
34821
34822         More consistent naming of *.m4 files.
34823         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34824         * modules/wchar (Files): Update.
34825
34826 2010-03-06  Jim Meyering  <meyering@redhat.com>
34827
34828         euidaccess: relax license to LGPLv2+
34829         * modules/euidaccess (License): Relax to LGPLv2+.
34830
34831 2010-03-06  Bruno Haible  <bruno@clisp.org>
34832
34833         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34834         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34835         (Makefile.am): Augment lib_SOURCES instead.
34836
34837 2010-03-04  Jim Meyering  <meyering@redhat.com>
34838
34839         utime: remove obsolete module
34840         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34841         unnecessary for years, and has been marked as obsolete for 10 months.
34842         * modules/utime: Remove file.
34843         * lib/utime.c: Remove file.
34844         * m4/utime.m4: Remove file.
34845         * m4/utimes-null.m4: Remove file.
34846         * doc/posix-functions/utime.texi (utime): Remove reference to
34847         the module.  Move the sole "fixed by gnulib" item into the
34848         "problems not fixed by Gnulib" list.
34849         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34850
34851 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34852
34853         * modules/exit (License): Relax license to LGPLv2+.
34854         (Status): Mark as obsolete.
34855         * NEWS: Mention deprecated 'exit' module.
34856         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34857         of now obsolete 'exit'.
34858
34859 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34860
34861         fts-lgpl: remove unused module
34862         * modules/fts-lgpl: Remove.
34863         * MODULES.html.sh (func_all_modules): Adjust.
34864         * check-module (find_included_lib_files): Adjust.
34865         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34866
34867 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34868
34869         copy-acl: enhance Solaris ACL error handling
34870         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34871         * lib/set-mode-acl.c (qset_acl): Likewise.
34872
34873 2010-03-02  Bruno Haible  <bruno@clisp.org>
34874
34875         spawn: Don't override the system defined values on FreeBSD 8.
34876         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34877         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34878         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34879         if HAVE_POSIX_SPAWN is 1.
34880         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34881
34882 2010-03-01  Bruno Haible  <bruno@clisp.org>
34883
34884         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34885         regarding Automake.
34886
34887 2010-02-25  Bruno Haible  <bruno@clisp.org>
34888
34889         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34890         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34891         setting, not afterwards.
34892         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34893
34894 2010-02-24  Eric Blake  <eblake@redhat.com>
34895
34896         bootstrap, git-version-gen: use timestamp
34897         * build-aux/git-version-gen (scriptversion): Force UTC.
34898         * build-aux/bootstrap (scriptversion): New variable.
34899
34900         bootstrap: allow older git
34901         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34902         older than 1.6.4.  Requested by the libvirt project.
34903
34904 2010-02-23  Eric Blake  <eblake@redhat.com>
34905
34906         warn-on-use: work with old autoconf
34907         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34908         AS_VAR semantics of autoconf 2.60.
34909         Reported by Bruno Haible.
34910
34911         bootstrap: improve some comments
34912         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34913         clarification comments.
34914
34915         gettimeofday: provide correct function
34916         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34917         when replacement is declared, otherwise provide gettimeofday.
34918         Reported by Michael Goffioul.
34919
34920 2010-02-23  Jim Meyering  <meyering@redhat.com>
34921
34922         lib-ignore: relax license to "unlimited", not LGPLv2+
34923         * modules/lib-ignore (License): Relax to "unlimited".
34924
34925 2010-02-23  Jim Meyering  <meyering@redhat.com>
34926
34927         lib-ignore: relax license to LGPLv2+
34928         * modules/lib-ignore (License): Relax to LGPLv2+.
34929
34930 2010-02-22  Eric Blake  <eblake@redhat.com>
34931
34932         lseek: avoid bash 3.2 broken pipe bug
34933         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34934         warning from bash 3.2.
34935         Reported by Ben Pfaff, with analysis from Bruno Haible.
34936
34937         bootstrap: support non-FSF copyright holder
34938         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34939         bootstrap.conf override of COPYRIGHT_HOLDER.
34940         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34941
34942         bootstrap: interoperate with gettext 0.14.1
34943         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34944
34945         bootstrap: allow for alternate submodule location
34946         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34947         hardcoding submodule location.
34948         (gnulib_mk): Allow direct use of Makefile.am.
34949
34950         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34951         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34952         rather than reconfiguring where the submodule points.
34953
34954         gettimeofday: restore support for platforms that lack function
34955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34956         replacement if function is missing.
34957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34958         * modules/sys_time (Makefile.am): Substitute it.
34959         * lib/sys_time.in.h (gettimeofday): Check it.
34960         Reported by Michael Goffioul.
34961
34962 2010-02-21  Bruno Haible  <bruno@clisp.org>
34963
34964         * lib/stdio.in.h (obstack_printf): Fix typo.
34965
34966 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34967
34968         vc-list-files: use bzr ls's -R option
34969         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34970         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34971
34972 2010-02-21  Jim Meyering  <meyering@redhat.com>
34973
34974         init.sh: fix EXEEXT shims to work also for names like test-prog
34975         * tests/init.sh: Re-exec a better shell, when needed.
34976         If the current shell lacks support for posix $(...), an init.sh-using
34977         test will now try to find a shell that supports that.  If EXEEXT is
34978         nonempty, we also require support for hyphen-in-alias-name and shell
34979         substitutions like ${var#glob}.  Failure to find such a shell results
34980         in a skipped test.
34981
34982 2010-02-21  Bruno Haible  <bruno@clisp.org>
34983
34984         Really work around around "broken pipe" error message from bash 3.2.
34985         * gnulib-tool (func_reset_sigpipe): Remove function.
34986         (echo): In bash 3.2, define to a function that uses printf.
34987         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34988
34989 2010-02-20  Bruno Haible  <bruno@clisp.org>
34990
34991         Restore support for automake 1.9.6 with autoconf 2.61.
34992         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34993         Reported by James Youngman <jay@gnu.org>.
34994
34995 2010-02-20  Bruno Haible  <bruno@clisp.org>
34996
34997         Improve *printf warning condition.
34998         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34999         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35000         and the function is overridden due to SIGPIPE emulation.
35001
35002 2010-02-20  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/stdio.in.h: Tweak comments.
35005
35006 2010-02-19  Bruno Haible  <bruno@clisp.org>
35007
35008         Make it easier to find modules. New gnulib-tool option '--find'.
35009         * gnulib-tool: New option --find.
35010         (func_usage): Document it.
35011         (func_sanitize_modulelist): New function, extracted from
35012         func_all_modules.
35013         (func_all_modules): Invoke it.
35014         * doc/gnulib-tool.texi (Which modules?): New node.
35015
35016 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35017
35018         * lib/sys_select.in.h: Provide select replacement even if
35019         sys/select.h exists on a system, for Interix.
35020
35021 2010-02-18  Jim Meyering  <meyering@redhat.com>
35022
35023         init.sh: don't use $(...) just yet
35024         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35025         to accommodate e.g., Solaris' /bin/sh.
35026
35027 2010-02-17  Bruno Haible  <bruno@clisp.org>
35028
35029         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35030         Reported by Ludovic Courtès <ludo@gnu.org>.
35031
35032 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35033
35034         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35035         linking with -lintl.
35036
35037 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35038
35039         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35040         if not provided by the system's netdb.h.  Reported by
35041         ludo@gnu.org (Ludovic Courtès).
35042
35043 2010-02-15  Jim Meyering  <meyering@redhat.com>
35044
35045         init.sh: improve portability and efficiency
35046         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35047         "dummy" in a for loop.
35048         Use '!', not '^' to select the complement of a character set used
35049         in a "case" statement.
35050         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35051         Suggestions from Eric Blake.
35052
35053         init.sh: automatically accommodate programs with the .exe suffix
35054         Automatically arrange for an invocation of "prog" to execute the
35055         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35056         may use the simpler "prog", yet still work when built on a system
35057         that requires specifying the added suffix.
35058         Do this by constructing a function named "prog" that invokes
35059         "prog.exe" for each .exe file in selected directories.
35060         * tests/init.sh (find_exe_basenames_): New function.
35061         (create_exe_shim_functions_): New function.
35062         (path_prepend_): Use it.
35063
35064         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35065         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35066         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35067
35068 2010-02-14  Jim Meyering  <meyering@redhat.com>
35069
35070         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35071         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35072         (sc_prohibit_hash_pjw_without_use): New rule.
35073
35074         maint.mk: allow the default upload destination dir to be overridden
35075         * top/maint.mk (upload_dest_dir_): Define with a default that
35076         preserves the status quo.
35077         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35078         Reported by Peter Simons.
35079
35080         maint.mk: prohibit inclusion of "hash.h" without_use
35081         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35082
35083 2010-02-10  Jim Meyering  <meyering@redhat.com>
35084
35085         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35086         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35087
35088 2010-02-09  Eric Blake  <ebb9@byu.net>
35089         and Bruno Haible  <bruno@clisp.org>
35090
35091         obstack-printf-posix: ensure declaration
35092         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35093         extracted from gl_FUNC_OBSTACK_PRINTF.
35094         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35095         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35096         Likewise.
35097         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35098         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35099         0.
35100
35101 2010-02-08  Bruno Haible  <bruno@clisp.org>
35102
35103         gnulib-tool: Fix typo in 2010-02-07 commit.
35104         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35105         Reported by Eric Blake.
35106
35107 2010-02-07  Bruno Haible  <bruno@clisp.org>
35108
35109         gnulib-tool: Fix up caching patches.
35110         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35111         option --no-cache. Use associative arrays when supported by the shell.
35112         (sed_comments): New variable.
35113         (modcache): Renamed from do_cache.
35114         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35115         abbreviate unnecessarily.
35116         (have_associative): New variable.
35117         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35118         way also for ksh and zsh.
35119         (func_init_sed_convert_to_cache_statements): New function, extracted
35120         from func_cache_lookup_module. Add support for associative arrays.
35121         Don't set the c_MODULE_cached variable here. Ignore all lines before
35122         the first field header. Remove only the final newline, not all trailing
35123         newlines. Support empty fields correctly. Limit the use of 'eval' to
35124         assignments.
35125         (func_get_description, func_get_status, func_get_notice,
35126         func_get_applicability, func_get_filelist, func_get_dependencies,
35127         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35128         func_get_automake_snippet, func_get_include_directive,
35129         func_get_link_directive, func_get_license, func_get_maintainer):
35130         Update documentation. List the unoptimized code first. Add support for
35131         associative arrays. Limit the use of 'eval' to assignments.
35132         (func_get_applicability): Undo stylistic pessimisations.
35133         (func_get_automake_snippet, func_get_include_directive): Reduce code
35134         duplication.
35135         (func_modules_transitive_closure, func_modules_add_dummy,
35136         func_modules_notice, func_modules_to_filelist, func_add_file,
35137         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35138         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35139         func_create_testdir, func_create_megatestdir): Update documentation.
35140
35141 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35142
35143         * gnulib-tool (func_cache_lookup_module): Store the module name
35144         belonging to the cache variable; error out if two different
35145         module names map to the same cache variable name.
35146
35147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35148
35149         gnulib-tool: Make caching optional.
35150         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35151         Update matching short versions of --no-changelog.
35152         (func_usage): Update.
35153         (sed_extract_cache_prog): Renamed from ...
35154         (sed_extract_prog): ... this; revert to old extraction script.
35155         (func_get_description, func_get_status)
35156         (func_get_notice, func_get_applicability, func_get_filelist)
35157         (func_get_dependencies, func_get_autoconf_early_snippet)
35158         (func_get_autoconf_snippet, func_get_automake_snippet)
35159         (func_get_include_directive, func_get_link_directive)
35160         (func_get_license, func_get_maintainer): If $do_cache is false,
35161         use old, non-caching extraction scripts.
35162         Suggestion by Bruno Haible.
35163
35164 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35165
35166         gnulib-tool: cache module metainformation.
35167         * gnulib-tool (sed_extract_prog): Match newline before each
35168         header, and rewrite header to a shell variable suffix.
35169         (func_cache_var, func_cache_lookup_module): New functions,
35170         to turn a module name into a cache variable prefix, and to
35171         look up and cache module metainformation.
35172         (func_get_description, func_get_status)
35173         (func_get_notice, func_get_applicability, func_get_filelist)
35174         (func_get_dependencies, func_get_autoconf_early_snippet)
35175         (func_get_autoconf_snippet, func_get_automake_snippet)
35176         (func_get_include_directive, func_get_link_directive)
35177         (func_get_license, func_get_maintainer): Use
35178         func_cache_lookup_module.
35179
35180 2010-02-07  Bruno Haible  <bruno@clisp.org>
35181
35182         fnctl: Fix missing dependency.
35183         * modules/fcntl (Depends-on): Add getdtablesize.
35184         Reported by John W. Eaton <jwe@gnu.org>.
35185
35186 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35187
35188         Argp: fix recognition of short alias options.
35189
35190         * lib/argp-parse.c (convert_options): Fix improper use of
35191         `|' between character values.
35192         * tests/test-argp.c (group1_option): New alias option
35193         --read (-r).
35194         (group1_parser): Special handling for 'r'.
35195         (test15): New test case.
35196         (test_fun): Add test15.
35197         * tests/test-argp-2.sh: Update expected --help and --usage
35198         outputs.
35199
35200 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35201
35202         * tests/test-argp.c: Fix indentation.
35203
35204 2010-02-04  Eric Blake  <ebb9@byu.net>
35205
35206         gettimeofday: expose type of second argument
35207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35208         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35209         * tests/test-gettimeofday.c: Use it to silence warning.
35210         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35211         the issue.
35212
35213 2010-02-03  Jim Meyering  <meyering@redhat.com>
35214
35215         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35216         * lib/regcomp.c (TYPE_SIGNED): Define.
35217         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35218
35219         regcomp.c: avoid a new -Wshadow warning
35220         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35221
35222 2010-02-01  Jim Meyering  <meyering@redhat.com>
35223
35224         removing useless parentheses in cpp #define directives
35225         For motivation, see commit c0221df4, "define STREQ(a,b)
35226         consistently, removing useless parentheses"
35227         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35228         * lib/mountlist.c (MNT_IGNORE): Likewise.
35229         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35230
35231 2010-02-01  Eric Blake  <ebb9@byu.net>
35232
35233         sys_time: use link-warning
35234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35235         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35236         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35237         * modules/sys_time (Depends-on): Add warn-on-use.
35238         (Makefile.am): Always build replacement.
35239         (configure.ac): Update substitutions.
35240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35241         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35242         bother with SYS_TIME_H.
35243         * modules/gettimeofday (configure.ac): Declare indicator.
35244         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35245         in use.
35246
35247         closein-tests: silence compiler warning
35248         * tests/test-closein.c (main): Ignore fread result.
35249         * modules/closein-tests (Depends-on): Add ignore-value.
35250
35251         tests: silence warning about system return
35252         * tests/test-areadlink-with-size.c (main): Ignore system result.
35253         * tests/test-areadlink.c (main): Likewise.
35254         * tests/test-areadlinkat-with-size.c (main): Likewise.
35255         * tests/test-areadlinkat.c (main): Likewise.
35256         * tests/test-canonicalize-lgpl.c (main): Likewise.
35257         * tests/test-canonicalize.c (main): Likewise.
35258         * tests/test-chown.c (main): Likewise.
35259         * tests/test-fchownat.c (main): Likewise.
35260         * tests/test-fdutimensat.c (main): Likewise.
35261         * tests/test-fstatat.c (main): Likewise.
35262         * tests/test-futimens.c (main): Likewise.
35263         * tests/test-lchown.c (main): Likewise.
35264         * tests/test-link.c (main): Likewise.
35265         * tests/test-linkat.c (main): Likewise.
35266         * tests/test-lstat.c (main): Likewise.
35267         * tests/test-mkdir.c (main): Likewise.
35268         * tests/test-mkdirat.c (main): Likewise.
35269         * tests/test-mkfifo.c (main): Likewise.
35270         * tests/test-mkfifoat.c (main): Likewise.
35271         * tests/test-mknod.c (main): Likewise.
35272         * tests/test-readlink.c (main): Likewise.
35273         * tests/test-remove.c (main): Likewise.
35274         * tests/test-rename.c (main): Likewise.
35275         * tests/test-renameat.c (main): Likewise.
35276         * tests/test-rmdir.c (main): Likewise.
35277         * tests/test-symlink.c (main): Likewise.
35278         * tests/test-symlinkat.c (main): Likewise.
35279         * tests/test-unlink.c (main): Likewise.
35280         * tests/test-unlinkat.c (main): Likewise.
35281         * tests/test-utimens.c (main): Likewise.
35282         * tests/test-utimensat.c (main): Likewise.
35283         * modules/areadlink-tests (Depends-on): Add ignore-value.
35284         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35285         * modules/areadlinkat-tests (Depends-on): Likewise.
35286         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35288         * modules/canonicalize-tests (Depends-on): Likewise.
35289         * modules/chown-tests (Depends-on): Likewise.
35290         * modules/fdutimensat-tests (Depends-on): Likewise.
35291         * modules/futimens-tests (Depends-on): Likewise.
35292         * modules/lchown-tests (Depends-on): Likewise.
35293         * modules/link-tests (Depends-on): Likewise.
35294         * modules/linkat-tests (Depends-on): Likewise.
35295         * modules/lstat-tests (Depends-on): Likewise.
35296         * modules/mkdir-tests (Depends-on): Likewise.
35297         * modules/mkfifo-tests (Depends-on): Likewise.
35298         * modules/mkfifoat-tests (Depends-on): Likewise.
35299         * modules/mknod-tests (Depends-on): Likewise.
35300         * modules/openat-tests (Depends-on): Likewise.
35301         * modules/readlink-tests (Depends-on): Likewise.
35302         * modules/remove-tests (Depends-on): Likewise.
35303         * modules/rename-tests (Depends-on): Likewise.
35304         * modules/renameat-tests (Depends-on): Likewise.
35305         * modules/rmdir-tests (Depends-on): Likewise.
35306         * modules/symlink-tests (Depends-on): Likewise.
35307         * modules/symlinkat-tests (Depends-on): Likewise.
35308         * modules/unlink-tests (Depends-on): Likewise.
35309         * modules/utimens-tests (Depends-on): Likewise.
35310         * modules/utimensat-tests (Depends-on): Likewise.
35311
35312 2010-01-31  Bruno Haible  <bruno@clisp.org>
35313
35314         Perform the same test for many <math.h> functions.
35315         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35316         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35317         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35318         of gl_MATHFUNC.
35319         * modules/acos (configure.ac): Likewise.
35320         * modules/asin (configure.ac): Likewise.
35321         * modules/atan (configure.ac): Likewise.
35322         * modules/atan2 (configure.ac): Likewise.
35323         * modules/cbrt (configure.ac): Likewise.
35324         * modules/copysign (configure.ac): Likewise.
35325         * modules/cos (configure.ac): Likewise.
35326         * modules/cosh (configure.ac): Likewise.
35327         * modules/erf (configure.ac): Likewise.
35328         * modules/erfc (configure.ac): Likewise.
35329         * modules/exp (configure.ac): Likewise.
35330         * modules/fmod (configure.ac): Likewise.
35331         * modules/hypot (configure.ac): Likewise.
35332         * modules/j0 (configure.ac): Likewise.
35333         * modules/j1 (configure.ac): Likewise.
35334         * modules/jn (configure.ac): Likewise.
35335         * modules/lgamma (configure.ac): Likewise.
35336         * modules/log (configure.ac): Likewise.
35337         * modules/log10 (configure.ac): Likewise.
35338         * modules/log1p (configure.ac): Likewise.
35339         * modules/pow (configure.ac): Likewise.
35340         * modules/remainder (configure.ac): Likewise.
35341         * modules/sin (configure.ac): Likewise.
35342         * modules/sinh (configure.ac): Likewise.
35343         * modules/tan (configure.ac): Likewise.
35344         * modules/tanh (configure.ac): Likewise.
35345         * modules/y0 (configure.ac): Likewise.
35346         * modules/y1 (configure.ac): Likewise.
35347         * modules/yn (configure.ac): Likewise.
35348         Suggested by Paolo Bonzini.
35349
35350 2010-01-31  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35353
35354 2010-01-31  Bruno Haible  <bruno@clisp.org>
35355
35356         Work around getdelim() bug on FreeBSD 8.0.
35357         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35358         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35359         not work.
35360         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35361         is 1.
35362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35363         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35364         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35365         a non-zero size.
35366         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35367
35368 2010-01-31  Bruno Haible  <bruno@clisp.org>
35369
35370         Work around getline() bug on FreeBSD 8.0.
35371         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35372         and a non-zero size.
35373         * tests/test-getline.c (main): Likewise.
35374         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35375         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35376
35377 2010-01-28  Eric Blake  <ebb9@byu.net>
35378
35379         regex: fix build failure
35380         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35381         platforms.
35382
35383 2010-01-28  Jim Meyering  <meyering@redhat.com>
35384
35385         regex: do not ignore memory allocation failure
35386         * lib/regex_internal.c (create_cd_newstate): Detect
35387         re_node_set_init_copy failure.   Extracted from glibc commit
35388         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35389
35390         regex: sync more white-space changes from libc
35391         * lib/regex_internal.c: White-space only changes.
35392         * lib/regexec.c: Likewise.
35393
35394         regex: add many uses of __attribute_warn_unused_result__
35395         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35396         * lib/regexec.c: Likewise.
35397         Extracted from a messy glibc commit.
35398
35399         regcomp.c: spelling and merge-artifact from glibc
35400         * lib/regcomp.c: Merge remainder of glibc's
35401         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35402
35403         regcomp.c: sync white-space changes from glibc
35404         * lib/regcomp.c: Merge to accommodate white space
35405         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35406
35407         regcomp.c: do not ignore internal return values
35408         * lib/regcomp.c: Do not ignore internal return values.
35409         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35410         but without its white-space changes and spelling fixes.
35411
35412         regex_internal.h: define __attribute_warn_unused_result__
35413         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35414
35415         maint: add a syntax-check rule to check for vulnerable Makefile.in
35416         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35417
35418 2010-01-27  Jim Meyering  <meyering@redhat.com>
35419
35420         ncftpput-ftp: clean up spaces
35421         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35422         Remove trailing blanks.
35423
35424 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35425
35426         * build-aux/git-version-gen: Fix copyright statement.
35427         * build-aux/gnupload: Likewise.
35428         * tests/test-arcfour.c: Likewise.
35429         * tests/test-arctwo.c: Likewise.
35430         * tests/test-count-one-bits.c: Likewise.
35431         * tests/test-crc.c: Likewise.
35432         * tests/test-des.c: Likewise.
35433         * tests/test-gc-arcfour.c: Likewise.
35434         * tests/test-gc-arctwo.c: Likewise.
35435         * tests/test-gc-des.c: Likewise.
35436         * tests/test-gc-hmac-md5.c: Likewise.
35437         * tests/test-gc-hmac-sha1.c: Likewise.
35438         * tests/test-gc-md2.c: Likewise.
35439         * tests/test-gc-md4.c: Likewise.
35440         * tests/test-gc-md5.c: Likewise.
35441         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35442         * tests/test-gc-rijndael.c: Likewise.
35443         * tests/test-gc-sha1.c: Likewise.
35444         * tests/test-gc.c: Likewise.
35445         * tests/test-gethostname.c: Likewise.
35446         * tests/test-gettimeofday.c: Likewise.
35447         * tests/test-hash.c: Likewise.
35448         * tests/test-hmac-md5.c: Likewise.
35449         * tests/test-hmac-sha1.c: Likewise.
35450         * tests/test-md2.c: Likewise.
35451         * tests/test-md4.c: Likewise.
35452         * tests/test-md5.c: Likewise.
35453         * tests/test-memchr.c: Likewise.
35454         * tests/test-memchr2.c: Likewise.
35455         * tests/test-memcmp.c: Likewise.
35456         * tests/test-memmem.c: Likewise.
35457         * tests/test-memrchr.c: Likewise.
35458         * tests/test-rawmemchr.c: Likewise.
35459         * tests/test-read-file.c: Likewise.
35460         * tests/test-rijndael.c: Likewise.
35461         * tests/test-sockets.c: Likewise.
35462         * tests/test-strchrnul.c: Likewise.
35463         * tests/test-strstr.c: Likewise.
35464         * tests/test-strtod.c: Likewise.
35465         * build-aux/ncftpput-ftp: Likewise.
35466
35467 2010-01-26  Eric Blake  <ebb9@byu.net>
35468
35469         ignore-value: update recommended header name
35470         * modules/ignore-value (Include): Only use <> for headers that
35471         exist in glibc.
35472
35473 2010-01-26  Jim Meyering  <meyering@redhat.com>
35474
35475         test-userspec.c: avoid compiler warnings
35476         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35477         and "initialization discards qualifiers..." warnings.
35478         Put the first "uid" in its own scope, and make char* members "const".
35479
35480 2010-01-25  Bruno Haible  <bruno@clisp.org>
35481
35482         gnulib-tool: Make warning diagnostics consistent.
35483         * gnulib-tool (func_warning): New function.
35484         Use it everywhere where gnulib-tool produces output to stderr and it is
35485         not a fatal error.
35486
35487 2010-01-25  Bruno Haible  <bruno@clisp.org>
35488
35489         Fix test dependencies.
35490         * modules/xstrtol-tests (Depends-on): Add inttypes.
35491         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35492
35493 2010-01-25 Pádraig Brady <P@draigBrady.com>
35494
35495         syntax-check: detect incorrect boolean macro values in config.h
35496         * modules/maintainer-makefile (configure.ac): Parameterize the location
35497         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35498         The logic is from Eric Blake and the location indicated by Jim Meyering.
35499         Note the more natural CONFIG_HEADER name is prohibited by automake
35500         for backwards compatibility reasons.
35501         * top/maint.mk (sc_Wundef_boolean): New rule.
35502
35503 2010-01-25  Jim Meyering  <meyering@redhat.com>
35504
35505         bootstrap: detect MacOS 10.6's shasum, too
35506         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35507         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35508
35509 2010-01-23  Jim Meyering  <meyering@redhat.com>
35510
35511         xstrtoll: new module
35512         * modules/xstrtoll: New file.
35513         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35514         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35515         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35516         ./configure fails if you use this module and lack "long long".
35517         * modules/xstrtoll-tests: New module.
35518         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35519         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35520         new init.sh-based test framework.
35521
35522 2010-01-24  Bruno Haible  <bruno@clisp.org>
35523
35524         Tests for module 'yn'.
35525         * modules/yn-tests: New file.
35526         * tests/test-yn.c: New file.
35527
35528         Tests for module 'y1'.
35529         * modules/y1-tests: New file.
35530         * tests/test-y1.c: New file.
35531
35532         Tests for module 'y0'.
35533         * modules/y0-tests: New file.
35534         * tests/test-y0.c: New file.
35535
35536         Tests for module 'tanh'.
35537         * modules/tanh-tests: New file.
35538         * tests/test-tanh.c: New file.
35539
35540         Tests for module 'tan'.
35541         * modules/tan-tests: New file.
35542         * tests/test-tan.c: New file.
35543
35544         Tests for module 'sqrt'.
35545         * modules/sqrt-tests: New file.
35546         * tests/test-sqrt.c: New file.
35547
35548         Tests for module 'sinh'.
35549         * modules/sinh-tests: New file.
35550         * tests/test-sinh.c: New file.
35551
35552         Tests for module 'sin'.
35553         * modules/sin-tests: New file.
35554         * tests/test-sin.c: New file.
35555
35556         Tests for module 'rint'.
35557         * modules/rint-tests: New file.
35558         * tests/test-rint.c: New file.
35559
35560         Tests for module 'remainder'.
35561         * modules/remainder-tests: New file.
35562         * tests/test-remainder.c: New file.
35563
35564         Tests for module 'pow'.
35565         * modules/pow-tests: New file.
35566         * tests/test-pow.c: New file.
35567
35568         Tests for module 'nextafter'.
35569         * modules/nextafter-tests: New file.
35570         * tests/test-nextafter.c: New file.
35571
35572         Tests for module 'modf'.
35573         * modules/modf-tests: New file.
35574         * tests/test-modf.c: New file.
35575
35576         Tests for module 'logb'.
35577         * modules/logb-tests: New file.
35578         * tests/test-logb.c: New file.
35579
35580         Tests for module 'log1p'.
35581         * modules/log1p-tests: New file.
35582         * tests/test-log1p.c: New file.
35583
35584         Tests for module 'log10'.
35585         * modules/log10-tests: New file.
35586         * tests/test-log10.c: New file.
35587
35588         Tests for module 'log'.
35589         * modules/log-tests: New file.
35590         * tests/test-log.c: New file.
35591
35592         Tests for module 'lgamma'.
35593         * modules/lgamma-tests: New file.
35594         * tests/test-lgamma.c: New file.
35595
35596         Tests for module 'ldexp'.
35597         * modules/ldexp-tests: New file.
35598         * tests/test-ldexp.c: New file.
35599
35600         Tests for module 'jn'.
35601         * modules/jn-tests: New file.
35602         * tests/test-jn.c: New file.
35603
35604         Tests for module 'j1'.
35605         * modules/j1-tests: New file.
35606         * tests/test-j1.c: New file.
35607
35608         Tests for module 'j0'.
35609         * modules/j0-tests: New file.
35610         * tests/test-j0.c: New file.
35611
35612         Tests for module 'hypot'.
35613         * modules/hypot-tests: New file.
35614         * tests/test-hypot.c: New file.
35615
35616         Tests for module 'fmod'.
35617         * modules/fmod-tests: New file.
35618         * tests/test-fmod.c: New file.
35619
35620         Tests for module 'fabs'.
35621         * modules/fabs-tests: New file.
35622         * tests/test-fabs.c: New file.
35623
35624         Tests for module 'exp'.
35625         * modules/exp-tests: New file.
35626         * tests/test-exp.c: New file.
35627
35628         Tests for module 'erfc'.
35629         * modules/erfc-tests: New file.
35630         * tests/test-erfc.c: New file.
35631
35632         Tests for module 'erf'.
35633         * modules/erf-tests: New file.
35634         * tests/test-erf.c: New file.
35635
35636         Tests for module 'cosh'.
35637         * modules/cosh-tests: New file.
35638         * tests/test-cosh.c: New file.
35639
35640         Tests for module 'cos'.
35641         * modules/cos-tests: New file.
35642         * tests/test-cos.c: New file.
35643
35644         Tests for module 'copysign'.
35645         * modules/copysign-tests: New file.
35646         * tests/test-copysign.c: New file.
35647
35648         Tests for module 'cbrt'.
35649         * modules/cbrt-tests: New file.
35650         * tests/test-cbrt.c: New file.
35651
35652         Tests for module 'atan2'.
35653         * modules/atan2-tests: New file.
35654         * tests/test-atan2.c: New file.
35655
35656         Tests for module 'atan'.
35657         * modules/atan-tests: New file.
35658         * tests/test-atan.c: New file.
35659
35660         Tests for module 'asin'.
35661         * modules/asin-tests: New file.
35662         * tests/test-asin.c: New file.
35663
35664         Tests for module 'acos'.
35665         * modules/acos-tests: New file.
35666         * tests/test-acos.c: New file.
35667
35668 2010-01-24  Bruno Haible  <bruno@clisp.org>
35669
35670         Fix tests for common <math.h> functions.
35671         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35672         code snippet that references the function pointer, rather than merely
35673         calling the function. Substitute the FUNC_LIBM variable.
35674         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35675         * modules/acos (configure.ac): Likewise.
35676         * modules/asin (configure.ac): Likewise.
35677         * modules/atan (configure.ac): Likewise.
35678         * modules/atan2 (configure.ac): Likewise.
35679         * modules/cbrt (configure.ac): Likewise.
35680         * modules/copysign (configure.ac): Likewise.
35681         * modules/cos (configure.ac): Likewise.
35682         * modules/cosh (configure.ac): Likewise.
35683         * modules/erf (configure.ac): Likewise.
35684         * modules/erfc (configure.ac): Likewise.
35685         * modules/exp (configure.ac): Likewise.
35686         * modules/fabs (configure.ac): Likewise.
35687         * modules/fmod (configure.ac): Likewise.
35688         * modules/hypot (configure.ac): Likewise.
35689         * modules/j0 (configure.ac): Likewise.
35690         * modules/j1 (configure.ac): Likewise.
35691         * modules/jn (configure.ac): Likewise.
35692         * modules/ldexp (configure.ac): Likewise.
35693         * modules/lgamma (configure.ac): Likewise.
35694         * modules/log (configure.ac): Likewise.
35695         * modules/log10 (configure.ac): Likewise.
35696         * modules/log1p (configure.ac): Likewise.
35697         * modules/logb (configure.ac): Likewise.
35698         * modules/modf (configure.ac): Likewise.
35699         * modules/nextafter (configure.ac): Likewise.
35700         * modules/pow (configure.ac): Likewise.
35701         * modules/remainder (configure.ac): Likewise.
35702         * modules/rint (configure.ac): Likewise.
35703         * modules/sin (configure.ac): Likewise.
35704         * modules/sinh (configure.ac): Likewise.
35705         * modules/tan (configure.ac): Likewise.
35706         * modules/tanh (configure.ac): Likewise.
35707         * modules/y0 (configure.ac): Likewise.
35708         * modules/y1 (configure.ac): Likewise.
35709         * modules/yn (configure.ac): Likewise.
35710
35711 2010-01-24  Bruno Haible  <bruno@clisp.org>
35712
35713         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35714         * tests/test-acosl.c (x): New variable.
35715         (main): Store argument in x and fetch it from x.
35716         * tests/test-asinl.c (x): New variable.
35717         (main): Store argument in x and fetch it from x.
35718         * tests/test-atanl.c (x): New variable.
35719         (main): Store argument in x and fetch it from x.
35720         * tests/test-cosl.c (x): New variable.
35721         (main): Store argument in x and fetch it from x.
35722         * tests/test-expl.c (x): New variable.
35723         (main): Store argument in x and fetch it from x.
35724         * tests/test-logl.c (x): New variable.
35725         (main): Store argument in x and fetch it from x.
35726         * tests/test-sinl.c (x): New variable.
35727         (main): Store argument in x and fetch it from x.
35728         * tests/test-sqrtl.c (x): New variable.
35729         (main): Store argument in x and fetch it from x.
35730         * tests/test-tanl.c (x): New variable.
35731         (main): Store argument in x and fetch it from x.
35732
35733 2010-01-24  Bruno Haible  <bruno@clisp.org>
35734
35735         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35736         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35737         assignments to the initial TESTS_ENVIRONMENT.
35738         * doc/gnulib.texi (Unit test modules): Document it.
35739         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35740         TESTS_ENVIRONMENT.
35741         * modules/btowc-tests (Makefile.am): Likewise.
35742         * modules/c-stack-tests (Makefile.am): Likewise.
35743         * modules/c-strcase-tests (Makefile.am): Likewise.
35744         * modules/copy-file-tests (Makefile.am): Likewise.
35745         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35746         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35747         * modules/mbrtowc-tests (Makefile.am): Likewise.
35748         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35749         * modules/mbscasestr-tests (Makefile.am): Likewise.
35750         * modules/mbschr-tests (Makefile.am): Likewise.
35751         * modules/mbscspn-tests (Makefile.am): Likewise.
35752         * modules/mbsinit-tests (Makefile.am): Likewise.
35753         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35754         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35755         * modules/mbspbrk-tests (Makefile.am): Likewise.
35756         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35757         * modules/mbsrchr-tests (Makefile.am): Likewise.
35758         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35759         * modules/mbsspn-tests (Makefile.am): Likewise.
35760         * modules/mbsstr-tests (Makefile.am): Likewise.
35761         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35762         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35763         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35764         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35765         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35766         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35767         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35768         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35769         * modules/wcrtomb-tests (Makefile.am): Likewise.
35770         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35771         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35772         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35773         assignments from TESTS_ENVIRONMENT.
35774         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35775         augmentation.
35776         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35777         * modules/atexit-tests (Makefile.am): Likewise.
35778         * modules/binary-io-tests (Makefile.am): Likewise.
35779         * modules/closein-tests (Makefile.am): Likewise.
35780         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35781         * modules/exclude-tests (Makefile.am): Likewise.
35782         * modules/fflush-tests (Makefile.am): Likewise.
35783         * modules/fpending-tests (Makefile.am): Likewise.
35784         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35785         * modules/freadahead-tests (Makefile.am): Likewise.
35786         * modules/freadptr-tests (Makefile.am): Likewise.
35787         * modules/freadseek-tests (Makefile.am): Likewise.
35788         * modules/fseek-tests (Makefile.am): Likewise.
35789         * modules/fseeko-tests (Makefile.am): Likewise.
35790         * modules/ftell-tests (Makefile.am): Likewise.
35791         * modules/ftello-tests (Makefile.am): Likewise.
35792         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35793         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35794         * modules/lseek-tests (Makefile.am): Likewise.
35795         * modules/parse-duration-tests (Makefile.am): Likewise.
35796         * modules/perror-tests (Makefile.am): Likewise.
35797         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35798         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35799         * modules/pipe-tests (Makefile.am): Likewise.
35800         * modules/pread-tests (Makefile.am): Likewise.
35801         * modules/printf-posix-tests (Makefile.am): Likewise.
35802         * modules/select-tests (Makefile.am): Likewise.
35803         * modules/sigpipe-tests (Makefile.am): Likewise.
35804         * modules/tsearch-tests (Makefile.am): Likewise.
35805         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35806         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35807         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35808         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35809         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35810         * modules/version-etc-tests (Makefile.am): Likewise.
35811         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35812         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35813         * modules/xalloc-die-tests (Makefile.am): Likewise.
35814         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35815         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35816         * modules/xstrtol-tests (Makefile.am): Likewise.
35817         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35818         * modules/yesno-tests (Makefile.am): Likewise.
35819         Suggested by Jim Meyering.
35820
35821 2010-01-24  Bruno Haible  <bruno@clisp.org>
35822
35823         More documentation.
35824         * doc/gnulib.texi (Writing modules): New chapter.
35825         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35826         the new chapter.
35827
35828 2010-01-24  Jim Meyering  <meyering@redhat.com>
35829
35830         maint.mk: do not prepend "./" after filtering
35831         * top/maint.mk (_prepend_srcdir_prefix): New variable
35832         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35833         "./" when $(srcdir) is ".".
35834
35835         define STREQ(a,b) consistently, removing useless parentheses
35836         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35837         since the only risk is that "a" or "b" contains an unparenthesized
35838         comma, but if either did that, STREQ would have 3 or more arguments.
35839         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35840         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35841         * lib/hash-triple.c (STREQ): Likewise.
35842         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35843         * lib/getugroups.c (STREQ): Likewise.
35844
35845 2010-01-23  Jim Meyering  <meyering@redhat.com>
35846
35847         maint.mk: fix syntax-check in a non-srcdir build directory
35848         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35849         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35850
35851 2010-01-22  Jim Meyering  <meyering@redhat.com>
35852
35853         userspec: add unit tests
35854         * tests/test-userspec.c: New file.
35855         * modules/userspec-tests: Likewise.
35856
35857 2010-01-21  Jim Meyering  <meyering@redhat.com>
35858
35859         maint.mk: handle source file names containing "." robustly
35860         * top/maint.mk (_dot_escaped_srcdir): Define.
35861         (VC_LIST): Use it in LHS of sed substitution.
35862
35863 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35864
35865         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35866         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35867         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35868         from a non-srcdir build.
35869
35870 2010-01-20  Eric Blake  <ebb9@byu.net>
35871
35872         warn-on-use: use instead of link-warning
35873         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35874         * modules/unistd (Depends-on, Makefile.am): Likewise.
35875         * modules/arpa_inet (Depends-on): Replace link-warning with
35876         warn-on-use.
35877         (Makefile.am): Update rules accordingly.
35878         * modules/ctype (Depends-on, Makefile.am): Likewise.
35879         * modules/dirent (Depends-on, Makefile.am): Likewise.
35880         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35881         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35882         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35883         * modules/locale (Depends-on, Makefile.am): Likewise.
35884         * modules/math (Depends-on, Makefile.am): Likewise.
35885         * modules/search (Depends-on, Makefile.am): Likewise.
35886         * modules/signal (Depends-on, Makefile.am): Likewise.
35887         * modules/spawn (Depends-on, Makefile.am): Likewise.
35888         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35889         * modules/string (Depends-on, Makefile.am): Likewise.
35890         * modules/strings (Depends-on, Makefile.am): Likewise.
35891         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35892         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35893         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35894         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35895         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35896         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35897         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35898         * modules/wchar (Depends-on, Makefile.am): Likewise.
35899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35900         should be poisoned.
35901         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35902         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35903         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35904         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35906         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35907         * m4/math_h.m4 (gl_MATH_H): Likewise.
35908         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35909         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35910         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35911         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35912         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35913         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35914         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35915         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35920         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35922         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35923         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35924         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35925         GL_LINK_WARNING.
35926         * lib/ctype.in.h: Likewise.
35927         * lib/dirent.in.h: Likewise.
35928         * lib/fcntl.in.h: Likewise.
35929         * lib/inttypes.in.h: Likewise.
35930         * lib/langinfo.in.h: Likewise.
35931         * lib/locale.in.h: Likewise.
35932         * lib/math.in.h: Likewise.
35933         * lib/search.in.h: Likewise.
35934         * lib/signal.in.h: Likewise.
35935         * lib/spawn.in.h: Likewise.
35936         * lib/stdio.in.h: Likewise.
35937         * lib/stdlib.in.h: Likewise.
35938         * lib/string.in.h: Likewise.
35939         * lib/strings.in.h: Likewise.
35940         * lib/sys_file.in.h: Likewise.
35941         * lib/sys_ioctl.in.h: Likewise.
35942         * lib/sys_select.in.h: Likewise.
35943         * lib/sys_socket.in.h: Likewise.
35944         * lib/sys_stat.in.h: Likewise.
35945         * lib/sys_times.in.h: Likewise.
35946         * lib/sys_utsname.in.h: Likewise.
35947         * lib/unistd.in.h: Likewise.
35948         * lib/wchar.in.h: Likewise.
35949
35950 2010-01-20  Bruno Haible  <bruno@clisp.org>
35951
35952         Avoid duplicate -lm.
35953         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35954         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35957         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35958         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35959         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35960         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35961         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35962         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35963         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35964         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35965         Reported by Paolo Bonzini.
35966
35967 2010-01-19  Bruno Haible  <bruno@clisp.org>
35968
35969         langinfo, nl_langinfo: Relicense under LGPLv2+.
35970         * modules/langinfo (License): Change to LGPLv2+.
35971         * modules/nl_langinfo (License): Likewise.
35972         Patch by David Lutterkort <lutter@redhat.com>.
35973
35974 2010-01-19  Bruno Haible  <bruno@clisp.org>
35975
35976         Avoid compilation error with cc on OSF/1 5.1.
35977         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35978         statement, not before.
35979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35980
35981 2010-01-18  Bruno Haible  <bruno@clisp.org>
35982
35983         Avoid a link error due to the __printf__ symbol.
35984         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35985         and 2.6.x.
35986         (__format__, __printf__): Remove definitions.
35987         * lib/argp-fmtstream.h: Likewise.
35988         * lib/argp.h: Likewise.
35989         * lib/error.h: Likewise.
35990         * lib/vasnprintf.h: Likewise.
35991         * lib/xprintf.h: Likewise.
35992         * lib/xvasprintf.h: Likewise.
35993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35994
35995 2010-01-18  Bruno Haible  <bruno@clisp.org>
35996
35997         Tests for module 'tanl'.
35998         * modules/tanl-tests: New file.
35999         * tests/test-tanl.c: New file.
36000
36001         Tests for module 'sqrtl'.
36002         * modules/sqrtl-tests: New file.
36003         * tests/test-sqrtl.c: New file.
36004
36005         Tests for module 'sinl'.
36006         * modules/sinl-tests: New file.
36007         * tests/test-sinl.c: New file.
36008
36009         Tests for module 'logl'.
36010         * modules/logl-tests: New file.
36011         * tests/test-logl.c: New file.
36012
36013         Tests for module 'expl'.
36014         * modules/expl-tests: New file.
36015         * tests/test-expl.c: New file.
36016
36017         Tests for module 'cosl'.
36018         * modules/cosl-tests: New file.
36019         * tests/test-cosl.c: New file.
36020
36021         Tests for module 'atanl'.
36022         * modules/atanl-tests: New file.
36023         * tests/test-atanl.c: New file.
36024
36025         Tests for module 'asinl'.
36026         * modules/asinl-tests: New file.
36027         * tests/test-asinl.c: New file.
36028
36029         Tests for module 'acosl'.
36030         * modules/acosl-tests: New file.
36031         * tests/test-acosl.c: New file.
36032
36033         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36034         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36035         tanl): Use the standard gnulib idiom.
36036         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36037         * lib/sinl.c: Likewise.
36038         * lib/tanl.c: Don't include trigl.c.
36039         (kernel_tanl): Make static.
36040         * lib/sincosl.c: Include trigl.h first.
36041         * lib/trigl.c: Likewise.
36042         * m4/acosl.m4: New file.
36043         * m4/asinl.m4: New file.
36044         * m4/atanl.m4: New file.
36045         * m4/cosl.m4: New file.
36046         * m4/expl.m4: New file.
36047         * m4/logl.m4: New file.
36048         * m4/sinl.m4: New file.
36049         * m4/sqrtl.m4: New file.
36050         * m4/tanl.m4: New file.
36051         * m4/mathl.m4: Remove file.
36052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36053         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36054         Don't initialize GNULIB_MATHL.
36055         * modules/acosl: New file.
36056         * modules/asinl: New file.
36057         * modules/atanl: New file.
36058         * modules/cosl: New file.
36059         * modules/expl: New file.
36060         * modules/logl: New file.
36061         * modules/sinl: New file.
36062         * modules/sqrtl: New file.
36063         * modules/tanl: New file.
36064         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36065         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36066         substitute GNULIB_MATHL.
36067         * modules/mathl: Rewritten.
36068         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36069         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36070         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36071         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36072         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36073         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36074         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36075         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36076         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36077
36078 2010-01-18  Bruno Haible  <bruno@clisp.org>
36079
36080         sqrt: Make gl_FUNC_SQRT requirable.
36081         * m4/sqrt.m4: New file.
36082         * modules/sqrt (Files): Add it.
36083         (configure.ac): Invoke gl_FUNC_SQRT.
36084
36085 2010-01-18  Bruno Haible  <bruno@clisp.org>
36086
36087         New modules for common <math.h> functions.
36088         * m4/mathfunc.m4: New file.
36089         * modules/acos: New file.
36090         * modules/asin: New file.
36091         * modules/atan: New file.
36092         * modules/atan2: New file.
36093         * modules/cbrt: New file.
36094         * modules/copysign: New file.
36095         * modules/cos: New file.
36096         * modules/cosh: New file.
36097         * modules/erf: New file.
36098         * modules/erfc: New file.
36099         * modules/exp: New file.
36100         * modules/fabs: New file.
36101         * modules/fmod: New file.
36102         * modules/hypot: New file.
36103         * modules/j0: New file.
36104         * modules/j1: New file.
36105         * modules/jn: New file.
36106         * modules/ldexp: New file.
36107         * modules/lgamma: New file.
36108         * modules/log: New file.
36109         * modules/log10: New file.
36110         * modules/log1p: New file.
36111         * modules/logb: New file.
36112         * modules/modf: New file.
36113         * modules/nextafter: New file.
36114         * modules/pow: New file.
36115         * modules/remainder: New file.
36116         * modules/rint: New file.
36117         * modules/sin: New file.
36118         * modules/sinh: New file.
36119         * modules/sqrt: New file.
36120         * modules/tan: New file.
36121         * modules/tanh: New file.
36122         * modules/y0: New file.
36123         * modules/y1: New file.
36124         * modules/yn: New file.
36125         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36126         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36127         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36128         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36129         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36130         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36131         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36132         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36133         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36134         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36135         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36136         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36137         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36138         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36139         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36140         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36141         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36142         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36143         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36144         * doc/posix-functions/log.texi: Mention the 'log' module.
36145         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36146         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36147         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36148         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36149         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36150         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36151         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36152         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36153         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36154         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36155         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36156         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36157         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36158         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36159         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36160         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36161
36162 2010-01-18  Jim Meyering  <meyering@redhat.com>
36163
36164         ignore-value: relax license to LGPLv2+
36165         * modules/ignore-value (License): Relax to LGPLv2+.
36166
36167         getdate: don't leak when TZ contains two or more '"'s
36168         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36169         double quote in TZ after the first one.
36170
36171         readtokens: do not leak internal token_lengths buffer
36172         * lib/readtokens.c (readtokens): Free the local, lengths,
36173         when the supplied "token_lengths" parameter is NULL.
36174
36175 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36176
36177         Fix a couple of missing LIBTHREAD link failures on AIX.
36178         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36179         $(LIBTHREAD).
36180         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36181
36182         Link test-poll against INET_PTON_LIB.
36183         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36184         for inet_pton on Solaris 10.
36185
36186 2010-01-17  Bruno Haible  <bruno@clisp.org>
36187
36188         unistdio/*-sprintf: Fix typo in module description.
36189         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36190         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36191         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36192         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36193         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36194         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36195         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36197
36198 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36199
36200         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36201         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36202         variables in shell case patterns, for AIX and HP-UX ksh.
36203
36204         Split large sed scripts, for HP-UX sed.
36205         * modules/stdio: Split sed scripts around 50 sed commands,
36206         to avoid HP-UX limit of 99 commands, in the near future.
36207         * modules/string: Likewise.
36208         * modules/unistd: Likewise.
36209
36210         gnulib-tool: avoid writing in the current directory.
36211         * gnulib-tool (func_emit_lib_Makefile_am)
36212         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36213         not in the current directory, so concurrent gnulib-tool
36214         instances do not interfere.
36215
36216 2010-01-16  Jim Meyering  <meyering@redhat.com>
36217
36218         doc: update users.txt
36219         * users.txt: Add grep.
36220         (diffutils, gzip): Update URLs.
36221
36222 2010-01-12  Bruno Haible  <bruno@clisp.org>
36223
36224         posix_spawn: Avoid test failure on Cygwin.
36225         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36226         characters.
36227         Reported by Simon Josefsson.
36228
36229 2010-01-12  Bruno Haible  <bruno@clisp.org>
36230
36231         * tests/test-cond.c (main): When skipping the test, show the reason.
36232
36233 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36234
36235         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36236
36237 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36238
36239         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36240         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36241
36242 2010-01-12  Eric Blake  <ebb9@byu.net>
36243
36244         build: guarantee AS_VAR_IF
36245         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36246         (gl_AS_VAR_IF): Move...
36247         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36248         Reported by Simon Josefsson.
36249
36250 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36251
36252         * lib/stdio.in.h: Fix typo.
36253
36254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36255
36256         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36257         libgpg-error.
36258
36259 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36260
36261         * tests/test-xalloc-die.sh: Use $EXEEXT.
36262
36263 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36264             Bruno Haible  <bruno@clisp.org>
36265
36266         getlogin, getlogin_r: Avoid test failure.
36267         * tests/test-getlogin.c: Include <stdio.h>.
36268         (main): Skip the test when the function fails because stdin is not a
36269         tty.
36270         * tests/test-getlogin_r.c: Include <stdio.h>.
36271         (main): Skip the test when the function fails because stdin is not a
36272         tty.
36273
36274 2010-01-11  Eric Blake  <ebb9@byu.net>
36275
36276         tests: avoid more large file warnings
36277         * tests/test-fflush.c: Avoid warning about ftell use.
36278         * tests/test-fseek.c: Avoid warning about fseek use.
36279
36280 2010-01-10  Bruno Haible  <bruno@clisp.org>
36281
36282         nproc: Work better on Linux when /proc and /sys are not mounted.
36283         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36284         as lower bound when, on glibc/Linux systems,
36285         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36286         Suggested by Pádraig Brady <P@draigbrady.com>.
36287         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36288
36289         nproc: Refactor.
36290         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36291         extracted from num_processors.
36292         (num_processors): Call it.
36293
36294 2010-01-11  Jim Meyering  <meyering@redhat.com>
36295
36296         utimecmp: avoid new warning from upcoming gcc-4.5.0
36297         * lib/utimecmp.c (BILLION): Define using #define rather than an
36298         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36299
36300 2010-01-11  Eric Blake  <ebb9@byu.net>
36301
36302         math: add portability warnings for classification macros
36303         * modules/math (Depends-on): Add warn-on-use.
36304         (Makefile.am): Provide new substitutions.
36305         * m4/math_h.m4 (gl_MATH_H): Require inline.
36306         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36307         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36308         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36309         implement warnings.
36310
36311         unistd: warn on use of environ without module
36312         * modules/unistd (Depends-on): Add warn-on-use.
36313         (Makefile.am): Provide new substitutions.
36314         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36315         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36316
36317         stdio: warn on suspicious uses
36318         * modules/stdio (Depends-on): Add warn-on-use.
36319         (Makefile.am): Provide new substitutions.
36320         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36321         fseeko.
36322         * lib/stdio.in.h (gets): Always warn on use.
36323         (fseek, ftell): Adjust when warnings are issued, and honor
36324         _GL_NO_LARGE_FILES as a way to silence the warning.
36325         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36326         any warning about large file offsets.
36327         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36328         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36329         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36330         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36331         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36332         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36333         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36334         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36335
36336         warn-on-use: new module
36337         * modules/warn-on-use: New file.
36338         * build-aux/warn-on-use.h: Likewise.
36339         * m4/warn-on-use.m4: Likewise.
36340         * MODULES.html.sh (Support for building): Mention it.
36341
36342 2010-01-10  Bruno Haible  <bruno@clisp.org>
36343
36344         Tests for module 'unistr/u32-strdup'.
36345         * modules/unistr/u32-strdup-tests: New file.
36346         * tests/unistr/test-u32-strdup.c: New file.
36347
36348         Tests for module 'unistr/u16-strdup'.
36349         * modules/unistr/u16-strdup-tests: New file.
36350         * tests/unistr/test-u16-strdup.c: New file.
36351
36352         Tests for module 'unistr/u8-strdup'.
36353         * modules/unistr/u8-strdup-tests: New file.
36354         * tests/unistr/test-u8-strdup.c: New file.
36355         * tests/unistr/test-strdup.h: New file.
36356
36357         Tests for module 'unistr/u32-strncmp'.
36358         * modules/unistr/u32-strncmp-tests: New file.
36359         * tests/unistr/test-u32-strncmp.c: New file.
36360
36361         Tests for module 'unistr/u16-strncmp'.
36362         * modules/unistr/u16-strncmp-tests: New file.
36363         * tests/unistr/test-u16-strncmp.c: New file.
36364
36365         Tests for module 'unistr/u8-strncmp'.
36366         * modules/unistr/u8-strncmp-tests: New file.
36367         * tests/unistr/test-u8-strncmp.c: New file.
36368         * tests/unistr/test-strncmp.h: New file.
36369
36370         Tests for module 'unistr/u32-strcoll'.
36371         * modules/unistr/u32-strcoll-tests: New file.
36372         * tests/unistr/test-u32-strcoll.c: New file.
36373
36374         Tests for module 'unistr/u16-strcoll'.
36375         * modules/unistr/u16-strcoll-tests: New file.
36376         * tests/unistr/test-u16-strcoll.c: New file.
36377
36378         Tests for module 'unistr/u8-strcoll'.
36379         * modules/unistr/u8-strcoll-tests: New file.
36380         * tests/unistr/test-u8-strcoll.c: New file.
36381
36382         Tests for module 'unistr/u32-strcmp'.
36383         * modules/unistr/u32-strcmp-tests: New file.
36384         * tests/unistr/test-u32-strcmp.c: New file.
36385         * tests/unistr/test-u32-strcmp.h: New file.
36386
36387         Tests for module 'unistr/u16-strcmp'.
36388         * modules/unistr/u16-strcmp-tests: New file.
36389         * tests/unistr/test-u16-strcmp.c: New file.
36390         * tests/unistr/test-u16-strcmp.h: New file.
36391
36392         Tests for module 'unistr/u8-strcmp'.
36393         * modules/unistr/u8-strcmp-tests: New file.
36394         * tests/unistr/test-u8-strcmp.c: New file.
36395         * tests/unistr/test-u8-strcmp.h: New file.
36396         * tests/unistr/test-strcmp.h: New file.
36397
36398         Tests for module 'unistr/u32-strncat'.
36399         * modules/unistr/u32-strncat-tests: New file.
36400         * tests/unistr/test-u32-strncat.c: New file.
36401
36402         Tests for module 'unistr/u16-strncat'.
36403         * modules/unistr/u16-strncat-tests: New file.
36404         * tests/unistr/test-u16-strncat.c: New file.
36405
36406         Tests for module 'unistr/u8-strncat'.
36407         * modules/unistr/u8-strncat-tests: New file.
36408         * tests/unistr/test-u8-strncat.c: New file.
36409         * tests/unistr/test-strncat.h: New file.
36410
36411         Tests for module 'unistr/u32-strcat'.
36412         * modules/unistr/u32-strcat-tests: New file.
36413         * tests/unistr/test-u32-strcat.c: New file.
36414
36415         Tests for module 'unistr/u16-strcat'.
36416         * modules/unistr/u16-strcat-tests: New file.
36417         * tests/unistr/test-u16-strcat.c: New file.
36418
36419         Tests for module 'unistr/u8-strcat'.
36420         * modules/unistr/u8-strcat-tests: New file.
36421         * tests/unistr/test-u8-strcat.c: New file.
36422         * tests/unistr/test-strcat.h: New file.
36423
36424         Tests for module 'unistr/u32-stpncpy'.
36425         * modules/unistr/u32-stpncpy-tests: New file.
36426         * tests/unistr/test-u32-stpncpy.c: New file.
36427
36428         Tests for module 'unistr/u16-stpncpy'.
36429         * modules/unistr/u16-stpncpy-tests: New file.
36430         * tests/unistr/test-u16-stpncpy.c: New file.
36431
36432         Tests for module 'unistr/u8-stpncpy'.
36433         * modules/unistr/u8-stpncpy-tests: New file.
36434         * tests/unistr/test-u8-stpncpy.c: New file.
36435         * tests/unistr/test-stpncpy.h: New file.
36436
36437         Tests for module 'unistr/u32-strncpy'.
36438         * modules/unistr/u32-strncpy-tests: New file.
36439         * tests/unistr/test-u32-strncpy.c: New file.
36440
36441         Tests for module 'unistr/u16-strncpy'.
36442         * modules/unistr/u16-strncpy-tests: New file.
36443         * tests/unistr/test-u16-strncpy.c: New file.
36444
36445         Tests for module 'unistr/u8-strncpy'.
36446         * modules/unistr/u8-strncpy-tests: New file.
36447         * tests/unistr/test-u8-strncpy.c: New file.
36448         * tests/unistr/test-strncpy.h: New file.
36449
36450         Tests for module 'unistr/u32-stpcpy'.
36451         * modules/unistr/u32-stpcpy-tests: New file.
36452         * tests/unistr/test-u32-stpcpy.c: New file.
36453
36454         Tests for module 'unistr/u16-stpcpy'.
36455         * modules/unistr/u16-stpcpy-tests: New file.
36456         * tests/unistr/test-u16-stpcpy.c: New file.
36457
36458         Tests for module 'unistr/u8-stpcpy'.
36459         * modules/unistr/u8-stpcpy-tests: New file.
36460         * tests/unistr/test-u8-stpcpy.c: New file.
36461         * tests/unistr/test-stpcpy.h: New file.
36462
36463         Tests for module 'unistr/u32-strcpy'.
36464         * modules/unistr/u32-strcpy-tests: New file.
36465         * tests/unistr/test-u32-strcpy.c: New file.
36466
36467         Tests for module 'unistr/u16-strcpy'.
36468         * modules/unistr/u16-strcpy-tests: New file.
36469         * tests/unistr/test-u16-strcpy.c: New file.
36470
36471         Tests for module 'unistr/u8-strcpy'.
36472         * modules/unistr/u8-strcpy-tests: New file.
36473         * tests/unistr/test-u8-strcpy.c: New file.
36474         * tests/unistr/test-strcpy.h: New file.
36475
36476         Tests for module 'unistr/u32-strnlen'.
36477         * modules/unistr/u32-strnlen-tests: New file.
36478         * tests/unistr/test-u32-strnlen.c: New file.
36479
36480         Tests for module 'unistr/u16-strnlen'.
36481         * modules/unistr/u16-strnlen-tests: New file.
36482         * tests/unistr/test-u16-strnlen.c: New file.
36483
36484         Tests for module 'unistr/u8-strnlen'.
36485         * modules/unistr/u8-strnlen-tests: New file.
36486         * tests/unistr/test-u8-strnlen.c: New file.
36487         * tests/unistr/test-strnlen.h: New file.
36488
36489         Tests for module 'unistr/u32-strlen'.
36490         * modules/unistr/u32-strlen-tests: New file.
36491         * tests/unistr/test-u32-strlen.c: New file.
36492
36493         Tests for module 'unistr/u16-strlen'.
36494         * modules/unistr/u16-strlen-tests: New file.
36495         * tests/unistr/test-u16-strlen.c: New file.
36496
36497         Tests for module 'unistr/u8-strlen'.
36498         * modules/unistr/u8-strlen-tests: New file.
36499         * tests/unistr/test-u8-strlen.c: New file.
36500
36501         Tests for module 'unistr/u32-prev'.
36502         * modules/unistr/u32-prev-tests: New file.
36503         * tests/unistr/test-u32-prev.c: New file.
36504
36505         Tests for module 'unistr/u16-prev'.
36506         * modules/unistr/u16-prev-tests: New file.
36507         * tests/unistr/test-u16-prev.c: New file.
36508
36509         Tests for module 'unistr/u8-prev'.
36510         * modules/unistr/u8-prev-tests: New file.
36511         * tests/unistr/test-u8-prev.c: New file.
36512
36513         Tests for module 'unistr/u32-next'.
36514         * modules/unistr/u32-next-tests: New file.
36515         * tests/unistr/test-u32-next.c: New file.
36516
36517         Tests for module 'unistr/u16-next'.
36518         * modules/unistr/u16-next-tests: New file.
36519         * tests/unistr/test-u16-next.c: New file.
36520
36521         Tests for module 'unistr/u8-next'.
36522         * modules/unistr/u8-next-tests: New file.
36523         * tests/unistr/test-u8-next.c: New file.
36524
36525         Tests for module 'unistr/u32-strmbtouc'.
36526         * modules/unistr/u32-strmbtouc-tests: New file.
36527         * tests/unistr/test-u32-strmbtouc.c: New file.
36528
36529         Tests for module 'unistr/u16-strmbtouc'.
36530         * modules/unistr/u16-strmbtouc-tests: New file.
36531         * tests/unistr/test-u16-strmbtouc.c: New file.
36532
36533         Tests for module 'unistr/u8-strmbtouc'.
36534         * modules/unistr/u8-strmbtouc-tests: New file.
36535         * tests/unistr/test-u8-strmbtouc.c: New file.
36536
36537         Tests for module 'unistr/u32-strmblen'.
36538         * modules/unistr/u32-strmblen-tests: New file.
36539         * tests/unistr/test-u32-strmblen.c: New file.
36540
36541         Tests for module 'unistr/u16-strmblen'.
36542         * modules/unistr/u16-strmblen-tests: New file.
36543         * tests/unistr/test-u16-strmblen.c: New file.
36544
36545         Tests for module 'unistr/u8-strmblen'.
36546         * modules/unistr/u8-strmblen-tests: New file.
36547         * tests/unistr/test-u8-strmblen.c: New file.
36548
36549         Tests for module 'unistr/u32-cpy-alloc'.
36550         * modules/unistr/u32-cpy-alloc-tests: New file.
36551         * tests/unistr/test-u32-cpy-alloc.c: New file.
36552
36553         Tests for module 'unistr/u16-cpy-alloc'.
36554         * modules/unistr/u16-cpy-alloc-tests: New file.
36555         * tests/unistr/test-u16-cpy-alloc.c: New file.
36556
36557         Tests for module 'unistr/u8-cpy-alloc'.
36558         * modules/unistr/u8-cpy-alloc-tests: New file.
36559         * tests/unistr/test-u8-cpy-alloc.c: New file.
36560         * tests/unistr/test-cpy-alloc.h: New file.
36561
36562         Tests for module 'unistr/u32-mbsnlen'.
36563         * modules/unistr/u32-mbsnlen-tests: New file.
36564         * tests/unistr/test-u32-mbsnlen.c: New file.
36565
36566         Tests for module 'unistr/u16-mbsnlen'.
36567         * modules/unistr/u16-mbsnlen-tests: New file.
36568         * tests/unistr/test-u16-mbsnlen.c: New file.
36569
36570         Tests for module 'unistr/u8-mbsnlen'.
36571         * modules/unistr/u8-mbsnlen-tests: New file.
36572         * tests/unistr/test-u8-mbsnlen.c: New file.
36573
36574         Tests for module 'unistr/u32-chr'.
36575         * modules/unistr/u32-chr-tests: New file.
36576         * tests/unistr/test-u32-chr.c: New file.
36577
36578         Tests for module 'unistr/u16-chr'.
36579         * modules/unistr/u16-chr-tests: New file.
36580         * tests/unistr/test-u16-chr.c: New file.
36581
36582         Tests for module 'unistr/u8-chr'.
36583         * modules/unistr/u8-chr-tests: New file.
36584         * tests/unistr/test-u8-chr.c: New file.
36585         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36586
36587         Tests for module 'unistr/u32-cmp2'.
36588         * modules/unistr/u32-cmp2-tests: New file.
36589         * tests/unistr/test-u32-cmp2.c: New file.
36590
36591         Tests for module 'unistr/u16-cmp2'.
36592         * modules/unistr/u16-cmp2-tests: New file.
36593         * tests/unistr/test-u16-cmp2.c: New file.
36594
36595         Tests for module 'unistr/u8-cmp2'.
36596         * modules/unistr/u8-cmp2-tests: New file.
36597         * tests/unistr/test-u8-cmp2.c: New file.
36598         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36599
36600         Tests for module 'unistr/u32-cmp'.
36601         * modules/unistr/u32-cmp-tests: New file.
36602         * tests/unistr/test-u32-cmp.c: New file.
36603
36604         Tests for module 'unistr/u16-cmp'.
36605         * modules/unistr/u16-cmp-tests: New file.
36606         * tests/unistr/test-u16-cmp.c: New file.
36607
36608         Tests for module 'unistr/u8-cmp'.
36609         * modules/unistr/u8-cmp-tests: New file.
36610         * tests/unistr/test-u8-cmp.c: New file.
36611         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36612
36613         Tests for module 'unistr/u32-set'.
36614         * modules/unistr/u32-set-tests: New file.
36615         * tests/unistr/test-u32-set.c: New file.
36616
36617         Tests for module 'unistr/u16-set'.
36618         * modules/unistr/u16-set-tests: New file.
36619         * tests/unistr/test-u16-set.c: New file.
36620
36621         Tests for module 'unistr/u8-set'.
36622         * modules/unistr/u8-set-tests: New file.
36623         * tests/unistr/test-u8-set.c: New file.
36624         * tests/unistr/test-set.h: New file.
36625
36626         Tests for module 'unistr/u32-move'.
36627         * modules/unistr/u32-move-tests: New file.
36628         * tests/unistr/test-u32-move.c: New file.
36629
36630         Tests for module 'unistr/u16-move'.
36631         * modules/unistr/u16-move-tests: New file.
36632         * tests/unistr/test-u16-move.c: New file.
36633
36634         Tests for module 'unistr/u8-move'.
36635         * modules/unistr/u8-move-tests: New file.
36636         * tests/unistr/test-u8-move.c: New file.
36637         * tests/unistr/test-move.h: New file.
36638
36639         Tests for module 'unistr/u32-cpy'.
36640         * modules/unistr/u32-cpy-tests: New file.
36641         * tests/unistr/test-u32-cpy.c: New file.
36642
36643         Tests for module 'unistr/u16-cpy'.
36644         * modules/unistr/u16-cpy-tests: New file.
36645         * tests/unistr/test-u16-cpy.c: New file.
36646
36647         Tests for module 'unistr/u8-cpy'.
36648         * modules/unistr/u8-cpy-tests: New file.
36649         * tests/unistr/test-u8-cpy.c: New file.
36650         * tests/unistr/test-cpy.h: New file.
36651
36652 2010-01-09  Bruno Haible  <bruno@clisp.org>
36653
36654         Tests for module 'unistr/u32-uctomb'.
36655         * modules/unistr/u32-uctomb-tests: New file.
36656         * tests/unistr/test-u32-uctomb.c: New file.
36657
36658         Tests for module 'unistr/u16-uctomb'.
36659         * modules/unistr/u16-uctomb-tests: New file.
36660         * tests/unistr/test-u16-uctomb.c: New file.
36661
36662         Tests for module 'unistr/u8-uctomb'.
36663         * modules/unistr/u8-uctomb-tests: New file.
36664         * tests/unistr/test-u8-uctomb.c: New file.
36665
36666         Tests for module 'unistr/u32-mbtoucr'.
36667         * modules/unistr/u32-mbtoucr-tests: New file.
36668         * tests/unistr/test-u32-mbtoucr.c: New file.
36669
36670         Tests for module 'unistr/u16-mbtoucr'.
36671         * modules/unistr/u16-mbtoucr-tests: New file.
36672         * tests/unistr/test-u16-mbtoucr.c: New file.
36673
36674         Tests for module 'unistr/u8-mbtoucr'.
36675         * modules/unistr/u8-mbtoucr-tests: New file.
36676         * tests/unistr/test-u8-mbtoucr.c: New file.
36677
36678         Tests for module 'unistr/u32-mbtouc'.
36679         * modules/unistr/u32-mbtouc-tests: New file.
36680         * tests/unistr/test-u32-mbtouc.c: New file.
36681
36682         Tests for module 'unistr/u16-mbtouc'.
36683         * modules/unistr/u16-mbtouc-tests: New file.
36684         * tests/unistr/test-u16-mbtouc.c: New file.
36685
36686         Tests for module 'unistr/u8-mbtouc'.
36687         * modules/unistr/u8-mbtouc-tests: New file.
36688         * tests/unistr/test-u8-mbtouc.c: New file.
36689
36690         Tests for module 'unistr/u32-mbtouc-unsafe'.
36691         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36692         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36693         * tests/unistr/test-u32-mbtouc.h: New file.
36694
36695         Tests for module 'unistr/u16-mbtouc-unsafe'.
36696         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36697         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36698         * tests/unistr/test-u16-mbtouc.h: New file.
36699
36700         Tests for module 'unistr/u8-mbtouc-unsafe'.
36701         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36702         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36703         * tests/unistr/test-u8-mbtouc.h: New file.
36704
36705         Tests for module 'unistr/u32-mblen'.
36706         * modules/unistr/u32-mblen-tests: New file.
36707         * tests/unistr/test-u32-mblen.c: New file.
36708
36709         Tests for module 'unistr/u16-mblen'.
36710         * modules/unistr/u16-mblen-tests: New file.
36711         * tests/unistr/test-u16-mblen.c: New file.
36712
36713         Tests for module 'unistr/u8-mblen'.
36714         * modules/unistr/u8-mblen-tests: New file.
36715         * tests/unistr/test-u8-mblen.c: New file.
36716
36717         Tests for module 'unistr/u32-to-u16'.
36718         * modules/unistr/u32-to-u16-tests: New file.
36719         * tests/unistr/test-u32-to-u16.c: New file.
36720
36721         Tests for module 'unistr/u32-to-u8'.
36722         * modules/unistr/u32-to-u8-tests: New file.
36723         * tests/unistr/test-u32-to-u8.c: New file.
36724
36725         Tests for module 'unistr/u16-to-u32'.
36726         * modules/unistr/u16-to-u32-tests: New file.
36727         * tests/unistr/test-u16-to-u32.c: New file.
36728
36729         Tests for module 'unistr/u16-to-u8'.
36730         * modules/unistr/u16-to-u8-tests: New file.
36731         * tests/unistr/test-u16-to-u8.c: New file.
36732
36733         Tests for module 'unistr/u8-to-u32'.
36734         * modules/unistr/u8-to-u32-tests: New file.
36735         * tests/unistr/test-u8-to-u32.c: New file.
36736
36737         Tests for module 'unistr/u8-to-u16'.
36738         * modules/unistr/u8-to-u16-tests: New file.
36739         * tests/unistr/test-u8-to-u16.c: New file.
36740
36741         Tests for module 'unistr/u32-check'.
36742         * modules/unistr/u32-check-tests: New file.
36743         * tests/unistr/test-u32-check.c: New file.
36744
36745         Tests for module 'unistr/u16-check'.
36746         * modules/unistr/u16-check-tests: New file.
36747         * tests/unistr/test-u16-check.c: New file.
36748
36749         Tests for module 'unistr/u8-check'.
36750         * modules/unistr/u8-check-tests: New file.
36751         * tests/unistr/test-u8-check.c: New file.
36752
36753         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36754         (category_equals): New function.
36755         (main): Add more tests.
36756         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36757
36758         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36759
36760 2010-01-10  Bruno Haible  <bruno@clisp.org>
36761
36762         unistr/u*-strcoll: Try harder to distinguish different strings.
36763         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36764         compare s1 and s2 to see if they are different.
36765
36766 2010-01-10  Bruno Haible  <bruno@clisp.org>
36767
36768         unistr/u*-stpncpy: Fix the return value.
36769         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36770         description of the return value consistent with stpncpy in glibc.
36771         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36772         written non-NUL unit.
36773
36774 2010-01-10  Bruno Haible  <bruno@clisp.org>
36775
36776         unistr/u*-next: Add missing dependencies.
36777         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36778         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36779         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36780
36781 2010-01-10  Bruno Haible  <bruno@clisp.org>
36782
36783         unistr/u8-mbsnlen: Fix return value for incomplete character.
36784         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36785         u8_mblen.
36786         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36787         Remove unistr/u8-mblen.
36788         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36789         u16_mblen.
36790         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36791         Remove unistr/u16-mblen.
36792
36793 2010-01-10  Bruno Haible  <bruno@clisp.org>
36794
36795         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36796         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36797         Reported by Brian Gough <bjg@gnu.org> and
36798         Chris Clayton <chris2553@googlemail.com> via
36799         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36800
36801 2010-01-09  Bruno Haible  <bruno@clisp.org>
36802
36803         unistr/u16-to-u32: Reject invalid input.
36804         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36805         u16_mbtouc.
36806         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36807         Remove unistr/u16-mbtouc.
36808
36809         unistr/u16-to-u8: Reject invalid input.
36810         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36811         u16_mbtouc.
36812         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36813         Remove unistr/u16-mbtouc.
36814
36815         unistr/u8-to-u32: Reject invalid input.
36816         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36817         u8_mbtouc.
36818         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36819         Remove unistr/u8-mbtouc.
36820
36821         unistr/u8-to-u16: Reject invalid input.
36822         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36823         u8_mbtouc.
36824         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36825         Remove unistr/u8-mbtouc.
36826
36827 2010-01-09  Bruno Haible  <bruno@clisp.org>
36828
36829         Tests for module 'getlogin'.
36830         * modules/getlogin-tests: New file.
36831         * tests/test-getlogin.c: New file.
36832
36833         New module 'getlogin'.
36834         * lib/unistd.in.h (getlogin): New declaration.
36835         * lib/getlogin.c: New file.
36836         * m4/getlogin.m4: New file.
36837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36838         HAVE_GETLOGIN.
36839         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36840         HAVE_GETLOGIN.
36841         * modules/getlogin: New file.
36842         * doc/posix-functions/getlogin.texi: Mention the new module.
36843         Reported by John W. Eaton <jwe@gnu.org>.
36844
36845 2010-01-09  Bruno Haible  <bruno@clisp.org>
36846
36847         getlogin_r: Support for native Windows.
36848         * lib/getlogin_r.c: Include <windows.h>
36849         (getlogin_r): Implement for native Windows.
36850         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36851         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36852         via John W. Eaton <jwe@gnu.org>.
36853
36854 2010-01-09  Bruno Haible  <bruno@clisp.org>
36855
36856         getlogin_r: Small fixes.
36857         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36858         succeeds.
36859         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36860         before testing whether getlogin_r is declared. No need to set
36861         HAVE_DECL_GETLOGIN_R to 1.
36862         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36863
36864 2010-01-09  Bruno Haible  <bruno@clisp.org>
36865
36866         * lib/unistd.in.h (getlogin_r): Add comment.
36867
36868 2010-01-09  Bruno Haible  <bruno@clisp.org>
36869
36870         Tests for module 'getlogin_r'.
36871         * modules/getlogin_r-tests: New file.
36872         * tests/test-getlogin_r.c: New file.
36873
36874 2010-01-09  Jim Meyering  <meyering@redhat.com>
36875
36876         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36877         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36878         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36879
36880 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36881
36882         * lib/dup2.c (rpl_dup2): Improve comment.
36883
36884 2010-01-08  Eric Blake  <ebb9@byu.net>
36885
36886         maint.mk: allow packages to add makefile @@ exceptions
36887         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36888         (sc_makefile_check): Rename...
36889         (sc_makefile_at_at_check): ...to this, and use hook.
36890
36891         dup2: work around mingw bug
36892         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36893         Reported by Simon Josefsson.
36894
36895 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36896
36897         glob: Fix C++ compilation.
36898         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36899         C++.
36900
36901 2010-01-07  Bruno Haible  <bruno@clisp.org>
36902
36903         Fix indentation of wctype.in.h, broken since 2007-01-06.
36904         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36905
36906 2010-01-07  Bruno Haible  <bruno@clisp.org>
36907
36908         mbslen: Avoid collision with system function.
36909         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36910         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36911         * m4/mbslen.m4: New file.
36912         * modules/mbslen (Files): Add it.
36913         (configure.ac): Invoke gl_MBSLEN.
36914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36915         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36917         via Ian Beckwith <ianb@erislabs.net>.
36918
36919 2010-01-07  Bruno Haible  <bruno@clisp.org>
36920
36921         dirent: Document the last fix.
36922         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36923
36924 2010-01-07  Bruno Haible  <bruno@clisp.org>
36925
36926         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36927         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36928         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36929         va_list are defined.
36930         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36931         Reported by Eric Blake.
36932
36933 2010-01-07  Bruno Haible  <bruno@clisp.org>
36934
36935         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36936         * modules/xlist (Depends-on): Add 'list',
36937         * modules/xoset (Depends-on): Add 'oset'.
36938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36939
36940 2010-01-07  Bruno Haible  <bruno@clisp.org>
36941
36942         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36943         * doc/posix-functions/strncasecmp.texi: Likewise.
36944
36945 2010-01-07  Bruno Haible  <bruno@clisp.org>
36946
36947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36948
36949 2010-01-07  John W. Eaton  <jwe@octave.org>
36950
36951         wctype: allow C++ use
36952         * lib/wctype.in.h: Add extern "C" block for C++.
36953
36954 2010-01-06  Eric Blake  <ebb9@byu.net>
36955
36956         maint.mk: detect incorrect GFDL usage
36957         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36958
36959 2010-01-06  Jim Meyering  <meyering@redhat.com>
36960         and Eric Blake  <ebb9@byu.net>
36961
36962         maint.mk: ignore multi-line copyright in NEWS
36963         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36964
36965 2010-01-06  Eric Blake  <ebb9@byu.net>
36966
36967         select: add missing dependency
36968         * modules/select-tests (Depends-on): Move sockets dependency...
36969         * modules/select (Depends-on): ...here.
36970         Reported by Ian Beckwith.
36971
36972         doc: regenerate INSTALL
36973         * doc/INSTALL: Reflect recent autoconf update.
36974         * doc/INSTALL.ISO: Likewise.
36975         * doc/INSTALL.UTF-8: Likewise.
36976
36977         pread: fix compilation on glibc
36978         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36979         Reported by Ralf Wildenhues.
36980
36981         dirent: fix test failure
36982         * lib/dirent.in.h (includes): Guarantee ino_t.
36983         Reported by Ralf Wildenhues.
36984
36985 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36986
36987         linkat, renameat: avoid bad free
36988         * lib/at-func2.c (at_func2): Fix typo.
36989         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36990
36991 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36992
36993         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36994         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36995         to avoid failure of symlink test later.
36996
36997 2010-01-06  Eric Blake  <ebb9@byu.net>
36998
36999         stdio, unistd: guarantee ssize_t
37000         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37001         2008 are exposed when needed.
37002         * lib/stdio.in.h (includes): Likewise.
37003         Reported by Ralf Wildenhues.
37004
37005 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37006
37007         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37008         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37009         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37010
37011 2010-01-06  Jim Meyering  <meyering@redhat.com>
37012
37013         readtokens: this module *does* require xalloc.h
37014         It uses only functions that were omitted by the old syntax-check rule.
37015         * lib/readtokens.c: Include "xalloc.h" once again.
37016         * modules/readtokens (Depends-on): Add xalloc.
37017         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37018
37019 2010-01-05  Eric Blake  <ebb9@byu.net>
37020
37021         maint: support 'make announcement' from a VPATH build
37022         * top/maint.mk (announcement): Look for correct NEWS file.
37023
37024 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37025
37026         utimens (fdutimens): ignore a negative FD, per contract
37027         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37028         when we have a valid file descriptor.  Otherwise, using a brand
37029         new glibc (with just-patched futimens that now fails with EBADF)
37030         would cause this function to fail with ENOSYS.
37031         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37032         See also http://bugzilla.redhat.com/552320.
37033
37034 2010-01-05  Eric Blake  <ebb9@byu.net>
37035
37036         strcase: document what it provides
37037         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37038         gnulib module.
37039         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37040         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37041
37042 2010-01-05  Jim Meyering  <meyering@redhat.com>
37043
37044         maint: remove useless inclusions of "xalloc.h"
37045         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37046         * lib/readtokens.c: Likewise.
37047         * lib/same.c: Likewise.
37048         * modules/getloadavg (Depends-on): Remove xalloc.
37049         * modules/readtokens: Likewise.
37050         * modules/same: Likewise.
37051
37052         maint.mk: include 4 more function names in alloca.h-checking regexp
37053         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37054         regexp.  Before, we would give a false-positive (saying alloca.h
37055         is included unnecessarily) when the only uses involved omitted symbols.
37056
37057         xalloc.h: use consistent formatting
37058         * lib/xalloc.h: Move declarations to start in the first column.
37059
37060 2010-01-05  Eric Blake  <ebb9@byu.net>
37061
37062         mkdir: avoid xalloc
37063         * lib/mkdir.c (includes): Drop unused header.
37064         Reported by John W. Eaton.
37065
37066 2010-01-04  Jim Meyering  <meyering@redhat.com>
37067
37068         nl_langinfo: avoid configure-time syntax error
37069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37070         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37071         the empty string.  Don't let that provoke a shell syntax error.
37072
37073         regcomp, regexec, fnmatch: avoid array bounds read error
37074         * lib/regcomp.c (build_equiv_class): From glibc:
37075         Use only the low 24 bits of a findidx return value as an index
37076         into the weights array.  Patch by Ulrich Drepper:
37077         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37078         * lib/regexec.c (check_node_accept_bytes): Likewise.
37079         * lib/fnmatch_loop.c (FCT): Likewise.
37080
37081         regcomp: skip collseq lookup when there are no rules
37082         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37084
37085         regcomp: recognize ill-formed { } expressions
37086         * lib/regcomp.c (parse_dup_op): From glibc:
37087         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37088
37089         regcomp: fix typo in comment
37090         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37091         s/satisfy/satisfies/.
37092
37093         regcomp: sync from glibc: remove dead store
37094         * lib/regcomp.c (duplicate_node_closure): Remove useless
37095         search_duplicated_node call and dead store.
37096
37097         regcomp: sync from glibc; always use nl_langinfo
37098         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37099         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37100         * modules/regex (Depends-on): Add nl_langinfo.
37101
37102 2010-01-04  Eric Blake  <ebb9@byu.net>
37103
37104         fdopendir: fix configure test
37105         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37106
37107 2010-01-01  Bruno Haible  <bruno@clisp.org>
37108
37109         wchar: Remove unused configure check.
37110         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37111
37112 2010-01-01  Eric Blake  <ebb9@byu.net>
37113
37114         headers: make check of system header explicit
37115         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37116         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37117         ourselves.
37118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37120         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37121         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37122         internals.
37123         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37124         missing.
37125         Suggested by Bruno Haible.
37126
37127 2010-01-01  Jim Meyering  <meyering@redhat.com>
37128
37129         ChangeLog: tweak to eliminate unnecessary copyright line
37130         * ChangeLog: Remove a copyright line that was mistakenly updated
37131         by today's update-copyright run.  Reported by Eric Blake.
37132
37133         test-update-copyright: don't let envvar setting cause test failure
37134         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37135
37136 2010-01-01  Bruno Haible  <bruno@clisp.org>
37137
37138         localename: Avoid gcc warning.
37139         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37140         function if it is not used.
37141
37142 2010-01-01  Jim Meyering  <meyering@redhat.com>
37143
37144         update nearly all FSF copyright year lists to include 2010
37145         Use the same procedure as for 2009, outlined in
37146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37147
37148         version-etc: set COPYRIGHT_YEAR to 2010
37149         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37150
37151 2009-12-31  Eric Blake  <ebb9@byu.net>
37152
37153         doc: correct availability of cygwin 1.5.x getopt
37154         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37155         variables.
37156         * doc/posix-functions/opterr.texi (opterr): Likewise.
37157         * doc/posix-functions/optind.texi (optind): Likewise.
37158         * doc/posix-functions/optopt.texi (optopt): Likewise.
37159         * doc/posix-functions/tzname.texi (tzname): Likewise.
37160
37161         openat: update maintainer
37162         * modules/openat (Maintainer): Add myself.
37163
37164         utimens: avoid shadowing warning
37165         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37166         buffers into one, to avoid shadowing, as well as avoiding a
37167         redundant stat.
37168         Reported by Jim Meyering.
37169
37170         test-dup2: avoid compiler warning
37171         * tests/test-dup2.c (is_inheritable): Only define if used.
37172
37173 2010-01-01  Bruno Haible  <bruno@clisp.org>
37174
37175         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37176         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37177         defined, use wctomb instead of wcrtomb.
37178
37179 2010-01-01  Bruno Haible  <bruno@clisp.org>
37180
37181         iconv: Reject native Solaris iconv.
37182         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37183         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37184
37185 2009-12-31  Bruno Haible  <bruno@clisp.org>
37186
37187         * tests/test-signal.c (main): Remove test of 'SIG'.
37188
37189 2009-12-31  Bruno Haible  <bruno@clisp.org>
37190
37191         spawn: Fix incomplete fix.
37192         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37193         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37194         warnings for GNULIB_POSIXCHECK again.
37195         Reported by Eric Blake.
37196
37197 2009-12-31  Bruno Haible  <bruno@clisp.org>
37198
37199         Avoid namespace pollution on glibc systems.
37200         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37201         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37202         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37203         glibc systems.
37204
37205 2009-12-31  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37208         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37209         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37210         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37211         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37212         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37213         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37214
37215 2009-12-31  Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37218         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37219         afterwards.
37220
37221 2009-12-31  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37224         SYS_UTSNAME_H.
37225
37226 2009-12-31  Bruno Haible  <bruno@clisp.org>
37227
37228         spawn: Fix misapplied patch.
37229         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37230         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37231         warnings for GNULIB_POSIXCHECK.
37232
37233 2009-12-31  Bruno Haible  <bruno@clisp.org>
37234
37235         times: Update after sys_times changed.
37236         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37237         * modules/times (Files): Add it.
37238         (configure.ac): Invoke gl_FUNC_TIMES.
37239
37240 2009-12-31  Bruno Haible  <bruno@clisp.org>
37241
37242         Use AC_C_INLINE where necessary.
37243         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37244         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37246         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37247         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37248         * m4/mbiter.m4 (gl_MBITER): Likewise.
37249         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37250         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37251         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37252         * modules/u64 (configure.ac): Likewise.
37253
37254 2009-12-31  Bruno Haible  <bruno@clisp.org>
37255
37256         Use AC_C_INLINE instead of module 'inline' where possible.
37257         * modules/inline (Description): Clarify purpose.
37258         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37259         * modules/count-one-bits (Depends-on): Remove inline.
37260         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37261         * modules/openat (Depends-on): Remove inline.
37262         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37263         instead of depending on module 'inline'.
37264         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37265         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37266         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37267         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37268         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37269         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37270         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37271         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37272         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37273         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37274         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37275         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37276         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37277         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37278         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37279         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37280         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37281         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37282         Likewise.
37283         * modules/unictype/property-ascii-hex-digit (Depends-on,
37284         configure.ac): Likewise.
37285         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37286         configure.ac): Likewise.
37287         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37288         configure.ac): Likewise.
37289         * modules/unictype/property-bidi-block-separator (Depends-on,
37290         configure.ac): Likewise.
37291         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37292         configure.ac): Likewise.
37293         * modules/unictype/property-bidi-common-separator (Depends-on,
37294         configure.ac): Likewise.
37295         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37296         Likewise.
37297         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37298         configure.ac): Likewise.
37299         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37300         configure.ac): Likewise.
37301         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37302         configure.ac): Likewise.
37303         * modules/unictype/property-bidi-european-digit (Depends-on,
37304         configure.ac): Likewise.
37305         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37306         configure.ac): Likewise.
37307         * modules/unictype/property-bidi-left-to-right (Depends-on,
37308         configure.ac): Likewise.
37309         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37310         configure.ac): Likewise.
37311         * modules/unictype/property-bidi-other-neutral (Depends-on,
37312         configure.ac): Likewise.
37313         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37314         Likewise.
37315         * modules/unictype/property-bidi-segment-separator (Depends-on,
37316         configure.ac): Likewise.
37317         * modules/unictype/property-bidi-whitespace (Depends-on,
37318         configure.ac): Likewise.
37319         * modules/unictype/property-combining (Depends-on, configure.ac):
37320         Likewise.
37321         * modules/unictype/property-composite (Depends-on, configure.ac):
37322         Likewise.
37323         * modules/unictype/property-currency-symbol (Depends-on,
37324         configure.ac): Likewise.
37325         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37326         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37327         Likewise.
37328         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37329         configure.ac): Likewise.
37330         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37331         Likewise.
37332         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37333         Likewise.
37334         * modules/unictype/property-extender (Depends-on, configure.ac):
37335         Likewise.
37336         * modules/unictype/property-format-control (Depends-on, configure.ac):
37337         Likewise.
37338         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37339         Likewise.
37340         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37341         Likewise.
37342         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37343         Likewise.
37344         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37345         Likewise.
37346         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37347         Likewise.
37348         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37349         Likewise.
37350         * modules/unictype/property-id-start (Depends-on, configure.ac):
37351         Likewise.
37352         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37353         Likewise.
37354         * modules/unictype/property-ids-binary-operator (Depends-on,
37355         configure.ac): Likewise.
37356         * modules/unictype/property-ids-trinary-operator (Depends-on,
37357         configure.ac): Likewise.
37358         * modules/unictype/property-ignorable-control (Depends-on,
37359         configure.ac): Likewise.
37360         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37361         Likewise.
37362         * modules/unictype/property-join-control (Depends-on, configure.ac):
37363         Likewise.
37364         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37365         Likewise.
37366         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37367         Likewise.
37368         * modules/unictype/property-logical-order-exception (Depends-on,
37369         configure.ac): Likewise.
37370         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37371         Likewise.
37372         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37373         * modules/unictype/property-non-break (Depends-on, configure.ac):
37374         Likewise.
37375         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37376         Likewise.
37377         * modules/unictype/property-numeric (Depends-on, configure.ac):
37378         Likewise.
37379         * modules/unictype/property-other-alphabetic (Depends-on,
37380         configure.ac): Likewise.
37381         * modules/unictype/property-other-default-ignorable-code-point
37382         (Depends-on, configure.ac): Likewise.
37383         * modules/unictype/property-other-grapheme-extend (Depends-on,
37384         configure.ac): Likewise.
37385         * modules/unictype/property-other-id-continue (Depends-on,
37386         configure.ac): Likewise.
37387         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37388         Likewise.
37389         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37390         Likewise.
37391         * modules/unictype/property-other-math (Depends-on, configure.ac):
37392         Likewise.
37393         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37394         Likewise.
37395         * modules/unictype/property-paired-punctuation (Depends-on,
37396         configure.ac): Likewise.
37397         * modules/unictype/property-paragraph-separator (Depends-on,
37398         configure.ac): Likewise.
37399         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37400         Likewise.
37401         * modules/unictype/property-pattern-white-space (Depends-on,
37402         configure.ac): Likewise.
37403         * modules/unictype/property-private-use (Depends-on, configure.ac):
37404         Likewise.
37405         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37406         Likewise.
37407         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37408         Likewise.
37409         * modules/unictype/property-radical (Depends-on, configure.ac):
37410         Likewise.
37411         * modules/unictype/property-sentence-terminal (Depends-on,
37412         configure.ac): Likewise.
37413         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37414         Likewise.
37415         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37416         * modules/unictype/property-terminal-punctuation (Depends-on,
37417         configure.ac): Likewise.
37418         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37419         Likewise.
37420         * modules/unictype/property-unassigned-code-value (Depends-on,
37421         configure.ac): Likewise.
37422         * modules/unictype/property-unified-ideograph (Depends-on,
37423         configure.ac): Likewise.
37424         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37425         Likewise.
37426         * modules/unictype/property-variation-selector (Depends-on,
37427         configure.ac): Likewise.
37428         * modules/unictype/property-white-space (Depends-on, configure.ac):
37429         Likewise.
37430         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37431         Likewise.
37432         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37433         Likewise.
37434         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37435         Likewise.
37436         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37437         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37438         Likewise.
37439
37440 2009-12-31  Bruno Haible  <bruno@clisp.org>
37441
37442         Remove unnecessary AC_C_INLINE invocation.
37443         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37444         since 2009-08-21.
37445
37446 2009-12-31  Jim Meyering  <meyering@redhat.com>
37447
37448         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37449         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37450         With this change, we can all remove the gpg_key_ID = ... definition
37451         from our respective cfg.mk files.
37452
37453         maint.mk: create announcement template in ~/, not in /tmp
37454         * top/maint.mk (emit_upload_commands): Adjust.
37455         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37456         Remove temporary file, .ci-msg.
37457
37458 2009-12-31  Eric Blake  <ebb9@byu.net>
37459
37460         link-warning: always build headers with link warnings
37461         * modules/arpa_inet (Makefile.am): Always build replacement
37462         header.
37463         * modules/ctype (Makefile.am): Likewise.
37464         * modules/dirent (Makefile.am): Likewise.
37465         * modules/inttypes (Makefile.am): Likewise.
37466         * modules/langinfo (Makefile.am): Likewise.
37467         * modules/locale (Makefile.am): Likewise.
37468         * modules/spawn (Makefile.am): Likewise.
37469         * modules/sys_file (Makefile.am): Likewise.
37470         * modules/sys_ioctl (Makefile.am): Likewise.
37471         * modules/sys_select (Makefile.am): Likewise.
37472         * modules/sys_socket (Makefile.am): Likewise.
37473         * modules/sys_times (Makefile.am): Likewise.
37474         * modules/sys_utsname (Makefile.am): Likewise.
37475         * modules/sys_wait (Makefile.am): Likewise.
37476         * modules/wchar (Makefile.am): Likewise.
37477         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37478         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37479         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37480         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37481         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37482         Likewise.
37483         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37484         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37485         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37486         Likewise.
37487         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37488         Likewise.
37489         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37491         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37493         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37495         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37496         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37497         (gl_WCHAR_H_DEFAULTS): Likewise.
37498
37499 2009-12-31  Eric Blake  <ebb9@byu.net>
37500
37501         signal, spawn: use link warnings
37502         * lib/signal.in.h (sigset_t): Make unconditional.
37503         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37504         (sigpending, sigprocmask, sigaction): Add link warnings.
37505         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37506         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37507         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37508         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37509         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37510         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37511         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37512         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37513         (posix_spawn_file_actions_destroy)
37514         (posix_spawn_file_actions_addopen)
37515         (posix_spawn_file_actions_addclose)
37516         (posix_spawn_file_actions_adddup2): Likewise.
37517         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37518         * tests/test-signal.c (main): Enhance test.
37519
37520         spawn: improve wrapper support
37521         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37522         (gl_SPAWN_H_DEFAULTS): New defaults.
37523         * modules/spawn (Makefile.am): Substitute them.
37524         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37525         Only declare if missing or broken.
37526
37527         sys_times, sys_utsname: use include_next
37528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37529         header.
37530         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37532         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37533         * modules/sys_times (Depends-on): Add include_next.
37534         (Makefile.am): Substitute additional values.
37535         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37536         * lib/sys_times.in.h (includes): Include native header, if
37537         available.
37538         * lib/sys_utsname.in.h (includes): Likewise.
37539         * tests/test-sys_times.c (main): Enhance test.
37540
37541         fdutimensat: revert prior patch
37542         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37543         utimens.h.
37544         Reported by Bruno Haible.
37545
37546 2009-12-30  Eric Blake  <ebb9@byu.net>
37547
37548         sys_wait: drop link-warning dependency
37549         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37550         link-warning efforts.
37551         * lib/sys_wait.in.h: Likewise.
37552
37553         fdutimensat: remove bogus dependency
37554         * modules/fdutimensat (Depends-on): Drop inline.
37555
37556         unistd: fix typo
37557         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37558
37559 2009-12-30  Bruno Haible  <bruno@clisp.org>
37560
37561         Fix compilation error with Solaris cc.
37562         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37563         * lib/unicase/u16-is-invariant.c: Likewise.
37564         * lib/unicase/u32-is-invariant.c: Likewise.
37565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37566
37567 2009-12-30  Bruno Haible  <bruno@clisp.org>
37568
37569         Fix test crash.
37570         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37571         locales.
37572         Reported by Simon Josefsson <simon@josefsson.org>.
37573
37574 2009-12-30  Bruno Haible  <bruno@clisp.org>
37575
37576         Fix compilation error on most platforms.
37577         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37578         Reported by Simon Josefsson <simon@josefsson.org>
37579         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37580
37581 2009-12-30  Eric Blake  <ebb9@byu.net>
37582
37583         futimens, utimensat: work around ntfs-3g bug
37584         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37585         a ctime bug is present, and expand workaround to cover ntfs-3g.
37586         * lib/utimens.c (fdutimens, lutimens): Likewise.
37587         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37588         (validate_timespec): Adjust return value.
37589         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37590         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37591         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37592
37593 2009-12-29  Eric Blake  <ebb9@byu.net>
37594
37595         link-warning: make usage consistent
37596         * modules/ctype (Depends-on): Add link-warning.
37597         (Makefile.am): Update rules accordingly.
37598         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37599         * modules/locale (Depends-on, Makefile.am): Likewise.
37600         * modules/sys_file (Makefile.am): Likewise.
37601         * modules/getopt-posix (Makefile.am): Delete unused link warning
37602         efforts.
37603         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37604         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37605         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37606         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37607
37608         stdio: remove unused variables
37609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37610         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37611         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37612
37613         tests: test more substitute headers
37614         * modules/ctype-tests: New file.
37615         * modules/dirent-tests: Likewise.
37616         * modules/spawn-tests: Likewise.
37617         * modules/sys_file-tests: Likewise.
37618         * modules/sys_ioctl-tests: Likewise.
37619         * modules/sys_wait-tests: Likewise.
37620         * tests/test-ctype.c: Likewise.
37621         * tests/test-dirent.c: Likewise.
37622         * tests/test-spawn.c: Likewise.
37623         * tests/test-sys_file.c: Likewise.
37624         * tests/test-sys_ioctl.c: Likewise.
37625         * tests/test-sys_wait.c: Likewise.
37626         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37627         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37628         whether or not flock is in use.
37629
37630         tests: remove License section from module
37631         * modules/arpa_inet-tests: Remove unneeded section.
37632         * modules/byteswap-tests: Likewise.
37633         * modules/ceilf-tests: Likewise.
37634         * modules/ceill-tests: Likewise.
37635         * modules/crypto/des-tests: Likewise.
37636         * modules/crypto/gc-arcfour-tests: Likewise.
37637         * modules/crypto/gc-arctwo-tests: Likewise.
37638         * modules/crypto/gc-des-tests: Likewise.
37639         * modules/crypto/gc-hmac-md5-tests: Likewise.
37640         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37641         * modules/crypto/gc-md2-tests: Likewise.
37642         * modules/crypto/gc-md4-tests: Likewise.
37643         * modules/crypto/gc-md5-tests: Likewise.
37644         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37645         * modules/crypto/gc-rijndael-tests: Likewise.
37646         * modules/crypto/gc-sha1-tests: Likewise.
37647         * modules/crypto/gc-tests: Likewise.
37648         * modules/crypto/md2-tests: Likewise.
37649         * modules/crypto/md4-tests: Likewise.
37650         * modules/fcntl-h-tests: Likewise.
37651         * modules/floorf-tests: Likewise.
37652         * modules/floorl-tests: Likewise.
37653         * modules/frexp-nolibm-tests: Likewise.
37654         * modules/frexp-tests: Likewise.
37655         * modules/frexpl-nolibm-tests: Likewise.
37656         * modules/frexpl-tests: Likewise.
37657         * modules/getaddrinfo-tests: Likewise.
37658         * modules/inttypes-tests: Likewise.
37659         * modules/isfinite-tests: Likewise.
37660         * modules/isinf-tests: Likewise.
37661         * modules/ldexpl-tests: Likewise.
37662         * modules/locale-tests: Likewise.
37663         * modules/math-tests: Likewise.
37664         * modules/netdb-tests: Likewise.
37665         * modules/netinet_in-tests: Likewise.
37666         * modules/printf-frexp-tests: Likewise.
37667         * modules/printf-frexpl-tests: Likewise.
37668         * modules/priv-set-tests: Likewise.
37669         * modules/random_r-tests: Likewise.
37670         * modules/round-tests: Likewise.
37671         * modules/roundf-tests: Likewise.
37672         * modules/roundl-tests: Likewise.
37673         * modules/search-tests: Likewise.
37674         * modules/select-tests: Likewise.
37675         * modules/signal-tests: Likewise.
37676         * modules/stdbool-tests: Likewise.
37677         * modules/stddef-tests: Likewise.
37678         * modules/stdint-tests: Likewise.
37679         * modules/stdio-tests: Likewise.
37680         * modules/stdlib-tests: Likewise.
37681         * modules/string-tests: Likewise.
37682         * modules/strings-tests: Likewise.
37683         * modules/sys_select-tests: Likewise.
37684         * modules/sys_socket-tests: Likewise.
37685         * modules/sys_stat-tests: Likewise.
37686         * modules/sys_time-tests: Likewise.
37687         * modules/sys_utsname-tests: Likewise.
37688         * modules/sysexits-tests: Likewise.
37689         * modules/time-tests: Likewise.
37690         * modules/trunc-tests: Likewise.
37691         * modules/truncf-tests: Likewise.
37692         * modules/truncl-tests: Likewise.
37693         * modules/tsearch-tests: Likewise.
37694         * modules/unistd-tests: Likewise.
37695         * modules/wchar-tests: Likewise.
37696         * modules/wctype-tests: Likewise.
37697
37698         tests: fix license on several tests
37699         * tests/test-des.c: Update to GPLv3+.
37700         * tests/test-flock.c: Likewise.
37701         * tests/test-fsync.c: Likewise.
37702         * tests/test-futimens.h: Likewise.
37703         * tests/test-gc-arcfour.c: Likewise.
37704         * tests/test-gc-arctwo.c: Likewise.
37705         * tests/test-gc-des.c: Likewise.
37706         * tests/test-gc-hmac-md5.c: Likewise.
37707         * tests/test-gc-hmac-sha1.c: Likewise.
37708         * tests/test-gc-md2.c: Likewise.
37709         * tests/test-gc-md4.c: Likewise.
37710         * tests/test-gc-md5.c: Likewise.
37711         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37712         * tests/test-gc-rijndael.c: Likewise.
37713         * tests/test-gc-sha1.c: Likewise.
37714         * tests/test-gc.c: Likewise.
37715         * tests/test-getcwd.c: Likewise.
37716         * tests/test-link.c: Likewise.
37717         * tests/test-link.h: Likewise.
37718         * tests/test-lutimens.h: Likewise.
37719         * tests/test-md2.c: Likewise.
37720         * tests/test-md4.c: Likewise.
37721         * tests/test-mkdir.h: Likewise.
37722         * tests/test-rename.c: Likewise.
37723         * tests/test-rename.h: Likewise.
37724         * tests/test-safe-alloc.c: Likewise.
37725         * tests/test-utimens-common.h: Likewise.
37726         * tests/test-utimens.h: Likewise.
37727
37728         maint: sync license texts
37729         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37730         * doc/gpl-3.0.texi: Revert copyright year update.
37731         * doc/lgpl-3.0.texi: Likewise.
37732
37733 2009-12-29  Jim Meyering  <meyering@redhat.com>
37734
37735         update nearly all FSF copyright year lists to include 2009
37736         The files named by the following are exempted:
37737             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37738               test -f "$dst" && { echo "$dst"; continue; }
37739               test -d "$dst" || continue
37740               echo "$dst"/$(basename "$src")
37741             done > exempt
37742             git ls-files tests/unictype >> exempt
37743         In the remaining files, convert to all-interval notation if
37744         - there is already at least one year interval like 2000-2003
37745         - the file is maintained by me
37746         - the file is in lib/uni*/, where that style already prevails
37747         Otherwise, use update-copyright's default.
37748
37749 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37750         and Eric Blake  <ebb9@byu.net>
37751
37752         tests: don't require debug system() to pass
37753         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37754         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37755         * tests/test-unlink.h (test_unlink_func): Likewise.
37756         * tests/test-fstatat.c (main): ...into callers.
37757         * tests/test-lstat.c (main): Likewise.
37758         * tests/test-rmdir.c (main): Likewise.
37759         * tests/test-unlink.c (main): Likewise.
37760         * tests/test-unlinkat.c (main): Likewise.
37761         * tests/test-areadlink-with-size.c (main): Don't require a
37762         debug-only system call to pass, aiding cross-testing to mingw.
37763         * tests/test-areadlink.c (main): Likewise.
37764         * tests/test-areadlinkat-with-size.c (main): Likewise.
37765         * tests/test-areadlinkat.c (main): Likewise.
37766         * tests/test-canonicalize-lgpl.c (main): Likewise.
37767         * tests/test-canonicalize.c (main): Likewise.
37768         * tests/test-chown.c (main): Likewise.
37769         * tests/test-fchownat.c (main): Likewise.
37770         * tests/test-lchown.c (main): Likewise.
37771         * tests/test-fdutimensat.c (main): Likewise.
37772         * tests/test-futimens.c (main): Likewise.
37773         * tests/test-link.c (main): Likewise.
37774         * tests/test-linkat.c (main): Likewise.
37775         * tests/test-mkdir.c (main): Likewise.
37776         * tests/test-mkdirat.c (main): Likewise.
37777         * tests/test-mkfifo.c (main): Likewise.
37778         * tests/test-mkfifoat.c (main): Likewise.
37779         * tests/test-mknod.c (main): Likewise.
37780         * tests/test-readlink.c (main): Likewise.
37781         * tests/test-remove.c (main): Likewise.
37782         * tests/test-rename.c (main): Likewise.
37783         * tests/test-renameat.c (main): Likewise.
37784         * tests/test-symlink.c (main): Likewise.
37785         * tests/test-symlinkat.c (main): Likewise.
37786         * tests/test-utimens.c (main): Likewise.
37787         * tests/test-utimensat.c (main): Likewise.
37788
37789 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37790
37791         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37792         on $(UNUSED_PARAMETER_H) to avoid build failure.
37793
37794 2009-12-28  Jim Meyering  <meyering@redhat.com>
37795
37796         update-copyright: you may specify a max. line length other than 72
37797         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37798
37799         maint: use consistent FSF copyright line syntax
37800         * lib/posixtm.c: Add missing comma in FSF copyright line.
37801         * lib/posixtm.h: Likewise.
37802         * lib/getugroups.c: Add missing ", Inc.".
37803
37804         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37805         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37806         FSF copyright line.  Remove trailing blanks.
37807
37808 2009-12-28  Eric Blake  <ebb9@byu.net>
37809
37810         test-dup2: reduce dependencies
37811         * modules/cloexec (Configure.ac): Set witness.
37812         * modules/dup2-tests (Depends-on): Drop cloexec.
37813         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37814         not present.
37815         Suggested by Bruno Haible.
37816
37817 2009-12-26  Bruno Haible  <bruno@clisp.org>
37818
37819         Remove an unneeded dependency.
37820         * modules/fseterr (Depends-on): Remove dup2.
37821
37822 2009-12-26  Eric Blake  <ebb9@byu.net>
37823
37824         tests: use macros.h in more places
37825         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37826         (ASSERT_STREAM): Provide default of stderr.
37827         * tests/test-dirent-safer.c: Include macros.h, using alternate
37828         stream for assertions.
37829         * tests/test-dup-safer.c: Likewise.
37830         * tests/test-freopen-safer.c: Likewise.
37831         * tests/test-getopt.c: Likewise.
37832         * tests/test-openat-safer.c: Likewise.
37833         * tests/test-pipe.c: Likewise.
37834         * tests/test-popen-safer.c: Likewise.
37835         * modules/dirent-safer-tests (Files): Include macros.h.
37836         * modules/unistd-safer-tests (Files): Likewise.
37837         * modules/freopen-safer-tests (Files): Likewise.
37838         * modules/getopt-posix-tests (Files): Likewise.
37839         * modules/openat-safer-tests (Files): Likewise.
37840         * modules/pipe-tests (Files): Likewise.
37841
37842 2009-12-26  Bruno Haible  <bruno@clisp.org>
37843
37844         javacomp: Portability fix.
37845         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37846         that it also works on Solaris.
37847
37848 2009-12-26  Bruno Haible  <bruno@clisp.org>
37849
37850         localename: Fix storage allocation of gl_locale_name_thread's result.
37851         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37852         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37853         all platforms that have 'uselocale'.
37854         (gl_locale_name_thread_unsafe): New function, extracted from
37855         gl_locale_name_thread.
37856         (gl_locale_name_thread): Call struniq on all platforms that have
37857         'uselocale'.
37858         * tests/test-localename.c (test_locale_name_thread): Check that the
37859         resulting strings are permanently allocated.
37860         * modules/localename-tests (Depends-on): Add strdup.
37861
37862 2009-12-26  Bruno Haible  <bruno@clisp.org>
37863
37864         * tests/test-localename.c (categories): Fill in the strings.
37865
37866 2009-12-26  Jim Meyering  <meyering@redhat.com>
37867
37868         isdir: complete the removal of m4/isdir.m4
37869         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37870
37871         isdir: clean up, since at least grep still uses it
37872         * lib/isdir.c: Include "isdir.h".
37873         (S_ISDIR): Remove now-unneeded definition.
37874         * modules/isdir (Files): Add lib/isdir.h.
37875         * lib/isdir.h: New file, with declaration.
37876         * m4/isdir.m4: Remove file -- unneeded.
37877
37878 2009-12-25  Bruno Haible  <bruno@clisp.org>
37879
37880         selinux-h: Make generated .h files standalone.
37881         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37882         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37883         * lib/se-selinux.in.h: Likewise.
37884         * modules/selinux-h (Depends-on): Add unused-parameter.
37885         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37886         selinux/selinux.h and selinux/context.h.
37887         Suggested by Eric Blake.
37888
37889 2009-12-25  Bruno Haible  <bruno@clisp.org>
37890
37891         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37892         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37893         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37894         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37895         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37896
37897 2009-12-24  Bruno Haible  <bruno@clisp.org>
37898
37899         openat: Fix warning.
37900         * lib/openat-proc.c: Include <unistd.h>.
37901
37902 2009-12-24  Bruno Haible  <bruno@clisp.org>
37903
37904         New module 'unused-parameter'.
37905         * build-aux/unused-parameter.h: New file, extracted from earlier
37906         gnulib-common.m4.
37907         * modules/unused-parameter: New file.
37908         * lib/unistr.h: Include unused-parameter.h.
37909         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37910         _GL_UNUSED.
37911         * modules/unistr/base (Depends-on): Add unused-parameter.
37912
37913 2009-12-24  Bruno Haible  <bruno@clisp.org>
37914
37915         Add missing dependencies to 'extensions' module.
37916         * m4/extensions.m4: Add comment.
37917         * modules/accept4 (Depends-on): Add extensions.
37918         * modules/dup3 (Depends-on): Likewise.
37919         * modules/fcntl (Depends-on): Likewise.
37920         * modules/futimens (Depends-on): Likewise.
37921         * modules/mknod (Depends-on): Likewise.
37922         * modules/pipe2 (Depends-on): Likewise.
37923         * modules/stat-time (Depends-on): Likewise.
37924         * modules/strcasestr-simple (Depends-on): Likewise.
37925         * modules/strsignal (Depends-on): Likewise.
37926         * modules/utimensat (Depends-on): Likewise.
37927         * modules/localcharset (Depends-on): Likewise. Needed because of
37928         gl_FCNTL_O_FLAGS.
37929         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37930         AC_TYPE_MBSTATE_T.
37931         * modules/wcsnrtombs (Depends-on): Likewise.
37932         * modules/wcsrtombs (Depends-on): Likewise.
37933
37934 2009-12-24  Bruno Haible  <bruno@clisp.org>
37935
37936         binary-io: Avoid gcc warning due to SET_BINARY.
37937         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37938         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37939
37940 2009-12-24  Bruno Haible  <bruno@clisp.org>
37941
37942         Avoid future namespace pollution on glibc systems.
37943         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37944         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37945         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37946         glibc systems.
37947
37948 2009-12-24  Bruno Haible  <bruno@clisp.org>
37949
37950         Refactor common macros used in tests.
37951         * tests/macros.h: New file.
37952         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37953         and/or <stdlib.h>, if appropriate.
37954         (ASSERT, SIZEOF): Remove macros.
37955         * tests/test-areadlink-with-size.c: Likewise.
37956         * tests/test-areadlinkat.c: Likewise.
37957         * tests/test-areadlinkat-with-size.c: Likewise.
37958         * tests/test-argmatch.c: Likewise.
37959         * tests/test-argv-iter.c: Likewise.
37960         * tests/test-array-mergesort.c: Likewise.
37961         * tests/test-array_list.c: Likewise.
37962         * tests/test-array_oset.c: Likewise.
37963         * tests/test-avltree_list.c: Likewise.
37964         * tests/test-avltree_oset.c: Likewise.
37965         * tests/test-avltreehash_list.c: Likewise.
37966         * tests/test-base64.c: Likewise.
37967         * tests/test-binary-io.c: Likewise.
37968         * tests/test-bitrotate.c: Likewise.
37969         * tests/test-btowc.c: Likewise.
37970         * tests/test-byteswap.c: Likewise.
37971         * tests/test-c-ctype.c: Likewise.
37972         * tests/test-c-stack.c: Likewise.
37973         * tests/test-c-strcasecmp.c: Likewise.
37974         * tests/test-c-strcasestr.c: Likewise.
37975         * tests/test-c-strncasecmp.c: Likewise.
37976         * tests/test-c-strstr.c: Likewise.
37977         * tests/test-canonicalize-lgpl.c: Likewise.
37978         * tests/test-canonicalize.c: Likewise.
37979         * tests/test-carray_list.c: Likewise.
37980         * tests/test-ceilf1.c: Likewise.
37981         * tests/test-ceilf2.c: Likewise.
37982         * tests/test-ceill.c: Likewise.
37983         * tests/test-chown.c: Likewise.
37984         * tests/test-cloexec.c: Likewise.
37985         * tests/test-copy-acl.c: Likewise.
37986         * tests/test-copy-file.c: Likewise.
37987         * tests/test-count-one-bits.c: Likewise.
37988         * tests/test-dprintf-posix.c: Likewise.
37989         * tests/test-dup2.c: Likewise.
37990         * tests/test-dup3.c: Likewise.
37991         * tests/test-duplocale.c: Likewise.
37992         * tests/test-fbufmode.c: Likewise.
37993         * tests/test-fchdir.c: Likewise.
37994         * tests/test-fchownat.c: Likewise.
37995         * tests/test-fcntl-safer.c: Likewise.
37996         * tests/test-fcntl.c: Likewise.
37997         * tests/test-fdopendir.c: Likewise.
37998         * tests/test-fdutimensat.c: Likewise.
37999         * tests/test-fflush2.c: Likewise.
38000         * tests/test-file-has-acl.c: Likewise.
38001         * tests/test-filevercmp.c: Likewise.
38002         * tests/test-flock.c: Likewise.
38003         * tests/test-floorf1.c: Likewise.
38004         * tests/test-floorf2.c: Likewise.
38005         * tests/test-floorl.c: Likewise.
38006         * tests/test-fnmatch.c: Likewise.
38007         * tests/test-fopen.h: Likewise.
38008         * tests/test-fpending.c: Likewise.
38009         * tests/test-fprintf-posix.c: Likewise.
38010         * tests/test-fpurge.c: Likewise.
38011         * tests/test-freadable.c: Likewise.
38012         * tests/test-freadahead.c: Likewise.
38013         * tests/test-freading.c: Likewise.
38014         * tests/test-freadptr.c: Likewise.
38015         * tests/test-freadptr2.c: Likewise.
38016         * tests/test-freadseek.c: Likewise.
38017         * tests/test-freopen.c: Likewise.
38018         * tests/test-frexp.c: Likewise.
38019         * tests/test-frexpl.c: Likewise.
38020         * tests/test-fseek.c: Likewise.
38021         * tests/test-fseeko.c: Likewise.
38022         * tests/test-fstatat.c: Likewise.
38023         * tests/test-fstrcmp.c: Likewise.
38024         * tests/test-fsync.c: Likewise.
38025         * tests/test-ftell.c: Likewise.
38026         * tests/test-ftello.c: Likewise.
38027         * tests/test-func.c: Likewise.
38028         * tests/test-futimens.c: Likewise.
38029         * tests/test-fwritable.c: Likewise.
38030         * tests/test-fwriting.c: Likewise.
38031         * tests/test-getcwd.c: Likewise.
38032         * tests/test-getdate.c: Likewise.
38033         * tests/test-getdelim.c: Likewise.
38034         * tests/test-getdtablesize.c: Likewise.
38035         * tests/test-getgroups.c: Likewise.
38036         * tests/test-getline.c: Likewise.
38037         * tests/test-getndelim2.c: Likewise.
38038         * tests/test-glob.c: Likewise.
38039         * tests/test-hash.c: Likewise.
38040         * tests/test-i-ring.c: Likewise.
38041         * tests/test-iconv-utf.c: Likewise.
38042         * tests/test-iconv.c: Likewise.
38043         * tests/test-idpriv-drop.c: Likewise.
38044         * tests/test-idpriv-droptemp.c: Likewise.
38045         * tests/test-inet_ntop.c: Likewise.
38046         * tests/test-inet_pton.c: Likewise.
38047         * tests/test-isblank.c: Likewise.
38048         * tests/test-isfinite.c: Likewise.
38049         * tests/test-isinf.c: Likewise.
38050         * tests/test-isnan.c: Likewise.
38051         * tests/test-isnand.h: Likewise.
38052         * tests/test-isnanf.h: Likewise.
38053         * tests/test-isnanl.h: Likewise.
38054         * tests/test-lchown.c: Likewise.
38055         * tests/test-ldexpl.c: Likewise.
38056         * tests/test-link.c: Likewise.
38057         * tests/test-linkat.c: Likewise.
38058         * tests/test-linked_list.c: Likewise.
38059         * tests/test-linkedhash_list.c: Likewise.
38060         * tests/test-localename.c: Likewise.
38061         * tests/test-lseek.c: Likewise.
38062         * tests/test-lstat.c: Likewise.
38063         * tests/test-mbmemcasecmp.c: Likewise.
38064         * tests/test-mbmemcasecoll.c: Likewise.
38065         * tests/test-mbrtowc.c: Likewise.
38066         * tests/test-mbscasecmp.c: Likewise.
38067         * tests/test-mbscasestr1.c: Likewise.
38068         * tests/test-mbscasestr2.c: Likewise.
38069         * tests/test-mbscasestr3.c: Likewise.
38070         * tests/test-mbscasestr4.c: Likewise.
38071         * tests/test-mbschr.c: Likewise.
38072         * tests/test-mbscspn.c: Likewise.
38073         * tests/test-mbsinit.c: Likewise.
38074         * tests/test-mbsncasecmp.c: Likewise.
38075         * tests/test-mbsnrtowcs.c: Likewise.
38076         * tests/test-mbspbrk.c: Likewise.
38077         * tests/test-mbspcasecmp.c: Likewise.
38078         * tests/test-mbsrchr.c: Likewise.
38079         * tests/test-mbsrtowcs.c: Likewise.
38080         * tests/test-mbsspn.c: Likewise.
38081         * tests/test-mbsstr1.c: Likewise.
38082         * tests/test-mbsstr2.c: Likewise.
38083         * tests/test-mbsstr3.c: Likewise.
38084         * tests/test-memchr.c: Likewise.
38085         * tests/test-memchr2.c: Likewise.
38086         * tests/test-memcmp.c: Likewise.
38087         * tests/test-memmem.c: Likewise.
38088         * tests/test-memrchr.c: Likewise.
38089         * tests/test-mkdir.c: Likewise.
38090         * tests/test-mkdirat.c: Likewise.
38091         * tests/test-mkfifo.c: Likewise.
38092         * tests/test-mkfifoat.c: Likewise.
38093         * tests/test-mknod.c: Likewise.
38094         * tests/test-nanosleep.c: Likewise.
38095         * tests/test-nl_langinfo.c: Likewise.
38096         * tests/test-obstack-printf.c: Likewise.
38097         * tests/test-open.c: Likewise.
38098         * tests/test-openat.c: Likewise.
38099         * tests/test-pipe-filter-gi1.c: Likewise.
38100         * tests/test-pipe-filter-gi2-main.c: Likewise.
38101         * tests/test-pipe-filter-ii1.c: Likewise.
38102         * tests/test-pipe-filter-ii2-main.c: Likewise.
38103         * tests/test-pipe2.c: Likewise.
38104         * tests/test-popen.h: Likewise.
38105         * tests/test-posixtm.c: Likewise.
38106         * tests/test-pread.c: Likewise.
38107         * tests/test-printf-frexp.c: Likewise.
38108         * tests/test-printf-frexpl.c: Likewise.
38109         * tests/test-printf-posix.c: Likewise.
38110         * tests/test-priv-set.c: Likewise.
38111         * tests/test-quotearg.c: Likewise.
38112         * tests/test-random_r.c: Likewise.
38113         * tests/test-rawmemchr.c: Likewise.
38114         * tests/test-rbtree_list.c: Likewise.
38115         * tests/test-rbtree_oset.c: Likewise.
38116         * tests/test-rbtreehash_list.c: Likewise.
38117         * tests/test-readlink.c: Likewise.
38118         * tests/test-remove.c: Likewise.
38119         * tests/test-rename.c: Likewise.
38120         * tests/test-renameat.c: Likewise.
38121         * tests/test-rmdir.c: Likewise.
38122         * tests/test-round1.c: Likewise.
38123         * tests/test-roundf1.c: Likewise.
38124         * tests/test-roundl.c: Likewise.
38125         * tests/test-safe-alloc.c: Likewise.
38126         * tests/test-sameacls.c: Likewise.
38127         * tests/test-set-mode-acl.c: Likewise.
38128         * tests/test-setenv.c: Likewise.
38129         * tests/test-sigaction.c: Likewise.
38130         * tests/test-signbit.c: Likewise.
38131         * tests/test-sleep.c: Likewise.
38132         * tests/test-snprintf-posix.c: Likewise.
38133         * tests/test-snprintf.c: Likewise.
38134         * tests/test-sprintf-posix.c: Likewise.
38135         * tests/test-stat-time.c: Likewise.
38136         * tests/test-stat.c: Likewise.
38137         * tests/test-strcasestr.c: Likewise.
38138         * tests/test-strchrnul.c: Likewise.
38139         * tests/test-strerror.c: Likewise.
38140         * tests/test-striconv.c: Likewise.
38141         * tests/test-striconveh.c: Likewise.
38142         * tests/test-striconveha.c: Likewise.
38143         * tests/test-strsignal.c: Likewise.
38144         * tests/test-strstr.c: Likewise.
38145         * tests/test-strtod.c: Likewise.
38146         * tests/test-strverscmp.c: Likewise.
38147         * tests/test-symlink.c: Likewise.
38148         * tests/test-symlinkat.c: Likewise.
38149         * tests/test-trunc1.c: Likewise.
38150         * tests/test-trunc2.c: Likewise.
38151         * tests/test-truncf1.c: Likewise.
38152         * tests/test-truncf2.c: Likewise.
38153         * tests/test-truncl.c: Likewise.
38154         * tests/test-uname.c: Likewise.
38155         * tests/test-unlink.c: Likewise.
38156         * tests/test-unlinkat.c: Likewise.
38157         * tests/test-unsetenv.c: Likewise.
38158         * tests/test-usleep.c: Likewise.
38159         * tests/test-utimens.c: Likewise.
38160         * tests/test-utimensat.c: Likewise.
38161         * tests/test-vasnprintf-posix.c: Likewise.
38162         * tests/test-vasnprintf-posix2.c: Likewise.
38163         * tests/test-vasnprintf.c: Likewise.
38164         * tests/test-vasprintf-posix.c: Likewise.
38165         * tests/test-vasprintf.c: Likewise.
38166         * tests/test-vdprintf-posix.c: Likewise.
38167         * tests/test-vfprintf-posix.c: Likewise.
38168         * tests/test-vprintf-posix.c: Likewise.
38169         * tests/test-vsnprintf-posix.c: Likewise.
38170         * tests/test-vsnprintf.c: Likewise.
38171         * tests/test-vsprintf-posix.c: Likewise.
38172         * tests/test-wcrtomb.c: Likewise.
38173         * tests/test-wcsnrtombs.c: Likewise.
38174         * tests/test-wcsrtombs.c: Likewise.
38175         * tests/test-wctype.c: Likewise.
38176         * tests/test-wcwidth.c: Likewise.
38177         * tests/test-xfprintf-posix.c: Likewise.
38178         * tests/test-xmemdup0.c: Likewise.
38179         * tests/test-xprintf-posix.c: Likewise.
38180         * tests/test-xvasprintf.c: Likewise.
38181         * tests/unicase/test-locale-language.c: Likewise.
38182         * tests/unicase/test-mapping-part1.h: Likewise.
38183         * tests/unicase/test-predicate-part1.h: Likewise.
38184         * tests/unicase/test-u8-casecmp.c: Likewise.
38185         * tests/unicase/test-u8-casecoll.c: Likewise.
38186         * tests/unicase/test-u8-casefold.c: Likewise.
38187         * tests/unicase/test-u8-is-cased.c: Likewise.
38188         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38189         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38190         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38191         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38192         * tests/unicase/test-u8-tolower.c: Likewise.
38193         * tests/unicase/test-u8-totitle.c: Likewise.
38194         * tests/unicase/test-u8-toupper.c: Likewise.
38195         * tests/unicase/test-u16-casecmp.c: Likewise.
38196         * tests/unicase/test-u16-casecoll.c: Likewise.
38197         * tests/unicase/test-u16-casefold.c: Likewise.
38198         * tests/unicase/test-u16-is-cased.c: Likewise.
38199         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38200         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38201         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38202         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38203         * tests/unicase/test-u16-tolower.c: Likewise.
38204         * tests/unicase/test-u16-totitle.c: Likewise.
38205         * tests/unicase/test-u16-toupper.c: Likewise.
38206         * tests/unicase/test-u32-casecmp.c: Likewise.
38207         * tests/unicase/test-u32-casecoll.c: Likewise.
38208         * tests/unicase/test-u32-casefold.c: Likewise.
38209         * tests/unicase/test-u32-is-cased.c: Likewise.
38210         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38211         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38212         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38213         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38214         * tests/unicase/test-u32-tolower.c: Likewise.
38215         * tests/unicase/test-u32-totitle.c: Likewise.
38216         * tests/unicase/test-u32-toupper.c: Likewise.
38217         * tests/unicase/test-ulc-casecmp.c: Likewise.
38218         * tests/unicase/test-ulc-casecoll.c: Likewise.
38219         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38220         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38221         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38222         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38223         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38224         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38225         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38226         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38227         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38228         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38231         * tests/unictype/test-bidi_byname.c: Likewise.
38232         * tests/unictype/test-bidi_name.c: Likewise.
38233         * tests/unictype/test-bidi_of.c: Likewise.
38234         * tests/unictype/test-bidi_test.c: Likewise.
38235         * tests/unictype/test-block_list.c: Likewise.
38236         * tests/unictype/test-block_of.c: Likewise.
38237         * tests/unictype/test-block_test.c: Likewise.
38238         * tests/unictype/test-categ_and.c: Likewise.
38239         * tests/unictype/test-categ_and_not.c: Likewise.
38240         * tests/unictype/test-categ_byname.c: Likewise.
38241         * tests/unictype/test-categ_name.c: Likewise.
38242         * tests/unictype/test-categ_none.c: Likewise.
38243         * tests/unictype/test-categ_of.c: Likewise.
38244         * tests/unictype/test-categ_or.c: Likewise.
38245         * tests/unictype/test-categ_test_withtable.c: Likewise.
38246         * tests/unictype/test-combining.c: Likewise.
38247         * tests/unictype/test-decdigit.c: Likewise.
38248         * tests/unictype/test-digit.c: Likewise.
38249         * tests/unictype/test-mirror.c: Likewise.
38250         * tests/unictype/test-numeric.c: Likewise.
38251         * tests/unictype/test-pr_byname.c: Likewise.
38252         * tests/unictype/test-pr_test.c: Likewise.
38253         * tests/unictype/test-predicate-part1.h: Likewise.
38254         * tests/unictype/test-scripts.c: Likewise.
38255         * tests/unictype/test-sy_c_ident.c: Likewise.
38256         * tests/unictype/test-sy_java_ident.c: Likewise.
38257         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38258         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38259         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38260         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38261         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38262         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38263         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38264         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38265         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38266         * tests/uninorm/test-compat-decomposition.c: Likewise.
38267         * tests/uninorm/test-composition.c: Likewise.
38268         * tests/uninorm/test-decomposing-form.c: Likewise.
38269         * tests/uninorm/test-decomposition.c: Likewise.
38270         * tests/uninorm/test-u8-nfc.c: Likewise.
38271         * tests/uninorm/test-u8-nfd.c: Likewise.
38272         * tests/uninorm/test-u8-nfkc.c: Likewise.
38273         * tests/uninorm/test-u8-nfkd.c: Likewise.
38274         * tests/uninorm/test-u8-normcmp.c: Likewise.
38275         * tests/uninorm/test-u8-normcoll.c: Likewise.
38276         * tests/uninorm/test-u16-nfc.c: Likewise.
38277         * tests/uninorm/test-u16-nfd.c: Likewise.
38278         * tests/uninorm/test-u16-nfkc.c: Likewise.
38279         * tests/uninorm/test-u16-nfkd.c: Likewise.
38280         * tests/uninorm/test-u16-normcmp.c: Likewise.
38281         * tests/uninorm/test-u16-normcoll.c: Likewise.
38282         * tests/uninorm/test-u32-nfc.c: Likewise.
38283         * tests/uninorm/test-u32-nfd.c: Likewise.
38284         * tests/uninorm/test-u32-nfkc.c: Likewise.
38285         * tests/uninorm/test-u32-nfkd.c: Likewise.
38286         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38287         * tests/uninorm/test-u32-normcmp.c: Likewise.
38288         * tests/uninorm/test-u32-normcoll.c: Likewise.
38289         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38290         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38291         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38292         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38293         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38294         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38295         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38296         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38297         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38298         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38299         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38300         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38301         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38302         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38303         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38304         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38311         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38312         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38313         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38314         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38315         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38316         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38317         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38318         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38319         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38320         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38321         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38322         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38323         * tests/uniwidth/test-u8-width.c: Likewise.
38324         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38325         * tests/uniwidth/test-u16-width.c: Likewise.
38326         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38327         * tests/uniwidth/test-u32-width.c: Likewise.
38328         * tests/uniwidth/test-uc_width.c: Likewise.
38329         * tests/uniwidth/test-uc_width2.c: Likewise.
38330         * modules/acl-tests (Files): Add tests/macros.h.
38331         * modules/areadlink-tests (Files): Likewise.
38332         * modules/areadlink-with-size-tests (Files): Likewise.
38333         * modules/areadlinkat-tests (Files): Likewise.
38334         * modules/areadlinkat-with-size-tests (Files): Likewise.
38335         * modules/argmatch-tests (Files): Likewise.
38336         * modules/argv-iter-tests (Files): Likewise.
38337         * modules/array-list-tests (Files): Likewise.
38338         * modules/array-mergesort-tests (Files): Likewise.
38339         * modules/array-oset-tests (Files): Likewise.
38340         * modules/avltree-list-tests (Files): Likewise.
38341         * modules/avltree-oset-tests (Files): Likewise.
38342         * modules/avltreehash-list-tests (Files): Likewise.
38343         * modules/base64-tests (Files): Likewise.
38344         * modules/binary-io-tests (Files): Likewise.
38345         * modules/bitrotate-tests (Files): Likewise.
38346         * modules/btowc-tests (Files): Likewise.
38347         * modules/byteswap-tests (Files): Likewise.
38348         * modules/c-ctype-tests (Files): Likewise.
38349         * modules/c-stack-tests (Files): Likewise.
38350         * modules/c-strcase-tests (Files): Likewise.
38351         * modules/c-strcasestr-tests (Files): Likewise.
38352         * modules/c-strstr-tests (Files): Likewise.
38353         * modules/canonicalize-lgpl-tests (Files): Likewise.
38354         * modules/canonicalize-tests (Files): Likewise.
38355         * modules/carray-list-tests (Files): Likewise.
38356         * modules/ceilf-tests (Files): Likewise.
38357         * modules/ceill-tests (Files): Likewise.
38358         * modules/chown-tests (Files): Likewise.
38359         * modules/cloexec-tests (Files): Likewise.
38360         * modules/copy-file-tests (Files): Likewise.
38361         * modules/count-one-bits-tests (Files): Likewise.
38362         * modules/dprintf-posix-tests (Files): Likewise.
38363         * modules/dup2-tests (Files): Likewise.
38364         * modules/dup3-tests (Files): Likewise.
38365         * modules/duplocale-tests (Files): Likewise.
38366         * modules/fbufmode-tests (Files): Likewise.
38367         * modules/fchdir-tests (Files): Likewise.
38368         * modules/fcntl-safer-tests (Files): Likewise.
38369         * modules/fcntl-tests (Files): Likewise.
38370         * modules/fdopendir-tests (Files): Likewise.
38371         * modules/fdutimensat-tests (Files): Likewise.
38372         * modules/fflush-tests (Files): Likewise.
38373         * modules/filevercmp-tests (Files): Likewise.
38374         * modules/flock-tests (Files): Likewise.
38375         * modules/floorf-tests (Files): Likewise.
38376         * modules/floorl-tests (Files): Likewise.
38377         * modules/fnmatch-tests (Files): Likewise.
38378         * modules/fopen-safer-tests (Files): Likewise.
38379         * modules/fopen-tests (Files): Likewise.
38380         * modules/fpending-tests (Files): Likewise.
38381         * modules/fprintf-posix-tests (Files): Likewise.
38382         * modules/fpurge-tests (Files): Likewise.
38383         * modules/freadable-tests (Files): Likewise.
38384         * modules/freadahead-tests (Files): Likewise.
38385         * modules/freading-tests (Files): Likewise.
38386         * modules/freadptr-tests (Files): Likewise.
38387         * modules/freadseek-tests (Files): Likewise.
38388         * modules/freopen-tests (Files): Likewise.
38389         * modules/frexp-nolibm-tests (Files): Likewise.
38390         * modules/frexp-tests (Files): Likewise.
38391         * modules/frexpl-nolibm-tests (Files): Likewise.
38392         * modules/frexpl-tests (Files): Likewise.
38393         * modules/fseek-tests (Files): Likewise.
38394         * modules/fseeko-tests (Files): Likewise.
38395         * modules/fstrcmp-tests (Files): Likewise.
38396         * modules/fsync-tests (Files): Likewise.
38397         * modules/ftell-tests (Files): Likewise.
38398         * modules/ftello-tests (Files): Likewise.
38399         * modules/func-tests (Files): Likewise.
38400         * modules/futimens-tests (Files): Likewise.
38401         * modules/fwritable-tests (Files): Likewise.
38402         * modules/fwriting-tests (Files): Likewise.
38403         * modules/getcwd-tests (Files): Likewise.
38404         * modules/getdate-tests (Files): Likewise.
38405         * modules/getdelim-tests (Files): Likewise.
38406         * modules/getdtablesize-tests (Files): Likewise.
38407         * modules/getgroups-tests (Files): Likewise.
38408         * modules/getline-tests (Files): Likewise.
38409         * modules/getndelim2-tests (Files): Likewise.
38410         * modules/glob-tests (Files): Likewise.
38411         * modules/hash-tests (Files): Likewise.
38412         * modules/i-ring-tests (Files): Likewise.
38413         * modules/iconv-tests (Files): Likewise.
38414         * modules/iconv_open-utf-tests (Files): Likewise.
38415         * modules/idpriv-drop-tests (Files): Likewise.
38416         * modules/idpriv-droptemp-tests (Files): Likewise.
38417         * modules/inet_ntop-tests (Files): Likewise.
38418         * modules/inet_pton-tests (Files): Likewise.
38419         * modules/isblank-tests (Files): Likewise.
38420         * modules/isfinite-tests (Files): Likewise.
38421         * modules/isinf-tests (Files): Likewise.
38422         * modules/isnan-tests (Files): Likewise.
38423         * modules/isnand-nolibm-tests (Files): Likewise.
38424         * modules/isnand-tests (Files): Likewise.
38425         * modules/isnanf-nolibm-tests (Files): Likewise.
38426         * modules/isnanf-tests (Files): Likewise.
38427         * modules/isnanl-nolibm-tests (Files): Likewise.
38428         * modules/isnanl-tests (Files): Likewise.
38429         * modules/lchown-tests (Files): Likewise.
38430         * modules/ldexpl-tests (Files): Likewise.
38431         * modules/link-tests (Files): Likewise.
38432         * modules/linkat-tests (Files): Likewise.
38433         * modules/linked-list-tests (Files): Likewise.
38434         * modules/linkedhash-list-tests (Files): Likewise.
38435         * modules/localename-tests (Files): Likewise.
38436         * modules/lseek-tests (Files): Likewise.
38437         * modules/lstat-tests (Files): Likewise.
38438         * modules/mbmemcasecmp-tests (Files): Likewise.
38439         * modules/mbmemcasecoll-tests (Files): Likewise.
38440         * modules/mbrtowc-tests (Files): Likewise.
38441         * modules/mbscasecmp-tests (Files): Likewise.
38442         * modules/mbscasestr-tests (Files): Likewise.
38443         * modules/mbschr-tests (Files): Likewise.
38444         * modules/mbscspn-tests (Files): Likewise.
38445         * modules/mbsinit-tests (Files): Likewise.
38446         * modules/mbsncasecmp-tests (Files): Likewise.
38447         * modules/mbsnrtowcs-tests (Files): Likewise.
38448         * modules/mbspbrk-tests (Files): Likewise.
38449         * modules/mbspcasecmp-tests (Files): Likewise.
38450         * modules/mbsrchr-tests (Files): Likewise.
38451         * modules/mbsrtowcs-tests (Files): Likewise.
38452         * modules/mbsspn-tests (Files): Likewise.
38453         * modules/mbsstr-tests (Files): Likewise.
38454         * modules/memchr-tests (Files): Likewise.
38455         * modules/memchr2-tests (Files): Likewise.
38456         * modules/memcmp-tests (Files): Likewise.
38457         * modules/memmem-tests (Files): Likewise.
38458         * modules/memrchr-tests (Files): Likewise.
38459         * modules/mkdir-tests (Files): Likewise.
38460         * modules/mkfifo-tests (Files): Likewise.
38461         * modules/mkfifoat-tests (Files): Likewise.
38462         * modules/mknod-tests (Files): Likewise.
38463         * modules/nanosleep-tests (Files): Likewise.
38464         * modules/nl_langinfo-tests (Files): Likewise.
38465         * modules/obstack-printf-tests (Files): Likewise.
38466         * modules/open-tests (Files): Likewise.
38467         * modules/openat-tests (Files): Likewise.
38468         * modules/pipe-filter-gi-tests (Files): Likewise.
38469         * modules/pipe-filter-ii-tests (Files): Likewise.
38470         * modules/pipe2-tests (Files): Likewise.
38471         * modules/popen-safer-tests (Files): Likewise.
38472         * modules/popen-tests (Files): Likewise.
38473         * modules/posixtm-tests (Files): Likewise.
38474         * modules/pread-tests (Files): Likewise.
38475         * modules/printf-frexp-tests (Files): Likewise.
38476         * modules/printf-frexpl-tests (Files): Likewise.
38477         * modules/printf-posix-tests (Files): Likewise.
38478         * modules/priv-set-tests (Files): Likewise.
38479         * modules/quotearg-tests (Files): Likewise.
38480         * modules/random_r-tests (Files): Likewise.
38481         * modules/rawmemchr-tests (Files): Likewise.
38482         * modules/rbtree-list-tests (Files): Likewise.
38483         * modules/rbtree-oset-tests (Files): Likewise.
38484         * modules/rbtreehash-list-tests (Files): Likewise.
38485         * modules/readlink-tests (Files): Likewise.
38486         * modules/remove-tests (Files): Likewise.
38487         * modules/rename-tests (Files): Likewise.
38488         * modules/renameat-tests (Files): Likewise.
38489         * modules/rmdir-tests (Files): Likewise.
38490         * modules/round-tests (Files): Likewise.
38491         * modules/roundf-tests (Files): Likewise.
38492         * modules/roundl-tests (Files): Likewise.
38493         * modules/safe-alloc-tests (Files): Likewise.
38494         * modules/setenv-tests (Files): Likewise.
38495         * modules/sigaction-tests (Files): Likewise.
38496         * modules/signbit-tests (Files): Likewise.
38497         * modules/sleep-tests (Files): Likewise.
38498         * modules/snprintf-posix-tests (Files): Likewise.
38499         * modules/snprintf-tests (Files): Likewise.
38500         * modules/sprintf-posix-tests (Files): Likewise.
38501         * modules/stat-tests (Files): Likewise.
38502         * modules/stat-time-tests (Files): Likewise.
38503         * modules/strcasestr-tests (Files): Likewise.
38504         * modules/strchrnul-tests (Files): Likewise.
38505         * modules/strerror-tests (Files): Likewise.
38506         * modules/striconv-tests (Files): Likewise.
38507         * modules/striconveh-tests (Files): Likewise.
38508         * modules/striconveha-tests (Files): Likewise.
38509         * modules/strsignal-tests (Files): Likewise.
38510         * modules/strstr-tests (Files): Likewise.
38511         * modules/strtod-tests (Files): Likewise.
38512         * modules/strverscmp-tests (Files): Likewise.
38513         * modules/symlink-tests (Files): Likewise.
38514         * modules/symlinkat-tests (Files): Likewise.
38515         * modules/trunc-tests (Files): Likewise.
38516         * modules/truncf-tests (Files): Likewise.
38517         * modules/truncl-tests (Files): Likewise.
38518         * modules/uname-tests (Files): Likewise.
38519         * modules/unicase/cased-tests (Files): Likewise.
38520         * modules/unicase/ignorable-tests (Files): Likewise.
38521         * modules/unicase/locale-language-tests (Files): Likewise.
38522         * modules/unicase/tolower-tests (Files): Likewise.
38523         * modules/unicase/totitle-tests (Files): Likewise.
38524         * modules/unicase/toupper-tests (Files): Likewise.
38525         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38526         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38527         * modules/unicase/u8-casefold-tests (Files): Likewise.
38528         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38529         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38530         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38531         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38532         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38533         * modules/unicase/u8-tolower-tests (Files): Likewise.
38534         * modules/unicase/u8-totitle-tests (Files): Likewise.
38535         * modules/unicase/u8-toupper-tests (Files): Likewise.
38536         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38537         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38538         * modules/unicase/u16-casefold-tests (Files): Likewise.
38539         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38540         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38541         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38542         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38543         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38544         * modules/unicase/u16-tolower-tests (Files): Likewise.
38545         * modules/unicase/u16-totitle-tests (Files): Likewise.
38546         * modules/unicase/u16-toupper-tests (Files): Likewise.
38547         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38548         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38549         * modules/unicase/u32-casefold-tests (Files): Likewise.
38550         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38551         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38552         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38553         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38554         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38555         * modules/unicase/u32-tolower-tests (Files): Likewise.
38556         * modules/unicase/u32-totitle-tests (Files): Likewise.
38557         * modules/unicase/u32-toupper-tests (Files): Likewise.
38558         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38559         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38560         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38561         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38562         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38563         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38564         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38565         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38566         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38567         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38568         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38569         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38570         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38571         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38572         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38573         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38574         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38575         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38576         * modules/unictype/block-list-tests (Files): Likewise.
38577         * modules/unictype/block-of-tests (Files): Likewise.
38578         * modules/unictype/block-test-tests (Files): Likewise.
38579         * modules/unictype/category-C-tests (Files): Likewise.
38580         * modules/unictype/category-Cc-tests (Files): Likewise.
38581         * modules/unictype/category-Cf-tests (Files): Likewise.
38582         * modules/unictype/category-Cn-tests (Files): Likewise.
38583         * modules/unictype/category-Co-tests (Files): Likewise.
38584         * modules/unictype/category-Cs-tests (Files): Likewise.
38585         * modules/unictype/category-L-tests (Files): Likewise.
38586         * modules/unictype/category-Ll-tests (Files): Likewise.
38587         * modules/unictype/category-Lm-tests (Files): Likewise.
38588         * modules/unictype/category-Lo-tests (Files): Likewise.
38589         * modules/unictype/category-Lt-tests (Files): Likewise.
38590         * modules/unictype/category-Lu-tests (Files): Likewise.
38591         * modules/unictype/category-M-tests (Files): Likewise.
38592         * modules/unictype/category-Mc-tests (Files): Likewise.
38593         * modules/unictype/category-Me-tests (Files): Likewise.
38594         * modules/unictype/category-Mn-tests (Files): Likewise.
38595         * modules/unictype/category-N-tests (Files): Likewise.
38596         * modules/unictype/category-Nd-tests (Files): Likewise.
38597         * modules/unictype/category-Nl-tests (Files): Likewise.
38598         * modules/unictype/category-No-tests (Files): Likewise.
38599         * modules/unictype/category-P-tests (Files): Likewise.
38600         * modules/unictype/category-Pc-tests (Files): Likewise.
38601         * modules/unictype/category-Pd-tests (Files): Likewise.
38602         * modules/unictype/category-Pe-tests (Files): Likewise.
38603         * modules/unictype/category-Pf-tests (Files): Likewise.
38604         * modules/unictype/category-Pi-tests (Files): Likewise.
38605         * modules/unictype/category-Po-tests (Files): Likewise.
38606         * modules/unictype/category-Ps-tests (Files): Likewise.
38607         * modules/unictype/category-S-tests (Files): Likewise.
38608         * modules/unictype/category-Sc-tests (Files): Likewise.
38609         * modules/unictype/category-Sk-tests (Files): Likewise.
38610         * modules/unictype/category-Sm-tests (Files): Likewise.
38611         * modules/unictype/category-So-tests (Files): Likewise.
38612         * modules/unictype/category-Z-tests (Files): Likewise.
38613         * modules/unictype/category-Zl-tests (Files): Likewise.
38614         * modules/unictype/category-Zp-tests (Files): Likewise.
38615         * modules/unictype/category-Zs-tests (Files): Likewise.
38616         * modules/unictype/category-and-not-tests (Files): Likewise.
38617         * modules/unictype/category-and-tests (Files): Likewise.
38618         * modules/unictype/category-byname-tests (Files): Likewise.
38619         * modules/unictype/category-name-tests (Files): Likewise.
38620         * modules/unictype/category-none-tests (Files): Likewise.
38621         * modules/unictype/category-of-tests (Files): Likewise.
38622         * modules/unictype/category-or-tests (Files): Likewise.
38623         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38624         * modules/unictype/combining-class-tests (Files): Likewise.
38625         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38626         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38627         * modules/unictype/ctype-blank-tests (Files): Likewise.
38628         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38629         * modules/unictype/ctype-digit-tests (Files): Likewise.
38630         * modules/unictype/ctype-graph-tests (Files): Likewise.
38631         * modules/unictype/ctype-lower-tests (Files): Likewise.
38632         * modules/unictype/ctype-print-tests (Files): Likewise.
38633         * modules/unictype/ctype-punct-tests (Files): Likewise.
38634         * modules/unictype/ctype-space-tests (Files): Likewise.
38635         * modules/unictype/ctype-upper-tests (Files): Likewise.
38636         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38637         * modules/unictype/decimal-digit-tests (Files): Likewise.
38638         * modules/unictype/digit-tests (Files): Likewise.
38639         * modules/unictype/mirror-tests (Files): Likewise.
38640         * modules/unictype/numeric-tests (Files): Likewise.
38641         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38642         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38643         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38644         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38645         Likewise.
38646         * modules/unictype/property-bidi-block-separator-tests (Files):
38647         Likewise.
38648         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38649         Likewise.
38650         * modules/unictype/property-bidi-common-separator-tests (Files):
38651         Likewise.
38652         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38653         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38654         Likewise.
38655         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38656         Likewise.
38657         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38658         Likewise.
38659         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38660         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38661         Likewise.
38662         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38663         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38664         Likewise.
38665         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38666         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38667         * modules/unictype/property-bidi-segment-separator-tests (Files):
38668         Likewise.
38669         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38670         * modules/unictype/property-byname-tests (Files): Likewise.
38671         * modules/unictype/property-combining-tests (Files): Likewise.
38672         * modules/unictype/property-composite-tests (Files): Likewise.
38673         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38674         * modules/unictype/property-dash-tests (Files): Likewise.
38675         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38676         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38677         Likewise.
38678         * modules/unictype/property-deprecated-tests (Files): Likewise.
38679         * modules/unictype/property-diacritic-tests (Files): Likewise.
38680         * modules/unictype/property-extender-tests (Files): Likewise.
38681         * modules/unictype/property-format-control-tests (Files): Likewise.
38682         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38683         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38684         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38685         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38686         * modules/unictype/property-hyphen-tests (Files): Likewise.
38687         * modules/unictype/property-id-continue-tests (Files): Likewise.
38688         * modules/unictype/property-id-start-tests (Files): Likewise.
38689         * modules/unictype/property-ideographic-tests (Files): Likewise.
38690         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38691         * modules/unictype/property-ids-trinary-operator-tests (Files):
38692         Likewise.
38693         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38694         * modules/unictype/property-iso-control-tests (Files): Likewise.
38695         * modules/unictype/property-join-control-tests (Files): Likewise.
38696         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38697         * modules/unictype/property-line-separator-tests (Files): Likewise.
38698         * modules/unictype/property-logical-order-exception-tests (Files):
38699         Likewise.
38700         * modules/unictype/property-lowercase-tests (Files): Likewise.
38701         * modules/unictype/property-math-tests (Files): Likewise.
38702         * modules/unictype/property-non-break-tests (Files): Likewise.
38703         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38704         * modules/unictype/property-numeric-tests (Files): Likewise.
38705         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38706         * modules/unictype/property-other-default-ignorable-code-point-tests
38707         (Files): Likewise.
38708         * modules/unictype/property-other-grapheme-extend-tests (Files):
38709         Likewise.
38710         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38711         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38712         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38713         * modules/unictype/property-other-math-tests (Files): Likewise.
38714         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38715         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38716         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38717         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38718         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38719         * modules/unictype/property-private-use-tests (Files): Likewise.
38720         * modules/unictype/property-punctuation-tests (Files): Likewise.
38721         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38722         * modules/unictype/property-radical-tests (Files): Likewise.
38723         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38724         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38725         * modules/unictype/property-space-tests (Files): Likewise.
38726         * modules/unictype/property-terminal-punctuation-tests (Files):
38727         Likewise.
38728         * modules/unictype/property-test-tests (Files): Likewise.
38729         * modules/unictype/property-titlecase-tests (Files): Likewise.
38730         * modules/unictype/property-unassigned-code-value-tests (Files):
38731         Likewise.
38732         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38733         * modules/unictype/property-uppercase-tests (Files): Likewise.
38734         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38735         * modules/unictype/property-white-space-tests (Files): Likewise.
38736         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38737         * modules/unictype/property-xid-start-tests (Files): Likewise.
38738         * modules/unictype/property-zero-width-tests (Files): Likewise.
38739         * modules/unictype/scripts-tests (Files): Likewise.
38740         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38741         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38742         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38743         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38744         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38745         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38746         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38747         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38748         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38749         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38750         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38751         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38752         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38753         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38754         * modules/uninorm/composition-tests (Files): Likewise.
38755         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38756         * modules/uninorm/decomposition-tests (Files): Likewise.
38757         * modules/uninorm/filter-tests (Files): Likewise.
38758         * modules/uninorm/nfc-tests (Files): Likewise.
38759         * modules/uninorm/nfd-tests (Files): Likewise.
38760         * modules/uninorm/nfkc-tests (Files): Likewise.
38761         * modules/uninorm/nfkd-tests (Files): Likewise.
38762         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38763         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38764         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38765         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38766         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38767         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38768         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38769         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38770         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38771         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38772         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38773         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38774         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38775         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38776         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38777         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38778         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38779         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38780         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38781         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38782         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38783         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38784         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38785         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38786         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38787         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38788         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38789         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38790         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38791         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38792         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38793         * modules/uniwidth/u8-width-tests (Files): Likewise.
38794         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38795         * modules/uniwidth/u16-width-tests (Files): Likewise.
38796         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38797         * modules/uniwidth/u32-width-tests (Files): Likewise.
38798         * modules/uniwidth/width-tests (Files): Likewise.
38799         * modules/unlink-tests (Files): Likewise.
38800         * modules/unsetenv-tests (Files): Likewise.
38801         * modules/usleep-tests (Files): Likewise.
38802         * modules/utimens-tests (Files): Likewise.
38803         * modules/utimensat-tests (Files): Likewise.
38804         * modules/vasnprintf-posix-tests (Files): Likewise.
38805         * modules/vasnprintf-tests (Files): Likewise.
38806         * modules/vasprintf-posix-tests (Files): Likewise.
38807         * modules/vasprintf-tests (Files): Likewise.
38808         * modules/vdprintf-posix-tests (Files): Likewise.
38809         * modules/vfprintf-posix-tests (Files): Likewise.
38810         * modules/vprintf-posix-tests (Files): Likewise.
38811         * modules/vsnprintf-posix-tests (Files): Likewise.
38812         * modules/vsnprintf-tests (Files): Likewise.
38813         * modules/vsprintf-posix-tests (Files): Likewise.
38814         * modules/wcrtomb-tests (Files): Likewise.
38815         * modules/wcsnrtombs-tests (Files): Likewise.
38816         * modules/wcsrtombs-tests (Files): Likewise.
38817         * modules/wctype-tests (Files): Likewise.
38818         * modules/wcwidth-tests (Files): Likewise.
38819         * modules/xmemdup0-tests (Files): Likewise.
38820         * modules/xprintf-posix-tests (Files): Likewise.
38821         * modules/xvasprintf-tests (Files): Likewise.
38822
38823 2009-12-24  Eric Blake  <ebb9@byu.net>
38824
38825         test-nanosleep: fix typo
38826         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38827         patch.
38828         Reported by Bruno Haible.
38829
38830 2009-12-24  Bruno Haible  <bruno@clisp.org>
38831
38832         Reduce namespace pollution on glibc systems.
38833         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38834         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38835         systems.
38836         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38837         <getopt.h> on glibc systems.
38838         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38839         systems.
38840         * lib/fcntl.c: Include <unistd.h> here instead.
38841
38842 2009-12-24  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38845
38846 2009-12-24  Eric Blake  <ebb9@byu.net>
38847
38848         tests: add signature checks
38849         * tests/signature.h (SIGNATURE_CHECK): New file.
38850         * modules/atexit-tests (Files): Use it.
38851         * modules/btowc-tests (Files): Likewise.
38852         * modules/canonicalize-lgpl-tests (Files): Likewise.
38853         * modules/ceilf-tests (Files): Likewise.
38854         * modules/ceill-tests (Files): Likewise.
38855         * modules/chown-tests (Files): Likewise.
38856         * modules/dprintf-posix-tests (Files): Likewise.
38857         * modules/dup2-tests (Files): Likewise.
38858         * modules/dup3-tests (Files): Likewise.
38859         * modules/duplocale-tests (Files): Likewise.
38860         * modules/fchdir-tests (Files): Likewise.
38861         * modules/fcntl-tests (Files): Likewise.
38862         * modules/fdopendir-tests (Files): Likewise.
38863         * modules/fflush-tests (Files): Likewise.
38864         * modules/flock-tests (Files): Likewise.
38865         * modules/floorf-tests (Files): Likewise.
38866         * modules/floorl-tests (Files): Likewise.
38867         * modules/fnmatch-tests (Files): Likewise.
38868         * modules/fopen-tests (Files): Likewise.
38869         * modules/fprintf-posix-tests (Files): Likewise.
38870         * modules/freopen-tests (Files): Likewise.
38871         * modules/frexp-nolibm-tests (Files): Likewise.
38872         * modules/frexp-tests (Files): Likewise.
38873         * modules/frexpl-nolibm-tests (Files): Likewise.
38874         * modules/frexpl-tests (Files): Likewise.
38875         * modules/fseek-tests (Files): Likewise.
38876         * modules/fseeko-tests (Files): Likewise.
38877         * modules/fsync-tests (Files): Likewise.
38878         * modules/ftell-tests (Files): Likewise.
38879         * modules/ftello-tests (Files): Likewise.
38880         * modules/futimens-tests (Files): Likewise.
38881         * modules/getaddrinfo-tests (Files): Likewise.
38882         * modules/getcwd-tests (Files): Likewise.
38883         * modules/getdelim-tests (Files): Likewise.
38884         * modules/getdtablesize-tests (Files): Likewise.
38885         * modules/getgroups-tests (Files): Likewise.
38886         * modules/gethostname-tests (Files): Likewise.
38887         * modules/getline-tests (Files): Likewise.
38888         * modules/getopt-posix-tests (Files): Likewise.
38889         * modules/gettimeofday-tests (Files): Likewise.
38890         * modules/glob-tests (Files): Likewise.
38891         * modules/iconv-tests (Files): Likewise.
38892         * modules/inet_ntop-tests (Files): Likewise.
38893         * modules/inet_pton-tests (Files): Likewise.
38894         * modules/isblank-tests (Files): Likewise.
38895         * modules/lchown-tests (Files): Likewise.
38896         * modules/ldexpl-tests (Files): Likewise.
38897         * modules/link-tests (Files): Likewise.
38898         * modules/linkat-tests (Files): Likewise.
38899         * modules/lseek-tests (Files): Likewise.
38900         * modules/lstat-tests (Files): Likewise.
38901         * modules/mbrtowc-tests (Files): Likewise.
38902         * modules/mbsinit-tests (Files): Likewise.
38903         * modules/mbsnrtowcs-tests (Files): Likewise.
38904         * modules/mbsrtowcs-tests (Files): Likewise.
38905         * modules/memchr-tests (Files): Likewise.
38906         * modules/memcmp-tests (Files): Likewise.
38907         * modules/memmem-tests (Files): Likewise.
38908         * modules/memrchr-tests (Files): Likewise.
38909         * modules/mkdir-tests (Files): Likewise.
38910         * modules/mkfifo-tests (Files): Likewise.
38911         * modules/mkfifoat-tests (Files): Likewise.
38912         * modules/mknod-tests (Files): Likewise.
38913         * modules/nanosleep-tests (Files): Likewise.
38914         * modules/nl_langinfo-tests (Files): Likewise.
38915         * modules/obstack-printf-tests (Files): Likewise.
38916         * modules/open-tests (Files): Likewise.
38917         * modules/openat-tests (Files): Likewise.
38918         * modules/perror-tests (Files): Likewise.
38919         * modules/pipe2-tests (Files): Likewise.
38920         * modules/poll-tests (Files): Likewise.
38921         * modules/popen-tests (Files): Likewise.
38922         * modules/posix_spawn-tests (Files): Likewise.
38923         * modules/posix_spawnp-tests (Files): Likewise.
38924         * modules/pread-tests (Files): Likewise.
38925         * modules/printf-posix-tests (Files): Likewise.
38926         * modules/pty-tests (Files): Likewise.
38927         * modules/random_r-tests (Files): Likewise.
38928         * modules/rawmemchr-tests (Files): Likewise.
38929         * modules/readlink-tests (Files): Likewise.
38930         * modules/remove-tests (Files): Likewise.
38931         * modules/rename-tests (Files): Likewise.
38932         * modules/renameat-tests (Files): Likewise.
38933         * modules/rmdir-tests (Files): Likewise.
38934         * modules/round-tests (Files): Likewise.
38935         * modules/roundf-tests (Files): Likewise.
38936         * modules/roundl-tests (Files): Likewise.
38937         * modules/select-tests (Files): Likewise.
38938         * modules/setenv-tests (Files): Likewise.
38939         * modules/sigaction-tests (Files): Likewise.
38940         * modules/sleep-tests (Files): Likewise.
38941         * modules/snprintf-posix-tests (Files): Likewise.
38942         * modules/snprintf-tests (Files): Likewise.
38943         * modules/sprintf-posix-tests (Files): Likewise.
38944         * modules/stat-tests (Files): Likewise.
38945         * modules/strcasestr-tests (Files): Likewise.
38946         * modules/strchrnul-tests (Files): Likewise.
38947         * modules/strerror-tests (Files): Likewise.
38948         * modules/strsignal-tests (Files): Likewise.
38949         * modules/strstr-tests (Files): Likewise.
38950         * modules/strtod-tests (Files): Likewise.
38951         * modules/strverscmp-tests (Files): Likewise.
38952         * modules/symlink-tests (Files): Likewise.
38953         * modules/symlinkat-tests (Files): Likewise.
38954         * modules/times-tests (Files): Likewise.
38955         * modules/trunc-tests (Files): Likewise.
38956         * modules/truncf-tests (Files): Likewise.
38957         * modules/truncl-tests (Files): Likewise.
38958         * modules/tsearch-tests (Files): Likewise.
38959         * modules/uname-tests (Files): Likewise.
38960         * modules/unlink-tests (Files): Likewise.
38961         * modules/unsetenv-tests (Files): Likewise.
38962         * modules/usleep-tests (Files): Likewise.
38963         * modules/utimensat-tests (Files): Likewise.
38964         * modules/vasprintf-tests (Files): Likewise.
38965         * modules/vdprintf-posix-tests (Files): Likewise.
38966         * modules/vfprintf-posix-tests (Files): Likewise.
38967         * modules/vprintf-posix-tests (Files): Likewise.
38968         * modules/vsnprintf-posix-tests (Files): Likewise.
38969         * modules/vsnprintf-tests (Files): Likewise.
38970         * modules/vsprintf-posix-tests (Files): Likewise.
38971         * modules/wcrtomb-tests (Files): Likewise.
38972         * modules/wcsnrtombs-tests (Files): Likewise.
38973         * modules/wcsrtombs-tests (Files): Likewise.
38974         * modules/wcwidth-tests (Files): Likewise.
38975         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38976         * tests/test-isinf.c (isinf): Likewise.
38977         * tests/test-isnan.c (isnan): Likewise.
38978         * tests/test-signbit.c (signbit): Likewise.
38979         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38980         declaration, either as macro or with correct signature.
38981         (select): Ensure function under test is declared with correct
38982         signature in correct header.
38983         * tests/test-atexit.c (atexit): Likewise.
38984         * tests/test-btowc.c (btowc): Likewise.
38985         * tests/test-canonicalize-lgpl.c (realpath)
38986         (canonicalize_file_name): Likewise.
38987         * tests/test-ceilf1.c (ceilf): Likewise.
38988         * tests/test-ceill.c (ceill): Likewise.
38989         * tests/test-chown.c (chown): Likewise.
38990         * tests/test-dprintf-posix.c (dprintf): Likewise.
38991         * tests/test-dup2.c (dup2): Likewise.
38992         * tests/test-dup3.c (dup3): Likewise.
38993         * tests/test-duplocale.c (duplocale): Likewise.
38994         * tests/test-fchdir.c (fchdir): Likewise.
38995         * tests/test-fchownat.c (fchownat): Likewise.
38996         * tests/test-fcntl.c (fcntl): Likewise.
38997         * tests/test-fdopendir.c (fdopendir): Likewise.
38998         * tests/test-fflush.c (fflush): Likewise.
38999         * tests/test-flock.c (flock): Likewise.
39000         * tests/test-floorf1.c (floorf): Likewise.
39001         * tests/test-floorl.c (floorl): Likewise.
39002         * tests/test-fnmatch.c (fnmatch): Likewise.
39003         * tests/test-fopen.c (fopen): Likewise.
39004         * tests/test-fprintf-posix.c (fprintf): Likewise.
39005         * tests/test-freopen.c (freopen): Likewise.
39006         * tests/test-frexp.c (frexp): Likewise.
39007         * tests/test-frexpl.c (frexpl): Likewise.
39008         * tests/test-fseek.c (fseek): Likewise.
39009         * tests/test-fseeko.c (fseeko): Likewise.
39010         * tests/test-fstatat.c (fstatat): Likewise.
39011         * tests/test-fsync.c (fsync): Likewise.
39012         * tests/test-ftell.c (ftell): Likewise.
39013         * tests/test-ftello.c (ftello): Likewise.
39014         * tests/test-futimens.c (futimens): Likewise.
39015         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39016         (gai_strerror): Likewise.
39017         * tests/test-getcwd.c (getcwd): Likewise.
39018         * tests/test-getdelim.c (getdelim): Likewise.
39019         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39020         * tests/test-getgroups.c (getgroups): Likewise.
39021         * tests/test-gethostname.c (gethostname): Likewise.
39022         * tests/test-getline.c (getline): Likewise.
39023         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39024         Likewise.
39025         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39026         * tests/test-glob.c (glob, globfree): Likewise.
39027         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39028         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39029         * tests/test-inet_pton.c (inet_pton): Likewise.
39030         * tests/test-isblank.c (isblank): Likewise.
39031         * tests/test-lchown.c (lchown): Likewise.
39032         * tests/test-ldexpl.c (ldexpl): Likewise.
39033         * tests/test-link.c (link): Likewise.
39034         * tests/test-linkat.c (linkat): Likewise.
39035         * tests/test-lseek.c (lseek): Likewise.
39036         * tests/test-lstat.c (lstat): Likewise.
39037         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39038         * tests/test-mbsinit.c (mbsinit): Likewise.
39039         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39040         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39041         * tests/test-memchr.c (memchr): Likewise.
39042         * tests/test-memcmp.c (memcmp): Likewise.
39043         * tests/test-memmem.c (memmem): Likewise.
39044         * tests/test-memrchr.c (memrchr): Likewise.
39045         * tests/test-mkdir.c (mkdir): Likewise.
39046         * tests/test-mkdirat.c (mkdirat): Likewise.
39047         * tests/test-mkfifo.c (mkfifo): Likewise.
39048         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39049         * tests/test-mknod.c (mknod): Likewise.
39050         * tests/test-nanosleep.c (nanosleep): Likewise.
39051         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39052         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39053         Likewise.
39054         * tests/test-open.c (open): Likewise.
39055         * tests/test-openat.c (openat): Likewise.
39056         * tests/test-perror.c (perror): Likewise.
39057         * tests/test-pipe2.c (pipe2): Likewise.
39058         * tests/test-poll.c (poll): Likewise.
39059         * tests/test-popen.c (popen, pclose): Likewise.
39060         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39061         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39062         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39063         (posix_spawn_file_actions_destroy)
39064         (posix_spawn_file_actions_addclose)
39065         (posix_spawn_file_actions_addopen)
39066         (posix_spawn_file_actions_adddup2): Likewise.
39067         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39068         * tests/test-pread.c (pread): Likewise.
39069         * tests/test-printf-posix.c (printf): Likewise.
39070         * tests/test-pty.c (openpty, forkpty): Likewise.
39071         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39072         (random_r): Likewise.
39073         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39074         * tests/test-readlink.c (readlink): Likewise.
39075         * tests/test-remove.c (remove): Likewise.
39076         * tests/test-rename.c (rename): Likewise.
39077         * tests/test-renameat.c (renameat): Likewise.
39078         * tests/test-rmdir.c (rmdir): Likewise.
39079         * tests/test-round1.c (round): Likewise.
39080         * tests/test-roundf1.c (roundf): Likewise.
39081         * tests/test-roundl.c (roundl): Likewise.
39082         * tests/test-setenv.c (setenv): Likewise.
39083         * tests/test-sigaction.c (sigaction): Likewise.
39084         * tests/test-sleep.c (sleep): Likewise.
39085         * tests/test-snprintf.c (snprintf): Likewise.
39086         * tests/test-sprintf-posix.c (sprintf): Likewise.
39087         * tests/test-stat.c (stat): Likewise.
39088         * tests/test-stpncpy.c (stpncpy): Likewise.
39089         * tests/test-strcasestr.c (strcasestr): Likewise.
39090         * tests/test-strchrnul.c (strchrnul): Likewise.
39091         * tests/test-strerror.c (strerror): Likewise.
39092         * tests/test-strsignal.c (strsignal): Likewise.
39093         * tests/test-strstr.c (strstr): Likewise.
39094         * tests/test-strtod.c (strtod): Likewise.
39095         * tests/test-strverscmp.c (strverscmp): Likewise.
39096         * tests/test-symlink.c (symlink): Likewise.
39097         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39098         * tests/test-times.c (times): Likewise.
39099         * tests/test-trunc1.c (trunc): Likewise.
39100         * tests/test-truncf1.c (truncf): Likewise.
39101         * tests/test-truncl.c (truncl): Likewise.
39102         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39103         Likewise.
39104         * tests/test-uname.c (uname): Likewise.
39105         * tests/test-unlink.c (unlink): Likewise.
39106         * tests/test-unlinkat.c (unlinkat): Likewise.
39107         * tests/test-unsetenv.c (unsetenv): Likewise.
39108         * tests/test-usleep.c (usleep): Likewise.
39109         * tests/test-utimensat.c (utimensat): Likewise.
39110         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39111         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39112         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39113         * tests/test-vprintf-posix.c (vprintf): Likewise.
39114         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39115         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39116         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39117         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39118         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39119         * tests/test-wcwidth.c (wcwidth): Likewise.
39120
39121         build: pull in conditional headers during GNULIB_POSIXCHECK
39122         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39123         definitions from any conditionally-included headers.
39124         * lib/stdlib.in.h (includes): Likewise.
39125         * lib/unistd.in.h (includes): Likewise.
39126
39127 2009-12-24  Bruno Haible  <bruno@clisp.org>
39128
39129         * tests/test-argv-iter.c: Include header file being tested immediately
39130         after config.h.
39131         * tests/test-base64.c: Likewise.
39132         * tests/test-flock.c: Likewise.
39133         * tests/test-fsync.c: Likewise.
39134         * tests/test-getdate.c: Likewise.
39135         * tests/test-getndelim2.c: Likewise.
39136         * tests/test-isfinite.c: Likewise.
39137         * tests/test-isinf.c: Likewise.
39138         * tests/test-strerror.c: Likewise.
39139         * tests/test-strsignal.c: Likewise.
39140
39141 2009-12-23  Eric Blake  <ebb9@byu.net>
39142
39143         unistd: work around cygwin bug
39144         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39145         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39146         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39147
39148 2009-12-23  Bruno Haible  <bruno@clisp.org>
39149
39150         localename: More tests.
39151         * tests/test-localename.c (SIZEOF): New macro.
39152         (categories): New variable.
39153         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39154         test_locale_name_default): Add test w.r.t. thread locale.
39155         (test_locale_name_thread): New function.
39156         (main): Invoke it.
39157
39158         localename: Make aware of thread locale.
39159         * lib/localename.h (gl_locale_name_thread): New declaration.
39160         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39161         behaviour with respect to thread locale.
39162         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39163         <langinfo.h>, glthread/lock.h.
39164         (SIZE_BITS): New macro.
39165         (string_hash): New function.
39166         (struct hash_node): New type.
39167         (HASH_TABLE_SIZE): New macro.
39168         (struniq_hash_table, struniq_lock): New variables.
39169         (struniq): New function.
39170         (gl_locale_name_thread): New function.
39171         (gl_locale_name): Invoke it.
39172         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39173         * modules/localename (Depends-on): Add lock.
39174         Reported by Mike Gran <spk121@yahoo.com>.
39175
39176 2009-12-23  Eric Blake  <ebb9@byu.net>
39177
39178         va-args: new module
39179         * modules/va-args: New file.
39180         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39181         * MODULES.html.sh (Core language properties): Mention it.
39182
39183         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39184         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39185         named alias for __attribute__((__unused__)).
39186         * lib/chown.c: Update client.
39187         * lib/fchmodat.c: Likewise.
39188         * lib/fts.c: Likewise.
39189         * lib/getdate.y: Likewise.
39190         * lib/getgroups.c: Likewise.
39191         * lib/getopt.c: Likewise.
39192         * lib/getugroups.c: Likewise.
39193         * lib/mkdir.c: Likewise.
39194         * lib/mkfifo.c: Likewise.
39195         * lib/mkfifoat.c: Likewise.
39196         * lib/mknod.c: Likewise.
39197         * lib/mknodat.c: Likewise.
39198         * lib/readlink.c: Likewise.
39199         * lib/se-context.in.h: Likewise.
39200         * lib/se-selinux.in.h: Likewise.
39201         * lib/sockets.c: Likewise.
39202         * lib/symlink.c: Likewise.
39203         * lib/symlinkat.c: Likewise.
39204         * lib/unicodeio.c: Likewise.
39205         * lib/unistr.h: Likewise.
39206         * tests/test-areadlink.c: Likewise.
39207         * tests/test-areadlinkat.c: Likewise.
39208         * tests/test-filenamecat.c: Likewise.
39209         * tests/test-fseeko.c: Likewise.
39210         * tests/test-ftello.c: Likewise.
39211         * tests/test-getdate.c: Likewise.
39212         * tests/test-getgroups.c: Likewise.
39213         * tests/test-gethostname.c: Likewise.
39214         * tests/test-quotearg.c: Likewise.
39215         * tests/test-version-etc.c: Likewise.
39216         * tests/test-xalloc-die.c: Likewise.
39217         * tests/test-xfprintf-posix.c: Likewise.
39218         * tests/test-xprintf-posix.c: Likewise.
39219         * tests/test-xvasprintf.c: Likewise.
39220
39221         tests: avoid compiler warnings
39222         * tests/test-fcntl.c (main): Delete unused parameters.
39223         * tests/test-freopen-safer.c (main): Likewise.
39224         * tests/test-xalloc-die.c (main): Mark unused parameters.
39225         * tests/test-fseeko.c (main): Likewise.
39226         * tests/test-ftello.c (main): Likewise.
39227         * tests/test-nanosleep.c (main): Avoid declaration warning.
39228         * tests/test-sleep.c (main): Likewise.
39229         * tests/test-unsetenv.c (main): Silence warning about string
39230         literal.
39231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39232
39233 2009-12-23  Bruno Haible  <bruno@clisp.org>
39234
39235         * tests/test-localename.c (test_locale_name): New function, extracted
39236         from main. Also test mixed situations.
39237         (test_locale_name_posix, test_locale_name_environ,
39238         test_locale_name_default): New functions.
39239         (main): Invoke them all.
39240         * modules/localename-tests (configure.ac): Test for newlocale.
39241
39242 2009-12-23  Bruno Haible  <bruno@clisp.org>
39243
39244         unistd: Ensure getcwd gets declared before being overridden.
39245         * lib/unistd.in.h: Conditionally include <io.h>.
39246
39247 2009-12-22  Bruno Haible  <bruno@clisp.org>
39248
39249         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39250         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39251         (gl_WCHAR_H): Invoke it.
39252         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39253         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39254         Reported by Karl Berry <karl@freefriends.org>.
39255
39256 2009-12-22  Eric Blake  <ebb9@byu.net>
39257
39258         math, unistd: avoid redundant includes
39259         * lib/math.in.h (isnan): No need to re-include <math.h>.
39260         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39261
39262         getsubopt: work around cygwin bug
39263         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39264         avoid conflicting with system getsubopt.
39265         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39266         bug.
39267
39268         getopt: synchronize from glibc
39269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39270         parameter order.  Adjust all callers.
39271         (_getopt_internal_r, main): Adjust quoting in error messages.
39272         Drop considerations for outdated POSIX 1003.2 error message.
39273         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39274         callers.
39275         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39276
39277         test-getopt: test stderr behavior
39278         * modules/getopt-posix-tests (Depends-on): Add dup2.
39279         * tests/test-getopt.c (ASSERT): Avoid stderr.
39280         (main): Move stderr to a temporary file.
39281         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39282         Instead, add parameter to inform caller if output occurred.
39283         (test_getopt): Adjust all existing tests to expect silence, and
39284         add new tests of leading ":".
39285         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39286         glibc shortcomings with leading "-:" or "+:" in optstring.
39287         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39288         Likewise.
39289         * doc/posix-functions/getopt.texi (getopt): Likewise.
39290
39291         test-getopt: enhance test
39292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39293         supports optind=0.
39294         * tests/test-getopt.c (OPTIND_MIN): Move...
39295         * tests/test-getopt.h (OPTIND_MIN): ...here.
39296         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39297         Require that optind=0 works, since modern BSD supports it in
39298         addition to optreset, and since coreutils expects it.
39299         (test_getopt_long_only): New test.
39300         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39301         glibc shortcomings with 'W;', and enforcement of optind=0.
39302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39303         Likewise.
39304
39305 2009-12-21  Bruno Haible  <bruno@clisp.org>
39306
39307         localename: Improvements for MacOS X and Cygwin.
39308         * lib/localename.h (gl_locale_name_environ): New declaration.
39309         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39310         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39311         (gl_locale_name_posix): Invoke it.
39312         (gl_locale_name_default): Add comments. Use Windows native API also on
39313         Cygwin.
39314
39315 2009-12-21  Bruno Haible  <bruno@clisp.org>
39316
39317         Update list of Win32 locale ids.
39318         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39319         (LANG_SAMI): Renamed from LANG_SAAMI.
39320         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39321         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39322         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39323         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39324         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39325         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39326         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39327         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39328         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39329         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39330         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39331         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39332         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39333         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39334         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39335         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39336         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39337         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39338         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39339         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39340         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39341         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39342         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39343         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39344         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39345         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39346         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39347         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39348         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39349         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39350         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39351         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39352         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39353         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39354         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39355         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39356         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39357         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39358         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39359         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39360         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39361         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39362         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39363         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39364         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39365         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39366         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39367         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39368         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39369         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39370         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39371         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39372         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39373         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39374         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39375         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39376         Add more languages and countries for Sami, Sorbian. Add more countries
39377         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39378         for Pashto. Change country for Syriac, Tswana.
39379
39380 2009-12-21  Eric Blake  <ebb9@byu.net>
39381
39382         test-utimens: avoid spurious failure
39383         * tests/test-chown.h (nap): Factor...
39384         * tests/nap.h: ...into new file.
39385         * tests/test-lchown.h (nap): Avoid duplication.
39386         * tests/test-utimens-common.h (nap): Use shared implementation,
39387         necessary on file systems with 1-second resolution.
39388         * modules/chown-tests (Files): Include new file.
39389         * modules/fdutimensat-tests (Files): Likewise.
39390         * modules/futimens-tests (Files): Likewise.
39391         * modules/lchown-tests (Files): Likewise.
39392         * modules/openat-tests (Files): Likewise.
39393         * modules/utimens-tests (Files): Likewise.
39394         * modules/utimensat-tests (Files): Likewise.
39395
39396 2009-12-19  Eric Blake  <ebb9@byu.net>
39397
39398         futimens, utimensat: work around Linux bug
39399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39400         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39401         * lib/utimensat.c (rpl_utimensat): Work around it.
39402         * lib/futimens.c (rpl_futimens): Adjust comment.
39403
39404         utimens: work around Linux ctime bug
39405         * lib/utimens.c (detect_ctime_bug): New helper function.
39406         (update_timespec): Differentiate between workaround needed for
39407         this bug vs. what is needed for systems that lack utimensat.
39408         (fdutimens, lutimens): Work around bug.
39409
39410         utimens: check for ctime update
39411         * tests/test-utimens-common.h (check_ctime): Define.
39412         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39413         * tests/test-futimens.h (test_futimens): Likewise.
39414         * tests/test-lutimens.h (test_lutimens): Likewise.
39415         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39417
39418 2009-12-19  Bruno Haible  <bruno@clisp.org>
39419
39420         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39421         * tests/test-dprintf-posix2.sh: New file.
39422         * tests/test-dprintf-posix2.c: New file.
39423         * modules/dprintf-posix-tests (Files): Add them.
39424         (configure.ac): Check for getrlimit and setrlimit.
39425         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39426
39427 2009-12-19  Bruno Haible  <bruno@clisp.org>
39428
39429         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39430         * tests/test-fprintf-posix3.sh: New file.
39431         * tests/test-fprintf-posix3.c: New file.
39432         * modules/fprintf-posix-tests (Files): Add them.
39433         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39434
39435 2009-12-19  Eric Blake  <ebb9@byu.net>
39436
39437         dirfd: fix prototype
39438         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39439         * lib/dirfd.c (dirfd): Likewise.
39440
39441         canonicalize: reduce memory usage
39442         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39443         allocation to size.
39444         Reported by Solar Designer <solar@openwall.com>.
39445
39446 2009-12-19  Bruno Haible  <bruno@clisp.org>
39447
39448         New module attribute 'Applicability'.
39449         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39450         * gnulib-tool: New option --extract-applicability.
39451         (func_usage): Document it.
39452         (sed_extract_prog): Recognize it.
39453         (func_get_applicability): New function.
39454         (func_import): Generalize handling of 'link-warning' module.
39455         * modules/link-warning (Applicability): New section.
39456         * modules/arg-nonnull (Applicability): New section.
39457         Repoted by Simon Josefsson <simon@josefsson.org>.
39458
39459 2009-12-19  Bruno Haible  <bruno@clisp.org>
39460
39461         fflush: tweak
39462         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39463         * lib/fseeko.c (rpl_fseeko): Likewise.
39464
39465 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39466
39467         * lib/gl_list.h: Fix typo in comment.
39468
39469 2009-12-16  Eric Blake  <ebb9@byu.net>
39470
39471         fcntl: use to simplify other modules
39472         * modules/cloexec (Depends-on): Add fcntl.
39473         * modules/fchdir (Depends-on): Likewise.
39474         * modules/fd-safer-flag (Depends-on): Likewise.
39475         * modules/unistd-safer (Depends-on): Likewise.
39476         * modules/dup3 (configure.ac): Set module indicator.
39477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39478         missing.
39479         * lib/fchdir.c (_gl_register_dup): Fix comment.
39480         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39481         * lib/dup-safer.c (dup_safer): Likewise.
39482         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39483         * lib/dup3.c (dup3): Likewise.
39484         * tests/test-fchdir.c (main): Enhance test.
39485         Fixes a dup_cloexec bug reported by Ondřej Vašík.
39486
39487         fcntl: port portions of fcntl to mingw
39488         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39489         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39490         replacement for mingw.
39491         * modules/fcntl (Description): Update.
39492         (Depends-on): Add dup2.
39493         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39494         * modules/fcntl-h (Makefile.am): Substitute it.
39495         * lib/fcntl.in.h (fcntl): Update declaration.
39496         (F_DUPFD, F_GETFD): New macros, when needed.
39497         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39498         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39499         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39500         we now guarantee.
39501
39502         fcntl: work around cygwin bug in F_DUPFD
39503         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39504         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39505         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39506         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39507         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39508
39509         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39510         * modules/fcntl (Files): List new files.
39511         (configure.ac): Run a test.
39512         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39513         * lib/fcntl.c (rpl_fcntl): Likewise.
39514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39515         (gl_FCNTL_H): Always replace fcntl.h.
39516         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39517         * lib/fcntl.in.h (fcntl): Declare replacement.
39518         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39519         needed, plus a witness.
39520         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39521         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39522         * tests/test-fcntl.c: New file.
39523         * modules/fcntl-tests: Likewise.
39524
39525         binary-io: avoid potential compilation warning
39526         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39527         directives.
39528
39529         fflush: avoid compilation error on NetBSD
39530         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39531         between off_t and fpos_t, since the latter is sometimes a struct.
39532         * lib/fseeko.c (rpl_fseeko): Likewise.
39533         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39534
39535 2009-12-15  Eric Blake  <ebb9@byu.net>
39536
39537         fcntl-h, stdio, sys_ioctl: fix declarations
39538         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39539         function must not take arguments.
39540         * lib/sys_ioctl.in.h (ioctl): Likewise.
39541         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39542         (open): Add a link warning.
39543
39544 2009-12-15  Jim Meyering  <meyering@redhat.com>
39545
39546         areadlink, areadlink-with-size: relax license to LGPLv2+
39547         * modules/areadlink (License): Relax to LGPLv2+.
39548         * modules/areadlink-with-size (License): Likewise.
39549
39550 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39551             Bruno Haible  <bruno@clisp.org>
39552
39553         *printf: Fix memory leak.
39554         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39555         * lib/vfprintf.c (vfprintf): Likewise.
39556         * lib/dprintf.c (dprintf): Likewise.
39557         * lib/vdprintf.c (vdprintf): Likewise.
39558
39559 2009-12-14  Eric Blake  <ebb9@byu.net>
39560
39561         accept4: adjust module dependencies
39562         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39563
39564         utimens: one more try at avoiding compiler warning
39565         * lib/utimens.c (lutimens): Lower scope of result.
39566
39567 2009-12-13  Bruno Haible  <bruno@clisp.org>
39568
39569         Move the malloc checking from module 'list' to new module 'xlist'.
39570         * modules/xlist: New file.
39571         * lib/gl_xlist.h: New file.
39572         * lib/gl_xlist.c: New file.
39573         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39574         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39575         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39576         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39577         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39578         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39579         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39580         gl_sortedlist_nx_add): New declarations.
39581         (struct gl_list_implementation): Rename and change methods accordingly.
39582         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39583         (gl_list_nx_create): Renamed from gl_list_create.
39584         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39585         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39586         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39587         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39588         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39589         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39590         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39591         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39592         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39593         gl_list_create_empty.
39594         (gl_list_nx_create): Renamed from gl_list_create.
39595         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39596         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39597         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39598         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39599         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39600         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39601         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39602         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39603         * lib/gl_array_list.c: Don't include xalloc.h.
39604         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39605         NULL upon out-of-memory.
39606         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39607         out-of-memory.
39608         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39609         Change return type to 'int'.
39610         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39611         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39612         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39613         upon out-of-memory.
39614         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39615         upon out-of-memory.
39616         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39617         upon out-of-memory.
39618         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39619         upon out-of-memory.
39620         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39621         out-of-memory.
39622         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39623         Update.
39624         (gl_array_list_implementation): Update.
39625         * lib/gl_carray_list.c: Don't include xalloc.h.
39626         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39627         Return NULL upon out-of-memory.
39628         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39629         out-of-memory.
39630         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39631         Change return type to 'int'.
39632         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39633         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39634         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39635         upon out-of-memory.
39636         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39637         upon out-of-memory.
39638         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39639         out-of-memory.
39640         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39641         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39642         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39643         Update.
39644         (gl_carray_list_implementation): Update.
39645         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39646         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39647         gl_linked_create_empty. Return NULL upon out-of-memory.
39648         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39649         out-of-memory.
39650         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39651         Change return type to 'int'. Return -1 upon out-of-memory.
39652         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39653         out-of-memory.
39654         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39655         upon out-of-memory.
39656         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39657         upon out-of-memory.
39658         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39659         NULL upon out-of-memory.
39660         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39661         upon out-of-memory.
39662         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39663         out-of-memory.
39664         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39665         Update.
39666         * lib/gl_linked_list.c: Don't include xalloc.h.
39667         (gl_linked_list_implementation): Update.
39668         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39669         (add_to_bucket): Change return type to 'int'.
39670         (gl_linkedhash_list_implementation): Update.
39671         * lib/gl_anytree_list1.h (free_subtree): New function.
39672         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39673         gl_tree_create_empty. Return NULL upon out-of-memory.
39674         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39675         Change return type to 'int'. Return -1 upon out-of-memory.
39676         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39677         out-of-memory.
39678         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39679         (gl_tree_remove_node): New function, moved here from
39680         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39681         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39682         Update.
39683         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39684         malloc, not xmalloc. Return NULL upon out-of-memory.
39685         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39686         out-of-memory.
39687         (gl_tree_remove_node_from_tree): New function, extracted from
39688         gl_tree_remove_node.
39689         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39690         upon out-of-memory.
39691         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39692         out-of-memory.
39693         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39694         upon out-of-memory.
39695         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39696         upon out-of-memory.
39697         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39698         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39699         not xmalloc. Return NULL upon out-of-memory.
39700         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39701         out-of-memory.
39702         (gl_tree_remove_node_from_tree): New function, extracted from
39703         gl_tree_remove_node.
39704         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39705         upon out-of-memory.
39706         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39707         out-of-memory.
39708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39709         upon out-of-memory.
39710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39711         upon out-of-memory.
39712         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39713         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39714         gl_anytree_list1.h before gl_anyavltree_list2.h.
39715         (gl_avltree_list_implementation): Update.
39716         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39717         gl_anytree_list1.h before gl_anyavltree_list2.h.
39718         (gl_rbtree_list_implementation): Update.
39719         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39720         Change return type to 'int'. Return -1 upon out-of-memory. Use
39721         __builtin_expect.
39722         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39723         (gl_avltreehash_list_implementation): Update.
39724         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39725         (gl_rbtreehash_list_implementation): Update.
39726         * modules/array-list (Depends-on): Remove xalloc.
39727         * modules/carray-list (Depends-on): Likewise.
39728         * modules/linked-list (Depends-on): Likewise.
39729         * modules/linkedhash-list (Depends-on): Likewise.
39730         * modules/avltree-list (Depends-on): Likewise.
39731         * modules/rbtree-list (Depends-on): Likewise.
39732         * modules/avltreehash-list (Depends-on): Likewise.
39733         * modules/rbtreehash-list (Depends-on): Likewise.
39734
39735         * modules/xsublist: New file.
39736         * lib/gl_xsublist.h: New file.
39737         * lib/gl_xsublist.c: New file.
39738         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39739         (gl_sublist_nx_create): New declaration.
39740         * lib/gl_sublist.c: Don't include xalloc.h.
39741         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39742         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39743         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39744         Change return type to 'int'. Return -1 upon out-of-memory.
39745         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39746         upon out-of-memory.
39747         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39748         NULL upon out-of-memory.
39749         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39750         upon out-of-memory.
39751         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39752         NULL upon out-of-memory.
39753         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39754         NULL upon out-of-memory.
39755         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39756         upon out-of-memory.
39757         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39758         (gl_sublist_list_implementation): Update.
39759         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39760         upon out-of-memory.
39761         * modules/sublist (Depends-on): Remove xalloc.
39762
39763         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39764         * tests/test-carray_list.c: Likewise.
39765         * tests/test-linked_list.c: Likewise.
39766         * tests/test-linkedhash_list.c: Likewise.
39767         * tests/test-avltree_list.c: Likewise.
39768         * tests/test-rbtree_list.c: Likewise.
39769         * tests/test-avltreehash_list.c: Likewise.
39770         * tests/test-rbtreehash_list.c: Likewise.
39771         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39772         * modules/carray-list-tests (Makefile.am): Likewise.
39773         * modules/linked-list-tests (Makefile.am): Likewise.
39774         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39775         * modules/avltree-list-tests (Makefile.am): Likewise.
39776         * modules/rbtree-list-tests (Makefile.am): Likewise.
39777         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39778         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39779
39780         * NEWS: Mention the changes.
39781
39782         * lib/clean-temp.c: Include gl_xlist.h.
39783         * modules/clean-temp (Depends-on): Add xlist.
39784
39785         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39786         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39787
39788         * tests/test-array_oset.c: Include gl_xlist.h.
39789         * modules/array-oset-tests (Depends-on): Add xlist.
39790
39791         Reported by José E. Marchesi <jemarch@gnu.org>.
39792
39793 2009-12-13  Bruno Haible  <bruno@clisp.org>
39794
39795         Move the malloc checking from module 'oset' to new module 'xoset'.
39796         * modules/xoset: New file.
39797         * lib/gl_xoset.h: New file.
39798         * lib/gl_xoset.c: New file.
39799         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39800         declarations.
39801         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39802         (struct gl_oset_implementation): Rename and change methods accordingly.
39803         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39804         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39805         'int'. Mark as __warn_unused_result__.
39806         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39807         gl_oset_create_empty.
39808         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39809         'int'.
39810         * lib/gl_array_oset.c: Don't include xalloc.h.
39811         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39812         malloc, not xmalloc.
39813         (grow): Change return type to 'int'. Don't call xalloc_die.
39814         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39815         to 'int'.
39816         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39817         'int'.
39818         (gl_array_oset_implementation): Update.
39819         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39820         gl_tree_create_empty.
39821         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39822         'int'.
39823         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39824         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39825         xmalloc.
39826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39827         not xmalloc.
39828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39829         xmalloc.
39830         (gl_avltree_oset_implementation): Update.
39831         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39832         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39833         xmalloc.
39834         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39835         not xmalloc.
39836         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39837         xmalloc.
39838         (gl_rbtree_oset_implementation): Update.
39839         * modules/array-oset (Depends-on): Remove xalloc.
39840         * modules/avltree-oset (Depends-on): Likewise.
39841         * modules/rbtree-oset (Depends-on): Likewise.
39842         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39843         * tests/test-avltree_oset.c: Likewise.
39844         * tests/test-rbtree_oset.c: Likewise.
39845         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39846         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39847         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39848         * NEWS: Mention the change.
39849
39850 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39851
39852         maint.mk: allow a project to override release-prep commands
39853         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39854         commands into a new rule.
39855         (release-prep): New rule.
39856         (release-prep-hook): New overridable variable.
39857
39858 2009-12-13  Bruno Haible  <bruno@clisp.org>
39859
39860         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39861
39862 2009-12-13  Jim Meyering  <meyering@redhat.com>
39863
39864         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39865         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39866
39867 2009-12-12  Bruno Haible  <bruno@clisp.org>
39868
39869         duplocale: Tweak.
39870         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39871
39872 2009-12-12  Karl Berry  <karl@gnu.org>
39873
39874         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39875
39876 2009-12-12  Bruno Haible  <bruno@clisp.org>
39877
39878         * m4/po.m4: Undo incorrect untabification.
39879
39880 2009-12-12  Bruno Haible  <bruno@clisp.org>
39881
39882         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39883         * modules/c-strtod (Depends-on): Add locale.
39884         * modules/c-strtold (Depends-on): Likewise.
39885
39886 2009-12-12  Bruno Haible  <bruno@clisp.org>
39887
39888         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39889
39890 2009-12-11  Eric Blake  <ebb9@byu.net>
39891
39892         setenv: relax requirement in light of POSIX ruling
39893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39894         not NULL.
39895         * tests/test-setenv.c (main): Relax test.
39896         * tests/test-unsetenv.c (main): Likewise.
39897         * doc/posix-functions/setenv.texi (setenv): Document this.
39898         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39899
39900 2009-12-11  Bruno Haible  <bruno@clisp.org>
39901
39902         New module 'fd-safer-flag'.
39903         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39904         * lib/dup-safer.c (dup_safer_flag): Remove function.
39905         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39906         * lib/fd-safer.c (fd_safer_flag): Remove function.
39907         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39908         * modules/cloexec (configure.ac): Drop indicator macro.
39909         * modules/fd-safer-flag: New file.
39910         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39911         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39912         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39913
39914 2009-12-11  Bruno Haible  <bruno@clisp.org>
39915
39916         Tests for module 'nl_langinfo'.
39917         * modules/nl_langinfo-tests: New file.
39918         * tests/test-nl_langinfo.sh: New file.
39919         * tests/test-nl_langinfo.c: New file.
39920
39921         New module 'nl_langinfo'.
39922         * lib/nl_langinfo.c: New file.
39923         * m4/nl_langinfo.m4: New file.
39924         * modules/nl_langinfo: New file.
39925         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39926
39927 2009-12-11  Bruno Haible  <bruno@clisp.org>
39928
39929         Tests for module 'langinfo'.
39930         * modules/langinfo-tests: New file.
39931         * tests/test-langinfo.c: New file.
39932
39933         New module 'langinfo'.
39934         * lib/langinfo.in.h: New file.
39935         * m4/langinfo_h.m4: New file.
39936         * modules/langinfo: New file.
39937         * doc/posix-headers/langinfo.texi: Mention the new module.
39938
39939 2009-12-11  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/config.charset: Untabify.
39942
39943 2009-12-11  Bruno Haible  <bruno@clisp.org>
39944
39945         * modules/unistd-safer (configure.ac): Drop indicator macro.
39946
39947 2009-12-11  Bruno Haible  <bruno@clisp.org>
39948
39949         Move pipe2-safer code to its own file.
39950         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39951         * lib/pipe-safer.c (pipe2_safer): Remove function.
39952         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39953         (Makefile.am): Add it to lib_SOURCES.
39954
39955 2009-12-10  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39958
39959 2009-12-10  Bruno Haible  <bruno@clisp.org>
39960
39961         Declare which arguments expect non-NULL values, for GCC and clang.
39962         * build-aux/arg-nonnull.h: New file.
39963         * modules/arg-nonnull: New file.
39964         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39965         (inet_ntop, inet_pton): Use it.
39966         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39967         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39968         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39969         (open, openat): Use it.
39970         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39971         (fnmatch): Use it.
39972         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39973         (getopt, getopt_long, getopt_long_only): Use it.
39974         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39975         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39976         Use it.
39977         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39978         (iconv_open): Use it.
39979         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39980         (strtoimax, strtoumax): Use it.
39981         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39982         (duplocale): Use it.
39983         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39984         (frexp, frexpl): Use it.
39985         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39986         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39987         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39988         (tsearch, tfind, tdelete, twalk): Use it.
39989         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39990         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39991         sigpending): Use it.
39992         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39993         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39994         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39995         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39996         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39997         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39998         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39999         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40000         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40001         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40002         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40003         Use it.
40004         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40005         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40006         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40007         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40008         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40009         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40010         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40011         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40012         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40013         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40014         strtoull, unsetenv): Use it.
40015         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40016         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40017         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40018         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40019         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40020         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40021         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40022         (strcasecmp, strncasecmp): Use it.
40023         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40024         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40025         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40026         rpl_setsockopt): Use it.
40027         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40028         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40029         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40030         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40031         (gettimeofday): Use it.
40032         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40033         (times): Use it.
40034         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40035         (uname): Use it.
40036         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40037         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40038         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40039         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40040         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40041         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40042         unlinkat, write): Use it.
40043         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40044         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40045         * lib/argv-iter.h: Include arg-nonnull.h.
40046         (_ATTRIBUTE_NONNULL_): Remove macro.
40047         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40048         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40049         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40050         optimization.
40051         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40052         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40053         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40054         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40055         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40056         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40057         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40058         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40059         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40060         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40061         * modules/dirent (Depends-on): Add arg-nonnull.
40062         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40063         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40064         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40065         * modules/fnmatch (Depends-on): Add arg-nonnull.
40066         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40067         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40068         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40069         * modules/glob (Depends-on): Add arg-nonnull.
40070         (Makefile.am): Insert arg-nonnull.h into glob.h.
40071         * modules/iconv_open (Depends-on): Add arg-nonnull.
40072         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40073         * modules/inttypes (Depends-on): Add arg-nonnull.
40074         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40075         * modules/locale (Depends-on): Add arg-nonnull.
40076         (Makefile.am): Insert arg-nonnull.h into locale.h.
40077         * modules/math (Depends-on): Add arg-nonnull.
40078         (Makefile.am): Insert arg-nonnull.h into math.h.
40079         * modules/netdb (Depends-on): Add arg-nonnull.
40080         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40081         * modules/search (Depends-on): Add arg-nonnull.
40082         (Makefile.am): Insert arg-nonnull.h into search.h.
40083         * modules/signal (Depends-on): Add arg-nonnull.
40084         (Makefile.am): Insert arg-nonnull.h into signal.h.
40085         * modules/spawn (Depends-on): Add arg-nonnull.
40086         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40087         * modules/stdio (Depends-on): Add arg-nonnull.
40088         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40089         * modules/stdlib (Depends-on): Add arg-nonnull.
40090         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40091         * modules/string (Depends-on): Add arg-nonnull.
40092         (Makefile.am): Insert arg-nonnull.h into string.h.
40093         * modules/strings (Depends-on): Add arg-nonnull.
40094         (Makefile.am): Insert arg-nonnull.h into strings.h.
40095         * modules/sys_socket (Depends-on): Add arg-nonnull.
40096         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40097         * modules/sys_stat (Depends-on): Add arg-nonnull.
40098         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40099         * modules/sys_time (Depends-on): Add arg-nonnull.
40100         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40101         * modules/sys_times (Depends-on): Add arg-nonnull.
40102         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40103         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40104         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40105         * modules/time (Depends-on): Add arg-nonnull.
40106         (Makefile.am): Insert arg-nonnull.h into time.h.
40107         * modules/unistd (Depends-on): Add arg-nonnull.
40108         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40109         * modules/wchar (Depends-on): Add arg-nonnull.
40110         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40111         * modules/argv-iter (Depends-on): Add arg-nonnull.
40112         * tests/test-canonicalize.c (null_ptr): New function.
40113         (main): Use it.
40114         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40115         (main): Use it.
40116         * tests/test-memmem.c (null_ptr): New function.
40117         (main): Use it.
40118         Reported by Jim Meyering.
40119
40120 2009-12-10  Bruno Haible  <bruno@clisp.org>
40121
40122         Use spaces for indentation, not tabs.
40123         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40124         * m4/*.m4: Untabify.
40125         * build-aux/*.h: Untabify.
40126         * tests/**/*.[hc]: Untabify.
40127         * README: New section "Indent with spaces, not TABs", based on
40128         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40129         * NEWS: Mention the change.
40130
40131 2009-12-10  Bruno Haible  <bruno@clisp.org>
40132
40133         pty test: Fix link error.
40134         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40135         test_pty_LDADD.
40136
40137 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40138
40139         * modules/pty: New file.
40140         * modules/pty-tests: New file.
40141         * m4/pty.m4: New file.
40142         * tests/test-pty.c: New file.
40143         * doc/glibc-headers/pty.texi: Modified.
40144         * doc/glibc-functions/forkpty.texi: Modified.
40145         * doc/glibc-functions/openpty.texi: Modified.
40146
40147 2009-12-10  Bruno Haible  <bruno@clisp.org>
40148
40149         Avoid syntax error in C++ mode.
40150         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40151
40152 2009-12-10  Bruno Haible  <bruno@clisp.org>
40153
40154         Use sed with option -e.
40155         * gnulib-tool (func_version, func_emit_copyright_notice,
40156         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40157         option -e to sed.
40158         * modules/link-warning (Makefile.am): Likewise.
40159
40160 2009-12-10  Jim Meyering  <meyering@redhat.com>
40161
40162         mgetgroups: do not write bytes beyond end of malloc'd buffer
40163         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40164         username, we call getgroups with a one-element-shorter buffer,
40165         but still told it the length was original, max_n_groups.
40166
40167 2009-12-09  Eric Blake  <ebb9@byu.net>
40168
40169         cloexec: relax license
40170         * modules/cloexec (Maintainer): Add myself.
40171         (License): Use LGPL, not GPL.
40172
40173         link-warning: optimize generation
40174         * modules/link-warning (Makefile.am): Reduce process usage.
40175
40176 2009-12-09  Bruno Haible  <bruno@clisp.org>
40177
40178         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40179         workaround was added on 2009-11-17.
40180
40181 2009-12-09  Jim Meyering  <meyering@redhat.com>
40182             Bruno Haible  <bruno@clisp.org>
40183
40184         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40185         * modules/link-warning (Makefile.am): Make the comment-removing sed
40186         command more robust in the face of bootstrap-prepended comment lines.
40187
40188 2009-12-09  Bruno Haible  <bruno@clisp.org>
40189
40190         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40191         most one group.
40192
40193 2009-12-09  Simon Josefsson <simon@josefsson.org>
40194             Bruno Haible  <bruno@clisp.org>
40195
40196         * build-aux/link-warning.h: Add copyright notice.
40197         * modules/link-warning (Makefile.am): Generate link-warning.h from
40198         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40199         * NEWS: Mention change in link-warning module.
40200         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40201         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40202         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40203         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40204         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40205         * modules/math (Makefile.am): Add dependency to math.h.
40206         * modules/search (Makefile.am): Add dependency to search.h.
40207         * modules/signal (Makefile.am): Add dependency to signal.h.
40208         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40209         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40210         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40211         * modules/string (Makefile.am): Add dependency to string.h.
40212         * modules/strings (Makefile.am): Add dependency to strings.h.
40213         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40214         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40215         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40216         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40217         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40218         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40219         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40220         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40221         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40222
40223 2009-12-09  Bruno Haible  <bruno@clisp.org>
40224
40225         fchdir: Optimize away rpl_fstat when possible.
40226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40227         REPLACE_OPEN_DIRECTORY.
40228         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40229
40230 2009-12-09  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/fchdir.c: Update comment.
40233
40234 2009-12-09  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40237
40238 2009-12-08  Eric Blake  <ebb9@byu.net>
40239
40240         fchdir: avoid memory leak on re-registration.
40241         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40242
40243 2009-12-08  Jim Meyering  <meyering@redhat.com>
40244
40245         init.sh: avoid Solaris 10 /bin/sh portability problem
40246         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40247         sourced script:
40248           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40249           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40250           bar
40251         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40252         and two tests used that idiom.
40253         * tests/init.sh: Update suggested usage comments.
40254         (path_prepend_): New function, to be used in place
40255         of the --src-path=DIR option.
40256         (setup_): Move PATH-prepending code into path_prepend_.
40257         * tests/test-pread.sh: Adapt to new usage.
40258         * tests/test-xalloc-die.sh: Likewise.
40259
40260 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40261
40262         * doc/gnulib.texi (Glibc pty.h): Add.
40263         * doc/glibc-functions/forkpty.texi: Add.
40264         * doc/glibc-functions/openpty.texi: Add.
40265         Suggested by Bruno Haible.
40266
40267 2009-12-08  Eric Blake  <ebb9@byu.net>
40268
40269         fchdir: fix logic bugs
40270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40271         * tests/test-fchdir.c (main): Enhance test.
40272         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40273         is in use.
40274
40275         dup2: fix logic bugs
40276         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40277         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40278         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40279         exists.
40280         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40281
40282 2009-12-07  Eric Blake  <ebb9@byu.net>
40283
40284         unlink: fix m4 detection
40285         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40286
40287         unistd-safer: add unit test
40288         * modules/unistd-safer-tests: New file.
40289         * tests/test-dup-safer.c: Likewise.
40290         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40291         * tests/test-dup2.c (setmode): Likewise.
40292         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40293
40294         cloexec: preserve text vs. binary across dup_cloexec
40295         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40296         mode.
40297         * modules/dup2-tests (Depends-on): Add binary-io.
40298         * modules/cloexec-tests (Depends-on): Likewise.
40299         * tests/test-dup2.c (setmode, is_mode): New helpers.
40300         (main): Add tests that translation mode is preserved.
40301         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40302         Reported by Bruno Haible.
40303
40304         mgetgroups: reduce duplicate listings
40305         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40306         resulting array.
40307         * tests/test-chown.h (test_chown): Simplify client.
40308         * tests/test-lchown.h (test_lchown): Likewise.
40309
40310 2009-12-06  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40313         value.
40314
40315 2009-12-06  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/progname.c: Include stdio.h, stdlib.h.
40318         (set_program_name): Reject a NULL argument.
40319
40320 2009-12-05  Eric Blake  <ebb9@byu.net>
40321
40322         pipe2-safer: new module
40323         * modules/pipe2-safer: New file.
40324         * lib/unistd-safer.h (pipe2_safer): New prototype.
40325         * lib/unistd--.h (pipe2): New wrapper.
40326         * lib/pipe-safer.c (pipe2_safer): New function.
40327         * modules/pipe (Depends-on): Add pipe2-safer.
40328         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40329
40330         stdlib-safer: preserve cloexec flag for mkostemp[s]
40331         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40332         fd_safer_flag.
40333
40334         unistd-safer: allow preservation of cloexec status via flag
40335         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40336         prototypes.
40337         * lib/dup-safer.c (dup_safer_flag): New function.
40338         * lib/fd-safer.c (fd_safer_flag): Likewise.
40339         * modules/cloexec (configure.ac): Set witness.
40340
40341         test-dup2: enhance test
40342         * modules/dup2-tests (Depends-on): Add cloexec.
40343         * tests/test-dup2.c (main): Enhance test.
40344
40345         cloexec: add dup_cloexec
40346         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40347         header and comments.
40348         * lib/cloexec.c (set_cloexec_flag): Add comments.
40349         (dup_cloexec): New function, with mingw implementation borrowed
40350         from...
40351         * lib/w32spawn.h (dup_noinherit): ...here.
40352         * modules/execute (Depends-on): Add cloexec.
40353         * modules/pipe (Depends-on): Likewise.
40354         * modules/cloexec (Depends-on): Add dup2.
40355         * modules/cloexec-tests (Files): New file.
40356         * tests/test-cloexec.c: Likewise.
40357
40358         test-xalloc-die: fix test for mingw
40359         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40360         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40361         directory and .exe suffix off argv[0] output.
40362
40363         test-fseeko: fix test for mingw
40364         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40365         than undefining fseek, so test will pass on mingw.
40366
40367 2009-12-05  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/progname.h (set_program_name): Clarify specification.
40370         * lib/progname.c (set_program_name): Likewise.
40371         Reported by Jim Meyering.
40372
40373 2009-12-05  Jim Meyering  <meyering@redhat.com>
40374
40375         maint.mk: backslash-escape parens in default regexp
40376         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40377         backslash-escape the literal parentheses.
40378
40379         maint.mk: news-date-check: use grep -E
40380         * top/maint.mk (today): Define a Make variable, not a...
40381         (news-date-check): ...shell variable.
40382         (news-date-regexp): Use the Make variable.
40383         Use grep's -E option.  Change the failing diagnostic to mention
40384         the variable, $(news-date-regexp).
40385
40386 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40387
40388         maintainer-makefile: allow customization of NEWS entry format
40389         * top/maint.mk (news-date-regexp): New overridable variable.
40390         (news-date-check): Use it.
40391
40392 2009-12-04  Eric Blake  <ebb9@byu.net>
40393
40394         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40395         * lib/mgetgroups.h (xgetgroups): New prototype.
40396         * lib/mgetgroups.c (xgetgroups): New wrapper.
40397         (mgetgroups): Handle ENOSYS.
40398         * modules/mgetgroups (Depends-on): Add realloc.
40399         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40400
40401         mgetgroups: avoid argument promotion issues with -1
40402         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40403         for invalid gid_t.
40404         * tests/test-chown.h (getegid, test_chown): Likewise.
40405         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40406
40407 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40408
40409         exclude: Fix header file problems.
40410         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40411
40412 2009-12-01  Jim Meyering  <meyering@redhat.com>
40413
40414         fts: fts_open: do not let an empty string cause immediate failure
40415         This is required in support of GNU rm, for which the command
40416         "rm A '' B" must process and remove both A and B, in spite of
40417         the empty string argument.
40418         * lib/fts.c (fts_open): Do not let the presence of an empty string
40419         cause fts_open to fail immediately.  Most fts-using tools must be
40420         able to process all arguments, in order, and can be expected to
40421         diagnose such arguments themselves.
40422
40423 2009-11-30  Eric Blake  <ebb9@byu.net>
40424
40425         utimens: fix compilation error
40426         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40427         Declare variable at right scope.
40428
40429 2009-11-29  Jim Meyering  <meyering@redhat.com>
40430
40431         bootstrap: handle perl-5.11's changed --version output
40432         * build-aux/bootstrap (get_version): Handle perl separately,
40433         since perl-5.11's --version output is different.
40434
40435 2009-11-28  Jim Meyering  <meyering@redhat.com>
40436
40437         userspec: depend on the inttostr module, too
40438         * modules/userspec (Depends-on): Add inttostr.
40439
40440         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40441         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40442         number of MAXUID when it evaluates to (uid_t) -1.
40443         Likewise for group ID.  Reported by Matt McCutchen in
40444         <http://savannah.gnu.org/bugs/?28113>
40445
40446         userspec: reformat to use spaces, not TABs
40447         * lib/userspec.c: Expand TABs to spaces.
40448         Add Emacs' "indent-tabs-mode: nil" hint.
40449
40450 2009-11-27  Eric Blake  <ebb9@byu.net>
40451
40452         getopt-gnu: flush out another BSD bug
40453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40454         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40455         flush out BSD bug.
40456         * tests/test-getopt.h (test_getopt): End lists with NULL.
40457         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40458         (test_getopt_long_posix): Enhance test.
40459         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40460         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40461         getopt-gnu.
40462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40463         Likewise.
40464
40465 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40466
40467         * modules/idpriv-droptemp-tests (Notice): Fix text.
40468
40469 2009-11-27  Jim Meyering  <meyering@redhat.com>
40470
40471         test-xalloc-die: avoid spurious failure due to libtool argv difference
40472         In a libtool-enabled project, this test would fail due to a difference
40473         in the emitted program name, e.g.,
40474         -test-xalloc-die: memory exhausted
40475         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40476         Use program to avoid that.
40477         * modules/xalloc-die-tests (Depends-on): Add progname.
40478         * tests/test-xalloc-die.c: Include progname.h".
40479         (program_name): Remove decl.
40480         (main): Call set_program_name.
40481         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40482
40483 2009-11-26  Richard Jones  <rjones@redhat.com>
40484
40485         w32sock: leave win32 error in place.
40486         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40487
40488 2009-11-26  Eric Blake  <ebb9@byu.net>
40489
40490         init.sh: suggest to use skip_ and fail_ functions in comments
40491         * tests/init.sh: Add a sentence.
40492
40493 2009-11-25  Bruno Haible  <bruno@clisp.org>
40494
40495         init.sh: add documentation in comments
40496         * tests/init.sh: Add some developer and user documentation.
40497
40498 2009-11-26  Jim Meyering  <meyering@redhat.com>
40499
40500         init.sh: accommodate even those who specify bogus srcdir manually
40501         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40502         configure-time tests to be sanitized, so that there is no need to
40503         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40504         (with no double quotes) suffices.  However, since tests may be
40505         invoked manually, and since you may explicitly set srcdir to the
40506         name of a directory containing spaces, do quote its uses here.
40507         * tests/test-pread.sh: Likewise.
40508         Suggested by Bruno Haible.
40509
40510         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40511         * tests/test-pread.sh: Write no data into the pipe, because
40512         test-pread actually reads none.  This avoids a diagnostic,
40513         "bash: echo: write error: Broken pipe", that arises in the unusual
40514         event something is ignoring SIGPIPE, and might be interpreted
40515         as some sort of failure.  Reported by Bruno Haible.
40516
40517 2009-11-25  Jim Meyering  <meyering@redhat.com>
40518
40519         test-pread: cover failure with ESPIPE and EINVAL
40520         * tests/test-pread.c (main): Test for failure, too.
40521         * tests/test-pread.sh: Invoke with stdin on a pipe.
40522         Suggested by Eric Blake.
40523
40524         pread: improvement and fix
40525         * modules/pread (Depends-on): Depend on lseek, for portability to
40526         e.g., mingw.  Suggested by Eric Blake.
40527         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40528
40529         unistd.in.h: correct declaration of pread
40530         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40531         Reported by Richard W.M. Jones.
40532
40533         test-pread.sh: distribute the test script
40534         * modules/pread-tests (Files): Include test-pread.sh.
40535
40536         test-pread.sh: clean up
40537         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40538         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40539         That is unnecessary, since it's always ".".
40540         Suggestion from Eric Blake.
40541
40542         test-pread.sh: make executable
40543         * tests/test-pread.sh: Set executable bit.
40544         Reported by Eric Blake.
40545
40546         correct typo in test-pread.sh
40547         * tests/test-pread.sh: Add #! line.
40548
40549         test pread
40550         * tests/test-pread.c: New file.
40551         * tests/test-pread.sh: Likewise.
40552         * modules/pread-tests: Likewise.
40553
40554         pread: new module
40555         * modules/pread: New file.
40556         * lib/unistd.in.h (pread): Define/declare.
40557         * lib/pread.c (pread): New file.
40558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40559         * modules/unistd (Makefile.am): Substitute witnesses.
40560         * doc/posix-functions/pread.texi (pread): Update.
40561         * MODULES.html.sh: Add pread.
40562
40563 2009-11-25  Jim Meyering  <meyering@redhat.com>
40564
40565         tests/init.sh: new file to be used via most *.sh tests
40566         * tests/init.sh: New file.
40567
40568 2009-11-25  Eric Blake  <ebb9@byu.net>
40569
40570         utimens: work around older Linux failure with symlinks
40571         * lib/utimens.c (lutimensat_works_really): New variable.
40572         (fdutimens, lutimens): Use it to manage kernels that support
40573         nanosecond times on files, but not on symlinks.
40574         Reported by Ondřej Vašík.
40575
40576         utimes: fix configure grammar
40577         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40578
40579 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40580
40581         regex: Fix fastmap for multibyte character ranges.
40582         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40583         characters when a multibyte character range is included.
40584
40585 2009-11-22  Andy Wingo  <wingo@pobox.com>
40586
40587         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40588         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40589
40590 2009-11-24  Bruno Haible  <bruno@clisp.org>
40591
40592         doc: Most *_l functions exist in MacOS X 10.5.
40593         * doc/posix-functions/duplocale.texi: Update platforms list.
40594         * doc/posix-functions/freelocale.texi: Likewise.
40595         * doc/posix-functions/newlocale.texi: Likewise.
40596         * doc/posix-functions/uselocale.texi: Likewise.
40597         * doc/posix-functions/isalnum_l.texi: Likewise.
40598         * doc/posix-functions/isalpha_l.texi: Likewise.
40599         * doc/posix-functions/isblank_l.texi: Likewise.
40600         * doc/posix-functions/iscntrl_l.texi: Likewise.
40601         * doc/posix-functions/isdigit_l.texi: Likewise.
40602         * doc/posix-functions/isgraph_l.texi: Likewise.
40603         * doc/posix-functions/islower_l.texi: Likewise.
40604         * doc/posix-functions/isprint_l.texi: Likewise.
40605         * doc/posix-functions/ispunct_l.texi: Likewise.
40606         * doc/posix-functions/isspace_l.texi: Likewise.
40607         * doc/posix-functions/isupper_l.texi: Likewise.
40608         * doc/posix-functions/iswalnum_l.texi: Likewise.
40609         * doc/posix-functions/iswalpha_l.texi: Likewise.
40610         * doc/posix-functions/iswblank_l.texi: Likewise.
40611         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40612         * doc/posix-functions/iswctype_l.texi: Likewise.
40613         * doc/posix-functions/iswdigit_l.texi: Likewise.
40614         * doc/posix-functions/iswgraph_l.texi: Likewise.
40615         * doc/posix-functions/iswlower_l.texi: Likewise.
40616         * doc/posix-functions/iswprint_l.texi: Likewise.
40617         * doc/posix-functions/iswpunct_l.texi: Likewise.
40618         * doc/posix-functions/iswspace_l.texi: Likewise.
40619         * doc/posix-functions/iswupper_l.texi: Likewise.
40620         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40621         * doc/posix-functions/isxdigit_l.texi: Likewise.
40622         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40623         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40624         * doc/posix-functions/strcoll_l.texi: Likewise.
40625         * doc/posix-functions/strfmon_l.texi: Likewise.
40626         * doc/posix-functions/strftime_l.texi: Likewise.
40627         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40628         * doc/posix-functions/strxfrm_l.texi: Likewise.
40629         * doc/posix-functions/tolower_l.texi: Likewise.
40630         * doc/posix-functions/toupper_l.texi: Likewise.
40631         * doc/posix-functions/towctrans_l.texi: Likewise.
40632         * doc/posix-functions/towlower_l.texi: Likewise.
40633         * doc/posix-functions/towupper_l.texi: Likewise.
40634         * doc/posix-functions/wcscoll_l.texi: Likewise.
40635         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40636         * doc/posix-functions/wctrans_l.texi: Likewise.
40637         * doc/posix-functions/wctype_l.texi: Likewise.
40638         * doc/glibc-functions/strptime_l.texi: Likewise.
40639         * doc/glibc-functions/strtod_l.texi: Likewise.
40640         * doc/glibc-functions/strtof_l.texi: Likewise.
40641         * doc/glibc-functions/strtol_l.texi: Likewise.
40642         * doc/glibc-functions/strtold_l.texi: Likewise.
40643         * doc/glibc-functions/strtoll_l.texi: Likewise.
40644         * doc/glibc-functions/strtoul_l.texi: Likewise.
40645         * doc/glibc-functions/strtoull_l.texi: Likewise.
40646         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40647         * doc/glibc-functions/wcstod_l.texi: Likewise.
40648         * doc/glibc-functions/wcstof_l.texi: Likewise.
40649         * doc/glibc-functions/wcstol_l.texi: Likewise.
40650         * doc/glibc-functions/wcstold_l.texi: Likewise.
40651         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40652         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40653         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40654
40655 2009-11-24  Bruno Haible  <bruno@clisp.org>
40656
40657         duplocale: Fix logic bug.
40658         * lib/duplocale.c: Don't include <langinfo.h>.
40659         (_NL_LOCALE_NAME): Remove macro.
40660         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40661         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40662
40663 2009-11-23  Jim Meyering  <meyering@redhat.com>
40664
40665         test-update-copyright: don't hard-code /usr/bin/perl
40666         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40667         perl to print the current year.  Gilles Espinasse reported that
40668         the replaced use of perl was hard-coded as /usr/bin/perl.
40669
40670 2009-11-23  Bruno Haible  <bruno@clisp.org>
40671
40672         duplocale: Add support for glibc 2.3.x.
40673         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40674
40675 2009-11-22  Bruno Haible  <bruno@clisp.org>
40676
40677         vasnprintf: Tiny optimization.
40678         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40679         MacOS X.
40680
40681 2009-11-22  Bruno Haible  <bruno@clisp.org>
40682
40683         Tests for module 'duplocale'.
40684         * modules/duplocale-tests: New file.
40685         * tests/test-duplocale.c: New file.
40686
40687         New module 'duplocale'.
40688         * m4/duplocale.m4: New file.
40689         * lib/locale.in.h (duplocale): New declaration.
40690         * lib/duplocale.c: New file.
40691         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40692         gl_LOCALE_H_DEFAULTS): New macros.
40693         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40694         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40695         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40696         REPLACE_DUPLOCALE.
40697         * modules/duplocale: New file.
40698         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40699
40700 2009-11-22  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/locale-tests (configure.ac): Test for newlocale function.
40703         * tests/test-locale.c: When the system has extended locale functions,
40704         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40705
40706         locale: Make locale_t available when possible.
40707         * lib/locale.in.h: Include <xlocale.h> when it exists.
40708         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40709         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40710         * modules/locale (Depends-on): Add extensions.
40711         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40712         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40713
40714 2009-11-22  Bruno Haible  <bruno@clisp.org>
40715
40716         Add comments.
40717         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40718         invocation.
40719         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40720         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40721         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40722
40723 2009-11-22  Bruno Haible  <bruno@clisp.org>
40724
40725         error: account for the possibility of freopen (stdout).
40726         * lib/error.c: Include <unistd.h>.
40727         (flush_stdout): New function, extracted from error and error_at_line.
40728         Determine stdout's fd dynamically.
40729         (error, error_at_line): Invoke flush_stdout.
40730         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40731         * modules/error (Depends-on): Add unistd.
40732
40733 2009-11-22  Bruno Haible  <bruno@clisp.org>
40734
40735         diffseq: Add comment.
40736         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40737
40738 2009-11-22  Jim Meyering  <meyering@redhat.com>
40739
40740         c-stack: avoid defining an unused static function
40741         * lib/c-stack.c (find_stack_direction): Do not define this function
40742         when it will not be used.
40743
40744         diffseq: avoid spurious gcc warnings
40745         * lib/diffseq.h (IF_LINT2): Define.
40746         (compareseq): Use it to initialize two members of "part".
40747         This avoids two used-uninitialized warnings.
40748
40749 2009-11-21  Jim Meyering  <meyering@redhat.com>
40750
40751         c-stack: avoid "ignoring return value of `write'" warning
40752         * lib/c-stack.c: Include "ignore-value.h".
40753         (die): Explicitly ignore each write return value.
40754         * modules/c-stack (Depends-on): Add ignore-value.
40755
40756 2009-11-21  Bruno Haible  <bruno@clisp.org>
40757
40758         diffseq: reduce scope of variable 'best'.
40759         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40760         variable, earlier used for two different purposes.
40761
40762 2009-11-21  Jim Meyering  <meyering@redhat.com>
40763
40764         diffseq: remove useless assignment to "best"
40765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40766         assignment.  At that point "best" is already guaranteed to be zero.
40767
40768 2009-11-20  Eric Blake  <ebb9@byu.net>
40769
40770         build: mention ftp redirector in release announcements
40771         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40772         values that used to come from cfg.mk; mention FTP redirect URL.
40773         * build-aux/announce-gen: Mention the mirror list.
40774         Suggested by Karl Berry.
40775
40776         nanosleep: improve port to mingw
40777         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40779         LIB_NANOSLEEP, but only when needed.
40780         * modules/select (Link): Document LIBSOCKET.
40781         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40782         enough.
40783
40784         nanosleep: work around cygwin bug
40785         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40786         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40787         bug.
40788         (getnow): Delete, not needed.
40789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40790         LIB_CLOCK_GETTIME.
40791         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40792         clock-time, gettime.
40793         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40794         bug.
40795         * modules/nanosleep-tests: New test.
40796         * tests/test-nanosleep.c: New file.
40797
40798         sleep: work around cygwin bug
40799         * lib/sleep.c (rpl_sleep): Work around the bug.
40800         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40801         (gl_PREREQ_SLEEP): Delete unused macro.
40802         * modules/sleep (Depends-on): Add verify.
40803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40804         * modules/unistd (Makefile.am): Substitute witness.
40805         * lib/unistd.in.h (sleep): Update prototype.
40806         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40807         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40808         * modules/sleep-tests (Depends-on): Check for alarm.
40809
40810 2009-11-20  Jim Meyering  <meyering@redhat.com>
40811
40812         maint.mk: improve sc_prohibit_magic_number_exit
40813         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40814         so it does not match uses like System.exit(1).
40815         Add comments showing how to correct all offenders.
40816
40817 2009-11-19  Eric Blake  <ebb9@byu.net>
40818
40819         xalloc-die-tests: add missing library
40820         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40821
40822         test-xvasprintf: silence compiler warnings
40823         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40824         empty string from gcc.
40825
40826 2009-11-19  Jim Meyering  <meyering@redhat.com>
40827
40828         xfreopen: new module, from coreutils
40829         * modules/xfreopen: New module.
40830         * lib/xfreopen.c: New file.
40831         * lib/xfreopen.h: New file.
40832         * MODULES.html.sh (File stream based Input/Output"): Add it.
40833
40834 2009-11-19  Eric Blake  <ebb9@byu.net>
40835
40836         manywarnings: depend on warnings
40837         * modules/manywarnings (Depends-on): Add warnings.
40838
40839         build: avoid compiler warnings
40840         * lib/select.c (rpl_select): Delete unused variable.
40841         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40842
40843 2009-11-18  Eric Blake  <ebb9@byu.net>
40844
40845         tests: avoid false negative with --with-packager
40846         * tests/test-version-etc.sh: Discard packager information.
40847         * tests/test-argp-version-etc-1.sh: Likewise.
40848         Reported by Mike Frysinger.
40849
40850         utimens: fix regression on Solaris
40851         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40852         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40853         can only change fd timestamps via futimesat.  Instead, use an
40854         additional witness macro to avoid BSD bug.
40855         Reported by Jim Meyering.
40856
40857 2009-11-17  Eric Blake  <ebb9@byu.net>
40858
40859         usleep: use it to simplify tests
40860         * modules/stat-time-tests (Depends-on): Add usleep.
40861         (configure.ac): Drop usleep check.
40862         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40863         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40864         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40865         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40866         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40867         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40868         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40869         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40870         Likewise.
40871         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40872         * tests/test-lchown.h (nap): Likewise.
40873         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40874         * tests/test-stat-time.c (nap): Likewise.
40875         * tests/test-utimens-common.h (nap): Update comments.
40876
40877         usleep: new module
40878         * modules/usleep: New file.
40879         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40880         * lib/usleep.c (usleep): Likewise.
40881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40882         * modules/unistd (Makefile.am): Substitute witnesses.
40883         * lib/unistd.in.h (usleep): Add declaration.
40884         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40885         * MODULES.html.sh (Date and time): Likewise.
40886         * modules/usleep-tests (Depends-on): New test.
40887         * tests/test-usleep.c: New file.
40888
40889         chown: work around OpenBSD bug
40890         * lib/chown.c (rpl_chown): Work around the bug.
40891         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40892         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40894         * modules/chown (Depends-on): Add stdbool.
40895         * modules/lchown (Depends-on): Likewise.
40896         * doc/posix-functions/chown.texi (chown): Document the bug.
40897         * doc/posix-functions/lchown.texi (lchown): Likewise.
40898         * tests/test-lchown.h (test_chown): Relax test.
40899
40900         mkstemp: avoid conflict with C++ keyword template
40901         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40902         * lib/mkostemp.c (mkostemp): Likewise.
40903         * lib/mkostemps.c (mkostemps): Likewise.
40904         * lib/mkstemp.c (mkstemp): Likewise.
40905         * lib/mkstemps.c (mkstemps): Likewise.
40906
40907         xalloc-die-tests: optimize
40908         * tests/test-xalloc-die.sh: Reduce number of processes.
40909
40910 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40911
40912         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40913         patch from ludo@gnu.org (Ludovic Courtès).
40914
40915 2009-11-17  Jim Meyering  <meyering@redhat.com>
40916
40917         version-etc: use proper license string
40918         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40919         * modules/version-etc-fsf: Likewise.
40920
40921 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40922
40923         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40924         printed to stdout.  Deal with EOL differences.
40925
40926 2009-11-17  Eric Blake  <ebb9@byu.net>
40927
40928         unsetenv: work around Solaris bug
40929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40930         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40931         Reported by Jim Meyering.
40932
40933         vasnprintf: avoid compiler warnings
40934         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40935         variables.
40936         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40937
40938 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40939
40940         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40941         settings since xalloc-die is no longer the self test,
40942         xalloc-die.sh is.
40943
40944 2009-11-17  Jim Meyering  <meyering@redhat.com>
40945
40946         test-xalloc-die.sh: make the code agree with the commit log
40947         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40948         at the end, just in case you happen to have a test-xalloc-die
40949         program in some other PATH directory.
40950
40951         test-xalloc-die.sh: fix a portability bug
40952         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40953         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40954         Otherwise, argv[0] (as often seen in diagnostics) would be too
40955         system-dependent, sometimes with, and sometimes without the leading "./".
40956
40957         version-etc-fsf: relax license to LGPLv3+
40958         * modules/version-etc-fsf (License): Relax license.
40959
40960 2009-11-16  Eric Blake  <ebb9@byu.net>
40961
40962         xalloc-die-tests: avoid printing null pointer
40963         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40964         shell script.
40965         * tests/test-xalloc-die.c (program_name): Declare.
40966         * tests/test-xalloc-die.sh (tmpfiles): New file.
40967
40968         setenv, unsetenv: work around various bugs
40969         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40970         (setenv) [HAVE_SETENV]: Work around bugs.
40971         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40972         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40973         for bugs.
40974         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40975         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40977         * modules/stdlib (Makefile.am): Update substitutions.
40978         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40979         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40980         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40981         * modules/setenv-tests: New test.
40982         * modules/unsetenv-tests: Likewise.
40983         * tests/test-setenv.c: New file.
40984         * tests/test-unsetenv.c: Likewise.
40985
40986 2009-11-16  Jim Meyering  <meyering@redhat.com>
40987
40988         version-etc: relax license to LGPLv3+
40989         * modules/version-etc (License): Relax license.
40990
40991         better AC_REQUIRE expanded-before-required-warning avoidance
40992         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40993         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40994         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40995         which is no longer needed.
40996
40997 2009-11-16  Eric Blake  <ebb9@byu.net>
40998
40999         test-freading: clean up temporary file
41000         * tests/test-freading.c (main): Remove file on success, and use
41001         ASSERT more liberally.
41002         Reported by Jim Meyering.
41003
41004 2009-11-16  Jim Meyering  <meyering@redhat.com>
41005
41006         avoid new AC_REQUIRE expanded-before-required warnings
41007         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41008         merely using it.
41009         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41010         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41011
41012 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41013
41014         * tests/test-xalloc-die.c: New file.
41015         * modules/xalloc-die-tests: New file.
41016         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41017         XFAIL_TESTS so it can be appended by modules.
41018
41019 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41020
41021         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41022         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41023
41024 2009-11-14  Eric Blake  <ebb9@byu.net>
41025
41026         fnmatch: avoid compiler warning
41027         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41028         to silence compiler warning about mismatch signedness in ?:.
41029         Reported by Robert Millan.
41030
41031         intprops: add double-inclusion guard
41032         * lib/intprops.h: Allow idempotent includes.
41033         Suggested by Bruce Korb.
41034
41035         openat: detect Solaris fchownat bug
41036         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41037         penalizing glibc chownat when only lchownat is broken.
41038         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41039         trailing slash bugs.
41040         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41041         * modules/openat-tests (Files): Include more files.
41042         (Depends-on): Add mgetgroups, sleep, stat-time.
41043         (configure.ac): Add additional checks.
41044         (Makefile.am): Build new test.
41045         * tests/test-fchownat.c: New file.
41046
41047         lchown: detect Solaris and FreeBSD bug
41048         * lib/lchown.c (rpl_lchown): Work around bug.
41049         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41051         * modules/unistd (Makefile.am): Populate it.
41052         * lib/unistd.in.h (lchown): Update declaration.
41053         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41054         * modules/lchown-tests: New file.
41055         * tests/test-lchown.h (test_lchown): Likewise.
41056         * tests/test-lchown.c (main): Likewise.
41057
41058         chown: detect Solaris and FreeBSD bug
41059         * lib/chown.c (rpl_chown): Work around bug.
41060         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41061         (gl_PREREQ_CHOWN): Delete.
41062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41063         * modules/unistd (Makefile.am): Populate it.
41064         * lib/unistd.in.h (chown): Update declaration.
41065         * lib/lchown.c (chown): Update client.
41066         * modules/lchown (Depends-on): Add lstat.
41067         * doc/posix-functions/chown.texi (chown): Document the bug.
41068         * doc/posix-functions/getgroups.texi (getgroups): Document
41069         getgroups pitfall.
41070         * modules/chown-tests: New file.
41071         * tests/test-chown.h (test_chown): Likewise.
41072         * tests/test-chown.c (main): Likewise.
41073
41074 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41075
41076         gnulib-tool: correctly detect absence of m4 directories
41077         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41078
41079 2009-11-14  Jim Meyering  <meyering@redhat.com>
41080
41081         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41082         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41083
41084 2009-11-14  John W. Eaton  <jwe@gnu.org>
41085
41086         strftime.h: wrap function declaration in extern "C" block
41087         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41088
41089 2009-11-13  Eric Blake  <ebb9@byu.net>
41090
41091         getgroups: avoid compiler warning
41092         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41093
41094         getgroups: work around FreeBSD bug
41095         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41097         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41098         * tests/test-getgroups.c (main): Fix buffer overrun.
41099
41100         getgroups: avoid compilation failure
41101         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41102         * modules/getgroups (Depends-on): Add stdint.
41103
41104 2009-11-13  Jim Meyering  <meyering@redhat.com>
41105
41106         test-getgroups: avoid compilation failure
41107         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41108
41109 2009-11-13  Eric Blake  <ebb9@byu.net>
41110
41111         mgetgroups: new module, taken from coreutils
41112         * modules/mgetgroups: New file.
41113         * lib/mgetgroups.h: Likewise.
41114         * lib/mgetgroups.c (mgetgroups): Likewise.
41115         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41116         * MODULES.html.sh (Users and groups): Mention it.
41117
41118         getgroups: don't expose GETGROUPS_T to user
41119         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41120         an element at a time if GETGROUPS_T is wrong size.
41121         * lib/getugroups.h (getugroups): Change signature.
41122         * lib/unistd.in.h (getgroups): Likewise.
41123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41124         signature needs fixing.
41125         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41126         AC_TYPE_GETGROUPS.
41127         * modules/group-member (Depends-on): Add getgroups.
41128         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41129         (group_member): Rely on getgroups replacement.
41130         * lib/getugroups.c (getugroups): Use gid_t.
41131         * tests/test-getgroups.c (main): Likewise.
41132         * NEWS: Mention the signature change.
41133         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41134         problem with signature.
41135         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41136         GETGROUPS_T is still useful for setgroups.
41137
41138         getgroups, getugroups: provide stubs for mingw
41139         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41140         * lib/getugroups.c (getugroups): Likewise.
41141         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41142         function.  Modernize replacement scheme.
41143         (gl_PREREQ_GETGROUPS): Delete.
41144         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41145         * modules/getgroups (configure.ac): Declare witness.
41146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41147         * modules/unistd (Depends-on): Substitute witness.
41148         * lib/unistd.in.h (getgroups): Declare replacement.
41149
41150         getgroups: avoid calling exit
41151         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41152         drop xalloc.
41153         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41154         dependencies.
41155         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41156         exiting, in the rare case of malloc failure.
41157
41158         getgroups: fix logic error
41159         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41160         has more than 20 groups.
41161         * modules/getgroups-tests: New test.
41162         * tests/test-getgroups.c: New file.
41163
41164 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41165
41166         * tests/test-base64.c: Improve.
41167
41168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41169
41170         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41171         Blake <ebb9@byu.net>.
41172
41173 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41174
41175         * tests/test-xvasprintf.c: Add %s%s related checks.
41176
41177 2009-11-12  Eric Blake  <ebb9@byu.net>
41178
41179         version-etc: match standards.texi style
41180         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41181         and use <> only for URLs.
41182
41183 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41184
41185         fts: do not fail on a submount during traversal
41186         * lib/fts.c (fts_build): Read the stat info again after opening
41187         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41188         Original report at http://bugzilla.redhat.com/501848.
41189
41190 2009-11-12  Jim Meyering  <meyering@redhat.com>
41191
41192         bootstrap: sync from coreutils
41193         * build-aux/bootstrap (bootstrap_epilogue): New function.
41194         Use git_modules_config in one more place.  This make bootstrap's
41195         --gnulib-srcdir option more useful for testing.
41196
41197         bootstrap: generalize autoheader check
41198         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41199         AC_CONFIG_HEADERS.
41200
41201 2009-11-11  Eric Blake  <ebb9@byu.net>
41202
41203         mkfifoat: use new modules for Solaris and BSD bugs
41204         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41205         * lib/mkfifoat.c (mknodat): Split...
41206         * lib/mknodat.c (mknodat): ...into new file.
41207         * modules/mkfifoat (Files): Ship new file.
41208         (Depends-on): Add mkfifo, mknod.
41209         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41210         (Depends-on): Add symlink.
41211         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41212         redundant with test_mkfifo.h.
41213         (do_mkfifoat, do_mknodat): New helpers.
41214
41215         mknod: new module
41216         * modules/mknod: New file.
41217         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41218         * lib/mknod.c (mknod): Likewise.
41219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41220         defaults.
41221         * modules/sys_stat (Makefile.am): Substitute them.
41222         * lib/sys_stat.in.h (mknod): Declare replacement.
41223         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41224         Document it.
41225         * doc/posix-functions/mknod.texi (mknod): Likewise.
41226         * modules/mknod-tests: New test.
41227         * tests/test-mknod.c: Likewise.
41228
41229         mkfifo: new module
41230         * modules/mkfifo: New file.
41231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41232         * lib/mkfifo.c (mkfifo): Likewise.
41233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41234         defaults.
41235         * modules/sys_stat (Makefile.am): Substitute them.
41236         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41237         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41238         Document it.
41239         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41240         * modules/mkfifo-tests: New test.
41241         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41242         from test-mkfifoat.c.
41243         * tests/test-mkfifo.c: New file.
41244
41245         readlink: detect FreeBSD bug
41246         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41247         slash on symlink.
41248         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41249         * tests/test-readlink.h (test_readlink): Enhance test.
41250
41251         symlink: detect FreeBSD bug
41252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41253         slash on symlink.
41254         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41255         * tests/test-symlink.h (test_symlink): Enhance test.
41256
41257 2009-11-10  Eric Blake  <ebb9@byu.net>
41258
41259         link: detect FreeBSD bug
41260         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41261         symlink.
41262         * doc/posix-functions/link.texi (link): Document the bug.
41263         * tests/test-link.h (test_link): Enhance test.
41264         * tests/test-linkat.c (main): Update caller.
41265
41266         unlink, remove: detect FreeBSD bug
41267         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41268         slash on symlink.
41269         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41270         * doc/posix-functions/remove.texi (remove): Likewise.
41271         * tests/test-unlink.h (test_unlink): Enhance test.
41272         * tests/test-remove.c (main): Likewise.
41273
41274 2009-11-09  Eric Blake  <ebb9@byu.net>
41275
41276         rename: detect FreeBSD bug
41277         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41278         slash on symlink.
41279         * modules/renameat-tests (Depends-on): Add filenamecat.
41280         * tests/test-rename.h (test_rename): Allow one more errno.
41281         * tests/test-renameat.c (main): Likewise.
41282         * doc/posix-functions/rename.texi (rename): Document the bug.
41283
41284         open: detect FreeBSD bug
41285         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41286         symlink.
41287         * doc/posix-functions/open.texi (open): Document the bug.
41288         * doc/posix-functions/utimes.texi (utimes): Likewise.
41289         * tests/test-open.h (test_open): Add parameters, and test symlink
41290         handling.
41291         * tests/test-open.c (main): Adjust caller.
41292         * tests/test-fcntl-safer.c (main): Likewise.
41293         * modules/open-tests (Depends-on): Add stdbool, symlink.
41294         * modules/fcntl-safer-tests (Depends-on): Likewise.
41295         * tests/test-openat.c (main): Add test-open tests.
41296
41297         stat: detect FreeBSD bug
41298         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41299         symlink.
41300         * doc/posix-functions/stat.texi (stat): Document the bug.
41301         * tests/test-stat.h (test_stat_func): Add argument.
41302         * tests/test-stat.c (main): Adjust caller.
41303         * tests/test-fstatat.c (main): Likewise.
41304         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41305         Reported by Jim Meyering.
41306
41307 2009-11-09  James Youngman  <jay@gnu.org>
41308
41309         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41310         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41311
41312 2009-11-08  Jim Meyering  <meyering@redhat.com>
41313
41314         utimens: remove invalid futimesat call
41315         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41316         It used the file descriptor of the target file as the DIR_FD
41317         parameter and NULL as the file name.  That caused failure with
41318         errno == EFAULT on FreeBSD-8.0-rc2
41319
41320 2009-11-07  Eric Blake  <ebb9@byu.net>
41321
41322         fflush, freadseek: use fseeko, not fseek
41323         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41324         (clear_ungetc_buffer): Avoid potential problems on large files.
41325         * lib/freadseek.c (freadseek): Likewise.
41326         * modules/freadseek (Depends-on): Add fseeko.
41327         * modules/fseek (configure.ac): Set a witness.
41328         * tests/test-fflush.c (main): Use fseeko.
41329         * tests/test-fpurge.c (fseek): Disable link warning.
41330         * tests/test-freadable.c (fseek): Likewise.
41331         * tests/test-freading.c (fseek): Likewise.
41332         * tests/test-fseeko.c (fseek): Likewise.
41333         * tests/test-ftell.c (fseek): Likewise.
41334         * tests/test-ftello.c (fseek): Likewise.
41335         * tests/test-fwritable.c (fseek): Likewise.
41336         * tests/test-fwriting.c (fseek): Likewise.
41337
41338 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41339
41340         * modules/memchr (Depends-on): Drop getpagesize dependency.
41341
41342 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41343
41344         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41345         Reported by Ludovic Courtès.
41346         * build-aux/pmccabe2html: Improve example usage.
41347         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41348
41349 2009-11-06  Jim Meyering  <meyering@redhat.com>
41350
41351         do-release-commit-and-tag: New module.
41352         Automate the release-commit and tag process.
41353         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41354         * modules/do-release-commit-and-tag: New file.
41355         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41356
41357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41358
41359         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41360         because test-select.c uses inet_pton.
41361
41362 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41363
41364         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41365         GETADDRINFO_LIB.  Bump serial number.
41366         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41367         Suggested by Eric Blake <ebb9@byu.net>.
41368
41369 2009-11-05  Eric Blake  <ebb9@byu.net>
41370
41371         strtod: detect darwin bug
41372         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41373         Reported by Leo Davis.
41374
41375         freopen-safer: new module
41376         * modules/freopen-safer: New module.
41377         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41378         * lib/freopen-safer.c (freopen_safer): New file.
41379         * lib/stdio-safer.h (freopen_safer): New declaration.
41380         * lib/stdio--.h (freopen): New override.
41381         * MODULES.html.sh (File stream based Input/Output): Mention it.
41382         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41383         freopen-safer module.
41384         * doc/posix-functions/stderr.texi (stderr): Likewise.
41385         * doc/posix-functions/stdin.texi (stdin): Likewise.
41386         * doc/posix-functions/stdout.texi (stdout): Likewise.
41387         * modules/freopen-safer-tests: New test.
41388         * tests/test-reopen-safer.c: New file.
41389
41390 2009-11-05  Jim Meyering  <meyering@redhat.com>
41391
41392         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41394
41395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41396
41397         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41398
41399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41400
41401         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41402
41403 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41404
41405         Fix link error.
41406         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41407         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41408
41409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41410
41411         * tests/test-func.c: Also test value of __func__.
41412
41413 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41414
41415         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41416         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41417
41418 2009-11-05  Bruno Haible  <bruno@clisp.org>
41419
41420         Fix link error.
41421         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41423         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41424
41425 2009-11-05  Bruno Haible  <bruno@clisp.org>
41426
41427         Tests for module 'inet_pton'.
41428         * modules/inet_pton-tests: New file.
41429         * tests/test-inet_pton.c: New file.
41430
41431 2009-11-05  Bruno Haible  <bruno@clisp.org>
41432
41433         Tests for module 'inet_ntop'.
41434         * modules/inet_ntop-tests: New file.
41435         * tests/test-inet_ntop.c: New file.
41436
41437 2009-11-04  Eric Blake  <ebb9@byu.net>
41438
41439         stdlib-safer: wrap all mkstemp variants
41440         * modules/mkostemp (configure.ac): Set witness.
41441         * modules/mkostemps (configure.ac): Likewise.
41442         * modules/mkstemps (configure.ac): Likewise.
41443         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41444         (mkstemps_safer): Wrap more functions.
41445         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41446         wrapping.
41447         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41448         (mkstemps_safer): Implement the wrappers.
41449
41450         mkstemps, mkostemps: new modules
41451         * modules/mkostemps: New module.
41452         * modules/mkstemps: Likewise.
41453         * lib/mkostemps.c (mkostemps): New file.
41454         * lib/mkstemps.c (mkstemps): Likewise.
41455         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41456         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41458         * modules/stdlib (Makefile.am): Substitute them.
41459         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41460         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41461         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41462         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41463         * MODULES.html.sh (File system functions): Mention them.
41464
41465         tempname: resync from glibc
41466         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41467         same values for __GT_FILE as glibc.  Abort even when assertions
41468         are disabled.
41469         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41470         match its value otherwise.  Allow idempotent inclusion.
41471         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41472         * lib/mkostemp.c (mkostemp): Likewise.
41473         * lib/mkstemp.c (mkstemp): Likewise.
41474         * lib/tmpfile.c (tmpfile): Likewise.
41475         * NEWS: Document this.
41476
41477         utimens: fix use of futimens on older Linux
41478         * lib/utimens.c (fdutimens): Use updated, rather than original,
41479         timespec to avoid bug in older Linux kernel.
41480         Reported by Simon Josefsson.
41481
41482 2009-11-04  Bruno Haible  <bruno@clisp.org>
41483
41484         Make num_processors more flexible and consistent.
41485         * lib/nproc.h (enum nproc_query): New type.
41486         (num_processors): Add a 'query' argument.
41487         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41488         (num_processors): Add a 'query' argument. Test the value of the
41489         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41490         mingw, count the number of CPUs available for the current process.
41491         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41492         Check for sched_getaffinity and sched_getaffinity_np.
41493         * modules/nproc (Depends-on): Add c-ctype, extensions.
41494         * NEWS: Mention the change.
41495
41496 2009-11-03  Bruno Haible  <bruno@clisp.org>
41497
41498         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41499
41500 2009-11-03  Jim Meyering  <meyering@redhat.com>
41501
41502         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41503         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41504         if it is defined.
41505
41506 2009-11-02  Eric Blake  <ebb9@byu.net>
41507
41508         mktime, timegm: share common declaration
41509         * lib/mktime-internal.h: New file.
41510         * lib/mktime.c: Use it rather than open-coding a declaration.
41511         * lib/timegm.c: Likewise.
41512         * modules/mktime (Files): Ship it.
41513         * modules/timegm (Files): Likewise.
41514         Suggested by Bruno Haible.
41515
41516         test-update-copyright: update test to match script changes
41517         * tests/test-update-copyright.sh: Avoid hard-coding perl
41518         location.  Don't update *.bak created by earlier runs.
41519
41520 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41521             Simon Josefsson  <simon@josefsson.org>
41522             Bruno Haible  <bruno@clisp.org>
41523
41524         Fix link error on Solaris 8.
41525         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41526         also in libnsl. Define also INET_PTON_LIB.
41527         * modules/inet_pton (Link): New section.
41528
41529 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41530             Bruno Haible  <bruno@clisp.org>
41531
41532         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41533         * modules/inet_ntop (Link): New section.
41534         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41535
41536 2009-11-02  Eric Blake  <ebb9@byu.net>
41537
41538         maint: avoid compiler warnings in m4 macros
41539         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41541
41542 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41543
41544         * m4/pmccabe2html.m4: Remove file.
41545         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41546         function.  Change maintainer.
41547         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41548         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41549         Courtès).
41550
41551 2009-10-31  Eric Blake  <ebb9@byu.net>
41552
41553         fseeko: fix m4 regression
41554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41555         regression from 2009-10-27.
41556         Reported by Ralf Wildenhues.
41557
41558 2009-10-31  Jim Meyering  <meyering@redhat.com>
41559
41560         inttostr: aesthetics and improved (compile-time) safety
41561         Define inttype_is_signed rather than inttype_is_unsigned,
41562         since the sole use is via "#if inttype_is_signed".
41563         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41564         inttype_is_unsigned.
41565         * lib/offtostr.c (inttype_is_signed): Likewise.
41566         * lib/uinttostr.c (inttype_is_signed): Likewise.
41567         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41568         * lib/inttostr.c (inttostr): Use verify to cross-check the
41569         inttype_is_signed value and the signedness of the actual type.
41570         * modules/inttostr (Depends-on): Add verify.
41571
41572 2009-10-30  Eric Blake  <ebb9@byu.net>
41573
41574         build: avoid compiler warnings
41575         * lib/fchmodat.c (lchmod): Mark unused variables.
41576         * lib/getopt.c (_getopt_initialize): Likewise.
41577         * lib/mktime.c (__mktime_internal): Provide prototype.
41578         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41579         older gcc that do not understand #pragma GCC diagnostic.
41580         * lib/uinttostr.c (inttype_is_unsigned): Define.
41581         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41582
41583 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41584
41585         stat: fix compilation on AIX
41586         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41587         only see struct stat64.
41588
41589 2009-10-30  Eric Blake  <ebb9@byu.net>
41590
41591         exclude: make more robust
41592         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41593         rather than masking a coding bug.
41594         Suggested by Bruno Haible.
41595
41596 2009-10-30  Jim Meyering  <meyering@redhat.com>
41597
41598         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41599         Rather than putting #!/usr/bin/perl on the first line,
41600         start with a variant of what's recommended by "man perlrun" that
41601         invokes the first "perl" program from your shell's search path.
41602         * build-aux/gitlog-to-changelog: Replace #!... as above.
41603         Add a "Local Variables" perl mode setting.
41604         Prompted by a patch from Ludovic Courtès.
41605         Improved by Eric Blake.
41606         * build-aux/useless-if-before-free: Likewise.
41607         * build-aux/announce-gen: Likewise.
41608         * build-aux/update-copyright: Likewise.
41609
41610 2009-10-29  Eric Blake  <ebb9@byu.net>
41611
41612         filenamecat-lgpl: adjust clients
41613         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41614         filenamecat.
41615         * modules/renameat (Depends-on): Likewise.
41616
41617         filenamecat: split into filenamecat-lgpl
41618         * modules/filenamecat-lgpl: New module.
41619         * modules/filenamecat (Files): Move library-safe files into
41620         filenamecat-lgpl.
41621         (Depends-on): Add filenamecat-lgpl.
41622         (configure.ac): Declare witness.
41623         * lib/filenamecat.h (file_name_concat): Only declare when using
41624         GPL module.
41625         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41626         Move...
41627         * lib/filenamecat-lgpl.c: ...into new file.
41628         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41629         (gl_FILE_NAME_CONCAT): Use it.
41630         * MODULES.html.sh (File system functions): Mention new module.
41631
41632         argp: avoid memory leak
41633         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41634         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41635         base_name, since the latter malloc()s and can call exit().
41636         Leak introduced 2006-07-03.
41637
41638         dirname-lgpl: adjust clients that don't need full dirname
41639         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41640         * modules/filenamecat (Depends-on): Likewise.
41641         * modules/linkat (Depends-on): Likewise.
41642         * modules/mkancesdirs (Depends-on): Likewise.
41643         * modules/mkdir (Depends-on): Likewise.
41644         * modules/openat (Depends-on): Likewise.
41645         * modules/savewd (Depends-on): Likewise.
41646         * modules/rename (Depends-on): Likewise.
41647         (License): Relax license.
41648         * modules/mkdir-tests (Depends-on): Drop progname.
41649         (Makefile.am): Delete unneeded LDADD.
41650         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41651
41652         dirname: split into dirname-lgpl
41653         * modules/dirname-lgpl: New module.
41654         * modules/dirname (Files): Move library-safe files into
41655         dirname-lgpl.
41656         (Depends-on): Add dirname-lgpl.
41657         (configure.ac): Declare witness.
41658         * modules/double-slash-root (License): Relax license.
41659         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41660         module.
41661         * lib/dirname.c (dir_len, mdir_name): Move...
41662         * lib/dirname-lgpl.c: ...into new file.
41663         * lib/basename.c (last_component, base_len): Move...
41664         * lib/basename-lgpl.c: ...into new file.
41665         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41666         (gl_DIRNAME): Use it.
41667         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41668         Mention new module.
41669         * modules/dirname-tests (Depends-on): Add progname.
41670         * tests/test-dirname.c (program_name): Delete.
41671
41672         mkdir: make safe for libraries
41673         * modules/mkdir (Depends-on): Drop xalloc.
41674         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41675         exit.
41676
41677         tests: avoid some compiler warnings
41678         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41679         literals.
41680         * tests/test-memchr.c (main): Avoid type mismatch.
41681         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41682         * tests/test-base64.c (main): Likewise.
41683         * tests/test-getdelim.c (main): Likewise.
41684         * tests/test-gethostname.c (main): Likewise.
41685         * tests/test-getline.c (main): Likewise.
41686         * tests/test-netinet_in.c (main): Likewise.
41687         * tests/test-select.c (open_server_socket, main): Likewise.
41688         * tests/test-select-stdin.c (main): Likewise.
41689         * tests/test-sockets.c (main): Likewise.
41690         * tests/test-strsignal.c (main): Likewise.
41691         * tests/test-sys_select.c (main): Likewise.
41692         * tests/test-sys_socket.c (main): Likewise.
41693         * tests/test-u64.c (main): Likewise.
41694         * tests/test-xfprintf-posix.c (main): Likewise.
41695         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41696
41697         sockets: avoid compiler warning
41698         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41699
41700         maint: detect usage(1) and other suspicious exits
41701         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41702
41703 2009-10-29  Jim Meyering  <meyering@redhat.com>
41704
41705         timespec: long-to-int truncation could make timespec_cmp malfunction
41706         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41707         a multiple of 2^32 nanoseconds as no difference.
41708
41709 2009-10-28  Jim Meyering  <meyering@redhat.com>
41710
41711         fprintftime: wrap macro code argument in "do {...} while(0)"
41712         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41713         cpy macro must be a statement that can be followed by a semicolon.
41714         Now that the else clause contains a comment and is hence longer
41715         than one line, I require curly braces.  That in turn requires
41716         that we wrap this code block in the standard do...while(0).
41717
41718         fprintftime: remove stray semicolon from previous change
41719         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41720
41721         fprintftime: avoid a warning about ignored fwrite return value
41722         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41723         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41724         that is unsafe.
41725         * modules/fprintftime (Depends-on): Add ignore-value.
41726
41727         exclude: avoid an unwarranted warning
41728         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41729
41730 2009-10-27  Eric Blake  <ebb9@byu.net>
41731
41732         fseek: avoid compilation failure when fflush is replaced
41733         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41734         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41735         module is in use.
41736         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41737         module is not in use; since REPLACE_FSEEK worked otherwise.
41738         (GNULIB_FTELLO): Likewise for ftell.
41739         Reported by Ian Beckwith and others.
41740
41741 2009-10-27  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41744         Reported by Jim Meyering.
41745
41746 2009-10-27  Jim Meyering  <jim@meyering.net>
41747             Bruno Haible  <bruno@clisp.org>
41748
41749         Avoid warning despite dropping the return value of fwrite.
41750         * lib/unicodeio.c: Include ignore-value.h.
41751         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41752         * modules/unicodeio (Depends-on): Add ignore-value.
41753
41754 2009-10-26  Eric Blake  <ebb9@byu.net>
41755
41756         areadlinkat: fix fallback path
41757         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41758         pointer and zero.
41759
41760 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41761
41762         Use a better IO block size for modern systems
41763         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41764         * lib/md2.c: Likewise.
41765         * lib/md4.c: Likewise.
41766         * lib/md5.c: Likewise.
41767         * lib/sha1.c: Likewise.
41768         * lib/sha256.c: Likewise.
41769         * lib/sha512.c: Likewise.
41770
41771 2009-10-22  Eric Blake  <ebb9@byu.net>
41772
41773         tests: avoid several compiler warnings
41774         * tests/test-getcwd.c (main): Avoid buffer underflow.
41775         * tests/test-getdate.c (main): String literals are not safe with
41776         putenv, so use setenv.  Declare unused argument.
41777         * modules/getdate-tests (Depends-on): Add setenv.
41778         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41779         problems with string literals in char *.
41780         * tests/test-hash.c (main): Avoid shadowing declaration.
41781         (insert_new): Treat string literals as char const *.
41782         * tests/test-getopt.h (test_getopt): Likewise.
41783         (getopt_loop): Alter types to minimize casting elsewhere.
41784         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41785         (test_getopt_long_posix): Likewise.
41786         (do_getopt_long): Add wrapper to minimize casting.
41787         * tests/test-atexit.c (clear_temp_file): Use void.
41788         * tests/test-areadlink-with-size.c (main): Declare unused
41789         arguments.
41790         * tests/test-areadlink.c (main): Likewise.
41791         * tests/test-areadlinkat-with-size.c (main): Likewise.
41792         * tests/test-areadlinkat.c (main): Likewise.
41793         * tests/test-canonicalize-lgpl.c (main): Likewise.
41794         * tests/test-canonicalize.c (main): Likewise.
41795         * tests/test-dirent-safer.c (main): Likewise.
41796         * tests/test-dirname.c (main): Likewise.
41797         * tests/test-dup2.c (main): Likewise.
41798         * tests/test-fchdir.c (main): Likewise.
41799         * tests/test-fcntl-h.c (main): Likewise.
41800         * tests/test-fcntl-safer.c (main): Likewise.
41801         * tests/test-fdopendir.c (main): Likewise.
41802         * tests/test-fdutimensat.c (main): Likewise.
41803         * tests/test-fflush.c (main): Likewise.
41804         * tests/test-filenamecat.c (main): Likewise.
41805         * tests/test-filevercmp.c (main): Likewise.
41806         * tests/test-fopen-safer.c (main): Likewise.
41807         * tests/test-fopen.c (main): Likewise.
41808         * tests/test-fpending.c (main): Likewise.
41809         * tests/test-fpurge.c (main): Likewise.
41810         * tests/test-freading.c (main): Likewise.
41811         * tests/test-fstatat.c (main): Likewise.
41812         * tests/test-fsync.c (main): Likewise.
41813         * tests/test-futimens.c (main): Likewise.
41814         * tests/test-getndelim2.c (main): Likewise.
41815         * tests/test-gettimeofday.c (main): Likewise.
41816         * tests/test-getopt.c (main): Likewise.
41817         * tests/test-i-ring.c (main): Likewise.
41818         * tests/test-inttypes.c (main): Likewise.
41819         * tests/test-link.c (main): Likewise.
41820         * tests/test-lstat.c (main): Likewise.
41821         * tests/test-math.c (main): Likewise.
41822         * tests/test-md5.c (main): Likewise.
41823         * tests/test-memchr2.c (main): Likewise.
41824         * tests/test-memrchr.c (main): Likewise.
41825         * tests/test-mkdir.c (main): Likewise.
41826         * tests/test-mkdirat.c (main): Likewise.
41827         * tests/test-mkfifoat.c (main): Likewise.
41828         * tests/test-open.c (main): Likewise.
41829         * tests/test-openat-safer.c (main): Likewise.
41830         * tests/test-openat.c (main): Likewise.
41831         * tests/test-quotearg.c (main): Likewise.
41832         * tests/test-rawmemchr.c (main): Likewise.
41833         * tests/test-readlink.c (main): Likewise.
41834         * tests/test-remove.c (main): Likewise.
41835         * tests/test-rename.c (main): Likewise.
41836         * tests/test-renameat.c (main): Likewise.
41837         * tests/test-rmdir.c (main): Likewise.
41838         * tests/test-sha1.c (main): Likewise.
41839         * tests/test-signal.c (main): Likewise.
41840         * tests/test-sigaction.c (main): Likewise.
41841         * tests/test-stat.c (main): Likewise.
41842         * tests/test-stat-time.c (main): Likewise.
41843         * tests/test-stddef.c (main): Likewise.
41844         * tests/test-stdint.c (main): Likewise.
41845         * tests/test-stdio.c (main): Likewise.
41846         * tests/test-stdlib.c (main): Likewise.
41847         * tests/test-strchrnul.c (main): Likewise.
41848         * tests/test-strerror.c (main): Likewise.
41849         * tests/test-string.c (main): Likewise.
41850         * tests/test-strtod.c (main): Likewise.
41851         * tests/test-strverscmp.c (main): Likewise.
41852         * tests/test-symlink.c (main): Likewise.
41853         * tests/test-symlinkat.c (main): Likewise.
41854         * tests/test-sys_stat.c (main): Likewise.
41855         * tests/test-sys_time.c (main): Likewise.
41856         * tests/test-time.c (main): Likewise.
41857         * tests/test-unistd.c (main): Likewise.
41858         * tests/test-unlink.c (main): Likewise.
41859         * tests/test-unlinkat.c (main): Likewise.
41860         * tests/test-utimens.c (main): Likewise.
41861         * tests/test-utimensat.c (main): Likewise.
41862         * tests/test-version-etc.c (main): Likewise.
41863         * tests/test-wchar.c (main): Likewise.
41864         * tests/test-wctype.c (main): Likewise.
41865         * tests/test-xprintf-posix.c (main): Likewise.
41866         * tests/test-posixtm.c (main): Likewise.
41867         (STREQ): Delete unused macro.
41868         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41869         shadowed variables.
41870         * tests/test-memchr.c (main): Likewise.
41871
41872 2009-10-21  Eric Blake  <ebb9@byu.net>
41873
41874         areadlinkat: avoid failure on older glibc
41875         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41876         rather than mis-comparing 0 against FUNC_RESULT of char*.
41877
41878 2009-10-21  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/stpncpy (License): Relicense under LGPLv2+.
41881         Reported by David Lutterkort <lutter@redhat.com>.
41882
41883 2009-10-20  Eric Blake  <ebb9@byu.net>
41884
41885         utimensat: work around Solaris 9 bug
41886         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41887         has trailing slash bugs.
41888         * tests/test-lutimens.h (test_lutimens): Enhance test.
41889         * tests/test-utimens.h (test_utimens): Likewise.
41890         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41891         * doc/posix-functions/utimes.texi (utimes): Likewise.
41892         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41893         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41894         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41895         * doc/posix-functions/futimens.texi (futimens): Likewise.
41896
41897         fdutimensat: new module
41898         * modules/fdutimensat: New file.
41899         * lib/fdutimensat.c (fdutimensat): Likewise.
41900         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41901         * MODULES.html.sh (File system functions): Mention module.
41902         * modules/fdutimensat-tests: New test.
41903         * tests/test-fdutimensat.c: Likewise.
41904
41905         doc: regenerate INSTALL
41906         * doc/INSTALL: Reflect recent autoconf update.
41907         * doc/INSTALL.ISO: Likewise.
41908         * doc/INSTALL.UTF-8: Likewise.
41909
41910 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41911
41912         acl: warn if ACL support is not detected
41913         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41914
41915 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41916
41917         * lib/nproc.h: Add extern "C" block for C++.
41918
41919 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41920             Bruno Haible  <bruno@clisp.org>
41921
41922         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41923         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41924         * doc/posix-functions/isalpha.texi: Likewise.
41925         * doc/posix-functions/isblank.texi: Likewise.
41926         * doc/posix-functions/iscntrl.texi: Likewise.
41927         * doc/posix-functions/isdigit.texi: Likewise.
41928         * doc/posix-functions/isgraph.texi: Likewise.
41929         * doc/posix-functions/islower.texi: Likewise.
41930         * doc/posix-functions/isprint.texi: Likewise.
41931         * doc/posix-functions/ispunct.texi: Likewise.
41932         * doc/posix-functions/isspace.texi: Likewise.
41933         * doc/posix-functions/isupper.texi: Likewise.
41934         * doc/posix-functions/isxdigit.texi: Likewise.
41935
41936 2009-10-18  Bruno Haible  <bruno@clisp.org>
41937
41938         Tests for module 'isblank'.
41939         * modules/isblank-tests: New file.
41940         * tests/test-isblank.c: New file.
41941
41942         New module 'isblank'.
41943         * lib/isblank.c: New file.
41944         * m4/isblank.m4: New file.
41945         * modules/isblank: New file.
41946         * doc/posix-functions/isblank.texi: Mention the new module.
41947
41948 2009-10-18  Bruno Haible  <bruno@clisp.org>
41949
41950         New module 'ctype'.
41951         * lib/ctype.in.h: New file.
41952         * m4/ctype.m4: New file.
41953         * modules/ctype: New file.
41954         * doc/posix-headers/ctype.texi: Mention the new module.
41955
41956 2009-10-18  Jim Meyering  <meyering@redhat.com>
41957
41958         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41959         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41960         right after its initialization, rather than farther down.
41961         Keeping these in close proximity makes it easier to ensure
41962         that each such variable is initialized.  E.g.,
41963
41964             LIB_CLOCK_GETTIME=
41965             AC_SUBST([LIB_CLOCK_GETTIME])
41966
41967         This change also increments these serial numbers.
41968         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41971
41972 2009-10-18  Bruno Haible  <bruno@clisp.org>
41973
41974         Don't let environment variables perturb build.
41975         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41976         (gl_PREREQ_GETHRXTIME): ... not here.
41977
41978 2009-10-18  Bruno Haible  <bruno@clisp.org>
41979
41980         Avoid symlink attack in localcharset module.
41981         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41982         (O_NOFOLLOW): Define fallback.
41983         (get_charset_aliases): Don't open the file if it is a symbolic link.
41984         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41985         gl_FCNTL_H.
41986         (gl_FCNTL_H): Require it.
41987         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41988         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41989         Reported by Fergal Glynn <fglynn@veracode.com>.
41990
41991 2009-10-18  Bruno Haible  <bruno@clisp.org>
41992
41993         Implement nproc for mingw.
41994         * lib/nproc.c: Include <windows.h>
41995         (num_processors): On native Windows platforms, try GetSystemInfo.
41996
41997 2009-10-18  Bruno Haible  <bruno@clisp.org>
41998
41999         Implement nproc for IRIX.
42000         * lib/nproc.c: Include <sys/sysmp.h>.
42001         (num_processors): On IRIX systems, try sysmp.
42002         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42003
42004 2009-10-18  Bruno Haible  <bruno@clisp.org>
42005
42006         Implement nproc for HP-UX.
42007         * lib/nproc.c: Include <sys/pstat.h>
42008         (num_processors): On HP-UX systems, try pstat_getdynamic.
42009         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42010         pstat_getdynamic.
42011
42012 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42013             Bruno Haible  <bruno@clisp.org>
42014
42015         Implement nproc for NetBSD, OpenBSD.
42016         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42017         (ARRAY_SIZE): New macro.
42018         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42019         * m4/nproc.m4: New file.
42020         * modules/nproc (Files): Add m4/nproc.m4.
42021         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42022         (Makefile.am): Instead, augment lib_SOURCES.
42023
42024 2009-10-18  Bruno Haible  <bruno@clisp.org>
42025
42026         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42027         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42028         sys/param.h.
42029
42030 2009-10-16  Eric Blake  <ebb9@byu.net>
42031
42032         utimensat: new module
42033         * modules/utimensat: New file.
42034         * lib/utimensat.c (utimensat): Likewise.
42035         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42036         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42037         so we can work around Linux bugs.
42038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42039         * modules/sys_stat (Makefile.am): Substitute them.
42040         * lib/sys_stat.in.h (utimensat): Declare it.
42041         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42043         * modules/utimensat-tests: New test.
42044         * tests/test-utimensat.c: Likewise.
42045
42046         utimens: let lutimens work on non-symlinks
42047         * lib/utimens.c (lutimens): Fall back to utimens rather than
42048         failing with ENOSYS, when file is not a symlink.
42049         (utimens): Reduce redirection.
42050         * tests/test-lutimens.h (test_lutimens): Update test to cover
42051         non-symlinks.
42052         * tests/test-utimens.h (test_utimens): Update test to cover
42053         symlinks.
42054         * tests/test-utimens.c (main): Update caller.
42055
42056         utimens: cache whether utimensat syscall works
42057         * lib/utimens.c (utimensat_works_really): New cache variable.
42058         (fdutimens, lutimens): Use it to avoid failing syscall.
42059
42060         test-stat-time, test-utimens: improve portability
42061         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42062         ext4 on alpha, and for cygwin.
42063         * tests/test-utimens-common.h: New file.
42064         (nap): Factor delays into single function.
42065         * tests/test-lutimens.h (test_lutimens): Use new header.
42066         * tests/test-futimens.h (test_futimens): Likewise.
42067         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42068         timestamps to occur from same machine, as was done previously for
42069         test_utimens.
42070         * modules/utimens-tests (Files): Ship new file.
42071         * modules/futimens-tests (Files): Likewise.
42072         Reported in part by Jim Meyering.
42073
42074         sys_stat: sort replacement declarations
42075         * lib/sys_stat.in.h: Sort declarations.
42076         * lib/futimens.c (futimens): Fix typo.
42077
42078 2009-10-15  Jim Meyering  <meyering@redhat.com>
42079
42080         don't let environment settings perturb build
42081         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42082         could cause a configure-time and/or build-time malfunction.
42083         Typically, a configure-time function-in-library test is performed
42084         via code like this:
42085
42086           LIB_VAR=
42087           AC_SUBST([LIB_VAR])
42088           prefix_saved_LIBS=$LIBS
42089             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42090                        [test "$ac_cv_search_FUNC" = "none required" ||
42091                         LIB_VAR=$ac_cv_search_FUNC])
42092           LIBS=$prefix_saved_LIBS
42093
42094         However, in each of the files affected by this change, the LIB_VAR=
42095         initialization was omitted.  Thus, when set in the environment, its
42096         value would propagate into generated Makefiles when FUNC is not found
42097         in LIB_NAME.
42098         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42101
42102 2009-10-14  Eric Blake  <ebb9@byu.net>
42103
42104         fchdir: avoid infinite recursion in mingw
42105         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42106         recursing.
42107
42108         test-stat-time: port to mingw
42109         * tests/test-stat-time.c (force_unlink): Return a value.
42110         (test_ctime) [W32]: Fix compilation error.
42111         (nap): Don't call usleep with too large an argument.  Use
42112         force_unlink.
42113         * doc/pastposix-functions/usleep.texi (usleep): Document the
42114         portability issue.
42115
42116 2009-10-13  Jim Meyering  <meyering@redhat.com>
42117
42118         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42119         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42120         * modules/pipe-filter-ii: Likewise.
42121         * modules/sys_socket-tests: Likewise.
42122         * modules/tsearch-tests: Likewise.
42123         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42124         (check): Depend on it.
42125
42126 2009-10-12  Eric Blake  <ebb9@byu.net>
42127
42128         utimens-tests: port to NFS file systems
42129         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42130         comparisons to avoid spurious failures from timestamp drift
42131         between NFS machines.
42132
42133 2009-10-12  Eric Blake  <ebb9@byu.net>
42134
42135         stat-time-tests: minor cleanups
42136         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42137         * tests/test-stat-time.c (nap): Separate assignment from call.
42138         Suggested by Paolo Bonzini and Bruno Haible.
42139
42140         sys_stat: guarantee struct timespec
42141         * lib/sys_stat.in.h (includes): Always include <time.h>
42142         * modules/sys_stat (Depends-on): Add time.
42143         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42144         mode_t permission values.
42145         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42146         get at subsecond timestamps.
42147
42148 2009-10-10  Eric Blake  <ebb9@byu.net>
42149
42150         futimens: new module
42151         * modules/futimens: New file.
42152         * lib/futimens.c (futimens): Likewise.
42153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42154         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42155         we can work around Linux bugs.
42156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42157         * modules/sys_stat (Makefile.am): Substitute them.
42158         * lib/sys_stat.in.h (futimens): Declare it.
42159         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42160         * doc/posix-functions/futimens.texi (futimens): Likewise.
42161         * modules/futimens-tests: New test.
42162         * tests/test-futimens.c: Likewise.
42163
42164         utimens: introduce fdutimens
42165         * lib/utimens.h (fdutimens): New prototype.
42166         * lib/utimens.c (gl_futimens): Move guts...
42167         (fdutimens): ...to new interface.
42168         * tests/test-utimens.c (do_fdutimens): Use it.
42169
42170         utimens: add UTIME_NOW and UTIME_OMIT support
42171         * lib/utimens.c (validate_timespec, update_timespec): New helper
42172         functions.
42173         (gl_futimens, lutimens): Use them.
42174         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42175         stdbool, sys_stat.
42176         (Link): Mention resulting library dependency.
42177         * modules/utimecmp (Link): Likewise.
42178         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42179         (Makefile.am): Pick up library dependency.
42180         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42181         definition.
42182         * tests/test-sys_stat.c: Test the definitions.
42183         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42184         * NEWS: Document library dependency.
42185
42186         utimecmp: support symlink timestamps
42187         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42188         hashing when possible.  Use pathconf when available.
42189         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42190         * modules/utimecmp (Depends-on): Add lstat.
42191
42192         utimens: add lutimens interface
42193         * lib/utimens.c (lutimens): New function.
42194         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42195         * lib/utimens.h (lutimens): Declare new interface.
42196         * tests/test-utimens.c (main): Enhance test.
42197         * tests/test-lutimens.h (test_lutimens): New file.
42198         * modules/utimens-tests (Files): Distribute it.
42199         (Depends-on): Add symlink.
42200         (configure.ac): Check for usleep.
42201
42202         utimens: validate futimens usage
42203         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42204         fewer syscalls on failure later on.  Avoid compiler warning on
42205         mingw.
42206         * modules/utimens (Depends-on): Add dup2.
42207
42208         utimens: add test
42209         * modules/utimens-tests: New test.
42210         * tests/test-utimens.h: New file.
42211         * tests/test-futimens.h: Likewise.
42212         * tests/test-utimens.c: Likewise.
42213
42214         doc: mention timestamp portability issues
42215         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42216         instead.
42217         * doc/posix-functions/utime.texi (utime): Likewise.
42218         * doc/posix-functions/utimes.texi (utimes): Likewise.
42219         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42220         instead.
42221         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42222         module.
42223         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42224         Mention weakness with symlink timestamps.
42225         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42226         to utimensat/futimens instead.
42227         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42228
42229         test-dup2: enhance test
42230         * tests/test-dup2.c (main): Also check AT_FDCWD.
42231
42232         test-stat-time: avoid more spurious failures
42233         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42234         xfs; and avoid race if the two timestamps cross quantization edge.
42235
42236         relocatable: prefer 'file system' over 'filesystem'
42237         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42238         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42239         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42240         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42241         * lib/relocatable.c (compute_curr_prefix): Likewise.
42242
42243 2009-10-10  Jim Meyering  <meyering@redhat.com>
42244
42245         stat-time-tests: check for the usleep function
42246         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42247
42248 2009-10-10  Bruno Haible  <bruno@clisp.org>
42249
42250         * modules/xnanosleep: Put the Link section after the Include section.
42251
42252 2009-10-09  Eric Blake  <ebb9@byu.net>
42253
42254         dup2: work around FreeBSD 6.1 bug
42255         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42256         * doc/posix-functions/dup2.texi (dup2): Document it.
42257         Reported by Nelson H. F. Beebe and Jim Meyering.
42258
42259         test-stat-time: port to buggy NFS clients
42260         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42261         (test_ctime): Also skip test if mtime and ctime are skewed.
42262
42263         maint: prefer 'file system' over 'filesystem'
42264         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42265         * doc/posix-functions/lstat.texi (lstat): Likewise.
42266         * lib/file-has-acl.c (file_has_acl): Likewise.
42267         * lib/fwriteerror.c [TEST]: Likewise.
42268         * tests/test-areadlink.h (test_areadlink): Likewise.
42269         * tests/test-areadlinkat-with-size.c (main): Likewise.
42270         * tests/test-areadlinkat.c (main): Likewise.
42271         * tests/test-canonicalize-lgpl.c (main): Likewise.
42272         * tests/test-canonicalize.c (main): Likewise.
42273         * tests/test-fstatat.c (main): Likewise.
42274         * tests/test-linkat.c (main): Likewise.
42275         * tests/test-lstat.h (test_lstat_func): Likewise.
42276         * tests/test-mkdir.h (test_mkdir): Likewise.
42277         * tests/test-readlink.h (test_readlink): Likewise.
42278         * tests/test-remove.c (main): Likewise.
42279         * tests/test-rename.h (test_rename): Likewise.
42280         * tests/test-renameat.c (main): Likewise.
42281         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42282         * tests/test-symlink.h (test_symlink): Likewise.
42283         * tests/test-symlinkat.c (main): Likewise.
42284         * tests/test-unlink.h (test_unlink_func): Likewise.
42285         * tests/test-unlinkat.c (main): Likewise.
42286
42287         maint: make realtime library usage explicit
42288         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42289         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42290         * modules/settime (Link): Likewise.
42291         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42292
42293         test-stat-time: speed up execution
42294         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42295         warning on mingw.
42296         (nap): New helper function.
42297         (prepare_test): Use it to reduce sleep time.
42298         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42299         execution.
42300         * modules/stat-time-tests (configure.ac): Check for usleep.
42301
42302 2009-10-09  Jim Meyering  <meyering@redhat.com>
42303
42304         selinux-h: always use getfilecon wrappers
42305         * lib/getfilecon.c: New file.
42306         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42307         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42308         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42309         (fgetfilecon): Provide a stub.
42310         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42311         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42312         file unconditionally.
42313         When <selinux/selinux.h> is found, arrange to use wrappers.
42314         * modules/selinux-h (Files): Add getfilecon.c.
42315         (Makefile.am): Substitute include-next-related bits
42316         into the now-always-generated selinux/selinux.h file.
42317         * doc/glibc-functions/lgetfilecon.texi: New file.
42318         * doc/glibc-functions/fgetfilecon.texi: New file.
42319         * doc/glibc-functions/getfilecon.texi: New file.
42320         * doc/glibc-functions/getfilecon-desc.texi: New file.
42321         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42322         which to pull in the new files.
42323         * MODULES.html.sh (Misc): Add selinux-h.
42324
42325 2009-10-08  Jim Meyering  <meyering@redhat.com>
42326
42327         unistd: fix comment typo
42328         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42329
42330 2009-10-08  Eric Blake  <ebb9@byu.net>
42331
42332         areadlink: use SIZE_MAX consistently
42333         * modules/areadlink (Depends-on): Add stdint.
42334         * modules/areadlink-with-size (Depends-on): Likewise.
42335         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42336         gives NULL; drop sys/types, since unistd gives size_t; and add
42337         stdint for SIZE_MAX.
42338         (SIZE_MAX): Rely on headers.
42339         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42340         and add stdint.
42341         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42342         (SIZE_MAX): Likewise.
42343         (INITIAL_BUF_SIZE): Turn into enum.
42344         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42345
42346 2009-10-08  Jim Meyering  <meyering@redhat.com>
42347
42348         areadlinkat: avoid compilation failure
42349         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42350         Fix typo in comment.
42351
42352 2009-10-07  Eric Blake  <ebb9@byu.net>
42353
42354         areadlinkat-with-size: new module
42355         * modules/areadlinkat-with-size: New module.
42356         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42357         * lib/areadlink.h (areadlinkat): Declare it.
42358         * MODULES.html.sh (File system functions): Mention it.
42359         * modules/areadlinkat-with-size-tests: New test.
42360         * tests/test-areadlinkat-with-size.c: New file.
42361
42362         xreadlinkat: new module
42363         * modules/xreadlinkat: New module.
42364         * lib/xreadlinkat.c (xreadlinkat): New file.
42365         * lib/xreadlink.h (xreadlinkat): Declare it.
42366         * MODULES.html.sh (File system functions): Mention it.
42367
42368         areadlinkat: new module
42369         * lib/at-func.c (FUNC_FAIL): New define.
42370         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42371         * modules/areadlinkat: New module.
42372         * lib/linkat.c (areadlinkat): Move...
42373         * lib/areadlinkat.c (areadlinkat): ...to new file.
42374         * lib/areadlink.h (areadlinkat): Declare it.
42375         * modules/linkat (Depends-on): Add areadlinkat.
42376         * MODULES.html.sh (File system functions): Mention it.
42377         * modules/areadlinkat-tests: New test.
42378         * tests/test-areadlinkat.c: New file.
42379
42380         areadlink, areadlink-with-size: add tests
42381         * modules/areadlink-tests: New test.
42382         * modules/areadlink-with-size-tests: Likewise.
42383         * tests/test-areadlink.h: New file.
42384         * tests/test-areadlink.c: Likewise.
42385         * tests/test-areadlink-with-size.c: Likewise.
42386
42387         maint: minor cleanups
42388         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42389         _UNUSED_PARAMETER_ instead.
42390         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42391         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42392         * modules/linkat-tests (Files): Distribute test-link.h.
42393
42394         openat, utimens: whitespace cleanup
42395         * lib/openat.c: Prefer space throughout, rather than mix of 8
42396         spaces vs. tabs.
42397         * lib/at-func.c: Likewise.
42398         * lib/utimens.c: Likewise.
42399
42400         openat: avoid using wrong fd
42401         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42402         working directory chooses same fd.
42403         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42404
42405         mkdir, mkdirat: fix cygwin 1.5.x bug
42406         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42408         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42409         bug.
42410         (gl_PREREQ_MKDIR): Delete unused macro.
42411         * modules/mkdir (Files): Track file rename.
42412         (configure.ac): Update macro name.
42413         * modules/openat (Depends-on): Add mkdir.
42414         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42415
42416         mkdir, mkdirat: add tests
42417         * modules/mkdir-tests: New test.
42418         * tests/test-mkdir.h: New file.
42419         * tests/test-mkdir.c: Likewise.
42420         * tests/test-mkdirat.c: Likewise.
42421         * modules/openat-tests (Files): Add new files.
42422         (Makefile.am): Run new test.
42423
42424 2009-10-06  Eric Blake  <ebb9@byu.net>
42425
42426         doc: tweak *at function documentation
42427         * doc/posix-functions/faccessat.texi (faccessat): Mention
42428         known issue with replacement.
42429         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42430         * doc/posix-functions/linkat.texi (linkat): Likewise.
42431         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42432         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42434         * doc/posix-functions/renameat.texi (renameat): Likewise.
42435         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42436
42437         openat: fix GNU/Hurd bug in unlinkat
42438         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42439         broken.
42440         * doc/posix-functions/unlink.texi (unlink): Document this.
42441         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42442
42443         fdopendir: fix GNU/Hurd bug
42444         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42445         allowing non-directory fds.
42446         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42448         * modules/dirent (Makefile.am): Substitute it.
42449         * lib/dirent.in.h (fdopendir): Declare replacement.
42450         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42451         * tests/test-fdopendir.c (main): Test something other than
42452         /dev/null, since on Hurd that behaves like a directory.
42453
42454         test-symlink: port to GNU/Hurd
42455         * tests/test-symlink.h (test_symlink): Relax expected errno.
42456
42457         doc: tweak more cygwin information
42458         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42459         now compatible with glibc.
42460         * doc/posix-functions/getopt.texi (getopt): Likewise.
42461
42462         getopt-gnu: add another test
42463         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42464         guarantee behavior relied on by m4.
42465         * tests/test-getopt.c (main): Use it.
42466         * modules/getopt-posix-tests (Depends-on): Add setenv.
42467         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42468
42469         getopt: fix compilation on darwin
42470         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42471         include.
42472         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42473         Reported by Ludovic Courtès.
42474
42475 2009-10-06  Bruno Haible  <bruno@clisp.org>
42476
42477         * modules/size_max (Description): Discourage its use.
42478         Reported by Simon Josefsson.
42479
42480 2009-10-06  Jim Meyering  <meyering@redhat.com>
42481
42482         linkat: avoid compilation failure
42483         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42484
42485 2009-10-05  Eric Blake  <ebb9@byu.net>
42486
42487         linkat: support Linux 2.6.17
42488         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42489         linkat on Linux, but allow cache variable override.
42490         * lib/linkat.c (rpl_linkat): Define override.
42491         * modules/linkat (Depends-on): Add symlinkat.
42492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42493         * modules/unistd (Makefile.am): Substitute it.
42494         * lib/unistd.in.h (linkat): Declare replacement.
42495         Reported by Pádraig Brady.
42496
42497         quotearg: port test to systems with C.UTF-8 locale
42498         * tests/test-quotearg.c (struct result_strings): Add another
42499         member, differentiating between C.ASCII and C.UTF-8 handling.
42500         (compare_strings): Add parameter.
42501         (main): Adjust all callers.
42502
42503         getopt: avoid clash with FreeBSD _getopt_internal
42504         * lib/getopt.in.h (_getopt_internal): Override the name.
42505         * lib/getopt_int.h (includes): Pick up any overrides.
42506         Reported by Reuben Thomas.
42507
42508         hash: allow C89 compilation
42509         * lib/hash.c (check_tuning): Move declaration before statement.
42510         Reported by Reuben Thomas.
42511
42512 2009-10-05  Karl Berry  <karl@gnu.org>
42513
42514         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42515
42516 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42517             Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/uname.c (uname): Use a table-driven algorithm to compute
42520         Windows NT versions.
42521
42522 2009-10-04  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42525         program_invocation_short_name.
42526         * modules/progname (configure.ac): Test for presence of
42527         program_invocation_short_name.
42528         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42529
42530 2009-10-04  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/progname.c (set_program_name): Fix comment.
42533         Reported by Jim Meyering.
42534
42535 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42536             Bruno Haible  <bruno@clisp.org>
42537
42538         * lib/uname.c: Include <string.h>.
42539         (uname): Do only one call to GetVersionEx in the common case.
42540
42541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42542             Bruno Haible  <bruno@clisp.org>
42543
42544         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42545         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42546         (uname): Add support for Windows CE and various non-x86 CPU types.
42547
42548 2009-10-03  Bruno Haible  <bruno@clisp.org>
42549
42550         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42551         invocation to tests/configure.ac.
42552         Reported by Ian Beckwith <ianb@erislabs.net>.
42553
42554 2009-10-02  Eric Blake  <ebb9@byu.net>
42555
42556         fchdir: avoid compiler warning
42557         * lib/fchdir.c (canonicalize_file_name)
42558         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42559
42560         test-open: support mingw errno values
42561         * tests/test-open.h (test_open): Relax test.
42562         * tests/test-fopen.h (test_fopen): Likewise.
42563         * tests/test-openat-safer.c (main): Likewise.
42564
42565         open: fix opening directory on mingw
42566         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42567
42568         test-open: on GNU/Hurd, /dev/null is a directory
42569         * tests/test-fopen.h (main): Rename...
42570         (test_fopen): ...to this.  Use a guaranteed non-directory when
42571         confirming open behavior on trailing slash.
42572         * tests/test-openat-safer.c (main): Likewise.
42573         * tests/test-open.h (main): Likewise....
42574         (test_open): ...to this.
42575         * tests/test-fopen.c (main): Adjust caller.
42576         * tests/test-fopen-safer.c (main): Likewise.
42577         * tests/test-open.c (main): Likewise.
42578         * tests/test-fcntl-safer.c (main): Likewise.
42579         Reported by Samuel Thibault.
42580
42581         rename, fchdir: don't ignore chdir failure
42582         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42583         * lib/rename.c (rpl_rename) [W32]: Likewise.
42584         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42585         an empty destination directory if source cannot be renamed,
42586         although there is still possibility for failure.
42587         * doc/posix-functions/rename.texi (rename): Document the race.
42588         Reported by Jim Meyering.
42589
42590         maint: cleanup whitespace in recent commits
42591         * lib/rename.c (rpl_rename): Remove tabs.
42592         * tests/test-link.h (test_link): Likewise.
42593         * lib/fchdir.c (get_name): Likewise.
42594         Reported by Jim Meyering.
42595
42596 2009-10-02  Ben Pfaff  <blp@gnu.org>
42597
42598         relocatable-prog-wrapper: Add missing dependency on
42599         double-slash-root.
42600         * modules/relocatable-prog-wrapper: Add dependency.
42601         Reported by Ian Beckwith <ianb@erislabs.net>.
42602
42603 2009-10-02  Eric Blake  <ebb9@byu.net>
42604
42605         renameat: fix Solaris bugs
42606         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42607         needed fixing.
42608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42609         * modules/stdio (Makefile.am): Substitute it.
42610         * lib/stdio.in.h (renameat): Declare replacement.
42611         * lib/renameat.c (rpl_renameat): Implement fix.
42612
42613         renameat: new module
42614         * modules/renameat: New file.
42615         * lib/renameat.c (renameat): Likewise.
42616         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42618         * modules/stdio (Makefile.am): Substitute them.
42619         * lib/stdio.in.h (renameat): Declare it.
42620         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42621         * doc/posix-functions/renameat.texi (renameat): Likewise.
42622         * modules/renameat-tests: New test.
42623         * tests/test-renameat.c: Likewise.
42624
42625         rename: fix mingw bugs
42626         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42627         directory overwrite bugs.
42628
42629         rename: fix another cygwin 1.5 bug
42630         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42631         checks.
42632         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42633         unnecessary cygwin workarounds.  Also work around bug with moving
42634         full directory onto an empty one.
42635         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42636
42637         rename-dest-slash: merge into rename module
42638         * modules/rename-dest-slash (Status): Mark obsolete.
42639         (Depends-on): Add rename.
42640         (Files): Let rename do it all.
42641         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42642         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42643         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42644         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42645         * lib/rename.c (rpl_rename): Update comments.
42646
42647         rename: fix cygwin 1.5.x bugs
42648         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42649         * lib/rename.c (rpl_rename): Work around them.
42650         * modules/rename (Depends-on): Add same-inode.
42651
42652         rename: fix Solaris 10 bug
42653         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42654         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42655         was the only bug.
42656
42657         rename: fix Solaris 9 bug
42658         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42659         on non-directory.  Avoid calling exit.
42660         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42661         strdup.
42662         * modules/rename-tests (Depends-on): Drop lstat.
42663         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42664         (gl_PREREQ_RENAME): Delete unused macro.
42665
42666         rename-dest-slash: fix NetBSD bug
42667         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42668         links.
42669         * modules/rename-dest-slash (Depends-on): Add same-inode.
42670
42671         rename-tests: new test, exposes several platform bugs
42672         * modules/rename-tests: New file.
42673         * tests/test-rename.h: Likewise.
42674         * tests/test-rename.c: Likewise.
42675         * doc/posix-functions/rename.texi (rename): Improve documentation,
42676         including bugs that will eventually be fixed in gnulib.
42677
42678 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42679
42680         * lib/uname.c: Include <stdlib.h>
42681         (uname): Assume version info is available.
42682
42683 2009-10-02  Jim Meyering  <meyering@redhat.com>
42684
42685         gnu-web-doc-update: correct --help output
42686         * build-aux/gnu-web-doc-update: Make --help output relevant.
42687
42688         gnu-web-doc-update: add standard options
42689         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42690
42691         gnu-web-doc-update: New module.
42692         Use this script to automatically update the on-line web documentation
42693         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42694         * modules/gnu-web-doc-update: New file, from coreutils.
42695         * build-aux/gnu-web-doc-update: New script.
42696
42697 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42698
42699         link: LoadLibrary is not needed.
42700         * lib/link.c: Use GetModuleHandle.
42701
42702 2009-10-01  Eric Blake  <ebb9@byu.net>
42703
42704         getopt: bump serial number
42705         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42706         change.
42707
42708         tests: tighten link, rmdir, and remove tests
42709         * tests/test-link.h (includes): No need to use <config.h> here.
42710         Clean up if directory hard link was created, otherwise test for
42711         trailing '.'.
42712         * tests/test-linkat.c (main): Simplify.
42713         * tests/test-remove.c (main): Enhance test for trailing '.'.
42714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42715
42716 2009-10-01  Jim Meyering  <meyering@redhat.com>
42717
42718         maint.mk: requiring "make major" was annoying, for a "minor" release.
42719         What is intended is "stable", to contrast with alpha and beta,
42720         so require "make stable", not "make major".
42721         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42722         (get_tool_versions): Likewise.
42723         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42724
42725 2009-09-30  Ben Pfaff  <blp@gnu.org>
42726
42727         Fix broken build of replacement for Windows tmpfile().
42728         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42729         flags argument added along with the 'mkostemp' module.
42730
42731 2009-09-28  Bruno Haible  <bruno@clisp.org>
42732
42733         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42734         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42735         to 'remove_elt'.
42736         (gl_list_remove): Update.
42737         * lib/gl_list.c (gl_list_remove): Update.
42738         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42739         to 'remove_elt'.
42740         (gl_oset_remove): Update.
42741         * lib/gl_list.c (gl_oset_remove): Update.
42742         Reported by Eric Blake.
42743
42744 2009-09-28  Eric Blake  <ebb9@byu.net>
42745
42746         doc: mention yet more cygwin 1.7 status
42747         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42748         cygwin.
42749         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42750         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42751
42752         argp: fix test failure
42753         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42754         that are not upper-case.  Pass correct range to tolower.
42755
42756 2009-09-27  Jim Meyering  <meyering@redhat.com>
42757
42758         test-yesno: work around sparc-dash here-document infelicity
42759         Without this change, the literal \177 byte in a here document
42760         would make dash 0.5.5.1-3 access uninitialized memory.
42761         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42762         Instead, use a marker, "@", and filter through tr to create the desired
42763         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42764
42765 2009-09-27  Bruno Haible  <bruno@clisp.org>
42766
42767         Disable untested support for new flavours of ACLs on AIX.
42768         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42769         progress.
42770         * lib/set-mode-acl.c (qset_acl): Likewise.
42771
42772 2008-12-07  Bruno Haible  <bruno@clisp.org>
42773
42774         Add support for new flavours of ACLs on AIX. (Untested.)
42775         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42776         (file_has_acl): Add support for newer AIX.
42777         * lib/set-mode-acl.c (qset_acl): Likewise.
42778         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42779         Rainer Tammer <tammer@tammer.net>.
42780
42781 2009-09-26  Eric Blake  <ebb9@byu.net>
42782
42783         argp: fix compilation of getopt
42784         * lib/getopt.in.h (includes): Use different guard than glibc.
42785         Reported by Sergey Poznyakoff.
42786
42787         doc: mention more cygwin 1.7 status
42788         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42789         bug.
42790         * doc/posix-functions/execl.texi (execl): Likewise.
42791         * doc/posix-functions/execle.texi (execle): Likewise.
42792         * doc/posix-functions/execlp.texi (execlp): Likewise.
42793         * doc/posix-functions/execv.texi (execv): Likewise.
42794         * doc/posix-functions/execve.texi (execve): Likewise.
42795         * doc/posix-functions/execvp.texi (execvp): Likewise.
42796         * doc/glibc-functions/canonicalize_file_name.texi
42797         (canonicalize_file_name): Cygwin 1.7 now provides this.
42798         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42799         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42800         on AT_SYMLINK_NOFOLLOW.
42801
42802 2009-09-24  Eric Blake  <ebb9@byu.net>
42803
42804         test-linkat: make test more robust
42805         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42806
42807         getopt: fix inclusion guards for cygwin
42808         * modules/getopt-posix (Depends-on): Add include-next.
42809         (Makefile.am): Substitute more items in replacement header.
42810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42811         <getopt.h>.
42812         * lib/getopt.in.h (includes): Use split inclusion guard, and
42813         prefer <getopt.h> over include <unistd.h> when one is present.
42814         (option): Also override name of 'struct option'.
42815
42816         same-inode: revert prior change; it is not yet ready
42817         * NEWS: Undo mention of this change.
42818         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42819         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42820         * lib/cycle-check.c (cycle_check): Likewise.
42821         * lib/same.c (same_name): Likewise.
42822         * lib/at-func2.c (at_func2): Likewise.
42823
42824 2009-09-23  Eric Blake  <ebb9@byu.net>
42825
42826         linkat: new module
42827         * modules/linkat: New file.
42828         * lib/at-func2.c (at_func2): Likewise.
42829         * lib/linkat.c (linkat): Likewise.
42830         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42831         * lib/openat-priv.h (at_func2): Add declaration.
42832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42833         * modules/unistd (Makefile.am): Substitute them.
42834         * lib/unistd.in.h (linkat): Declare it.
42835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42836         * doc/posix-functions/linkat.texi (linkat): Likewise.
42837         * doc/posix-functions/link.texi (link): Tweak wording.
42838         * tests/test-link.c (main): Move guts...
42839         * tests/test-link.h (test_link): ...into new file.
42840         * modules/linkat-tests: New test.
42841         * tests/test-linkat.c: Likewise.
42842         * modules/link-tests (Files): Ship new file.
42843         (Depends-on): Add stdbool.
42844
42845         dirname: add library-safe mdir_name
42846         * lib/dirname.h (mdir_name): New prototype.
42847         * lib/dirname.c (dir_name): Move guts...
42848         (mdir_name): ...to new function that avoids xalloc_die.
42849
42850         fchdir: another mingw fix
42851         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42852         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42853         on mingw (where it has not yet been ported), and make it optional
42854         elsewhere.
42855         (_gl_register_fd): Use it.
42856
42857         same-inode: make SAME_INODE tri-state, to port to mingw
42858         * NEWS: Mention this change.
42859         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42860         st_ino always being 0.
42861         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42862         * lib/cycle-check.c (cycle_check): Likewise.
42863         * lib/same.c (same_name): Likewise.
42864
42865         lstat: avoid mingw compilation error
42866         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42867         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42868         lstat ourselves.
42869         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42870         was adequate.
42871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42872         the checks for lstat.
42873         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42874
42875         link: fix test failure on Solaris 9
42876         * lib/link.c (rpl_link): Don't assume link will catch bogus
42877         trailing slash on source.
42878
42879         test-symlinkat: enhance test
42880         * tests/test-readlink.c (main): Move guts...
42881         * tests/test-readlink.h (test_readlink): ...into new file.
42882         * tests/test-symlink.c (main): Move guts...
42883         * tests/test-symlink.h (test_symlink): ...into new file.
42884         * tests/test-symlinkat.c (main): Use new files for further
42885         coverage.
42886         (do_symlink, do_readlink): New helper functions.
42887         * modules/symlink-tests (Files): Ship new file.
42888         (Depends-on): Add stdbool.
42889         * modules/readlink-tests (Files): Ship new file.
42890         (Depends-on): Add stdbool.
42891         * modules/symlinkat-tests (Files): Use new files.
42892
42893 2009-09-23  Eric Blake  <ebb9@byu.net>
42894
42895         readlink: document portability issue with symlink length
42896         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42897         systems have bogus st_size on symlinks, and mention the
42898         areadlink-with-size module.
42899         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42900         * doc/posix-functions/readlink.texi (readlink): Mention the
42901         areadlink module, and ERANGE failure.
42902         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42903         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42904
42905         readlink: fix Solaris 9 bug with trailing slash
42906         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42907         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42908         * doc/posix-functions/readlink.texi (readlink): Document this.
42909         * modules/readlink-tests: New test.
42910         * tests/test-readlink.c: Likewise.
42911
42912         readlink: fix cygwin 1.5.x bug with return type
42913         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42914         * lib/unistd.in.h (readlink): Use ssize_t.
42915         * lib/readlink.c (readlink): Likewise.
42916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42917         * modules/unistd (Makefile.am): Substitute it.
42918         * lib/unistd.in.h (readlink): Declare replacement.
42919         * doc/posix-functions/readlink.texi (readlink): Document this.
42920
42921         symlink: use throughout gnulib
42922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42923         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42924         symlink is not used.
42925         * modules/symlinkat (Depends-on): Add symlink.
42926         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42927         * modules/canonicalize-tests (Depends-on): Likewise.
42928         * modules/lstat-tests (Depends-on): Likewise.
42929         * modules/openat-tests (Depends-on): Likewise.
42930         * modules/remove-tests (Depends-on): Likewise.
42931         * modules/rmdir-tests (Depends-on): Likewise.
42932         * modules/unlink-tests (Depends-on): Likewise.
42933         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42934         * tests/test-canonicalize.c (symlink): Likewise.
42935         * tests/test-fstatat.c (symlink): Likewise.
42936         * tests/test-lstat.c (symlink): Likewise.
42937         * tests/test-remove.c (symlink): Likewise.
42938         * tests/test-rmdir.c (symlink): Likewise.
42939         * tests/test-unlink.c (symlink): Likewise.
42940         * tests/test-unlinkat.c (symlink): Likewise.
42941
42942         symlink: new module, for Solaris 9 bug
42943         * modules/symlink: New file.
42944         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42945         * lib/symlink.c: Likewise.
42946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42947         * modules/unistd (Makefile.am): Substitute them.
42948         * lib/unistd.in.h (symlink): Declare replacement.
42949         * MODULES.html.sh (File system functions): Mention it.
42950         * doc/posix-functions/symlink.texi (symlink): Likewise.
42951         * modules/symlink-tests: New test.
42952         * tests/test-symlink.c: Likewise.
42953
42954 2009-09-23  Bruno Haible  <bruno@clisp.org>
42955
42956         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42957         when needed.
42958         Test case: gnulib-tool --import --with-tests atexit inttypes.
42959         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42960
42961 2009-09-23  Bruno Haible  <bruno@clisp.org>
42962
42963         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42964         subcommand, not in a subshell.
42965
42966 2009-09-22  Eric Blake  <ebb9@byu.net>
42967
42968         unistd: sort replacement declarations
42969         * lib/unistd.in.h: Sort declarations.
42970
42971         open, openat: minor optimization
42972         * lib/open.c (open): If open succeeded, len is non-zero.
42973         * lib/openat.c (rpl_openat): Likewise.
42974
42975         link-follow: ensure correct result
42976         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42977         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42978         distinguish between possible failures.
42979
42980 2009-09-21  Eric Blake  <ebb9@byu.net>
42981
42982         fts: avoid compiler warning
42983         * lib/fts.c (dirent_inode_sort_may_be_useful)
42984         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42985
42986 2009-09-19  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/progreloc.c (canonicalize_file_name): New declaration.
42989
42990 2009-09-19  Eric Blake  <ebb9@byu.net>
42991
42992         link: fix quoting
42993         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42994
42995         openat: fix openat bugs on Solaris 9
42996         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42997         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42998         * modules/openat (Depends-on): Add open.
42999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43000         * modules/fcntl-h (Makefile.am): Substitute it.
43001         * lib/fcntl.in.h (openat): Declare replacement.
43002         * doc/posix-functions/openat.texi (openat): Document this.
43003
43004         openat: move fstatat and unlinkat into correct files
43005         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43006         compiled.
43007         * lib/openat.c (fstatat, unlinkat): Move...
43008         * lib/fstatat.c (fstatat): ...into correct files.
43009         * lib/unlinkat.c (unlinkat): Likewise.
43010
43011         openat: fix unlinkat bugs on Solaris 9
43012         * lib/unlinkat.c (unlinkat): New file.
43013         * modules/openat (Depends-on): Add unlink.
43014         (Files): Distribute it.
43015         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43016         trailing slash behavior is broken.
43017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43018         * modules/unistd (Makefile.am): Substitute it.
43019         * lib/unistd.in.h (unlinkat): Declare replacement.
43020         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43021
43022         openat: fix fstatat bugs on Solaris 9
43023         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43024         stat.
43025         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43026
43027         test-unlinkat: enhance test, to expose Solaris 9 bug
43028         * tests/test-unlink.c (main): Factor guts...
43029         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43030         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43031         * tests/test-rmdir.c (main): Adjust caller.
43032         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43033         (unlinker): New helper function.
43034         (rmdirat): Enhance check.
43035         * modules/rmdir-tests (Depends-on): Add stdbool.
43036         * modules/unlink-tests (Depends-on): Likewise.
43037         (Files): Add test-unlink.h.
43038         * modules/openat-tests (Files): Likewise.
43039         (Depends-on): Add unlinkdir.
43040
43041         test-fstatat: new test, to expose Solaris 9 bugs
43042         * tests/test-stat.c (main): Factor guts...
43043         * tests/test-stat.h (test_stat_func): ...into new file.
43044         * tests/test-lstat.c (main): Factor guts...
43045         * tests/test-lstat.h (test_lstat_func): ...into new file.
43046         * tests/test-fstatat.c: New file.
43047         * modules/stat-tests (Files): Add test-stat.h.
43048         * modules/lstat-tests (Files): Add test-lstat.h.
43049         (Depends-on): Add stdbool.
43050         * modules/openat-tests (Depends-on): Add pathmax.
43051         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43052         (Makefile.am): Run new test.
43053
43054         remove: new module, for mingw and Solaris 9 bugs
43055         * modules/remove: New file.
43056         * lib/remove.c: Likewise.
43057         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43059         * modules/stdio (Makefile.am): Use them.
43060         * lib/stdio.in.h (remove): Declare replacement.
43061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43062         * doc/posix-functions/remove.texi (remove): Likewise.
43063         * modules/remove-tests: New test.
43064         * tests/test-remove.c: Likewise.
43065
43066         unlink: new module, for Solaris 9 bug
43067         * modules/unlink: New file.
43068         * lib/unlink.c: Likewise.
43069         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43071         * modules/unistd (Makefile.am): Use them.
43072         * lib/unistd.in.h (stat): Declare replacement.
43073         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43074         * doc/posix-functions/unlink.texi (unlink): Likewise.
43075         * modules/unlink-tests: New test.
43076         * tests/test-unlink.c: Likewise.
43077
43078         lstat: fix Solaris 9 bug
43079         * lib/lstat.c (lstat): Also check for trailing slash on
43080         non-symlink, non-directories.  Use stat module to simplify logic.
43081         * doc/posix-functions/lstat.texi (lstat): Document it.
43082         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43083         (configure.ac): Check for symlink.
43084         * tests/test-lstat.c (main): Add more tests.
43085
43086         stat: add as dependency to other modules
43087         * modules/chown (Depends-on): Add stat.
43088         * modules/euidaccess (Depends-on): Likewise.
43089         * modules/fchdir (Depends-on): Likewise.
43090         * modules/isdir (Depends-on): Likewise.
43091         * modules/link (Depends-on): Likewise.
43092         * modules/lstat (Depends-on): Likewise.
43093         * modules/mkdir-p (Depends-on): Likewise.
43094         * modules/modechange (Depends-on): Likewise.
43095         * modules/open (Depends-on): Likewise.
43096         * modules/readlink (Depends-on): Likewise.
43097         * modules/same (Depends-on): Likewise.
43098
43099         stat: fix Solaris 9 bug
43100         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43101         slash.
43102         * lib/stat.c (rpl_stat): Work around it.
43103         * doc/posix-functions/stat.texi (stat): Update documentation.
43104
43105         stat: new module, for mingw bug
43106         * modules/stat: New file.
43107         * lib/stat.c: Likewise.
43108         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43110         * modules/sys_stat (Makefile.am): Use them.
43111         * lib/sys_stat.in.h (stat): Declare replacement.
43112         * lib/openat.c (fstatat): Deal with lstat and stat being function
43113         macros.
43114         * modules/openat (Depends-on): Add inline.
43115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43116         * doc/posix-functions/stat.texi (stat): Likewise.
43117         * modules/stat-tests: New test.
43118         * tests/test-stat.c: Likewise.
43119
43120 2009-09-19  Jim Meyering  <meyering@redhat.com>
43121
43122         syntax-check: detect unnecessary inclusion of canonicalize.h
43123         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43124
43125 2009-09-19  Eric Blake  <ebb9@byu.net>
43126
43127         canonicalize-lgpl: adjust clients to use correct header
43128         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43129         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43130         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43131         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43132         * lib/progreloc.c (includes): Likewise.
43133
43134 2009-09-19  Jim Meyering  <meyering@redhat.com>
43135
43136         test-posixtm.c: correct a comment
43137         * tests/test-posixtm.c: Correct first-line comment.
43138         Spotted by Eric Blake.
43139
43140 2009-09-16  Jim Meyering  <meyering@redhat.com>
43141
43142         posixtm-tests: make T const-correct; add a test case
43143         * tests/test-posixtm.c (T): Declare const.
43144         Add a test for -(2^31+1).
43145         Remove useless can-succeed-only-in-2002 test.
43146
43147         posixtm-tests: adjust the sole failing test
43148         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43149         expected output matches what mktime now produces.  Cross-checked via
43150         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43151
43152         posixtm: move #ifdef'd tests into a new module
43153         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43154         * tests/test-posixtm.c: ... this new file.
43155         * modules/posixtm-tests: New module.
43156
43157 2009-09-19  Eric Blake  <ebb9@byu.net>
43158
43159         openat: simplify use of at-func.c
43160         * lib/at-func.c (includes): Include prerequisites here, to
43161         simplify requirements on client files.
43162         * lib/openat-priv.h: Add double-inclusion guard.
43163         * lib/faccessat.c (includes): Simplify.
43164         * lib/fchmodat.c (includes): Likewise.
43165         * lib/fchownat.c (includes): Likewise.
43166         * lib/mkdirat.c (includes): Likewise.
43167         * lib/mkfifoat.c (includes): Likewise.
43168         * lib/symlinkat.c (includes): Likewise.
43169
43170         openat: allow return of fd 0
43171         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43172         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43173         unistd-safer.
43174         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43175         <fcntl.h>; this module does not leak fds.
43176         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43177         must be allowed to return 0, leaving openat_safer to add the
43178         safety.
43179         (openat_permissive): Avoid writing to just-opened fd 2 if
43180         restoring the current directory fails.
43181         * lib/openat-die.c (openat_restore_fail): Add comment.
43182         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43183         (save_cwd): Guarantee safe fd, but without use of open_safer.
43184         * tests/test-openat.c: New test.
43185         * modules/openat-tests (Files, Makefile.am): Distribute and build
43186         new file.
43187
43188         relocatable-prog-wrapper: fix build
43189         * modules/relocatable-prog-wrapper (Files): Update name of
43190         canonicalize m4 file, broken on 2009-09-17.
43191         Reported by emad hajjar <aleppos@hotmail.com>.
43192
43193 2009-09-19  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43196         * lib/safe-alloc.c: Likewise.
43197         Reported by Ian Beckwith <ianb@erislabs.net>.
43198
43199 2009-09-18  Bruno Haible  <bruno@clisp.org>
43200
43201         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43202         Reported by <erobles@sensacd.com.mx>.
43203
43204 2009-09-17  Eric Blake  <ebb9@byu.net>
43205
43206         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43207         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43208         slashes when checking if last component is missing.
43209         * tests/test-canonicalize.c (main): Test this.
43210
43211         canonicalize, canonicalize-lgpl: honor // if distinct from /
43212         * modules/canonicalize (Files): Add double-slash-root.m4.
43213         * modules/canonicalize-lgpl (Files): Likewise.
43214         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43215         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43216         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43217         fallback definition.
43218         (canonicalize_filename_mode): Use it to protect //.
43219         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43220         (__realpath): Likewise.
43221         * tests/test-canonicalize.c (main): Test this.
43222         * tests/test-canonicalize-lgpl.c (main): Likewise.
43223         * modules/canonicalize-tests (Depends-on): Add same-inode.
43224         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43225
43226         canonicalize-lgpl: fix glibc bug with trailing slash
43227         * m4/canonicalize-lgpl.m4: Move contents...
43228         * m4/canonicalize.m4: ...here.
43229         (gl_CANONICALIZE_LGPL): Factor realpath check...
43230         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43231         glibc 2.3.5 bug, fixed 2005-04-27.
43232         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43233         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43234         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43235         * modules/canonicalize-lgpl (Files): Manage file rename.
43236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43237         * modules/stdlib (Makefile.am): Substitute witness.
43238         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43239         is needed.
43240         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43241         replacement is required.
43242         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43243         * doc/glibc-functions/canonicalize_file_name.texi
43244         (canonicalize_file_name): Document this.
43245         * doc/posix-functions/realpath.texi (realpath): Likewise.
43246
43247         canonicalize-lgpl: reject non-directory with trailing slash
43248         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43249         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43250         catches failures in glibc 2.3.5.
43251         * tests/test-canonicalize.c (main): Likewise.
43252
43253         canonicalize-lgpl: use native realpath if it works
43254         * lib/canonicalize-lgpl.c (realpath): Guard with
43255         FUNC_REALPATH_WORKS.
43256         * lib/stdlib.in.h (realpath): Make declaration optional based on
43257         HAVE_REALPATH.
43258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43259         native realpath works.
43260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43261         * modules/stdlib (Makefile.am): Substitute witness.
43262
43263         canonicalize, canonicalize-lgpl: use <stdlib.h>
43264         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43265         (Include): Mention <stdlib.h>.
43266         (configure.ac): Mention functions we provide.
43267         * modules/canonicalize (configure.ac): Likewise.
43268         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43269         realpath if canonicalize_file_name is missing.
43270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43271         * modules/stdlib (Makefile.am): Substitute witnesses.
43272         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43273         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43274         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43275         * NEWS: Document this.
43276         * doc/glibc-functions/canonicalize_file_name.texi
43277         (canonicalize_file_name): Likewise.
43278         * doc/posix-functions/realpath.texi (realpath): Likewise.
43279         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43280
43281         test-canonicalize: consolidate into single C program
43282         * tests/test-canonicalize.sh: Delete; move setup into...
43283         * tests/test-canonicalize.c (main): ...the program, making it
43284         easier to run in debugger.  Add some tests.
43285         * modules/canonicalize-tests (Files): Remove unused file.
43286         (Depends-on): Add progname.
43287         (configure.ac, Makefile.am): Simplify.
43288
43289         test-canonicalize-lgpl: consolidate into single C program
43290         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43291         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43292         easier to run in debugger.  Add some tests.
43293         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43294         (configure.ac, Makefile.am): Simplify.
43295
43296         canonicalize: avoid resolvepath
43297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43298         unnecessary checks.
43299         * lib/canonicalize.c (includes): Simplify.
43300         (canonicalize_file_name): Drop resolvepath implementation.
43301         * modules/canonicalize (Depends-on): Drop filenamecat.
43302
43303         canonicalize: don't lose errno
43304         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43305         over calls to free.
43306
43307         canonicalize: simplify errno handling
43308         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43309         assignment.
43310
43311         canonicalize, canonicalize-lgpl: update module dependencies
43312         * modules/canonicalize (Depends-on): Add extensions, lstat,
43313         pathmax, stdlib.
43314         (Files): Drop pathmax.h.
43315         (configure.ac): Adjust macro name.
43316         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43317         lstat, stdlib, sys_stat.
43318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43319         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43320         extensions.
43321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43322         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43323         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43324         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43325         declaration, if available.
43326         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43327         we can rely on the readlink module.
43328         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43329         (includes): Use <unistd.h> unconditionally.
43330
43331 2009-09-17  Eric Blake  <ebb9@byu.net>
43332
43333         maint: make Include sections of modules consistent
43334         * modules/alloca: Use only header name; no need to list #include.
43335         * modules/alloca-opt: Likewise.
43336         * modules/arpa_inet: Likewise.
43337         * modules/canon-host: Likewise.
43338         * modules/configmake: Likewise.
43339         * modules/dirent: Likewise.
43340         * modules/eealloc: Likewise.
43341         * modules/environ: Likewise.
43342         * modules/fchdir: Likewise.
43343         * modules/fcntl: Likewise.
43344         * modules/fcntl-h: Likewise.
43345         * modules/gethrxtime: Likewise.
43346         * modules/gettime: Likewise.
43347         * modules/ignore-value: Likewise.
43348         * modules/inet_ntop: Likewise.
43349         * modules/inet_pton: Likewise.
43350         * modules/inttypes: Likewise.
43351         * modules/isnand-nolibm: Likewise.
43352         * modules/isnanf-nolibm: Likewise.
43353         * modules/mbchar: Likewise.
43354         * modules/mbfile: Likewise.
43355         * modules/mbiter: Likewise.
43356         * modules/mbuiter: Likewise.
43357         * modules/netdb: Likewise.
43358         * modules/netinet_in: Likewise.
43359         * modules/nproc: Likewise.
43360         * modules/pagealign_alloc: Likewise.
43361         * modules/poll: Likewise.
43362         * modules/printf-frexp: Likewise.
43363         * modules/pthread: Likewise.
43364         * modules/putenv: Likewise.
43365         * modules/random_r: Likewise.
43366         * modules/relocatable-prog: Likewise.
43367         * modules/search: Likewise.
43368         * modules/select: Likewise.
43369         * modules/selinux-h: Likewise.
43370         * modules/settime: Likewise.
43371         * modules/signal: Likewise.
43372         * modules/size_max: Likewise.
43373         * modules/socklen: Likewise.
43374         * modules/ssize_t: Likewise.
43375         * modules/stdarg: Likewise.
43376         * modules/stdbool: Likewise.
43377         * modules/stddef: Likewise.
43378         * modules/stdint: Likewise.
43379         * modules/stdio: Likewise.
43380         * modules/stdlib: Likewise.
43381         * modules/string: Likewise.
43382         * modules/strings: Likewise.
43383         * modules/sys_file: Likewise.
43384         * modules/sys_ioctl: Likewise.
43385         * modules/sys_select: Likewise.
43386         * modules/sys_socket: Likewise.
43387         * modules/sys_stat: Likewise.
43388         * modules/sys_time: Likewise.
43389         * modules/sys_times: Likewise.
43390         * modules/sys_utsname: Likewise.
43391         * modules/sys_wait: Likewise.
43392         * modules/sysexits: Likewise.
43393         * modules/time: Likewise.
43394         * modules/times: Likewise.
43395         * modules/tmpfile: Likewise.
43396         * modules/trim: Likewise.
43397         * modules/unistd: Likewise.
43398         * modules/wchar: Likewise.
43399         * modules/wctype: Likewise.
43400
43401 2009-09-17  Bruno Haible  <bruno@clisp.org>
43402
43403         Make getdate.y compile on QNX and NetBSD 5 / i386.
43404         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43405         TIME_T_FITS_IN_LONG_INT.
43406         * lib/getdate.y (long_time_t): New type.
43407         (relative_time): Change type of 'seconds' field to long_time_t.
43408         (get_date): Update types of local variables. Check against overflow
43409         during conversion from long_time_t to time_t.
43410         Reported by Matt Kraai <kraai@ftbfs.org>
43411         and Hasso Tepper <hasso@netbsd.org>.
43412
43413 2009-09-17  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/COPYING: Update copyright years.
43416         * modules/README: Likeiwse.
43417         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43418         Reported by Ian Beckwith <ianb@erislabs.net>.
43419
43420 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43421
43422         * users.txt: Update references for gnuit package.
43423
43424 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43425
43426         * m4/getdelim.m4: Fix typo in copyright line.
43427
43428 2009-09-17  Bruno Haible  <bruno@clisp.org>
43429
43430         * lib/atoll.c: Use the standard header with GPL copyright.
43431         * lib/argz.in.h: Likewise.
43432         * lib/glob.c: Likewise.
43433         * lib/glob-libc.h: Likewise.
43434         * lib/random_r.c: Likewise.
43435         * lib/siglist.h: Likewise.
43436         * lib/strsignal.c: Likewise.
43437         Reported by Ian Beckwith <ianb@erislabs.net>.
43438
43439 2009-09-17  Eric Blake  <ebb9@byu.net>
43440
43441         rmdir: ensure correct dependency order
43442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43443
43444 2009-09-17  Bruno Haible  <bruno@clisp.org>
43445
43446         Disable assertion that fails on NetBSD 5 / i386.
43447         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43448         Reported by Sam Steingold <sds@gnu.org>
43449         and Hasso Tepper <hasso@netbsd.org>.
43450
43451 2009-09-16  Eric Blake  <ebb9@byu.net>
43452
43453         unlinkdir: port to mingw
43454         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43455         on which no one can unlink a directory.
43456
43457         stdlib: sort witness names
43458         * modules/stdlib (Makefile.am): Sort replacements.
43459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43460         * lib/stdlib.in.h: Likewise.
43461
43462         parse-duration-tests: avoid link failure
43463         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43464         LIBINTL.
43465         Reported by Tom G. Christensen.
43466
43467         openat-tests: ensure unlinkat behaves like rmdir
43468         * tests/test-rmdir.c (main): Factor guts...
43469         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43470         * modules/rmdir-tests (Files): Ship new file.
43471         * modules/openat-tests: New test.
43472         * tests/test-unlinkat.c: Likewise.
43473
43474         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43475         * modules/rmdir-errno (Status, Notice): Now obsolete.
43476
43477         rmdir: work around cygwin 1.5.x and mingw bugs
43478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43479         * lib/rmdir.c (rmdir): Work around it.
43480         * modules/rmdir (Status, Notice): No longer obsolete.
43481         (Files): Add dos.m4.
43482         (Depends-on): Add unistd.
43483         (configure.ac): Set witnesses.
43484         (License): Relax to LGPLv2+.
43485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43486         * modules/unistd (Makefile.am): Substitute witnesses.
43487         * lib/unistd.in.h (rmdir): Declare replacement.
43488         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43489         * modules/rmdir-tests: New tests.
43490         * tests/test-rmdir.c: Likewise.
43491
43492 2009-09-15  Eric Blake  <ebb9@byu.net>
43493
43494         fchdir: improve use of replacement functions
43495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43498         REPLACE_CLOSEDIR.
43499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43500         * modules/sys_stat (Makefile.am): Substitute correct witness.
43501         * modules/dirent (Makefile.am): Likewise.
43502         * modules/unistd (Makefile.am): Likewise.
43503         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43504         * lib/unistd.in.h (dup): Likewise.
43505         * lib/sys_stat.in.h (fstat): Likewise.
43506
43507         maint: ignore gnulib-tool temp files
43508         * .gitignore: Ignore files created during gnulib-tool --test.
43509
43510 2009-09-13  Jim Meyering  <meyering@redhat.com>
43511
43512         posixtm: don't reject a time that specify "60" as the number of seconds
43513         * lib/posixtm.c (posixtime): The code to reject invalid dates
43514         would also reject a time specified with the .60 suffix.
43515         But POSIX allows that, in order to accommodate leap seconds.
43516         So don't reject it.
43517         (main): Adjust tests accordingly.
43518         * modules/posixtm (Depends-on): Add stpcpy.
43519
43520 2009-09-11  Jim Meyering  <meyering@redhat.com>
43521
43522         announce-gen: include [$release_type] in emitted Subject:
43523         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43524         e.g., [stable] in the emitted Subject: line.
43525
43526 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43527
43528         Remove obsolete macros from several modules.
43529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43530         obsolete Autoconf macros with their modern counterparts.
43531         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43532         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43534         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43539         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43540         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43541         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43543         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43544         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43548         * m4/time_r.m4 (gl_TIME_R): Likewise.
43549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43550         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43552
43553         Fix copyright header in build-aux scripts.
43554         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43555         recommendation.
43556         * build-aux/ncftpput-ftp: Likewise.
43557         * build-aux/update-copyright: Likewise.
43558
43559 2009-09-09  Eric Blake  <ebb9@byu.net>
43560
43561         test-link: allow Linux choice of errno
43562         * tests/test-link.c (main): Relax test for alternate error.
43563
43564         strndup: fix improper m4 caching
43565         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43566         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43567         (gl_PREREQ_STRNDUP): Delete.
43568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43569         * modules/string (Makefile.am): Substitute it.
43570         * lib/string.in.h (strndup): Modernize prototype.
43571
43572         getcwd: port to mingw
43573         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43574         different from the POSIX assumptions made throughout the getcwd
43575         module; fortunately, the mingw getcwd does not need replacement.
43576         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43577         * modules/getcwd-tests: New test.
43578         * tests/test-getcwd.c: Likewise.
43579
43580         link: fix platform bugs
43581         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43582         * lib/link.c (link): Work around them.  Fix related mingw bug.
43583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43584         * modules/unistd (Makefile.am): Substitute it.
43585         * lib/unistd.in.h (link): Declare replacement.
43586         * doc/posix-functions/link.texi (link): Document this.
43587         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43588
43589         test-link: consolidate into single C program, test more cases
43590         * tests/test-link.sh: Delete.
43591         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43592         at least Cygwin and Solaris.
43593         * modules/link-tests (Files): Remove unused file.
43594         (Depends-on): Add errno, sys_stat.
43595         (Makefile.am): Simplify.
43596
43597 2009-09-08  Bruno Haible  <bruno@clisp.org>
43598
43599         Work around towlower, towupper bug on mingw.
43600         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43601         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43602         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43603         * doc/posix-functions/towupper.texi: Likewise.
43604         Reported by Eric Blake.
43605
43606 2009-09-08  Jim Meyering  <meyering@redhat.com>
43607
43608         build: don't try to run autoheader if we don't use it
43609         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43610         is not used in configure.ac.
43611
43612 2009-09-08  Eric Blake  <ebb9@byu.net>
43613
43614         euidaccess: fix compilation error
43615         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43616
43617         rawmemchr: relax license
43618         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43619         okay.
43620         Reported by Jim Meyering.
43621
43622         mkfifoat: new module
43623         * modules/mkfifoat: New file.
43624         * lib/mkfifoat.c: Likewise.
43625         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43627         * modules/sys_stat (Makefile.am): Use them.
43628         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43629         * MODULES.html.sh (File system functions): Mention module.
43630         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43631         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43632         * modules/mkfifoat-tests: New test.
43633         * tests/test-mkfifoat.c: Likewise.
43634
43635         strchrnul: relax license
43636         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43637         okay.
43638         Reported by Jim Meyering.
43639
43640 2009-09-08  Eric Blake  <ebb9@byu.net>
43641
43642         fstatat: fix compilation on Solaris
43643         * lib/fstatat.c (includes): Add fcntl.h.
43644         Reported by Pádraig Brady.
43645
43646 2009-09-07  Eric Blake  <ebb9@byu.net>
43647
43648         rename: modernize replacement
43649         * modules/rename (Depends-on): Add stdio.
43650         (configure.ac): Declare witness.
43651         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43652         stdio take care of replacement.
43653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43654         * modules/stdio (Makefile.am): Substitute them.
43655         * lib/stdio.in.h (rename): Declare replacement.
43656         * lib/rename.c (includes): Allow cross-compilation to non-windows
43657         machines.
43658         * doc/posix-functions/rename.texi (rename): Improve
43659         documentation.
43660
43661         stdio: sort witness names
43662         * modules/stdio (Makefile.am): Sort replacements.
43663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43664         * lib/stdio.in.h: Likewise.
43665
43666         getcwd: minor cleanups
43667         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43668         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43669
43670         openat: provide more convenience names
43671         * modules/faccessat (configure.ac): Add C witness.
43672         * lib/unistd.in.h (readlinkat): Fix typo.
43673         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43674         convenience wrappers.
43675         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43676         wrappers in syntax checks.
43677
43678 2009-09-06  Eric Blake  <ebb9@byu.net>
43679
43680         doc: fix comments in recent patches
43681         * lib/faccessat.c: Mention correct function.
43682         * lib/fchmodat.c: Likewise.
43683         * lib/fchownat.c: Likewise.
43684         * lib/symlinkat.c: Likewise.
43685         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43686         constants.
43687
43688         faccessat, symlinkat: continue cleanup of previous patch
43689         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43690         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43691         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43693         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43694         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43695         set.
43696
43697 2009-09-06  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43700         (fstatat): Declare if GNULIB_FSTATAT is set.
43701         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43702         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43703         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43704         * modules/fcntl-h (Files): Remove m4/openat.m4.
43705         * modules/sys_stat (Files): Remove m4/openat.m4.
43706         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43707         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43708         * modules/unistd (Files): Remove m4/openat.m4.
43709         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43710         GNULIB_OPENAT.
43711         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43712         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43714         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43715         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43716         gl_OPENAT_DEFAULTS.
43717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43718         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43719         Don't require gl_OPENAT_DEFAULTS.
43720         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43721         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43722         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43723         (gl_OPENAT_DEFAULTS): Remove macro.
43724
43725 2009-09-06  Bruno Haible  <bruno@clisp.org>
43726
43727         * modules/openat (configure.ac): Remove unneeded witness.
43728
43729 2009-09-06  Bruno Haible  <bruno@clisp.org>
43730
43731         Set errno to ENOSYS when a function is entirely unsupported.
43732         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43733         EOPNOTSUPP.
43734         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43735         * modules/chown (Depends-on): Remove errno.
43736
43737 2009-09-06  Bruno Haible  <bruno@clisp.org>
43738
43739         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43740
43741 2009-09-06  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43744
43745 2009-09-06  Ben Pfaff  <blp@gnu.org>
43746             Bruno Haible  <bruno@clisp.org>
43747
43748         Work around a glibc bug in strtok_r.
43749         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43750         Undefine if UNDEFINE_STRTOK_R is set.
43751         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43753         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43755         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43756         UNDEFINE_STRTOK_R.
43757         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43758
43759 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43760
43761         exclude: minor fix
43762         * lib/exclude.c: Include wctype.h
43763
43764 2009-09-06  Akim Demaille  <demaille@gostai.com>
43765
43766         bootstrap: improve error message
43767         * build-aux/bootstrap (find_tool): Upon failure, report the list
43768         of candidates.
43769         Honor the initial value of the envvar.
43770
43771 2009-09-05  Eric Blake  <ebb9@byu.net>
43772
43773         symlinkat: new module
43774         * modules/symlinkat: New file.
43775         * lib/symlinkat.c: Likewise.
43776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43778         * modules/unistd (Makefile.am): Use them.
43779         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43780         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43781         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43782         * MODULES.html.sh (File system functions): Mention module.
43783         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43784         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43785         * modules/symlinkat-tests: New test.
43786         * tests/test-symlinkat.c: Likewise.
43787
43788         test-openat-safer: add more checks
43789         * tests/test-openat-safer.c (main): Check more code paths.
43790
43791 2009-09-05  Jim Meyering  <meyering@redhat.com>
43792
43793         syntax-check: detect unnecessary inclusion of openat.h
43794         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43795
43796 2009-09-05  Bruno Haible  <bruno@clisp.org>
43797
43798         Support towlower, towupper.
43799         * doc/posix-functions/towlower.texi: Mention module wctype.
43800         * doc/posix-functions/towupper.texi: Likewise.
43801         * lib/wctype.in.h (towlower, towupper): New functions.
43802         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43803         (ASSERT): New macro.
43804         (e): New variable.
43805         (main): Test also towlower, towupper. Test WEOF argument.
43806         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43807
43808 2009-09-05  Bruno Haible  <bruno@clisp.org>
43809
43810         Fix conversion behaviour when the input is invalid.
43811         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43812         mark occurring in first pass of indirect conversion.
43813         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43814         input.
43815         Found by clang's static analyzer.
43816
43817 2009-09-05  Bruno Haible  <bruno@clisp.org>
43818
43819         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43820         where direct conversion is possible.
43821
43822 2009-09-04  Eric Blake  <ebb9@byu.net>
43823
43824         openat: fail with ENOENT on empty name
43825         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43826         buffer.
43827
43828         link-follow: fix logic bug in prior patch
43829         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43830         reversed sense of yes and no in prior patch.  Avoid confusing
43831         compilation failure with desired semantics.
43832
43833         link-follow: accommodate mingw and cross-compilation
43834         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43835         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43836         cross-compilation results to -1, to make linkat easier to
43837         implement when cross-compiling.  Trivially support mingw.
43838         * modules/link-follow (configure.ac): Call new name.
43839         * NEWS: Mention this.
43840
43841 2009-09-03  Eric Blake  <ebb9@byu.net>
43842
43843         faccessat: compile replacement
43844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43845         needed.
43846
43847         fts: fix compilation error
43848         * lib/fts.c (includes): Re-add "openat.h", for
43849         openat_needs_fchdir.
43850
43851         faccessat: new module
43852         * modules/faccessat: New file.
43853         * lib/faccessat.c: Likewise.
43854         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43856         * modules/unistd (Makefile.am): Use it.
43857         * lib/unistd.in.h (faccessat): Declare it.
43858         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43859         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43860         * MODULES.html.sh (File system functions): Mention it.
43861         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43862         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43863
43864         euidaccess: prefer POSIX over non-standard implementation
43865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43866         * lib/euidaccess.c (euidaccess): Use it if available.
43867
43868         openat: make template easier to use
43869         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43870         AT_FUNC_F2 to be undefined.
43871         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43872         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43873         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43874         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43875         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43876         Likewise.
43877         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43878         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43879         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43880         Likewise.
43881
43882         openat: declare in POSIX headers
43883         * NEWS: Mention this.
43884         * modules/openat (configure.ac): Declare witnesses.
43885         (Depends-on): Add fcntl-h, sys_stat, unistd.
43886         (Include): Mention correct headers.
43887         * modules/fcntl-h (Depends-on): Add link-warning.
43888         (Files): Add openat.m4.
43889         (Makefile.am): Substitute witnesses.
43890         * modules/sys_stat (Files, Makefile.am): Likewise.
43891         * modules/unistd (Files, Makefile.am): Likewise.
43892         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43893         (gl_OPENAT_DEFAULTS): New macro.
43894         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43897         (SYS_STAT_H): Remove unused variable.
43898         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43899         * lib/fcntl--.h (includes): Remove unneeded header.
43900         * lib/openat-safer.c (includes): Likewise.
43901         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43902         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43903         appropriate headers.
43904         (__OPENAT_PREFIX): Delete.
43905         * lib/fcntl.in.h (openat): Provide declaration.
43906         (AT_FDCWD): Fix Solaris bug.
43907         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43908         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43909         * lib/fchmodat.c (includes):  Adjust to find declaration.
43910         * lib/fchownat.c (includes): Likewise.
43911         * lib/mkdirat.c (includes): Likewise.
43912         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43913         still visible.
43914
43915 2009-09-02  Eric Blake  <ebb9@byu.net>
43916
43917         errno: use consistently
43918         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43919         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43920         * lib/canonicalize.c (ELOOP): Likewise.
43921         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43922         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43923         * lib/lchown.c (EOPNOTSUPP): Likewise.
43924         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43925         * lib/savewd.c (ESTALE): Likewise.
43926         * lib/settime.c (ENOSYS): Likewise.
43927         * lib/utimens.c (ENOSYS): Likewise.
43928         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43929         * lib/chdir-safer.c (ELOOP): Likewise.
43930         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43931         * modules/c-stack (Depends-on): Add errno.
43932         * modules/canonicalize (Depends-on): Likewise.
43933         * modules/chdir-safer (Depends-on): Likewise.
43934         * modules/fdopendir (Depends-on): Likewise.
43935         * modules/inet_ntop (Depends-on): Likewise.
43936         * modules/inet_pton (Depends-on): Likewise.
43937         * modules/lchown (Depends-on): Likewise.
43938         * modules/openat (Depends-on): Likewise.
43939         * modules/savewd (Depends-on): Likewise.
43940         * modules/settime (Depends-on): Likewise.
43941         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43942
43943         fts: avoid leaking fds
43944         * modules/fts (Depends-on): Add cloexec.
43945         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43946         flag.
43947
43948         fts: make directory fds more robust
43949         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43950         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43951
43952         backupfile, chdir-long, fts, savedir: make safer
43953         * lib/backupfile.c (includes): Use "dirent--.h", since
43954         numbered_backup can write to stderr during readdir.
43955         * lib/savedir.c (includes): Likewise.
43956         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43957         emulation can write to stderr on failure.
43958         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43959         * lib/getcwd.c: Document why opendir_safer is unused.
43960         * lib/glob.c: Likewise.
43961         * lib/scandir.c: Likewise.
43962         * lib/openat-proc.c: Likewise, for open_safer.
43963         * modules/backupfile (Depends-on): Add dirent-safer.
43964         * modules/savedir (Depends-on): Likewise.
43965         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43966         * modules/chdir-long (Depends-on): Add openat-safer.
43967
43968         openat-safer: new module
43969         * modules/openat-safer: New file.
43970         * lib/openat-safer.c: Likewise.
43971         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43972         * lib/fcntl-safer.h (openat_safer): Declare.
43973         * lib/fcntl--.h (openat): Override.
43974         * MODULES.html.sh (File descriptor based I/O): Mention it.
43975         * lib/openat.h: Add double-inclusion guards.
43976         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43977         "fcntl--.h", so we can implement openat.
43978         * modules/openat-safer-tests: New test.
43979         * tests/test-openat-safer.c: New file.
43980
43981         dirent-safer: new module
43982         * modules/dirent-safer: New file.
43983         * lib/dirent--.h: Likewise.
43984         * lib/dirent-safer.h: Likewise.
43985         * lib/opendir-safer.c: Likewise.
43986         * m4/dirent-safer.m4: Likewise.
43987         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43988         * modules/dirent-safer-tests: New test.
43989         * tests/test-dirent-safer.c: New file.
43990         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43991
43992         fdopendir: optimize on mingw
43993         * lib/unistd.in.h (_gl_directory_name): New prototype.
43994         * lib/fchdir.c (_gl_directory_name): Implement it.
43995         (fchdir): Use it to simplify implementation.
43996         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43997         fchdir, when available, to avoid calling [f]chdir().
43998
43999         fdopendir: split into its own module
44000         * lib/openat.c (fdopendir): Move...
44001         * lib/fdopendir.c: ...into new file.
44002         * modules/fdopendir: New module.
44003         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44004         * modules/openat (Depends-on): Add fdopendir.
44005         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44006         fdopendir here.
44007         * modules/savedir (Depends-on): Only need fdopendir, not full
44008         openat.
44009         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44010         * lib/openat.h (fdopendir): Drop prototype.
44011         * lib/dirent.in.h (fdopendir): Provide prototype.
44012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44013         * modules/dirent (Makefile.am): Substitute them.
44014         * MODULES.html.sh (File system functions): Mention it.
44015         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44016         * modules/fdopendir-tests: New file.
44017         * tests/test-fdopendir.c: Likewise.
44018
44019         fchdir: use more consistent macro convention
44020         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44021         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44022         REPLACE_FCHDIR, rather than relying on config.h macros.
44023         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44024         inside a single make-time REPLACE_FCHDIR block, rather than using
44025         the config.h FCHDIR_REPLACEMENT.
44026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44027         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44028         Manage fstat replacement.
44029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44030         REPLACE_FCHDIR.
44031         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44032         (Makefile.am): Substitute REPLACE_FCHDIR.
44033         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44034         FCHDIR_REPLACEMENT.
44035         * lib/dup-safer.c (dup_safer): Likewise.
44036         * lib/dup2.c (rpl_dup2): Likewise.
44037         * lib/dup3.c (rpl_dup3): Likewise.
44038         * lib/open.c (rpl_open): Likewise.
44039
44040         fchdir: simplify error handling, and support dup3
44041         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44042         stdbool, malloc-posix, realloc-posix.
44043         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44044         (ensure_dirs_slot): Return false on allocation failure.
44045         (rpl_dup2): Delete.
44046         (_gl_register_dup): New function.
44047         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44048         (_gl_register_fd): Close fd on allocation failure.
44049         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44050         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44051         prototype.
44052         (rpl_dup2_fchdir): Delete prototype.
44053         * lib/open.c (open): Update caller.
44054         * lib/dup2.c (dup2): Track fchdir metadata.
44055         * lib/dup3.c (dup3): Likewise.
44056         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44058
44059 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44060
44061         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44062         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44063         don't pass arguments to AC_OUTPUT.
44064
44065 2009-09-02  Bruno Haible  <bruno@clisp.org>
44066
44067         * modules/mkdtemp (License): Relicense under LGPLv2+.
44068         Reported by Paolo Bonzini.
44069
44070 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44071
44072         Replace uses of obsolete autoconf macros in Jim's modules.
44073         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44074         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44075         can evoke a warning from autoconf when run with -Wobsolete
44076         enabled.  They were declared obsolete for good reasons (see
44077         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44078         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44079         should not continue using the deprecated macros.
44080         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44081         obsolete Autoconf macros with modern counterparts.
44082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44083         * m4/dos.m4 (gl_AC_DOS): Likewise.
44084         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44086         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44087         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44090         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44091         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44093         Likewise.
44094         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44096         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44097         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44098         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44099         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44100
44101 2009-09-01  Eric Blake  <ebb9@byu.net>
44102
44103         fchdir: fix off-by-one bug in previous patch
44104         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44105         (_gl_unregister_fd): Delete useless if.
44106
44107 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44108
44109         maint.mk: sort the list of syntax-check rules
44110         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44111         easier to get a sense of progress when the rules are run sequentially
44112         and take a long time.
44113
44114 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44115
44116         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44117         * modules/netinet_in: Likewise.
44118         * modules/sys_file: Likewise.
44119         * modules/sys_ioctl: Likewise.
44120         * modules/sys_select: Likewise.
44121         * modules/sys_socket: Likewise.
44122         * modules/sys_stat: Likewise.
44123         * modules/sys_time: Likewise.
44124         * modules/sys_times: Likewise.
44125         * modules/sys_utsname: Likewise.
44126         * modules/sys_wait: Likewise.
44127
44128 2009-09-01  Jim Meyering  <meyering@redhat.com>
44129
44130         fts: help ensure that return values are not ignored
44131         * lib/fts_.h (__GNUC_PREREQ): Define.
44132         (__attribute_warn_unused_result__): Define.
44133         (fts_children, fts_close, fts_open, fts_read): Declare with
44134         __attribute_warn_unused_result__.
44135
44136         fts: fts_close now fails also when closing a dir file descriptor fails
44137         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44138         and propagate to caller, along with errno.
44139
44140         announce-gen: correct formatting in --help output
44141         * build-aux/announce-gen (usage): Move the one-line description in
44142         --help output "up", to where it belongs, just after Usage:.
44143
44144 2009-08-31  Eric Blake  <ebb9@byu.net>
44145
44146         fchdir: port to mingw
44147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44148         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44149         opened, then use a substitute.
44150         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44151         replacement.
44152         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44153         (_gl_register_fd): No need to check stat if open already filters
44154         all directories.
44155         (fchdir): Fix error condition to match POSIX.
44156         * modules/fchdir (Depends-on): Add sys_stat.
44157         * doc/posix-functions/open.texi (open): Document the limitation.
44158         * modules/fchdir-tests: New file.
44159         * tests/test-fchdir.c: Likewise.
44160
44161         canonicalize: allow cross-testing from cygwin to mingw
44162         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44163         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44164         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44165         Likewise.
44166         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44167         target does not support symlinks.
44168         * tests/test-canonicalize-lgpl.sh: Likewise.
44169
44170         chown: avoid compilation warning on mingw
44171         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44172         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44173         mingw.
44174         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44175         * modules/chown (Depends-on): Add errno.
44176
44177 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44178
44179         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44180         command.
44181
44182 2009-08-31  Jim Meyering  <meyering@redhat.com>
44183
44184         canonicalize: remove useless initialization
44185         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44186         initialization of local, "end".
44187
44188 2009-08-30  Bruno Haible  <bruno@clisp.org>
44189
44190         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44191         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44192         ENOSYS.
44193
44194 2009-08-30  Bruno Haible  <bruno@clisp.org>
44195
44196         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44197         /usr/xpg4/bin/tr when it exists.
44198         * tests/test-pipe-filter-gi1.sh: Likewise.
44199
44200 2009-08-30  Bruno Haible  <bruno@clisp.org>
44201
44202         Work around deficient /usr/bin/id program on Solaris.
44203         * tests/test-file-has-acl.sh (ID): New variable.
44204         * tests/test-set-mode-acl.sh (ID): Likewise.
44205         * tests/test-copy-acl.sh (ID): Likewise.
44206         * tests/test-copy-file.sh (ID): Likewise.
44207
44208 2009-08-30  Bruno Haible  <bruno@clisp.org>
44209
44210         New module 'xstriconveh'.
44211         * lib/xstriconveh.h: New file.
44212         * lib/xstriconveh.c: New file.
44213         * modules/xstriconveh: New file.
44214
44215 2009-08-30  Bruno Haible  <bruno@clisp.org>
44216
44217         Make it easier to use mem_cd_iconveh.
44218         * lib/striconveh.h (iconveh_t): New type.
44219         (iconveh_open, iconveh_close): New declarations.
44220         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44221         with a single 'const iconveh_t *' argument.
44222         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44223         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44224         with a single 'const iconveh_t *' argument.
44225         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44226         * tests/test-striconveh.c (main): Update.
44227         * NEWS: Mention the change.
44228
44229 2009-08-30  Bruno Haible  <bruno@clisp.org>
44230
44231         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44232         problem.
44233
44234 2009-08-30  Bruno Haible  <bruno@clisp.org>
44235
44236         Work around iconv_open problem on Solaris.
44237         * lib/iconv_open-solaris.gperf: New file.
44238         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44240         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44241         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44242         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44243         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44244
44245 2009-08-29  Jim Meyering  <meyering@redhat.com>
44246
44247         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44248         * top/maint.mk (cvs-check): Remove target; it was just an alias
44249         to the better-named vc-diff-check.
44250         (maintainer-distcheck): Remove rule.  It was used only from
44251         the (alpha/beta/major) target, and all of its commands but one
44252         were coreutils-specific.
44253         (vc-dist): Remove rule.
44254         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44255         Run vc-diff-check, not vc-dist.
44256         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44257
44258 2009-08-27  Bruno Haible  <bruno@clisp.org>
44259
44260         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44261         of 0.
44262
44263 2009-08-27  Bruno Haible  <bruno@clisp.org>
44264
44265         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44266         compilers.
44267         * doc/func.texi: Document the SunPRO C bug.
44268
44269 2009-08-27  Bruno Haible  <bruno@clisp.org>
44270
44271         Fix link error on Solaris.
44272         * tests/test-parse-duration.c (xstrdup): Remove function.
44273
44274 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44275
44276         ignore-value: handle pointer types, too
44277         * lib/ignore-value.h (__attribute__): Remove definition.
44278         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44279         of a more concise and more-often effective "(void) i" statement.
44280         (ignore_ptr): New function to suppress warnings from functions that
44281         return pointers, and to make it explicit that one function doesn't
44282         handle all cases.
44283
44284 2009-08-25  Bruno Haible  <bruno@clisp.org>
44285
44286         dup2: work around a Linux bug.
44287         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44288         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44289         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44290         Reported by Simon Josefsson.
44291
44292 2009-08-25  Jim Meyering  <meyering@redhat.com>
44293
44294         libguestfs uses gnulib
44295         * users.txt: Add libguestfs.
44296
44297 2009-08-24  Eric Blake  <ebb9@byu.net>
44298
44299         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44300         * lib/pipe2.c (includes): Add binary-io.h.
44301         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44302
44303 2009-08-24  Bruno Haible  <bruno@clisp.org>
44304
44305         Tolerate declared but missing accept4 syscall.
44306         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44307         available.
44308         * lib/sys_socket.in.h (accept4): If the function is already present,
44309         override it.
44310         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44311         * modules/accept4 (Makefile.am): Compile accept4.c always.
44312         Reported by Paolo Bonzini and Eric Blake.
44313
44314 2009-08-23  Bruno Haible  <bruno@clisp.org>
44315
44316         New module 'accept4'.
44317         * lib/sys_socket.in.h (accept4): New declaration.
44318         * lib/accept4.c: New file.
44319         * m4/accept4.m4: New file.
44320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44321         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44322         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44323         HAVE_ACCEPT4.
44324         * modules/accept4: New file.
44325         * doc/glibc-functions/accept4.texi: Mention the new module.
44326
44327 2009-08-24  Jim Meyering  <meyering@redhat.com>
44328
44329         progname: also set global program_invocation_name, when possible
44330         Before this change, a libtool-enabled program that calls glibc's
44331         error function would report the program name as
44332         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44333         * modules/progname (configure.ac): Check for a declaration of
44334         program_invocation_name.
44335         * lib/progname.c:  Include <errno.h>.
44336         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44337         Set program_invocation_name.
44338
44339 2009-08-23  Bruno Haible  <bruno@clisp.org>
44340
44341         * lib/dup3.c: Include <string.h>.
44342
44343 2009-08-23  Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44346         * lib/pipe2.c (pipe2): Likewise.
44347         Suggested by Eric Blake.
44348
44349 2009-08-23  Bruno Haible  <bruno@clisp.org>
44350
44351         Tolerate declared but missing dup3 syscall.
44352         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44353         * lib/unistd.in.h (dup3): If the function is already present,
44354         override it.
44355         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44356         * modules/dup3 (Makefile.am): Compile dup3.c always.
44357         Reported by Paolo Bonzini.
44358
44359 2009-08-23  Bruno Haible  <bruno@clisp.org>
44360
44361         Tolerate declared but missing pipe2 syscall.
44362         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44363         available.
44364         * lib/unistd.in.h (pipe2): If the function is already present,
44365         override it.
44366         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44367         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44368         Reported by Paolo Bonzini.
44369
44370 2009-08-23  Bruno Haible  <bruno@clisp.org>
44371
44372         * lib/pipe2.c (pipe2): Move #ifs inside function.
44373
44374 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44375
44376         quotearg: document limitations of quote_these_too
44377         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44378         those limitations are created.
44379         * lib/quotearg.h (set_char_quoting): Document that digits and
44380         letters that are special after backslash are not permitted.
44381         (quotearg_char): Cross-reference set_char_quoting documentation.
44382
44383 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44384
44385         quotearg: implement custom_quoting_style
44386         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44387         right_quote fields.
44388         (set_custom_quoting): New public function.
44389         (quotearg_buffer_restyled): Add left_quote and right_quote
44390         arguments, handle them very much like locale quoting, and update
44391         all uses.
44392         (quotearg_n_custom): New public function.
44393         (quotearg_n_custom_mem): New public function.
44394         (quotearg_custom): New public function.
44395         (quotearg_custom_mem): New public function.
44396         * lib/quotearg.h: Prototype and document new public functions.
44397         (enum quoting_style): For escape_quoting_style and
44398         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44399         ignored even though they're otherwise like c_quoting_style.
44400         Add custom_quoting_style member and document with comparison to
44401         clocale_quoting_style.
44402         * tests/test-quotearg.c (custom_quotes): New array.
44403         (custom_results): New array.
44404         (main): Extend to test custom quoting.
44405
44406 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44407
44408         quotearg: fix right quote escaping when it's in quote_these_too
44409         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44410         quote, be sure to prepend only one backslash.
44411         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44412         (main): Test it.
44413
44414 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44415
44416         quotearg-tests: test escaping of embedded locale quotes
44417         * tests/test-quotearg.c (struct result_strings): Add member for
44418         new input.
44419         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44420         (inputs): Add new input.
44421         (results_g): Add expected results.
44422         (flag_results): Likewise.
44423         (locale_results): Likewise.
44424         (compare_strings): Check those.
44425
44426 2009-08-23  Bruno Haible  <bruno@clisp.org>
44427
44428         Tests for module 'dup3'.
44429         * modules/dup3-tests: New file.
44430         * tests/test-dup3.c: New file.
44431
44432         New module 'dup3'.
44433         * lib/unistd.in.h (dup3): New declaration.
44434         * lib/dup3.c: New file.
44435         * m4/dup3.m4: New file.
44436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44437         HAVE_DUP3.
44438         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44439         * modules/dup3: New file.
44440         * doc/glibc-functions/dup3.texi: Mention the new module.
44441
44442 2009-08-23  Bruno Haible  <bruno@clisp.org>
44443
44444         Tweak the dup2 test.
44445         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44446         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44447         the test file is still empty. Fix argument order of lseek.
44448
44449 2009-08-23  Bruno Haible  <bruno@clisp.org>
44450
44451         Avoid test link errors when the modules getopt-gnu, gettext are used.
44452         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44454
44455 2009-08-23  Bruno Haible  <bruno@clisp.org>
44456
44457         Fix getdtablesize() on mingw.
44458         * lib/getdtablesize.c (getdtablesize): Implement differently.
44459         * lib/unistd.in.h (getdtablesize): Improve comment.
44460
44461 2009-08-23  Bruno Haible  <bruno@clisp.org>
44462
44463         New module 'mkostemp'.
44464         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44465         * lib/stdlib.in.h (mksotemp): New declaration.
44466         * lib/mkostemp.c: New file, from glibc with modifications.
44467         * lib/tempname.h (GT_FILE): Remove outdated comment.
44468         (gen_tempname): Add flags argument.
44469         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44470         (__GT_FILE): Map to 1.
44471         (small_open, large_open): Remove macros.
44472         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44473         * lib/mkstemp.c (mkstemp): Update.
44474         * lib/mkdtemp.c (mkdtemp): Likewise.
44475         * m4/mkostemp.m4: New file.
44476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44477         HAVE_MKOSTEMP.
44478         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44479         HAVE_MKOSTEMP.
44480         * modules/mkostemp: New file, based on modules/mkstemp.
44481         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44482         * NEWS: Mention the change.
44483
44484 2009-08-23  Bruno Haible  <bruno@clisp.org>
44485
44486         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44487         Reported by Eric Blake.
44488
44489 2009-08-23  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44492         Reported by Eric Blake.
44493
44494 2009-08-23  Bruno Haible  <bruno@clisp.org>
44495
44496         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44497         * modules/pipe2 (Depends-on): Likewise.
44498
44499 2009-08-23  Eric Blake  <ebb9@byu.net>
44500
44501         fcntl-h: add O_TTY_INIT support
44502         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44503         * tests/test-fcntl-h.c (o): Test it.
44504         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44505
44506         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44507         * modules/fcntl: Move <fcntl.h> header replacement...
44508         * modules/fcntl-h: ...to new name, so as not to collide with
44509         like-named function.
44510         * tests/test-fcntl.c: Rename...
44511         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44512         * modules/fcntl-tests: Rename...
44513         * modules/fcntl-h-tests: ...to this.  Update test file name.
44514         * modules/chdir-long (Depends-on): Update clients.
44515         * modules/chdir-safer (Depends-on): Likewise.
44516         * modules/fcntl-safer (Depends-on): Likewise.
44517         * modules/fts (Depends-on): Likewise.
44518         * modules/mkancesdirs (Depends-on): Likewise.
44519         * modules/mkdir-p (Depends-on): Likewise.
44520         * modules/open (Depends-on): Likewise.
44521         * modules/savewd (Depends-on): Likewise.
44522         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44523         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44524
44525 2009-08-22  Bruno Haible  <bruno@clisp.org>
44526
44527         * modules/binary-io (License): Relicense under LGPL.
44528         * modules/pipe2 (License): Likewise.
44529
44530 2009-08-22  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44533         return value.
44534         * lib/pipe-filter-gi.c (filter_init): Likewise.
44535         Reported by Eric Blake.
44536
44537 2009-08-22  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44540         * modules/pipe (Depends-on): Add pipe2.
44541
44542 2009-08-22  Bruno Haible  <bruno@clisp.org>
44543
44544         Tests for module 'pipe2'.
44545         * modules/pipe2-tests: New file.
44546         * tests/test-pipe2.c: New file.
44547
44548         New module 'pipe2'.
44549         * lib/unistd.in.h (pipe2): New declaration.
44550         * lib/pipe2.c: New file.
44551         * m4/pipe2.m4: New file.
44552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44553         HAVE_PIPE2.
44554         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44555         * modules/pipe2: New file.
44556         * doc/glibc-functions/pipe2.texi: Mention the new module.
44557
44558 2009-08-22  Bruno Haible  <bruno@clisp.org>
44559
44560         Reference some new glibc functions.
44561         * doc/glibc-functions/accept4.texi: New file.
44562         * doc/glibc-functions/dup3.texi: New file.
44563         * doc/glibc-functions/mkostemp.texi: New file.
44564         * doc/glibc-functions/pipe2.texi: New file.
44565         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44566         (Glibc sys/socket.h): Refer to accept4.
44567         (Glibc unistd.h): Refer to dup3, pipe2.
44568         Reported by Eric Blake.
44569
44570 2009-08-22  Jim Meyering  <meyering@redhat.com>
44571             Bruno Haible  <bruno@clisp.org>
44572
44573         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44574         This makes it so packages using automake-1.11's silent-rules option
44575         can print e.g., a single "GEN    configmake.h" line, rather than
44576         the 30+ statements that perform the job.  If you want to see the
44577         actual commands, you can still run "make V=1".
44578         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44579         so that make output is abbreviated when those variables are defined
44580         appropriately.
44581         * modules/argz: Likewise.
44582         * modules/arpa_inet: Likewise.
44583         * modules/byteswap: Likewise.
44584         * modules/configmake: Likewise.
44585         * modules/dirent: Likewise.
44586         * modules/errno: Likewise.
44587         * modules/fcntl: Likewise.
44588         * modules/float: Likewise.
44589         * modules/fnmatch: Likewise.
44590         * modules/getopt-posix: Likewise.
44591         * modules/glob: Likewise.
44592         * modules/iconv_open: Likewise.
44593         * modules/inttypes: Likewise.
44594         * modules/localcharset: Likewise.
44595         * modules/locale: Likewise.
44596         * modules/math: Likewise.
44597         * modules/netdb: Likewise.
44598         * modules/netinet_in: Likewise.
44599         * modules/poll: Likewise.
44600         * modules/posix_spawnp-tests: Likewise.
44601         * modules/sched: Likewise.
44602         * modules/search: Likewise.
44603         * modules/selinux-h: Likewise.
44604         * modules/signal: Likewise.
44605         * modules/spawn: Likewise.
44606         * modules/stdarg: Likewise.
44607         * modules/stdbool: Likewise.
44608         * modules/stddef: Likewise.
44609         * modules/stdint: Likewise.
44610         * modules/stdio: Likewise.
44611         * modules/stdlib: Likewise.
44612         * modules/string: Likewise.
44613         * modules/strings: Likewise.
44614         * modules/sys_file: Likewise.
44615         * modules/sys_ioctl: Likewise.
44616         * modules/sys_select: Likewise.
44617         * modules/sys_socket: Likewise.
44618         * modules/sys_stat: Likewise.
44619         * modules/sys_time: Likewise.
44620         * modules/sys_times: Likewise.
44621         * modules/sys_utsname: Likewise.
44622         * modules/sys_wait: Likewise.
44623         * modules/sysexits: Likewise.
44624         * modules/time: Likewise.
44625         * modules/unistd: Likewise.
44626         * modules/wchar: Likewise.
44627         * modules/wctype: Likewise.
44628
44629 2009-08-22  Jim Meyering  <meyering@redhat.com>
44630
44631         announce-gen: detect write failure
44632         * build-aux/announce-gen: Add Coda at end.
44633         Remove equivalent-but-more-verbose block at top.
44634
44635 2009-08-19  Akim Demaille  <demaille@gostai.com>
44636
44637         bootstrap: --help to stdout.
44638         * bootstrap (usage): Don't send --help to stderr.
44639         Use a here doc instead of a long string.
44640
44641 2009-08-21  Eric Blake  <ebb9@byu.net>
44642
44643         test-popen-safer: split from test-popen
44644         * tests/test-popen.c (main): Move...
44645         * tests/test-popen.h: ...into new file.
44646         * tests/test-popen-safer2.c: New file.
44647         * modules/popen-tests (Files): Add test-popen.h.
44648         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44649         Suggested by Bruno Haible.
44650
44651         test-fcntl-safer: split from test-open
44652         * tests/test-open.c (main): Move...
44653         * tests/test-open.h: ...into new file.
44654         * tests/test-fcntl-safer.c: New file.
44655         * modules/open-tests (Files): Add test-open.h.
44656         * modules/fcntl-safer-tests: New file.
44657         Suggested by Bruno Haible.
44658
44659         test-fopen-safer: split from test-fopen
44660         * tests/test-fopen.c (main): Move...
44661         * tests/test-fopen.h: ...into new file.
44662         * tests/test-fopen-safer.c: New file.
44663         * modules/fopen-tests (Files): Add test-fopen.h.
44664         * modules/fopen-safer-tests: New file.
44665         Suggested by Bruno Haible.
44666
44667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44668
44669         popen-safer: test O_CLOEXEC at run-time.
44670         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44671
44672 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44673
44674         fcntl: move more flags to the header
44675         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44676         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44677         * lib/fcntl.in.h: Do both things here.
44678
44679 2009-08-21  Jim Meyering  <meyering@redhat.com>
44680
44681         consistently remove $@-t before redirecting to it
44682         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44683         * modules/alloca-opt: Likewise.
44684         * modules/byteswap: Likewise.
44685         * modules/fnmatch: Likewise.
44686         * modules/getopt-posix: Likewise.
44687         * modules/glob: Likewise.
44688         * modules/poll: Likewise.
44689         * modules/posix_spawnp-tests: Likewise.
44690         * modules/sys_socket: Likewise.
44691         * modules/sysexits: Likewise.
44692
44693 2009-08-21  Eric Blake  <ebb9@byu.net>
44694
44695         popen: simplify access to original popen
44696         * lib/popen.c (rpl_popen): No need to worry about popen being a
44697         macro.
44698         Reported by Bruno Haible.
44699
44700 2009-08-20  Eric Blake  <ebb9@byu.net>
44701
44702         build: avoid some compiler warnings
44703         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44704         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44705         type.
44706         (new_exclude_segment, excluded_file_pattern_p)
44707         (excluded_file_name_p): Reduce scope.
44708         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44709         old-style declaration.
44710
44711 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44712
44713         * tests/test-exclude1.sh: Handle Windows EOL.
44714         * tests/test-exclude2.sh: Likewise.
44715         * tests/test-exclude3.sh: Likewise.
44716         * tests/test-exclude4.sh: Likewise.
44717         * tests/test-exclude5.sh: Likewise.
44718         * tests/test-exclude6.sh: Likewise.
44719         * tests/test-exclude7.sh: Likewise.
44720
44721 2009-08-19  Akim Demaille  <demaille@gostai.com>
44722
44723         bootstrap: find sha1sum when named gsha1sum.
44724         * bootstrap (find_tool): New.
44725         ($SHA1SUM): New.
44726         Use it.
44727
44728 2009-08-20  Jim Meyering  <meyering@redhat.com>
44729
44730         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44731         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44732         expression that converts "." in a file name to "\." in the resulting
44733         regexp.  Start with a dummy statement, so that prior shell variable
44734         definitions are expanded portably.  Reported by Simon Josefsson.
44735
44736 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44737
44738         Fix polling for writeability of a screen buffer.
44739         * lib/poll.c: Distinguish input and screen buffers for the
44740         Win32 implementation.
44741         * lib/select.c: Likewise.
44742
44743 2009-08-19  Eric Blake  <ebb9@byu.net>
44744
44745         popen-safer: prevent popen from clobbering std descriptors
44746         * modules/popen-safer: New file.
44747         * lib/popen-safer.c: Likewise.
44748         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44749         * lib/stdio--.h (popen): Provide override.
44750         * lib/stdio-safer.h (popen_safer): Provide declaration.
44751         * tests/test-popen.c (includes): Partially test this.
44752         * modules/popen-safer-tests: New file, for more tests.
44753         * tests/test-popen-safer.c: Likewise.
44754         * MODULES.html.sh (file stream based Input/Output): Mention it.
44755
44756         tests: test some of the *-safer modules
44757         * modules/fopen-safer (Depends-on): Add fopen.
44758         * modules/fcntl-safer (Depends-on): Add fcntl.
44759         * modules/stdlib-safer (Depends-on): Add stdlib.
44760         (configure.ac): Set indicator.
44761         * modules/unistd-safer (configure.ac): Likewise.
44762         * modules/tmpfile-safer (configure.ac): Likewise.
44763         (Depends-on): Add tmpfile.
44764         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44765         active.
44766         * tests/test-fopen.c (includes): Test safer versions when they are
44767         in use.
44768         * tests/test-open.c (includes): Likewise.
44769
44770         popen: fix cygwin 1.5 bug when stdin closed
44771         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44772         * modules/popen: New file.
44773         * modules/popen-tests: Likewise.
44774         * tests/test-popen.c: Likewise.
44775         * m4/popen.m4: Likewise.
44776         * lib/popen.c: Likewise.
44777         * lib/stdio.in.h (popen): New declaration.
44778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44779         * modules/stdio (Makefile.am): Likewise.
44780         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44781
44782 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44783
44784         maint.mk: give full control over update-copyright exclusions
44785         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44786         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44787         (update-copyright): Don't force inclusion of top-level
44788         ChangeLog.  Don't force exclusion of all COPYING files, but make
44789         them the default exclusion instead.
44790
44791 2009-08-16  Bruno Haible  <bruno@clisp.org>
44792
44793         Fix test failures on Solaris 10.
44794         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44795         tests when Solaris iconv() is used.
44796         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44797         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44798         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44799         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44800         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44801
44802 2009-08-16  Bruno Haible  <bruno@clisp.org>
44803
44804         Fix test failures on Solaris 10.
44805         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44806         'tr' program and pass it as first argument.
44807         * tests/test-pipe-filter-gi1.sh: Likewise.
44808         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44809         program as first argument.
44810         * tests/test-pipe-filter-gi1.c (main): Likewise.
44811
44812 2009-08-16  Eric Blake  <ebb9@byu.net>
44813
44814         fpurge: fix previous commits
44815         * modules/fpurge (Makefile.am): Make replacement conditional,
44816         partially reverting 2007-04-29 change; missed in previous
44817         attempt.
44818         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44819         is missing.
44820
44821 2009-08-16  Bruno Haible  <bruno@clisp.org>
44822
44823         Clarify fpurge's effect on the file position.
44824         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44825         * tests/test-fpurge.c (main): Make a second pass for checking the file
44826         position.
44827
44828 2009-08-16  Bruno Haible  <bruno@clisp.org>
44829
44830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44831         declaration of fpurge is missing.
44832         * tests/test-fpurge.c (main): Check that the file has not more contents
44833         than expected. Close the file before removing it.
44834
44835 2009-08-15  Eric Blake  <ebb9@byu.net>
44836
44837         fpurge: don't wrap working cygwin implementation
44838         * lib/fpurge.c (fpurge): Fix comment typo.
44839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44840         1.7 to avoid replacement.
44841         * tests/test-fpurge.c (main): Enhance test.
44842
44843 2009-08-15  Eric Blake  <ebb9@byu.net>
44844         and Jim Meyering  <meyering@redhat.com>
44845
44846         test-update-copyright: skip if perl is insufficient
44847         * tests/test-update-copyright.sh: Failure to run maintainer tool
44848         should not cause testsuite failure on cygwin 1.5.
44849
44850 2009-08-14  Eric Blake  <ebb9@byu.net>
44851
44852         doc: mention more functions added in cygwin 1.7.0
44853         * doc/posix-headers/limits.texi (limits.h): Update for recent
44854         cygwin additions.
44855         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44856         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44857         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44858         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44859         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44860
44861 2009-08-14  Eric Blake  <ebb9@byu.net>
44862
44863         maint.mk: simplify update-copyright rule
44864         * top/maint.mk (update-copyright-local): Delete, and document how
44865         to do it in cfg.mk instead.
44866         (update-copyright-exclude-regexp): Delete, and document how to do
44867         it in .x-update-copyright instead.
44868         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44869         exclude ChangeLog.
44870
44871 2009-08-14  Bruno Haible  <bruno@clisp.org>
44872
44873         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44874
44875 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44876
44877         maint.mk: support update-copyright-env
44878         * top/maint.mk (update-copyright-env): Define place-holder.
44879         (update-copyright): Expand $(update-copyright-env) before
44880         invoking update-copyright.
44881
44882 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44883
44884         update-copyright: implement forced reformatting
44885         * build-aux/update-copyright: Implement and document
44886         UPDATE_COPYRIGHT_FORCE.
44887         * tests/test-update-copyright.sh: Test it.
44888
44889 2009-08-14  Eric Blake  <ebb9@byu.net>
44890         and Bruno Haible  <bruno@clisp.org>
44891
44892         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44893         * tests/test-locale.c: Revert previous patch related to NULL.
44894         * tests/test-stdio.c: Likewise.
44895         * tests/test-stdlib.c: Likewise.
44896         * tests/test-string.c: Likewise.
44897         * tests/test-unistd.c: Likewise.
44898         * modules/time-tests (Depends-on): Add verify.
44899         * modules/wchar-tests (Depends-on): Likewise.
44900         * tests/test-time.c: Test for NULL compliance.
44901         * tests/test-wchar.c: Likewise.
44902         * modules/locale (Depends-on): Add stddef.
44903         * modules/stdio (Depends-on): Likewise.
44904         * modules/stdlib (Depends-on): Likewise.
44905         * modules/string (Depends-on): Likewise.
44906         * modules/time (Depends-on): Likewise.
44907         * modules/unistd (Depends-on): Likewise.
44908         * modules/wchar (Depends-on): Likewise.
44909         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44910         * lib/stdlib.in.h (includes): Likewise.
44911         * lib/string.in.h (includes): Likewise.
44912         * lib/time.in.h (includes): Likewise.
44913         * lib/unistd.in.h (includes): Likewise.
44914         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44915         replaced.
44916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44917         * m4/stddef_h.m4: New file.
44918         * modules/stddef: Likewise.
44919         * lib/stddef.in.h: Likewise.
44920         * modules/stddef-tests: Likewise.
44921         * tests/test-stddef.c: Likewise.
44922         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44923         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44924         * doc/posix-headers/locale.texi (locale.h): Likewise.
44925         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44926         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44927         * doc/posix-headers/string.texi (string.h): Likewise.
44928         * doc/posix-headers/time.texi (time.h): Likewise.
44929         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44930         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44931
44932 2009-08-14  Eric Blake  <ebb9@byu.net>
44933
44934         doc: improve git diff of texinfo files
44935         * .gitattributes: Add rule for *.texi files, with hint on how to
44936         use it.
44937         Copied from m4, and based on a report by Bruno Haible.
44938
44939 2009-08-14  Bruno Haible  <bruno@clisp.org>
44940
44941         Disable multithread support by default on Cygwin 1.5.x for real.
44942         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44943
44944 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44945
44946         update-copyright: much ado about intervals
44947         * build-aux/update-copyright: Implement and document
44948         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44949         of copyright year intervals.
44950         Also, document UPDATE_COPYRIGHT_YEAR.
44951         * tests/test-update-copyright.sh: Test it.
44952
44953         update-copyright: convert 2-digit to 4-digit years
44954         * build-aux/update-copyright: Implement and document.
44955         * tests/test-update-copyright.sh: Update.
44956
44957 2009-08-14  Jim Meyering  <meyering@redhat.com>
44958
44959         test-exclude: avoid coreutils "make check" failure
44960         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44961         just as in test-argmatch.c.
44962
44963 2009-08-13  Eric Blake  <ebb9@byu.net>
44964
44965         test-dup2: fix bad assumption
44966         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44967         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44968
44969         test-version-etc: fix CRLF portability issue
44970         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44971         recognize \r.
44972         * tests/test-argp-version-etc-1.sh: Likewise.
44973
44974         getopt: update client modules
44975         * modules/argp (Depends-on): Use getopt-gnu.
44976         * modules/git-merge-changelog (Depends-on): Likewise.
44977         * modules/long-options (Depends-on): Likewise.
44978         * modules/xstrtol (Depends-on): Likewise.
44979
44980 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44981
44982         * tests/test-version-etc.sh: Don't fail on different
44983         project/version.  Don't fail on CRLF differences.  Rewrite to use
44984         multiple -e instead of multiple sed forks, suggested by Eric Blake
44985         <ebb9@byu.net>.
44986         * tests/test-argp-version-etc-1.sh: Likewise.
44987
44988 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44989
44990         * tests/test-version-etc.sh: Don't fail on different
44991         project/version.
44992
44993 2009-08-12  Bruno Haible  <bruno@clisp.org>
44994
44995         Tests for modules 'getopt-posix', 'getopt-gnu'.
44996         * modules/getopt-posix-tests: New file.
44997         * tests/test-getopt.c: New file.
44998         * tests/test-getopt.h: New file.
44999         * tests/test-getopt_long.h: New file.
45000
45001         New modules 'getopt-posix', 'getopt-gnu'.
45002         * modules/getopt-gnu: New file, renamed from modules/getopt.
45003         * modules/getopt-posix: New file.
45004         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45005         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45006         (gl_GETOPT): Remove macro.
45007         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45008         Disable the test against BSD systems that declare optreset. Test
45009         against mingw bug. Test against lack of support of optional arguments
45010         on many platforms.
45011         * doc/glibc-headers/getopt.texi: Update module name and list of
45012         relevant platforms.
45013         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45014         'getopt-gnu' and more portability problems.
45015         * NEWS: Mention the changes.
45016
45017 2009-08-12  Bruno Haible  <bruno@clisp.org>
45018
45019         Ensure that optarg etc. get declared by <unistd.h>.
45020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45021         AC_USE_SYSTEM_EXTENSIONS.
45022         * modules/getopt (Depends-on): Add 'extensions'.
45023
45024 2009-08-12  Bruno Haible  <bruno@clisp.org>
45025
45026         Avoid test link errors.
45027         * modules/pipe-filter-ii-tests (Makefile.am): Define
45028         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45029         * modules/pipe-filter-gi-tests (Makefile.am): Define
45030         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45032
45033 2009-08-12  Bruno Haible  <bruno@clisp.org>
45034
45035         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45036         gl_GETOPT_SUBSTITUTE before.
45037         (gl_GETOPT): Use it.
45038         * m4/argp.m4 (gl_ARGP): Update.
45039         Reported by Sergey Poznyakoff.
45040
45041         * m4/getopt.m4: Reorder macros.
45042         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45043         (gl_GETOPT_SUBSTITUTE): Remove macro.
45044
45045 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45046
45047         Minor improvement in gitlog-to-changelog
45048
45049         * build-aux/gitlog-to-changelog: New option `--format' makes
45050         output format string configurable.
45051
45052 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45053
45054         Optimize exclude: use hash tables for non-wildcard patterns.
45055
45056         * lib/exclude.c: Include hash.h and mbuiter.h
45057         (struct exclude_pattern, exclude_segment): New data types.
45058         (struct exclude): Rewrite.
45059         (fnmatch_pattern_has_wildcards): New function.
45060         (new_exclude_segment, free_exclude_segment): New functions.
45061         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45062         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45063         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45064         * modules/exclude: Depend on hash and mbuiter.
45065
45066         * modules/exclude-tests: New file.
45067         * tests/test-exclude.c: New file.
45068         * tests/test-exclude1.sh: New file.
45069         * tests/test-exclude2.sh: New file.
45070         * tests/test-exclude3.sh: New file.
45071         * tests/test-exclude4.sh: New file.
45072         * tests/test-exclude5.sh: New file.
45073         * tests/test-exclude6.sh: New file.
45074         * tests/test-exclude7.sh: New file.
45075
45076 2009-08-12  Bruno Haible  <bruno@clisp.org>
45077
45078         Ensure that getopt() gets declared by <unistd.h>.
45079         * lib/unistd.in.h: Conditionally include getopt.h.
45080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45081         Set GNULIB_UNISTD_H_GETOPT.
45082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45083         GNULIB_UNISTD_H_GETOPT.
45084         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45085
45086 2009-08-12  Bruno Haible  <bruno@clisp.org>
45087
45088         Clarify logic.
45089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45090         gl_replace_getopt instead of GETOPT_H.
45091
45092 2009-08-12  Bruno Haible  <bruno@clisp.org>
45093
45094         * m4/getopt.m4: Add comments.
45095
45096 2009-08-12  Bruno Haible  <bruno@clisp.org>
45097
45098         Disable multithread support by default on Cygwin 1.5.x.
45099         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45100         set gl_use_threads=no if not specified otherwise.
45101
45102 2009-08-11  Bruno Haible  <bruno@clisp.org>
45103
45104         Avoid compilation error on NetBSD 5.0.
45105         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45106         * tests/test-stdio.c: Likewise.
45107         * tests/test-stdlib.c: Likewise.
45108         * tests/test-string.c: Likewise.
45109         * tests/test-unistd.c: Likewise.
45110         Reported by Greg Troxel <gdt@ir.bbn.com>
45111         at <https://savannah.gnu.org/support/?106973>.
45112
45113 2009-08-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * modules/dup2-tests (Depends-on): Remove close.
45116
45117         Undo 2009-07-19 commit.
45118         * modules/acl-tests (Depends-on): Remove close.
45119         * modules/binary-io-tests (Depends-on): Likewise.
45120         * modules/closein-tests (Depends-on): Likewise.
45121         * modules/flock-tests (Depends-on): Likewise.
45122         * modules/fsync-tests (Depends-on): Likewise.
45123         * modules/lseek-tests (Depends-on): Likewise.
45124         * modules/pipe-tests (Depends-on): Likewise.
45125         * modules/posix_spawn-tests (Depends-on): Likewise.
45126         * modules/posix_spawnp-tests (Depends-on): Likewise.
45127         * modules/stat-time-tests (Depends-on): Likewise.
45128         * modules/yesno-tests (Depends-on): Likewise.
45129
45130 2009-08-10  Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45133
45134 2009-08-10  Bruno Haible  <bruno@clisp.org>
45135
45136         Fix a gcc warning.
45137         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45138
45139 2009-08-10  Bruno Haible  <bruno@clisp.org>
45140
45141         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45142         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45143         not only the first time.
45144         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45145         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45146         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45147         is 1, not only the the first time.
45148
45149 2009-08-10  Bruno Haible  <bruno@clisp.org>
45150
45151         Make it possible to use module 'gethostname' without module 'close'.
45152         * lib/unistd.in.h (close): Evoke a link error only if
45153         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45155         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45156         * modules/unistd (Makefile.am): Substitute
45157         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45158         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45159         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45162         * modules/sys_ioctl (Makefile.am): Substitute
45163         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45164         * modules/socket (configure.ac): On native Windows, set
45165         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45166         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45167         Reported by Sam Steingold <sds@gnu.org>.
45168
45169 2009-08-10  Bruno Haible  <bruno@clisp.org>
45170
45171         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45172         * modules/ioctl (configure.ac): Likewise.
45173
45174 2009-08-10  Bruno Haible  <bruno@clisp.org>
45175
45176         Avoid collision between gnulib wrapper and libintl wrapper.
45177         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45178         already defined in intl/printf.c.
45179         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45180         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45181
45182 2009-08-09  Bruno Haible  <bruno@clisp.org>
45183
45184         Make <sys/select.h> really self-contained, also on Solaris 10.
45185         * lib/sys_select.in.h: Include <string.h>.
45186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45187         Solaris 10 problem.
45188         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45189         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45190         Reported by Jim Meyering.
45191
45192 2009-08-09  Bruno Haible  <bruno@clisp.org>
45193
45194         Avoid warnings from 'aclocal' that are due to a use of macro name
45195         AM_XGETTEXT_OPTION that is not defined in automake.
45196         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45197         automake.
45198         * modules/error (configure.ac): Likewise.
45199         * modules/propername (configure.ac): Likewise.
45200         * modules/vasprintf (configure.ac): Likewise.
45201         * modules/verror (configure.ac): Likewise.
45202         * modules/xprintf (configure.ac): Likewise.
45203         * modules/xvasprintf (configure.ac): Likewise.
45204
45205 2009-08-08  Bruno Haible  <bruno@clisp.org>
45206
45207         Avoid compilation error in C++ mode.
45208         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45209         Reported by Sam Steingold <sds@gnu.org>.
45210
45211 2009-08-08  Bruno Haible  <bruno@clisp.org>
45212
45213         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45214         for the various Unix platforms.
45215         * doc/posix-headers/limits.texi: Update platforms list regarding
45216         HOST_NAME_MAX.
45217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45218
45219 2009-08-07  Jim Meyering  <meyering@redhat.com>
45220
45221         selinux-at: fix typo in a comment
45222         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45223         Spotted by Paolo Bonzini.
45224
45225         selinux-at: remove redundant m4 code, add documentation
45226         * modules/selinux-at (configure.ac): Remove redundant code.
45227         LIB_SELINUX is already set via the dependent module, selinux-h.
45228         (Include): Add quotes around selinux-at.h.
45229         * lib/selinux-at.h: Add documentation.
45230         Reported by Bruno Haible in
45231         http://marc.info/?l=gnulib-bug&m=124958988300749
45232
45233 2009-08-07  Bruno Haible  <bruno@clisp.org>
45234
45235         Avoid link error on MacOS X 10.3 and 10.4.
45236         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45237         on non-ELF systems.
45238         * lib/argp-pv.c (argp_program_version): Likewise.
45239         Reported by Simon Josefsson.
45240
45241 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45242
45243         * tests/test-version-etc.sh: Use $EXEEXT.
45244
45245 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45246
45247         update-copyright: update documentation to point to maint.mk
45248         * build-aux/update-copyright: Here.
45249
45250 2009-08-06  Jim Meyering  <meyering@redhat.com>
45251
45252         maint.mk: support update-copyright-local
45253         * top/maint.mk (update-copyright-local): Define place-holder.
45254         (update-copyright): Depend on $(update-copyright-local).
45255
45256 2009-08-06  Jim Meyering  <meyering@redhat.com>
45257
45258         selinux-at: new module
45259         Initially written for coreutils, this module will soon be
45260         used by findutils, too.
45261         * MODULES.html.sh [Misc]: Add selinux-at.
45262         * lib/selinux-at.h: New file, from coreutils.
45263         * lib/selinux-at.c: Likewise.
45264         * modules/selinux-at: Likewise.
45265         (License): Change from LGPL to GPL, since it depends
45266         on the GPL'd openat module.
45267
45268         doc: update README
45269         * README: Remove references to cogito.
45270         Remove cvs-repo-updating instructions from 2007.
45271         Don't imply that CVS is better if you have limited disk space.
45272
45273 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45274
45275         update-copyright: support C-style comments
45276         * build-aux/update-copyright: Implement and document.
45277         * tests/test-update-copyright.sh: Test.
45278
45279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45280
45281         update-copyright: support omitted "(C)"
45282         * build-aux/update-copyright: Implement and document.  Also,
45283         allow variable whitespace before "(C)".
45284         * tests/test-update-copyright.sh: Test.
45285
45286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45287
45288         update-copyright: don't trip on non-FSF copyright statements
45289         * build-aux/update-copyright: Fix so that the first correctly
45290         formatted FSF copyright statement is recognized no matter what
45291         appears before it.  Update documentation.
45292         * tests/test-update-copyright.sh: Test that.
45293
45294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45295
45296         update-copyright: clean up code a little
45297         * build-aux/update-copyright: Append "_re" to the name of any
45298         variable holding a regular expression.
45299         Replace "old" and "new" with "stmt" in variable names.
45300         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45301         handled correctly.
45302         Format code more consistently.
45303
45304 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45305
45306         update-copyright-tests: improve portability
45307         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45308         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45309
45310 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45311
45312         update-copyright: support @copyright{} and &copy;
45313         * build-aux/update-copyright: Implement and document.
45314         * tests/test-update-copyright.sh: Test.
45315
45316 2009-08-04  Jim Meyering  <meyering@redhat.com>
45317
45318         update-copyright-tests: correctly test EOL=\r\n handling
45319         * tests/test-update-copyright.sh: Put \r at the end of some lines
45320         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45321
45322         maint.mk: make update-copyright exclusion list more configurable
45323         * top/maint.mk (update-copyright): Default to excluding COPYING,
45324         but allow an override, in case someone does want to update that file.
45325
45326         maint.mk: don't update copyright date in COPYING
45327         * top/maint.mk (update-copyright): Exclude COPYING.
45328
45329         maint.mk: add a copyright-updating rule
45330         * top/maint.mk (update-copyright): New rule.
45331         Derived from coreutils/Makefile.am.
45332
45333         update-copyright: rename some variables
45334         * build-aux/update-copyright: Rename a few variables for clarity.
45335         Tweak syntax.  List Joel E. Denny as coauthor.
45336
45337 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45338
45339         update-copyright: fix bug for 2-digit last year and add tests
45340         * build-aux/update-copyright: Fix bug.
45341         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45342         specified.
45343         * modules/update-copyright-tests: New
45344         * tests/test-update-copyright.sh: New.
45345
45346 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45347
45348         update-copyright: handle leading tabs in line prefix
45349         * build-aux/update-copyright: Count leading tabs as 8 spaces
45350         when computing margin.  This helps with the formatting of
45351         ChangeLogs, for example.
45352         Fix documentation a little.
45353
45354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45355
45356         update-copyright: support EOL=\r\n
45357         * build-aux/update-copyright: Implement that.
45358
45359 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45360
45361         update-copyright: automatically format copyright statements
45362         * build-aux/update-copyright: Implement that.
45363         Also, be a little more predictable and safer by always failing
45364         when the full copyright format is not perfectly recognized as an
45365         unbroken whole.  Discussed at
45366         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45367         Rewrite documentation.
45368
45369 2009-08-03  Bruno Haible  <bruno@clisp.org>
45370
45371         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45372
45373 2009-08-02  Bruno Haible  <bruno@clisp.org>
45374
45375         Tests for module 'uname'.
45376         * modules/uname-tests: New file.
45377         * tests/test-uname.c: New file.
45378
45379         New module 'uname'.
45380         * lib/uname.c: New file.
45381         * m4/uname.m4: New file.
45382         * modules/uname: New file.
45383         * doc/posix-functions/uname.texi: Mention the new module.
45384
45385 2009-08-02  Bruno Haible  <bruno@clisp.org>
45386
45387         Tests for module 'sys_utsname'.
45388         * modules/sys_utsname-tests: New file.
45389         * tests/test-sys_utsname.c: New file.
45390
45391         New module 'sys_utsname'.
45392         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45393         * m4/sys_utsname_h.m4: New file.
45394         * modules/sys_utsname: New file.
45395         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45396
45397 2009-08-02  Bruno Haible  <bruno@clisp.org>
45398
45399         Implicitly initialize the sockets library.
45400         * lib/gethostname.c: Include sockets.h.
45401         (rpl_gethostname): Invoke gl_sockets_startup.
45402         * lib/socket.c: Include sockets.h.
45403         (rpl_socket): Invoke gl_sockets_startup.
45404         * modules/gethostname (Depends-on): Add sockets.
45405         * modules/socket (Depends-on): Likewise.
45406         * tests/test-poll.c: Don't include sockets.h.
45407         (main): Don't invoke gl_sockets_startup.
45408         * tests/test-select.c: Don't include sockets.h.
45409         (main): Don't invoke gl_sockets_startup.
45410
45411 2009-08-02  Bruno Haible  <bruno@clisp.org>
45412
45413         Allow multiple calls to gl_sockets_startup.
45414         * lib/sockets.c (initialized_sockets_version): New variable.
45415         (gl_sockets_startup): Do nothing if already called for this or a higher
45416         version.
45417         (gl_sockets_cleanup): Reset initialized_sockets_version.
45418
45419 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45420
45421         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45422         different project/version.
45423
45424 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45425             Bruno Haible  <bruno@clisp.org>
45426
45427         Tests for module 'pipe-filter-gi'.
45428         * modules/pipe-filter-gi-tests: New file.
45429         * tests/test-pipe-filter-gi1.sh: New file.
45430         * tests/test-pipe-filter-gi1.c: New file.
45431         * tests/test-pipe-filter-gi2.sh: New file.
45432         * tests/test-pipe-filter-gi2-main.c: New file.
45433         * tests/test-pipe-filter-gi2-child.c: New file.
45434
45435         New module 'pipe-filter-gi'.
45436         * lib/pipe-filter-gi.c: New file.
45437         * modules/pipe-filter-gi: New file.
45438
45439 2009-08-02  Bruno Haible  <bruno@clisp.org>
45440             Paolo Bonzini  <bonzini@gnu.org>
45441
45442         Tests for module 'pipe-filter-ii'.
45443         * modules/pipe-filter-ii-tests: New file.
45444         * tests/test-pipe-filter-ii1.sh: New file.
45445         * tests/test-pipe-filter-ii1.c: New file.
45446         * tests/test-pipe-filter-ii2.sh: New file.
45447         * tests/test-pipe-filter-ii2-main.c: New file.
45448         * tests/test-pipe-filter-ii2-child.c: New file.
45449
45450         New module 'pipe-filter-ii'.
45451         * lib/pipe-filter.h: New file.
45452         * lib/pipe-filter-ii.c: New file.
45453         * lib/pipe-filter-aux.h: New file.
45454         * modules/pipe-filter-ii: New file.
45455
45456 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45457
45458         * lib/gc-libgcrypt.c: Change copyright to FSF.
45459         * lib/gc-gnulib.c: Likewise.
45460
45461 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45462
45463         * lib/gethostname.c: Include limits.h.
45464
45465 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45466             Bruno Haible  <bruno@clisp.org>
45467
45468         Ensure HOST_NAME_MAX as part of the gethostname module.
45469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45470         define also HOST_NAME_MAX.
45471         * tests/test-gethostname.c: Include <limits.h>.
45472         (main): Check also HOST_NAME_MAX.
45473         * doc/posix-headers/limits.texi: Document the mingw problem.
45474
45475 2009-08-02  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45478         Add comments.
45479
45480 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45481
45482         * lib/gethostname.c: Add Windows wrapper.
45483         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45484         * modules/gethostname: Depend on sys_socket & errno, for also
45485         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45486         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45487
45488 2009-07-31  Jim Meyering  <meyering@redhat.com>
45489
45490         getloadavg: fix symbol name in comment
45491         * lib/getloadavg.c: Correct a typo I introduced when adding
45492         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45493         Matt Kraai spotted the problem.
45494
45495 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45496
45497         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45498         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45499         code also if ! defined N_NAME_POINTER.
45500         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45501         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45502         but the n_name member is a 12-byte array.
45503
45504 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45505
45506         update-copyright: generalize comment handling
45507         * build-aux/update-copyright: Handle copyright statements
45508         within more comment styles.
45509         Document usage.
45510         Report any file with an external copyright holder or parse failure.
45511
45512 2009-07-29  Jim Meyering  <meyering@redhat.com>
45513
45514         mktime: correct setting of REPLACE_MKTIME
45515         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45516
45517         update-copyright: new module
45518         * modules/update-copyright: New file.
45519         * build-aux/update-copyright: New file.
45520         * MODULES.html.sh (maint+release support): Add update-copyright.
45521
45522 2009-07-27  Bruno Haible  <bruno@clisp.org>
45523
45524         Fix compilation error when <ctime> is used and mktime is replaced.
45525         * lib/time.in.h (mktime): New declaration.
45526         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45527         REPLACE_MKTIME instead of defining mktime in config.h.
45528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45529         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45530         Reported by Ross McFarland <rwmcfa1@neces.com>.
45531
45532 2009-07-27  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45535         Reported by Matt Kraai <mkraai@beckman.com>.
45536
45537 2009-07-25  Jim Meyering  <meyering@redhat.com>
45538
45539         maint.mk: avoid warnings about missing files
45540         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45541         diagnostic when .prev-version does not exist.
45542         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45543         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45544         nonexistent cfg.mk.
45545         Suggestions from Simon Josefsson.
45546
45547 2009-07-25  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45550         defined as macros. Needed on QNX 6.4.1.
45551         Reported by Matt Kraai <mkraai@beckman.com>.
45552
45553 2009-07-23  Jim Meyering  <meyering@redhat.com>
45554
45555         maint.mk: invoke "make dist" with a working value of XZ_OPT
45556         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45557
45558 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45559
45560         Make fseeko.c compile on QNX.
45561         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45562
45563 2009-07-22  Peter Simons  <simons@cryp.to>
45564
45565         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45566         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45567         * lib/md4.h: Likewise.
45568         * lib/md5.h: Likewise.
45569         * lib/sha1.h: Likewise.
45570         * lib/sha256.h: Likewise.
45571         * lib/sha512.h: Likewise.
45572
45573         tests-sha1: don't assign literal string to 'char *' variable
45574         * tests/test-sha1.c (main): Declare locals with "const" to match
45575         attributes of the right hand side.
45576
45577 2009-07-21  Eric Blake  <ebb9@byu.net>
45578
45579         dup2: fix more mingw problems
45580         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45581         fd to itself.
45582         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45583         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45584         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45585         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45586         care of mingw bugs.
45587
45588 2009-07-21  Jim Meyering  <meyering@redhat.com>
45589
45590         vc-list-files: avoid failure when /bin/sh is dash
45591         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45592         On some Debian based systems, /bin/sh is a symlink to dash, and running
45593         this command would omit the "/" following each 'tests' prefix:
45594           dash -x build-aux/vc-list-files -C . tests
45595         That is because bash and dash work differently:
45596           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45597           bash ok
45598           dash odd
45599
45600 2009-07-21  Eric Blake  <ebb9@byu.net>
45601
45602         dup2-tests: test previous patch
45603         * modules/dup2-tests: New file.
45604         * tests/test-dup2.c: Likewise.
45605         * tests/test-open.c (main): Avoid unspecified behavior.
45606         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45607         test.
45608
45609         dup2: work around mingw and cygwin 1.5 bug
45610         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45612         * modules/unistd (Makefile.am): Substitute it.
45613         * lib/unistd.in.h (dup2): Declare the replacement.
45614         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45615         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45616         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45617         * modules/execute (Depends-on): Add dup2.
45618         * modules/fseterr (Depends-on): Likewise.
45619         * modules/pipe (Depends-on): Likewise.
45620         * modules/posix_spawn-internal (Depends-on): Likewise.
45621
45622 2009-07-21  Bruno Haible  <bruno@clisp.org>
45623
45624         * modules/.gitattributes: New file.
45625
45626 2009-07-20  Bruno Haible  <bruno@clisp.org>
45627
45628         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45629         (main): Use it.
45630
45631 2009-07-20  Eric Blake  <ebb9@byu.net>
45632
45633         test-pipe: make a bit more robust.
45634         * tests/test-pipe.c (myerr): Allow error messages regardless of
45635         what we do to stderr.
45636         (test_pipe): Rearrange to avoid deadlock.
45637         (child_main): Try a larger read, to ensure we avoided deadlock.
45638         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45639         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45640         if misused.
45641
45642 2009-07-19  Jim Meyering  <meyering@redhat.com>
45643
45644         fts: avoid false-positive cycle-detection
45645         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45646         for each new command line argument.
45647
45648 2009-07-19  Bruno Haible  <bruno@clisp.org>
45649
45650         Fix build error on mingw with the modules sys_select and unistd.
45651         * modules/acl-tests (Depends-on): Add close.
45652         * modules/binary-io-tests (Depends-on): Likewise.
45653         * modules/closein-tests (Depends-on): Likewise.
45654         * modules/flock-tests (Depends-on): Likewise.
45655         * modules/fsync-tests (Depends-on): Likewise.
45656         * modules/lseek-tests (Depends-on): Likewise.
45657         * modules/pipe-tests (Depends-on): Likewise.
45658         * modules/posix_spawn-tests (Depends-on): Likewise.
45659         * modules/posix_spawnp-tests (Depends-on): Likewise.
45660         * modules/stat-time-tests (Depends-on): Likewise.
45661         * modules/yesno-tests (Depends-on): Likewise.
45662
45663 2009-07-19  Bruno Haible  <bruno@clisp.org>
45664
45665         Unify conditionals.
45666         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45667         macros, not at the compiler macros.
45668         * lib/pipe.c: Likewise.
45669         * lib/execute.c: Likewise.
45670         * lib/spawni.c: Likewise.
45671
45672 2009-07-19  Bruno Haible  <bruno@clisp.org>
45673
45674         Fix handling of closed stdin/stdout/stderr on mingw.
45675         * lib/w32spawn.h: Include unistd.h.
45676         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45677         file descriptor with O_NOINHERIT flag.
45678         (fd_safer_noinherit): New function, based on fd-safer.c.
45679         (dup_safer_noinherit): New function, based on dup-safer.c.
45680         (undup_safer_noinherit): New function.
45681         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45682         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45683         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45684         instead of fd_safer.
45685         * tests/test-pipe.c: Include <windows.h>.
45686         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45687         result.
45688
45689         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45690         from main.
45691         (test_pipe): Pass an extra argument for disambiguation.
45692         (main): Invoke parent_main or child_main.
45693
45694         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45695         consistently.
45696
45697 2009-07-18  Eric Blake  <ebb9@byu.net>
45698
45699         test-pipe: fix mingw build
45700         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45701
45702 2009-07-18  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/pipe-tests (Makefile.am): Fix typo.
45705
45706 2009-07-18  Eric Blake  <ebb9@byu.net>
45707
45708         error: fix mingw build
45709         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45710         Reported by Bruno Haible.
45711
45712         error: avoid undefined use of stdout
45713         * lib/error.c (error, error_at_line): Check that fd 1 is open
45714         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45715         is handling faults and the close_stdout module wants to report the
45716         detection of closed stdout as an error.
45717
45718 2009-07-17  Eric Blake  <ebb9@byu.net>
45719
45720         pipe: be robust in face of closed fds
45721         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45722         should cause child to misbehave.
45723         * modules/pipe-tests: New module.
45724         * tests/test-pipe.c: New file.
45725         * tests/test-pipe.sh: New file.
45726         Reported by Akim Demaille.
45727
45728 2009-07-14  Bruno Haible  <bruno@clisp.org>
45729
45730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45731         Reported by anonymous kc.
45732
45733 2009-07-07  Jim Meyering  <meyering@redhat.com>
45734
45735         maint.mk: don't look for translatable strings in *.m4 or *.mk
45736         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45737         when searching for translatable strings.
45738
45739 2009-07-05  Jim Meyering  <meyering@redhat.com>
45740
45741         remove superfluous parentheses in STREQ definition
45742         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45743         * lib/getugroups.c (STREQ): Likewise.
45744         * lib/fnmatch.c (STREQ): Likewise.
45745         Spotted by Bruno Haible.
45746
45747 2009-07-04  Jim Meyering  <meyering@redhat.com>
45748
45749         argv-iter: new module
45750         * MODULES.html.sh: Add argv-iter.
45751         * lib/argv-iter.c, lib/argv-iter.h: New files.
45752         * modules/argv-iter: New file.
45753         * modules/argv-iter-tests: New file.
45754         * tests/test-argv-iter.c: Test it.
45755
45756 2009-07-04  Bruno Haible  <bruno@clisp.org>
45757
45758         Fix assertion.
45759         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45760         contains more exact copies of a given entry than file2, leave the extra
45761         copies unpaired rather than aborting.
45762         Reported by Eric Blake.
45763
45764 2009-07-02  Bruno Haible  <bruno@clisp.org>
45765
45766         Speedup git-merge-changelog for git cherry-pick.
45767         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45768         (entries_mapping_get): New function, extracted from compute_mapping.
45769         (entries_mapping_reverse_get): New function.
45770         (compute_mapping): Add a 'full' argument. Return the result in a
45771         'struct entries_mapping'.
45772         (main): Update. Access the mappings through entries_mapping_get.
45773         Reported by Eric Blake.
45774
45775 2009-07-02  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45778         best_i.
45779
45780 2009-07-02  Bruno Haible  <bruno@clisp.org>
45781
45782         Speed up approximate search for matching ChangeLog entries.
45783         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45784         argument. Call fstrcmp_bounded instead of fstrcmp.
45785         (compute_mapping, try_split_merged_entry, main): Update callers.
45786
45787 2009-07-02  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45790
45791 2009-06-30  Bruno Haible  <bruno@clisp.org>
45792
45793         Reduce the number of uc_is_cased calls.
45794         * lib/unicase.h (casing_suffix_context_t): Add
45795         'first_char_except_ignorable' field.
45796         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45797         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45798         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45799         Update initializer.
45800         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45801         case-ignorable characters.
45802         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45803         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45804         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45805         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45806         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45807
45808 2009-06-30  Bruno Haible  <bruno@clisp.org>
45809
45810         Tests for module 'unicase/ignorable'.
45811         * modules/unicase/ignorable-tests: New file.
45812         * tests/unicase/test-ignorable.c: New file, generated by
45813         gen-uni-tables.
45814
45815         Tests for module 'unicase/cased'.
45816         * modules/unicase/cased-tests: New file.
45817         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45818         * tests/unicase/test-predicate-part1.h: New file, derived from
45819         tests/unictype/test-predicate-part1.h.
45820         * tests/unicase/test-predicate-part2.h: New file, same as
45821         tests/unictype/test-predicate-part2.h.
45822
45823         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45824         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45825         (output_casing_properties): New function.
45826         (main): Call it.
45827         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45828         * lib/unicase/cased.c: Include unictype/bitmap.h.
45829         (uc_is_cased): Define through a bitmap lookup.
45830         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45831         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45832         (uc_is_case_ignorable): Define through a bitmap lookup.
45833         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45834         lib/unictype/bitmap.h.
45835         (Depends-on): Add inline. Clean up.
45836         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45837         lib/unictype/bitmap.h.
45838         (Depends-on): Add inline. Clean up.
45839         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45840         recognition.
45841         * tests/unicase/test-u16-tolower.c (main): Likewise.
45842         * tests/unicase/test-u32-tolower.c (main): Likewise.
45843
45844 2009-06-30  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45847         * lib/unicase/u16-casemap.c: Likewise.
45848         * lib/unicase/u32-casemap.c: Likewise.
45849
45850 2009-06-29  Bruno Haible  <bruno@clisp.org>
45851
45852         Define u32_casefold as a wrapper around u32_ct_casefold.
45853         * lib/unicase/u32-casefold.c: Update.
45854         * modules/unicase/u32-casefold (Depends-on): Add
45855         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45856         unicase/empty-suffix-context. Clean up.
45857
45858         Define u16_casefold as a wrapper around u16_ct_casefold.
45859         * lib/unicase/u16-casefold.c: Update.
45860         * modules/unicase/u16-casefold (Depends-on): Add
45861         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45862         unicase/empty-suffix-context. Clean up.
45863
45864         Define u8_casefold as a wrapper around u8_ct_casefold.
45865         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45866         * lib/unicase/u8-casefold.c: Update.
45867         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45869
45870         Define u32_totitle as a wrapper around u32_ct_totitle.
45871         * lib/unicase/u32-totitle.c: Update.
45872         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45874
45875         Define u16_totitle as a wrapper around u16_ct_totitle.
45876         * lib/unicase/u16-totitle.c: Update.
45877         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45878         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45879
45880         Define u8_totitle as a wrapper around u8_ct_totitle.
45881         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45882         functions.
45883         (FUNC): Delegate to U_CT_TOTITLE.
45884         * lib/unicase/u8-totitle.c: Update.
45885         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45886         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45887
45888         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45889         invocation.
45890         * modules/unicase/u32-tolower (Depends-on): Add
45891         unicase/empty-prefix-context, unicase/empty-suffix-context.
45892
45893         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45894         invocation.
45895         * modules/unicase/u16-tolower (Depends-on): Add
45896         unicase/empty-prefix-context, unicase/empty-suffix-context.
45897
45898         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45899         * modules/unicase/u8-tolower (Depends-on): Add
45900         unicase/empty-prefix-context, unicase/empty-suffix-context.
45901
45902         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45903         invocation.
45904         * modules/unicase/u32-toupper (Depends-on): Add
45905         unicase/empty-prefix-context, unicase/empty-suffix-context.
45906
45907         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45908         invocation.
45909         * modules/unicase/u16-toupper (Depends-on): Add
45910         unicase/empty-prefix-context, unicase/empty-suffix-context.
45911
45912         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45913         * modules/unicase/u8-toupper (Depends-on): Add
45914         unicase/empty-prefix-context, unicase/empty-suffix-context.
45915
45916         New module 'unicase/u32-ct-casefold'.
45917         * lib/unicase/u32-ct-casefold.c: New file.
45918         * modules/unicase/u32-ct-casefold: New file.
45919
45920         New module 'unicase/u16-ct-casefold'.
45921         * lib/unicase/u16-ct-casefold.c: New file.
45922         * modules/unicase/u16-ct-casefold: New file.
45923
45924         New module 'unicase/u8-ct-casefold'.
45925         * lib/unicase/u8-ct-casefold.c: New file.
45926         * lib/unicase/u-ct-casefold.h: New file, derived from
45927         lib/unicase/u-casefold.h.
45928         * modules/unicase/u8-ct-casefold: New file.
45929
45930         New module 'unicase/u32-ct-totitle'.
45931         * lib/unicase/u32-ct-totitle.c: New file.
45932         * modules/unicase/u32-ct-totitle: New file.
45933
45934         New module 'unicase/u16-ct-totitle'.
45935         * lib/unicase/u16-ct-totitle.c: New file.
45936         * modules/unicase/u16-ct-totitle: New file.
45937
45938         New module 'unicase/u8-ct-totitle'.
45939         * lib/unicase/u8-ct-totitle.c: New file.
45940         * lib/unicase/u-ct-totitle.h: New file, derived from
45941         lib/unicase/u-totitle.h.
45942         * modules/unicase/u8-ct-totitle: New file.
45943
45944         New module 'unicase/u32-ct-tolower'.
45945         * lib/unicase/u32-ct-tolower.c: New file.
45946         * modules/unicase/u32-ct-tolower: New file.
45947
45948         New module 'unicase/u16-ct-tolower'.
45949         * lib/unicase/u16-ct-tolower.c: New file.
45950         * modules/unicase/u16-ct-tolower: New file.
45951
45952         New module 'unicase/u8-ct-tolower'.
45953         * lib/unicase/u8-ct-tolower.c: New file.
45954         * modules/unicase/u8-ct-tolower: New file.
45955
45956         New module 'unicase/u32-ct-toupper'.
45957         * lib/unicase/u32-ct-toupper.c: New file.
45958         * modules/unicase/u32-ct-toupper: New file.
45959
45960         New module 'unicase/u16-ct-toupper'.
45961         * lib/unicase/u16-ct-toupper.c: New file.
45962         * modules/unicase/u16-ct-toupper: New file.
45963
45964         New module 'unicase/u8-ct-toupper'.
45965         * lib/unicase/u8-ct-toupper.c: New file.
45966         * modules/unicase/u8-ct-toupper: New file.
45967
45968         Add context arguments to u*_casemap functions.
45969         * lib/unicase/unicasemap.h: Include unicase.h.
45970         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45971         suffix_context arguments.
45972         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45973         functions.
45974         (FUNC): Add prefix_context and suffix_context arguments. Use
45975         uc_is_cased and uc_is_case_ignorable.
45976         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45977         * lib/unicase/u16-casemap.c: Likewise.
45978         * lib/unicase/u32-casemap.c: Likewise.
45979         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45980         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45981         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45982         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45983         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45984         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45985
45986         New module 'unicase/u32-suffix-context'.
45987         * lib/unicase/u32-suffix-context.c: New file.
45988         * modules/unicase/u32-suffix-context: New file.
45989
45990         New module 'unicase/u16-suffix-context'.
45991         * lib/unicase/u16-suffix-context.c: New file.
45992         * modules/unicase/u16-suffix-context: New file.
45993
45994         New module 'unicase/u8-suffix-context'.
45995         * lib/unicase/u8-suffix-context.c: New file.
45996         * lib/unicase/u-suffix-context.h: New file.
45997         * modules/unicase/u8-suffix-context: New file.
45998
45999         New module 'unicase/empty-suffix-context'.
46000         * lib/unicase/empty-suffix-context.c: New file.
46001         * modules/unicase/empty-suffix-context: New file.
46002
46003         New module 'unicase/u32-prefix-context'.
46004         * lib/unicase/u32-prefix-context.c: New file.
46005         * modules/unicase/u32-prefix-context: New file.
46006
46007         New module 'unicase/u16-prefix-context'.
46008         * lib/unicase/u16-prefix-context.c: New file.
46009         * modules/unicase/u16-prefix-context: New file.
46010
46011         New module 'unicase/u8-prefix-context'.
46012         * lib/unicase/u8-prefix-context.c: New file.
46013         * lib/unicase/u-prefix-context.h: New file.
46014         * lib/unicase/context.h: New file.
46015         * modules/unicase/u8-prefix-context: New file.
46016
46017         New module 'unicase/empty-prefix-context'.
46018         * lib/unicase/empty-prefix-context.c: New file.
46019         * modules/unicase/empty-prefix-context: New file.
46020
46021         New module 'unicase/ignorable'.
46022         * lib/unicase/ignorable.c: New file.
46023         * modules/unicase/ignorable: New file.
46024
46025         New module 'unicase/cased'.
46026         * lib/unicase/caseprop.h: New file.
46027         * lib/unicase/cased.c: New file.
46028         * modules/unicase/cased: New file.
46029
46030         New functions for case mapping of substrings.
46031         * lib/unicase.h (casing_prefix_context_t): New type.
46032         (unicase_empty_prefix_context): New variable.
46033         (u8_casing_prefix_context, u16_casing_prefix_context,
46034         u32_casing_prefix_context, u8_casing_prefixes_context,
46035         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46036         declarations.
46037         (casing_suffix_context_t): New type.
46038         (unicase_empty_suffix_context): New variable.
46039         (u8_casing_suffix_context, u16_casing_suffix_context,
46040         u32_casing_suffix_context, u8_casing_suffixes_context,
46041         u16_casing_suffixes_context, u32_casing_suffixes_context,
46042         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46043         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46044         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46045         declarations.
46046
46047 2009-06-28  Jim Meyering  <meyering@redhat.com>
46048
46049         boostrap: indent only with spaces
46050         * build-aux/bootstrap: Indent only with spaces, never TABs.
46051
46052         bootstrap: split long lines
46053         * build-aux/bootstrap: Keep line length < 80.
46054
46055         bootstrap: sync from coreutils
46056         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46057         just as autoreconf does.  Verify a list of prerequisite
46058         package-name,version-number pairs if defined in bootstrap.conf.
46059         Refer to README-prereq, if prerequisites are not satisfied.
46060
46061 2009-06-27  Eric Blake  <ebb9@byu.net>
46062
46063         tests: add test for bogus NULL definition
46064         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46065         * tests/test-stdlib.c: Likewise.
46066         * tests/test-string.c: Likewise.
46067         * tests/test-locale.c: Likewise.
46068         * tests/test-unistd.c: Likewise.
46069         * modules/stdio-tests (Depends-on): Add verify.
46070         * modules/stdlib-tests (Depends-on): Likewise.
46071         * modules/string-tests (Depends-on): Likewise.
46072         * modules/locale-tests (Depends-on): Likewise.
46073         * modules/unistd-tests (Depends-on): Likewise.
46074
46075 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46076
46077         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46078         self-explaining comment.
46079         * m4/selinux-selinux-h: Update serial.
46080         (gl_LIBSELINUX): New macro, adding a warning for missing development
46081         packages to code extracted from...
46082         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46083         Add warning for missing development packages here, too.
46084
46085 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46086
46087         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46088
46089 2009-06-25  Eric Blake  <ebb9@byu.net>
46090
46091         version-etc: fix regression
46092         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46093         gcc.
46094         (version_etc): Use it, to catch bugs with trailing NULL.
46095         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46096         (version_etc_va): Fix logic bug.
46097         * modules/version-etc-tests: Add test.
46098         * tests/test-version-etc.c: New file.
46099         * tests/test-version-etc.sh: Likewise.
46100
46101 2009-06-25  Sam Steingold  <sds@gnu.org>
46102
46103         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46104         mbtowc declaration.
46105
46106 2009-06-25  Eric Blake  <ebb9@byu.net>
46107
46108         fpurge: migrate into <stdio.h>
46109         * lib/fpurge.h: Delete...
46110         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46111         * lib/fpurge.c (fpurge): Change declaring header.
46112         * modules/fpurge (Files): Drop deleted file.
46113         (Depends-on): Add stdio.
46114         (configure.ac): Set witness.
46115         * modules/stdio (Makefile.am): Support fpurge macros.
46116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46117         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46118         * lib/fflush.c: Update client.
46119         * tests/test-fpurge.c: Likewise.
46120         * NEWS: Mention the change.
46121
46122 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46123
46124         * lib/argp-version-etc.c (program_authors): Add const
46125         qualifier.
46126         * lib/version-etc.c: Fix typos in the comments.
46127         * modules/argp-version-etc: Depends on version-etc.
46128
46129 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46130
46131         argp-version-etc: new module.
46132
46133         * lib/argp-version-etc.c: New file.
46134         * lib/argp-version-etc.h: New file.
46135         * modules/argp-version-etc: New file.
46136         * modules/argp-version-etc-tests: New file.
46137         * tests/test-argp-version-etc.c: New test.
46138         * tests/test-argp-version-etc-1.sh: New test.
46139
46140 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46141
46142         Provide additional interfaces and documentation for version-etc
46143         module.
46144
46145         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46146         interfaces.
46147         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46148         prototypes.
46149
46150 2009-06-24  Bruno Haible  <bruno@clisp.org>
46151
46152         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46153         HAVE_LIB${NAME} macro.
46154         Reported by Sam Steingold <sds@gnu.org>.
46155
46156 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46157
46158         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46159         needed.
46160
46161 2009-06-21  Bruno Haible  <bruno@clisp.org>
46162
46163         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46164         work.
46165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46166         together with LIB${NAME}, LTLIB${NAME}.
46167         Reported by Sam Steingold <sds@gnu.org>.
46168
46169 2009-06-20  Jim Meyering  <meyering@redhat.com>
46170
46171         tests: make sc_require_test_exit_idiom more generic
46172         * top/maint.mk (Exit_witness_file): New overridable variable.
46173         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46174         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46175
46176 2009-06-19  Jim Meyering  <meyering@redhat.com>
46177
46178         hash: reverse order of src/dst parameters in an internal interface
46179         * lib/hash.c (transfer_entries): Reverse order of parameters to
46180         put DST before SRC.  Adjust callers.
46181
46182         tests: test-hash: avoid wholesale duplication
46183         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46184         Instead, use a loop and add a single conditional.
46185
46186         tests: test-hash: allow seed selection via a command line argument
46187         * tests/test-hash.c (get_seed): New function.
46188         (main): Use it.
46189
46190 2009-06-19  Eric Blake  <ebb9@byu.net>
46191
46192         hash: avoid memory leak on allocation failure
46193         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46194         failure.  Factor repeated algorithm...
46195         (transfer_entries): ...into new helper routine.
46196         (hash_delete): React to hash_rehash return value.
46197
46198         hash: reduce memory pressure in hash_rehash no-op case
46199         * lib/hash.c (next_prime): Avoid overflow.
46200         (hash_initialize): Factor bucket size computation...
46201         (compute_bucket_size): ...into new helper function.
46202         (hash_rehash): Use new function and open coding to reduce memory
46203         pressure, and avoid a memory leak in USE_OBSTACK code.
46204         Reported by Jim Meyering.
46205
46206 2009-06-18  Eric Blake  <ebb9@byu.net>
46207
46208         hash: make rotation more obvious
46209         * modules/hash (Depends-on): Add bitrotate and stdint.
46210         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46211         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46212         (SIZE_MAX): Rely on headers for definition.
46213         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46214         (raw_hasher): Use rotr_sz.
46215         Suggested by Jim Meyering.
46216
46217         hash: fix memory leak in last patch
46218         * lib/hash.c (hash_rehash): Avoid memory leak.
46219
46220         hash: avoid no-op rehashing
46221         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46222
46223         hash: provide default callback functions
46224         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46225         (hash_initialize): Use them as defaults.
46226         * tests/test-hash.c (main): Test this.
46227
46228         hash: minor optimization
46229         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46230         when possible.
46231         (hash_initialize): Document this promise.
46232         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46233         * tests/test-hash.c (hash_compare_strings): Test this.
46234
46235 2009-06-18  Bruno Haible  <bruno@clisp.org>
46236
46237         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46238         going to be replaced anyway.
46239
46240 2009-06-18  Bruno Haible  <bruno@clisp.org>
46241
46242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46243         in one place.
46244         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46245         be replaced anyway.
46246
46247 2009-06-18  Eric Blake  <ebb9@byu.net>
46248
46249         hash: check for resize before insertion
46250         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46251         threshold before insertion, so that a pathological hash_rehash
46252         that fills every bucket can still trigger another rehash.
46253
46254 2009-06-18  Jim Meyering  <meyering@redhat.com>
46255
46256         hash-tests: add a loop around the small tests
46257         * tests/test-hash.c (main): Repeat small tests with selected
46258         small initial table sizes.
46259
46260 2009-06-17  Eric Blake  <ebb9@byu.net>
46261
46262         hash: minor cleanups
46263         * lib/hash.h (hash_entry): Make opaque, by moving...
46264         * lib/hash.c (hash_entry): ...here.
46265         (hash_insert): Clarify restrictions on what can be inserted.
46266         (hash_get_next): Clarify when it is safe to remove an element
46267         during traversal.
46268         (check_tuning): Skip verification when tuning is known safe.
46269         (hash_initialize): Clarify restrictions on tuning.
46270
46271 2009-06-17  Jim Meyering  <jim@meyering.net>
46272         and Eric Blake  <ebb9@byu.net>
46273
46274         hash-tests: new module
46275         * modules/hash-tests: New file.
46276         * tests/test-hash.c: New file.
46277
46278 2009-06-17  Eric Blake  <ebb9@byu.net>
46279
46280         strstr-simple: document new module
46281         * MODULES.html.sh: Document new module.
46282
46283         strstr, strcasestr: replace on platforms with broken memchr
46284         * modules/strstr: Split into...
46285         * modules/strstr-simple: ...new module that does not care about
46286         performance, but does care about glibc bug.
46287         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46288         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46289         if platform memchr is broken, per Debian bug 521737.
46290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46291         memchr.
46292         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46293         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46294         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46295         * modules/mountlist (Depends-on): Add strstr-simple.
46296         * modules/gen-uni-tables (Depends-on): Likewise.
46297         * modules/argz (Depends-on): Add strstr.
46298
46299 2009-06-17  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/posix_spawn-internal (Depends-on): Add errno.
46302
46303 2009-06-17  Bruno Haible  <bruno@clisp.org>
46304
46305         Define missing ESTALE on Interix 3.5.
46306         * lib/errno.in.h (ESTALE): Assign a value if missing.
46307         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46308         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46309         missing.
46310         * doc/posix-headers/errno.texi: Mention the Interix bug.
46311         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46312
46313 2009-06-15  Eric Blake  <ebb9@byu.net>
46314
46315         memchr, memchr2: add valgrind exception
46316         * lib/memchr.valgrind: New file.
46317         * lib/memchr2.valgrind: New file.
46318         * modules/memchr (Files): Distribute valgrind file.
46319         * modules/memchr2 (Files): Likewise.
46320
46321         docs: memchr is no longer obsolete
46322         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46323         * lib/string.in.h (memchr): Simplify logic.
46324
46325 2009-06-14  Jim Meyering  <meyering@redhat.com>
46326
46327         link-follow: fix the "checking..." message to not mention trailing slash
46328         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46329         never considered trailing slashes.
46330
46331 2009-06-14  Bruno Haible  <bruno@clisp.org>
46332
46333         * m4/memchr.m4: Mention also the bug on IA-64.
46334         * doc/posix-functions/memchr.texi: Likewise.
46335
46336 2009-06-12  Eric Blake  <ebb9@byu.net>
46337
46338         memchr: detect broken x86_64 and alpha implementations
46339         * modules/memchr-tests (Depends-on): Move mmap detection...
46340         * modules/memchr (Depends-on): ...here.
46341         (configure.ac): Set indicator.
46342         * lib/string.in.h (memchr): Declare replacement.
46343         * modules/string (Makefile.am): Trigger replacement.
46344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46345         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46346         bugs.
46347         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46348         * modules/getpagesize (License): Relax license.
46349
46350 2009-06-11  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/idpriv.h: Add more references.
46353
46354 2009-06-08  Bruno Haible  <bruno@clisp.org>
46355
46356         Tests for module 'idpriv-droptemp'.
46357         * modules/idpriv-droptemp-tests: New file.
46358         * tests/test-idpriv-droptemp.sh: New file.
46359         * tests/test-idpriv-droptemp.su.sh: New file.
46360         * tests/test-idpriv-droptemp.c: New file.
46361
46362         New module 'idpriv-droptemp'.
46363         * lib/idpriv-droptemp.c: New file.
46364         * modules/idpriv-droptemp: New file.
46365
46366 2009-06-08  Bruno Haible  <bruno@clisp.org>
46367
46368         Tests for module 'idpriv-drop'.
46369         * modules/idpriv-drop-tests: New file.
46370         * tests/test-idpriv-drop.sh: New file.
46371         * tests/test-idpriv-drop.su.sh: New file.
46372         * tests/test-idpriv-drop.c: New file.
46373
46374         New module 'idpriv-drop'.
46375         * lib/idpriv.h: New file.
46376         * lib-idpriv-drop.c: New file.
46377         * m4/idpriv.m4: New file.
46378         * modules/idpriv-drop: New file.
46379
46380 2009-06-08  Bruno Haible  <bruno@clisp.org>
46381
46382         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46383         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46384         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46385         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46386         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46387         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46388         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46389
46390 2009-06-08  Eric Blake  <ebb9@byu.net>
46391
46392         test-strstr: use memory fence, when possible
46393         * tests/test-strstr.c (main): Use memory fence, in order to be
46394         more likely to trigger Debian bug 521737.
46395         * modules/strstr-tests (Files): Pull in additional files.
46396
46397         memchr: no longer obsolete, for wider field testing
46398         * modules/memchr (Status, Notice): Delete, this module is no
46399         longer obsolete.
46400         * modules/vasnprintf (Depends-on): Add memchr.
46401
46402 2009-06-07  Jim Meyering  <meyering@redhat.com>
46403
46404         hash: declare some functions with the warn_unused_result attribute
46405         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46406
46407 2009-06-07  Bruno Haible  <bruno@clisp.org>
46408
46409         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46410         Reported by Eric Blake.
46411
46412 2009-06-06  Eric Blake  <ebb9@byu.net>
46413
46414         test-alignof: fix typo with long double
46415         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46416         compiler error.
46417
46418 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46419
46420         Escape non-texinfo { and }s.
46421         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46422         markup error.
46423
46424 2009-06-04  Jim Meyering  <meyering@redhat.com>
46425
46426         gitlog-to-changelog: don't infloop on an empty commit log
46427         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46428         Reported by Boris Petersen <transacid@centerim.org>.
46429
46430 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46431
46432         version-etc: extend for packagers
46433         Add three new configure options, intended for packagers:
46434           --with-packager="packager name"
46435           --with-packager-version="packager-specific version"
46436           --with-packager-bug-reports="packager bug reporting"
46437         An example with coreutils:
46438           $ ./configure \
46439             --with-packager=Gentoo \
46440             --with-packager-bug-report=http://bugs.gentoo.org/ \
46441             --with-packager-version="patchset 1.6"
46442           $ ./src/ls --version | head -n2
46443           ls (GNU coreutils) 7.1-dirty
46444           Packaged by Gentoo (patchset 1.6)
46445         Note that the bug reporting info via --help doesn't show up because
46446         coreutils uses its own custom emit_bug_reporting_address() implementation
46447         in src/system.h.  If it didn't, it'd look like:
46448           $ ./src/ls --help | tail -n4
46449           Report bugs to <bug-coreutils@gnu.org>.
46450           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46451           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46452           General help using GNU software: <http://www.gnu.org/gethelp/>.
46453         * lib/version-etc.c: Print new information, if provided.
46454         * m4/version-etc.m4: New file.
46455         * modules/version-etc (Files): Add m4/version-etc.m4.
46456         (configure.ac): Add gl_VERSION_ETC.
46457
46458 2009-05-31  Bruno Haible  <bruno@clisp.org>
46459
46460         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46461         and 'int64_t'.
46462         * modules/alignof-tests (Dependencies): Add stdint.
46463         Reported by Eric Blake.
46464
46465 2009-05-31  Bruno Haible  <bruno@clisp.org>
46466
46467         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46468         restriction due to compiler bugs.
46469         Reported by Eric Blake.
46470
46471 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46472             Bruno Haible  <bruno@clisp.org>
46473
46474         Fix test-alignof failure.
46475         * lib/alignof.h (alignof_slot): New macro.
46476         (alignof_type): New macro, with the same semantics as the previous
46477         'alignof'.
46478         (alignof): Alias to alignof_slot.
46479         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46480         check that the results are usable as constant expressions.
46481
46482 2009-05-31  Bruno Haible  <bruno@clisp.org>
46483
46484         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46485         * tests/test-memchr.c (main): Check that memchr does not read past the
46486         first occurrence of the byte.
46487         * tests/test-strstr.c (main): Update comment.
46488         Suggested by Eric Blake.
46489
46490 2009-05-30  Bruno Haible  <bruno@clisp.org>
46491
46492         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46493         detail how to use dumpbin.
46494         Reported by David Byron <dbyron@dbyron.com>.
46495
46496 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46497
46498         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46499
46500 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46501
46502         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46503
46504 2009-05-28  Bruno Haible  <bruno@clisp.org>
46505
46506         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46507         build-aux/ files.
46508
46509 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46510
46511         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46512
46513 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46514
46515         * gnulib-tool (sed_transform_main_lib_file)
46516         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46517         regexps.
46518
46519 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46520
46521         * tests/test-strstr.c: Add another self-test.
46522         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46523         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46524
46525 2009-05-23  Bruno Haible  <bruno@clisp.org>
46526
46527         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46528         change.
46529
46530 2009-05-21  Bruno Haible  <bruno@clisp.org>
46531
46532         Simplify use of mode_t varargs.
46533         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46534         uses 'mode_t' or 'int'.
46535         * lib/openat.c (openat): Likewise.
46536         * lib/open-safer.c (open_safer): Likewise.
46537         * m4/mode_t.m4: New file.
46538         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46539         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46540         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46541         * modules/open (Files): Add m4/mode_t.m4.
46542         * modules/openat (Files): Likewise.
46543         * modules/fcntl-safer (Files): Likewise.
46544         Suggested by Eric Blake.
46545
46546 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46547
46548         * doc/glibc-functions/fallocate.texi: New file.
46549         * doc/gnulib.texi: Include it.
46550
46551 2009-05-21  Eric Blake  <ebb9@byu.net>
46552             Bruno Haible  <bruno@clisp.org>
46553
46554         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46555         invocations.
46556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46557
46558 2009-05-21  Eric Blake  <ebb9@byu.net>
46559             Bruno Haible  <bruno@clisp.org>
46560
46561         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46562         include_next. Fix of 2008-11-20 commit.
46563         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46564         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46565         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46566         NEXT_MATH_H.
46567         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46568         instead of NEXT_MATH_H.
46569
46570 2009-05-21  Bruno Haible  <bruno@clisp.org>
46571
46572         Avoid redefinition warnings for SIZE_MAX.
46573         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46574         Reported by Simon Josefsson.
46575
46576 2009-05-21  Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46579         AC_CACHE_VAL.
46580
46581 2009-05-20  Bruno Haible  <bruno@clisp.org>
46582
46583         Make zeroptr.h work on mingw.
46584         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46585         mprotect.
46586         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46587         * modules/memchr2-tests (configure.ac): Likewise.
46588         * modules/memcmp-tests (configure.ac): Likewise.
46589         * modules/memmem-tests (configure.ac): Likewise.
46590         * modules/memrchr-tests (configure.ac): Likewise.
46591         Reported by Simon Josefsson.
46592
46593 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46594
46595         * tests/test-glob.c: Include string.h for strcmp prototype.
46596
46597 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46598
46599         * modules/getdelim (Depends-on): Add explicit stdint, although it
46600         was implicitly already pulled in via realloc-posix.
46601         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46602
46603 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46604
46605         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46606         G. Christensen" <tgc@jupiterrise.com>.
46607         * m4/sys_socket_h.m4: Check for sa_family_t.
46608         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46609         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46610         * tests/test-sys_socket.c: Check that sa_family_t works.
46611
46612 2009-05-18  Eric Blake  <ebb9@byu.net>
46613
46614         maint.mk: allow gnulib_dir in VPATH build
46615         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46616
46617 2009-05-15  Jim Meyering  <meyering@redhat.com>
46618
46619         maint.mk: Give gnulib_dir a default definition.
46620         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46621         Thus, most packages no longer need to specify this variable in cfg.mk
46622
46623 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46624
46625         rename.m4: fix typos that would make non-mingw cross-configure fail
46626         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46627
46628 2009-05-13  Eric Blake  <ebb9@byu.net>
46629
46630         mmap-anon: avoid out-of-order autoconf expansion
46631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46632         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46633         * modules/memchr-tests (Depends-on): Add extensions.
46634         * modules/memchr2-tests (Depends-on): Add extensions.
46635         * modules/memcmp-tests (Depends-on): Add extensions.
46636         * modules/memmem-tests (Depends-on): Add extensions.
46637         * modules/memrchr-tests (Depends-on): Add extensions.
46638
46639 2009-05-13  Bruno Haible  <bruno@clisp.org>
46640
46641         Make some tests ISO C 99 compliant.
46642         * tests/zerosize-ptr.h: New file.
46643         * tests/test-memchr.c: Include zerosize-ptr.h.
46644         (main): Use a zero-size object pointer instead of NULL.
46645         * tests/test-memchr2.c: Include zerosize-ptr.h.
46646         (main): Use a zero-size object pointer instead of NULL.
46647         * tests/test-memcmp.c: Include zerosize-ptr.h.
46648         (main): Use a zero-size object pointer instead of NULL.
46649         * tests/test-memmem.c: Include zerosize-ptr.h.
46650         (main): Use a zero-size object pointer instead of NULL.
46651         * tests/test-memrchr.c: Include zerosize-ptr.h.
46652         (main): Use a zero-size object pointer instead of NULL.
46653         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46654         m4/mmap-anon.m4.
46655         (Depends-on): Add getpagesize.
46656         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46657         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46658         m4/mmap-anon.m4.
46659         (Depends-on): Add getpagesize.
46660         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46661         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46662         m4/mmap-anon.m4.
46663         (Depends-on): Add getpagesize.
46664         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46665         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46666         m4/mmap-anon.m4.
46667         (Depends-on): Add getpagesize.
46668         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46669         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46670         m4/mmap-anon.m4.
46671         (Depends-on): Add getpagesize.
46672         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46673
46674 2009-05-12  Bruno Haible  <bruno@clisp.org>
46675
46676         Tests for module 'alignof'.
46677         * modules/alignof-tests: New file.
46678         * tests/test-alignof.c: New file.
46679
46680 2009-05-12  Bruno Haible  <bruno@clisp.org>
46681
46682         Fix alignof macro.
46683         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46684         vendor compilers that are always correct.
46685
46686 2009-05-12  Bruno Haible  <bruno@clisp.org>
46687
46688         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46690         not whether its fully works.
46691
46692 2009-05-12  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46695
46696 2009-05-12  Jim Meyering  <meyering@redhat.com>
46697
46698         * top/maint.mk: Adjust backslash alignment.
46699
46700 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46701
46702         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46703
46704 2009-05-11  Eric Blake  <ebb9@byu.net>
46705
46706         argp: avoid undefined behavior
46707         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46708         macros.
46709
46710 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46711
46712         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46713         user.name to prevent git commit from complaining.
46714
46715 2009-05-10  Bruno Haible  <bruno@clisp.org>
46716
46717         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46718         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46719         it rewrites every file name only once.
46720         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46721
46722 2009-05-08  Bruno Haible  <bruno@clisp.org>
46723
46724         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46725         instead of 'max'.
46726
46727 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46728
46729         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46730         sockaddr_storage test.
46731
46732 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46733
46734         * modules/sys_socket (Makefile.am): Substitute
46735         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46736         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46737         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46738         * tests/test-sys_socket.c: Check sockaddr_storage.
46739
46740 2009-05-08  Bruno Haible  <bruno@clisp.org>
46741
46742         New module 'alignof'.
46743         * lib/alignof.h: New file.
46744         * modules/alignof: New file.
46745
46746 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46747             Bruno Haible  <bruno@clisp.org>
46748
46749         Fix test-file-has-acl on FreeBSD.
46750         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46751         mask is implicitly added.
46752         * tests/test-file-has-acl.c: Include <signal.h>.
46753         (main): Terminate the test after 5 seconds.
46754         * modules/acl-tests (configure.ac): Check for alarm function.
46755
46756 2009-05-04  Bruno Haible  <bruno@clisp.org>
46757
46758         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46760         * modules/errno (configure.ac): Drop AC_REQUIRE.
46761         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46762         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46763
46764 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46765
46766         * modules/glob-tests: New module.
46767         * tests/test-glob.c: Add.
46768
46769 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46770
46771         * modules/fnmatch-tests: New module.
46772         * tests/test-fnmatch.c: Add.
46773
46774 2009-05-04  Eric Blake  <ebb9@byu.net>
46775
46776         maint: make the new no-submodule-changes rule VPATH-safe
46777         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46778
46779 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46780             Bruno Haible  <bruno@clisp.org>
46781
46782         acl: Fix infinite loop on FreeBSD.
46783         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46784         of return value from acl_get_entry.
46785         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46786         Likewise.
46787
46788 2009-05-03  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/acl-internal.h (acl_entries): Clarify return value.
46791         * lib/acl_entries.c (acl_entries): Likewise.
46792
46793 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46794
46795         Bug fix in acl module.
46796         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46797
46798 2009-05-03  Bruno Haible  <bruno@clisp.org>
46799
46800         Create gperf-generated file in the source dir, not in the build dir.
46801         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46802         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46803         * modules/unicase/locale-language (unicase/locale-languages.h):
46804         Likewise.
46805         * modules/unicase/special-casing (unicase/special-casing-table.h):
46806         Likewise.
46807         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46808         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46809         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46810         Reported by Ralf Wildenhues.
46811
46812 2009-05-03  Bruno Haible  <bruno@clisp.org>
46813
46814         * modules/fnmatch (Description, configure.ac): Taken from
46815         fnmatch-posix.
46816         * modules/fnmatch-posix: Turn into a symbolic reference to the
46817         'fnmatch' module, and deprecate.
46818         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46819
46820 2009-05-03  Bruno Haible  <bruno@clisp.org>
46821
46822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46823         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46824         Reported by Ralf Wildenhues.
46825
46826 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46827
46828         * m4/fnmatch.m4: Fix fnmatch re-define.
46829
46830 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46831
46832         priv-set: new module and tests; adapt write-any-file
46833         * lib/priv-set.c: New file.
46834         * lib/priv-set.h: New file.
46835         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46836         * lib/write-any-file.c: Simplify by using priv-set module.
46837         * m4/priv-set.m4: New file.
46838         * modules/priv-set: New file.
46839         * modules/unlinkdir: Add dependency on priv-set module.
46840         * modules/write-any-file: Likewise.
46841
46842         Tests for module 'priv-set'.
46843         * modules/priv-set-tests: New file.
46844         * tests/test-priv-set.c: New file.
46845
46846 2009-05-03  Jim Meyering  <meyering@redhat.com>
46847             Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46850         use the converted UTF-8 variant of the name instead.
46851
46852 2009-05-03  Jim Meyering  <meyering@redhat.com>
46853
46854         tests: tighten some getdate tests
46855         * tests/test-getdate.c (main): Tighten tests: require equality,
46856         not just greater than.  Set TZ envvar to UTC0.
46857
46858 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46859
46860         getdate: correctly interpret "next monday" when run on a Monday
46861         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46862         that e.g., "next tues" (when run on a tuesday) results in a date
46863         that is one week in the future, and not today's date.
46864         I.e., add a week when the wday is the same as the current one.
46865         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46866         and earlier by Martin Bernreuther and Jan Minář.
46867         * tests/test-getdate.c (main): Check that "next DAY" is always in
46868         the future and that "last DAY" is always in the past.
46869
46870 2009-05-02  Jim Meyering  <meyering@redhat.com>
46871
46872         build: ensure that a release build fails when a submodule is unclean
46873         * top/maint.mk (no-submodule-changes): New rule.
46874         (alpha beta major): Depend on it.
46875
46876 2009-05-02  Bruno Haible  <bruno@clisp.org>
46877
46878         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46879         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46880         shell variable gl_fnmatch_required to detect which variant is
46881         requested.
46882         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46883         gl_FUNC_FNMATCH_POSIX.
46884         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46885         exclude fnmatch-posix.
46886
46887 2009-05-02  Bruno Haible  <bruno@clisp.org>
46888
46889         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46890         * modules/mbsrtowcs (License): Change to LGPLv2+.
46891         * modules/strnlen1 (License): Likewise.
46892         Reported by Simon Josefsson.
46893
46894 2009-05-02  Bruno Haible  <bruno@clisp.org>
46895
46896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46897         "cross".
46898         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46899         gnulib-tool was called with option --source-base=lib.
46900
46901 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46902
46903         Use automake *-local hooks without commands, for extensibility.
46904         * modules/localcharset (Makefile.am): Rename install-exec-local
46905         rule to install-exec-localcharset, and make it a prerequisite of
46906         install-exec-local.  Likewise, rename the uninstall-local rule to
46907         uninstall-localcharset, and make it a prerequisite of the former.
46908
46909 2009-05-01  Bruno Haible  <bruno@clisp.org>
46910
46911         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46912         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46913         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46915         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46916         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46917         m4/locale-zh.m4, m4/codeset.m4.
46918
46919         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46920         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46921         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46922         m4/locale-zh.m4.
46923
46924         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46925         REPLACE_WCRTOMB if mbstate_t must be replaced.
46926         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46927         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46928
46929 2009-05-01  Bruno Haible  <bruno@clisp.org>
46930
46931         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46932         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46933         dngettext, dcngettext, textdomain, bindtextdomain,
46934         bind_textdomain_codeset): Undefine before redefining.
46935
46936 2009-04-30  Bruno Haible  <bruno@clisp.org>
46937
46938         Fix bug introduced on 2009-04-25.
46939         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46940         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46941         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46942         is defined.
46943         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46944         is defined.
46945         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46946         is defined.
46947         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46948
46949 2009-04-28  Bruno Haible  <bruno@clisp.org>
46950
46951         Comment tweaks.
46952         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46953         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46954         * lib/unicase.h (u*_casexfrm): Likewise.
46955         Reported by Paolo Bonzini.
46956
46957 2009-04-28  Bruno Haible  <bruno@clisp.org>
46958
46959         Fix a compilation error.
46960         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46961         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46962         Reported by Jim Meyering.
46963
46964 2009-04-27  Bruno Haible  <bruno@clisp.org>
46965
46966         New module 'libunistring'.
46967         * modules/libunistring: New file.
46968         * m4/libunistring.m4: New file.
46969         * MODULES.html.sh (Unicode string functions): Add it.
46970
46971 2009-04-27  Eric Blake  <ebb9@byu.net>
46972
46973         maint.mk: allow package-specific header to provide <config.h>
46974         * top/maint.mk (sc_require_config_h): New variable.
46975         (sc_require_config_h, sc_require_config_h_first): Use it.
46976
46977 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46978
46979         * top/maint.mk (sc_avoid_if_before_free): Except
46980         useless-if-before-free script.
46981
46982 2009-04-27  Eric Blake  <ebb9@byu.net>
46983
46984         maintainer-makefile: depend on all required helper scripts
46985         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46986         useless-if-before-free.
46987         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46988         version, rather than assuming gnulib checkout is available.
46989         Reported by Simen Josefsson.
46990
46991 2009-04-26  Bruno Haible  <bruno@clisp.org>
46992
46993         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46994         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46995         "../" or "..".
46996
46997 2009-04-26  Bruno Haible  <bruno@clisp.org>
46998
46999         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47000         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47001         AC_LIB_HAVE_LINKFLAGS.
47002
47003 2009-04-26  Bruno Haible  <bruno@clisp.org>
47004
47005         Simplify calling convention of u*_conv_from_encoding.
47006         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47007         u32_conv_from_encoding): Expect a resultbuf argument and return the
47008         result directly as a pointer.
47009         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47010         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47011         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47012         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47013         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47014         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47015         Update.
47016         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47017         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47018         * lib/vasnprintf.c (VASNPRINTF): Update.
47019         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47020         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47021         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47022         * NEWS: Mention the change.
47023
47024 2009-04-26  Bruno Haible  <bruno@clisp.org>
47025
47026         Simplify calling convention of u*_conv_to_encoding.
47027         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47028         u32_conv_to_encoding): Expect a resultbuf argument and return the
47029         result directly as a pointer.
47030         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47031         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47032         freeing scaled_offsets if mem_iconveha failed.
47033         * lib/unicase/u-casexfrm.h (FUNC): Update.
47034         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47035         * lib/vasnprintf.c (VASNPRINTF): Update.
47036         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47037         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47038         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47039         * NEWS: Mention the change.
47040
47041 2009-04-26  Bruno Haible  <bruno@clisp.org>
47042
47043         Avoid test failures on AIX and OSF/1.
47044         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47045         malloc(0).
47046         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47047         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47048         Likewise.
47049         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47050         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47051         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47052         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47053         * doc/posix-functions/malloc.texi: Document the portability problem
47054         related to malloc(0).
47055
47056 2009-04-26  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47059         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47060         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47061
47062 2009-04-25  Bruno Haible  <bruno@clisp.org>
47063
47064         Avoid link error when creating a namespace clean library.
47065         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47066         as macro with arguments if already defined as an alias.
47067         * lib/signbitf.c (gl_signbitf): Don't undefine.
47068         * lib/signbitd.c (gl_signbitd): Don't undefine.
47069         * lib/signbitl.c (gl_signbitl): Don't undefine.
47070
47071 2009-04-25  Jim Meyering  <meyering@redhat.com>
47072
47073         vc-list-files: fix another quoting bug
47074         * build-aux/vc-list-files: Avoid sed backslash expansion
47075         of pathological directory names.
47076
47077 2009-04-25  Eric Blake  <ebb9@byu.net>
47078
47079         vc-list-files: fix shell quoting error
47080         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47081         timestamp.
47082
47083 2009-04-25  Jim Meyering  <meyering@redhat.com>
47084
47085         vc-list-files: restore lost functionality with subdir argument
47086         * build-aux/vc-list-files: When given a non-"." sub-directory
47087         argument, substitute the $dir/ prefix back onto each resulting name.
47088         Otherwise, coreutils' root_tests check would fail.
47089
47090 2009-04-24  Eric Blake  <ebb9@byu.net>
47091
47092         vc-list-files: ignore git symlinks
47093         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47094         than ls-files, to ignore git symlinks.
47095
47096         maint.mk: import improvements from m4
47097         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47098         (move_if_change): Delete unused macro.
47099         (news-date-check, vc-diff-check): Support VPATH builds.
47100         (announcement): Likewise.  Split --bootstrap-tools list...
47101         (boostrap-tools): ...into separate list, which can be overridden
47102         in cfg.mk.
47103         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47104         requiring dependency on useless-if-before-free module.
47105         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47106         Support VPATH builds.
47107
47108 2009-04-24  Jim Meyering  <meyering@redhat.com>
47109
47110         maint.mk: remove coreutils-specific rules and variables
47111         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47112         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47113         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47114
47115         maint.mk: remove obsolete rule
47116         * top/maint.mk (rel-check): Remove rule.
47117         (WGET, WGETFLAGS): Remove now-unused variables.
47118
47119 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47120
47121         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47122         consistency.
47123
47124         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47125         '$(PATH_SEPARATOR)' instead of ':'.
47126
47127 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47128
47129         * lib/getopt1.c (main): Use 'const' for static array.
47130
47131 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47132
47133         * top/maint.mk: Sync with coreutils.
47134         * NEWS: Explain incompatibilities.
47135
47136 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47137             Bruno Haible  <bruno@clisp.org>
47138
47139         Fix cross-compilation results.
47140         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47141         statement, as third argument of AC_TRY_RUN.
47142         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47143         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47144         Likewise.
47145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47146         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47147         Likewise.
47148         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47149         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47150         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47151
47152 2009-04-20  Bruno Haible  <bruno@clisp.org>
47153
47154         Avoid test failure on mingw.
47155         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47156
47157 2009-04-20  Bruno Haible  <bruno@clisp.org>
47158
47159         Avoid compilation error on mingw.
47160         * modules/localename-tests (Depends-on): Add locale.
47161
47162 2009-04-19  Bruno Haible  <bruno@clisp.org>
47163
47164         Support for building a shared library on Windows platforms.
47165         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47166         (main): Test the presence of UNINORM_NFC here.
47167         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47168         (main): Test the presence of UNINORM_NFD here.
47169         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47170         (main): Test the presence of UNINORM_NFKC here.
47171         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47172         (main): Test the presence of UNINORM_NFKD here.
47173
47174 2009-04-19  Bruno Haible  <bruno@clisp.org>
47175
47176         Avoid a compiler warning.
47177         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47178         Change type of variable 'sequence'.
47179
47180 2009-04-19  Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/configmake (Makefile.am): When the contents of configmake.h
47183         does not change, arrange to preserve its modification time.
47184
47185 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47186
47187         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47188         gettext domain.
47189
47190 2009-04-16  Jim Meyering  <meyering@redhat.com>
47191
47192         useless-if-before-free: improve conversion code
47193         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47194         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47195
47196 2009-04-14  Bruno Haible  <bruno@clisp.org>
47197
47198         * modules/fcntl (Depends-on): Add extensions.
47199         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47200
47201 2009-04-12  Ben Pfaff  <blp@gnu.org>
47202
47203         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47204         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47205
47206 2009-03-20  Ben Pfaff  <blp@gnu.org>
47207
47208         Make rename replace existing destinations on Windows.
47209         * m4/rename.m4: Add test for Mingw.
47210         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47211         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47212         * doc/posix-functions/rename.texi: Document.
47213
47214 2009-04-10  Bruno Haible  <bruno@clisp.org>
47215
47216         New include file "iconveh.h".
47217         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47218         * lib/striconveh.h: Include it.
47219         (enum iconv_ilseq_handler): Remove definition.
47220         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47221         striconveh.h.
47222         * lib/striconveha.c: Include striconveh.h.
47223         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47224         * modules/striconveh (Files): Add lib/iconveh.h.
47225         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47226         lib/striconveh.h.
47227
47228 2009-04-10  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/uniconv.h: Update comment.
47231
47232 2009-04-10  Bruno Haible  <bruno@clisp.org>
47233
47234         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47235         always.
47236         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47237         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47238         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47239         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47240         "unistring-notinline.h", so that the function gets defined always.
47241         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47242         * lib/unistr/u8-uctomb.c: Likewise.
47243         * lib/unistr/u16-mbtouc.c: Likewise.
47244         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47245         * lib/unistr/u16-uctomb.c: Likewise.
47246         * lib/unistr/u32-mbtouc.c: Likewise.
47247         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47248         * lib/unistr/u32-uctomb.c: Likewise.
47249
47250 2009-04-10  Bruno Haible  <bruno@clisp.org>
47251
47252         Mark 'utime' obsolete.
47253         * modules/utime (Status, Notice): New sections.
47254         Suggested by Jim Meyering.
47255
47256         Fix cross-compile guess for utime test.
47257         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47258         autoconf.
47259         * doc/posix-functions/utime.texi: Give more precisions.
47260         Reported by Jan <ipif@ymail.com>.
47261
47262 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47263
47264         filevercmp: correct today's change
47265         * lib/filevercmp.c: Also handle coreutils' test inputs.
47266         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47267
47268         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47269         for reporting it.
47270         * lib/filevercmp.c: Special handle for "", "." and "..".
47271         * tests/test-filevercmp.c: Enlarge the set suite.
47272
47273 2009-04-07  Jim Meyering  <meyering@redhat.com>
47274
47275         useless-if-before-free: show how to remove braced useless free, too
47276         * build-aux/useless-if-before-free: still only in a comment, though.
47277
47278 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47279
47280         maint.mk: import changes to syntax-check macros from coreutils
47281         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47282         Use them in the relevant macros.
47283
47284 2009-04-06  Bruno Haible  <bruno@clisp.org>
47285
47286         Fix unportable use of bit-fields.
47287         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47288         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47289         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47290
47291 2009-04-06  Bruno Haible  <bruno@clisp.org>
47292
47293         Avoid test failures on AIX and OSF/1.
47294         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47295         that malloc(0) = NULL.
47296         * tests/unicase/test-u8-tolower.c (check): Likewise.
47297         * tests/unicase/test-u8-totitle.c (check): Likewise.
47298         * tests/unicase/test-u8-toupper.c (check): Likewise.
47299         * tests/unicase/test-u16-casefold.c (check): Likewise.
47300         * tests/unicase/test-u16-tolower.c (check): Likewise.
47301         * tests/unicase/test-u16-totitle.c (check): Likewise.
47302         * tests/unicase/test-u16-toupper.c (check): Likewise.
47303         * tests/unicase/test-u32-casefold.c (check): Likewise.
47304         * tests/unicase/test-u32-tolower.c (check): Likewise.
47305         * tests/unicase/test-u32-totitle.c (check): Likewise.
47306         * tests/unicase/test-u32-toupper.c (check): Likewise.
47307         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47308         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47309         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47310         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47311         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47312         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47313         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47314         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47315         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47316         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47317         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47318         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47319
47320 2009-04-05  Bruno Haible  <bruno@clisp.org>
47321
47322         Work around an autoconf limitation.
47323         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47324         comment line if it would be longer than 3 KB.
47325
47326 2009-04-05  Bruno Haible  <bruno@clisp.org>
47327
47328         Avoid test failure with libiconv-1.13.
47329         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47330         of the expected test results.
47331
47332 2009-04-05  Bruno Haible  <bruno@clisp.org>
47333
47334         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47335         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47336         that it should be installed.
47337
47338 2009-04-05  Bruno Haible  <bruno@clisp.org>
47339
47340         * gnulib-tool: New option --copy-file.
47341         (func_usage): Document it.
47342         (func_dest_tmpfilename): Moved out of func_import.
47343         (func_add_file, func_update_file): New functions, extracted from
47344         func_import.
47345         (func_import): Update.
47346
47347 2009-04-05  Karl Berry  <karl@gnu.org>
47348
47349         * README: prominently mention gnulib-tool.
47350         Rearrange sections so getting the code is near the top.
47351
47352 2009-04-05  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/unicase.h: Mention u*_cmp2.
47355         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47356         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47357         * lib/unicase/ulc-casecmp.c: Likewise.
47358         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47359         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47360         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47361         unistr/u8-cmp.
47362         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47363         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47364         unistr/u16-cmp.
47365         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47366         unistr/u32-cmp.
47367
47368         * lib/uninorm.h: Mention u*_cmp2.
47369         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47370         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47371         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47372         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47373         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47374         unistr/u8-cmp.
47375         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47376         unistr/u16-cmp.
47377         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47378         unistr/u32-cmp.
47379
47380         New module 'unistr/u32-cmp2'.
47381         * lib/unistr/u32-cmp2.c: New file.
47382         * modules/unistr/u32-cmp2: New file.
47383
47384         New module 'unistr/u16-cmp2'.
47385         * lib/unistr/u16-cmp2.c: New file.
47386         * modules/unistr/u16-cmp2: New file.
47387
47388         New module 'unistr/u8-cmp2'.
47389         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47390         * lib/unistr/u8-cmp2.c: New file.
47391         * lib/unistr/u-cmp2.h: New file.
47392         * modules/unistr/u8-cmp2: New file.
47393
47394 2009-04-05  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/unictype.h (uc_property_is_valid): New macro.
47397         * tests/unictype/test-pr_byname.c (main): Use it.
47398
47399         * lib/unistr.h: Doc fixes.
47400         * lib/uniconv.h: Doc fixes.
47401         * lib/unictype.h: Doc fixes.
47402
47403 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47404
47405         Port coreutils 7.2 to Solaris 8.
47406
47407         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47408         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47409         for Solaris 8.  This is a bit of a hack, as it means it's the
47410         caller's responsibility to add -lnsl if needed, but most likely it
47411         won't be needed since only getaddrinfo uses this and getaddrinfo
47412         isn't needed on Solaris 8.
47413
47414         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47415         problem to Solaris 8 encountered with coreutils 7.2, which
47416         resulted in a message "fnmatch.c:292: warning: passing argument 4
47417         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47418         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47419
47420 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47421
47422         * m4/ld-version-script.m4: Add FIXME comment.
47423
47424 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47425
47426         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47427         SOVERSION variable.
47428
47429 2009-04-02  Bruno Haible  <bruno@clisp.org>
47430
47431         * Makefile (info, html, dvi, pdf): Combine the rules.
47432         Suggested by Jim Meyering.
47433
47434 2009-04-01  Bruno Haible  <bruno@clisp.org>
47435
47436         * Makefile (info, html, dvi, pdf): New targets.
47437         Reported by Reuben Thomas <rrt@sc3d.org>.
47438
47439 2009-04-01  Bruno Haible  <bruno@clisp.org>
47440
47441         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47442         can be put into PATH.
47443         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47444
47445 2009-04-01  Bruno Haible  <bruno@clisp.org>
47446
47447         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47448
47449 2009-04-01  Bruno Haible  <bruno@clisp.org>
47450
47451         Rename module 'visibility'.
47452         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47453         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47454         * doc/gnulib.texi: Update.
47455         * MODULES.html.sh (Misc): Update.
47456         * NEWS: Mention the change.
47457
47458 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47459
47460         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47461         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47462         Eric Blake <ebb9@byu.net> for review.
47463         * MODULES.html.sh: Add lib-msvc-compat.
47464         * doc/gnulib.texi: Link to new section.
47465         * m4/ld-output-def.m4: New file.
47466         * doc/ld-output-def.texi: New file.
47467
47468 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47469
47470         Rename ld-version-script to lib-symbol-versions.  Suggested by
47471         Bruno Haible <bruno@clisp.org>.
47472         * modules/ld-version-script: Renamed to lib-symbol-versions.
47473         * doc/ld-version-script.texi: Fix module name.
47474         * MODULES.html.sh: Add lib-symbol-versions.
47475
47476 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47477
47478         * modules/u64-tests: New file.
47479         * tests/test-u64.c: New file.
47480
47481 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47482
47483         * MODULES.html.sh: Mention u64.
47484         * modules/u64: New module.
47485         * modules/crypto/sha512: Depend on u64 module instead of providing
47486         u64.h.
47487
47488 2009-03-27  Eric Blake  <ebb9@byu.net>
47489
47490         test-strerror: make debugging EAI_SYSTEM easier
47491         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47492         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47493         failure was EAI_SYSTEM.
47494
47495 2009-03-25  Bruno Haible  <bruno@clisp.org>
47496
47497         Fix a problem with --enable-relocatable on Solaris 7.
47498         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47499         since 2008-02-24.
47500
47501 2009-03-25  Eric Blake  <ebb9@byu.net>
47502
47503         test-sockets: avoid gcc warning
47504         * tests/test-sockets.c (main): Silence compiler warning.
47505
47506 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47507
47508         New modules nproc, pthread, contributed by Glen Lenker.
47509
47510         * MODULES.html.sh: Add pthread, nproc.
47511         * lib/nproc.c: New file.
47512         * lib/nproc.h: New file.
47513         * lib/pthread.in.h: New file.
47514         * m4/pthread.m4: New file.
47515         * modules/nproc: New file.
47516         * modules/pthread: New file.
47517
47518 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47519
47520         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47521         New variable.
47522
47523 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47524
47525         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47526         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47527         * tests/test-filevercmp.c: Add tests for backup suffixes.
47528
47529 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47530
47531         * modules/stdlib (Depends-on): Add stdint, needed when defining
47532         struct random_data on, for example, HP-UX 10.20.  Reported by
47533         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47534
47535 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47536
47537         * lib/readline.c (readline): Call fflush on stdout after printing
47538         prompt.
47539
47540 2009-03-20  Bruno Haible  <bruno@clisp.org>
47541
47542         Remove dependency from 'close' module to -lws2_32 on native Windows.
47543         * lib/close-hook.h: New file.
47544         * lib/close-hook.c: New file.
47545         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47546         w32sock.h.
47547         (_gl_close_fd_maybe_socket): Remove function.
47548         (rpl_close): Invoke execute_all_close_hooks instead of
47549         _gl_close_fd_maybe_socket.
47550         * lib/sockets.c: Include close-hook.h, w32sock.h.
47551         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47552         (close_sockets_hook): New variable.
47553         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47554         (gl_sockets_cleanup): Unregister it.
47555         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47556         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47557         * modules/close-hook: New file.
47558         * modules/close (Files): Remove lib/w32sock.h.
47559         (Depends-on): Add close-hook.
47560         (Link): Remove section.
47561         * modules/sockets (Files): Add lib/w32sock.h.
47562         (Depends-on): Add close-hook.
47563         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47564         invocation.
47565         * NEWS: Mention that LIB_CLOSE is gone.
47566
47567 2009-03-23  Eric Blake  <ebb9@byu.net>
47568
47569         signal-tests: test previous patch
47570         * tests/test-signal.c: New file.
47571         * modules/signal-tests: Likewise.
47572
47573         signal.h: always support 'volatile sig_atomic_t'
47574         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47575         (gl_SIGNAL_H_DEFAULTS): Add a default.
47576         * modules/signal (Makefile.am): Substitute if needed.
47577         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47578         users can blindly add volatile.
47579         * doc/posix-headers/signal.texi (signal.h): Document it.
47580         Reported by Matthew Woehlke.
47581
47582 2009-03-23  Jim Meyering  <meyering@redhat.com>
47583
47584         pathmax: PATH_MAX: use pathconf only when available
47585         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47586         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47587         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47588         This avoids a link failure in a PSP cross-compilation environment
47589         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47590
47591         * lib/vasnprintf.c (divide): Fix typo in comment.
47592
47593 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47594
47595         * gnulib-tool (func_filter_filelist): Fix comment.
47596
47597 2009-03-20  Bruno Haible  <bruno@clisp.org>
47598
47599         Make sockets.h self-contained.
47600         * lib/sockets.c: Include sockets.h first.
47601         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47602
47603 2009-03-19  Eric Blake  <ebb9@byu.net>
47604
47605         doc: mention more functions added in cygwin 1.7.0
47606         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47607         addition.
47608         * doc/posix-functions/log2f.texi: Likewise.
47609
47610 2009-03-19  Jim Meyering  <meyering@redhat.com>
47611
47612         fsusage: avoid syntax error due to statement-before-declaration
47613         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47614         after all declarations.  Reported by Matthew Woehlke in
47615         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47616
47617 2009-03-18  Eric Blake  <ebb9@byu.net>
47618
47619         build-aux/compile: sync from automake
47620         * build-aux/compile: New file, from automake.
47621         * config/srclist.txt: Mention build-aux/compile.
47622
47623 2009-03-17  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/git-merge-changelog.c: Fix typo in comment.
47626         Reported by Reuben Thomas <rrt@sc3d.org>.
47627
47628 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47629
47630         * m4/regex.m4: update and improve help for
47631         --without-included-regex.
47632
47633 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47634
47635         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47636         failure on missing include files.
47637
47638 2009-03-17  Eric Blake  <ebb9@byu.net>
47639
47640         doc: mention more functions added in cygwin 1.7.0
47641         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47642         addition.
47643         * doc/posix-functions/fwscanf.texi: Likewise.
47644         * doc/posix-functions/swprintf.texi: Likewise.
47645         * doc/posix-functions/swscanf.texi: Likewise.
47646         * doc/posix-functions/vfwprintf.texi: Likewise.
47647         * doc/posix-functions/vfwscanf.texi: Likewise.
47648         * doc/posix-functions/vswprintf.texi: Likewise.
47649         * doc/posix-functions/vswscanf.texi: Likewise.
47650         * doc/posix-functions/vwprintf.texi: Likewise.
47651         * doc/posix-functions/vwscanf.texi: Likewise.
47652         * doc/posix-functions/wcscasecmp.texi: Likewise.
47653         * doc/posix-functions/wcsdup.texi: Likewise.
47654         * doc/posix-functions/wcsftime.texi: Likewise.
47655         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47656         * doc/posix-functions/wprintf.texi: Likewise.
47657         * doc/posix-functions/wscanf.texi: Likewise.
47658         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47659
47660 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47661
47662         maint.mk: really add $(AM_MAKEFLAGS)
47663         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47664         was inadvertently omitted in the last commit.
47665         Spotted by Bruno Haible.
47666
47667         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47668         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47669         $(AM_MAKEFLAGS)' rather than plain `make'.
47670
47671         gnulib-tool: execute $MAKE not make
47672         * gnulib-tool: Default $MAKE to 'make'.
47673         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47674         than make.  Initialize $MAKE in the do-autobuild script.
47675
47676         gnulib-tool: use $MAKE not make in generated files
47677         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47678         make, in generated files.  Initialize $MAKE in the do-autobuild
47679         script.
47680
47681         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47682
47683         GNUmakefile: disable parallelism only for multiple, recursive targets
47684         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47685         additions in the Makefile.
47686         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47687         by Automake.
47688         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47689         are listed on the command line and at least one of them is
47690         listed in $(ALL_RECURSIVE_TARGETS).
47691
47692 2009-03-14  Bruno Haible  <bruno@clisp.org>
47693
47694         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47695         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47696         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47697         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47698         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47699         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47700         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47701         unistr/u8-uctomb.
47702         * modules/unistr/u8-strchr (Depends-on): Likewise.
47703         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47704         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47705         unistr/u16-uctomb.
47706         * modules/unistr/u16-strchr (Depends-on): Likewise.
47707         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47708
47709 2009-03-12  Bruno Haible  <bruno@clisp.org>
47710
47711         Work around select() bug on Interix 3.5.
47712         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47713         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47714         * m4/select.m4: New file.
47715         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47716         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47717         * modules/select (Files): Add m4/select.m4.
47718         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47719         * modules/nanosleep (Depends-on): Add select.
47720         * modules/poll (Depends-on): Likewise.
47721         * doc/posix-functions/select.texi: Mention the Interix bug.
47722         Reported by Markus Duft <mduft@gentoo.org>.
47723
47724         * lib/select.c: Renamed from lib/winsock-select.c.
47725         * modules/select (Files): Add lib/select.c, remove
47726         lib/winsock-select.c.
47727         (configure.ac): Update.
47728
47729 2009-03-12  Jim Meyering  <meyering@redhat.com>
47730
47731         avoid gcc warnings about unused macro definitions
47732         * lib/readtokens.c (STREQ): Remove unused definition.
47733         * lib/xmalloc.c (SIZE_MAX): Likewise.
47734         * lib/openat-die.c (N_): Likewise.
47735         * lib/mountlist.c (SIZE_MAX): Remove definition.
47736         Instead, include <stdint.h>.
47737         * lib/readutmp.c: Likewise.
47738         * modules/readutmp (Depends-on): Add stdint.
47739         * modules/mountlist (Depends-on): Add stdint.
47740         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47741
47742 2009-03-10  Bruno Haible  <bruno@clisp.org>
47743
47744         Tests for module 'mbmemcasecoll'.
47745         * modules/mbmemcasecoll-tests: New file.
47746         * tests/test-mbmemcasecoll1.sh: New file.
47747         * tests/test-mbmemcasecoll2.sh: New file.
47748         * tests/test-mbmemcasecoll3.sh: New file.
47749         * tests/test-mbmemcasecoll.c: New file.
47750
47751         New module 'mbmemcasecoll'.
47752         * lib/mbmemcasecoll.h: New file.
47753         * lib/mbmemcasecoll.c: New file.
47754         * modules/mbmemcasecoll: New file.
47755
47756         * tests/test-mbmemcasecmp.h: New file, extracted from
47757         tests/test-mbmemcasecmp.c.
47758         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47759         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47760         (main): Update.
47761         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47762
47763 2009-03-09  Bruno Haible  <bruno@clisp.org>
47764
47765         Tests for module 'mbmemcasecmp'.
47766         * modules/mbmemcasecmp-tests: New file.
47767         * tests/test-mbmemcasecmp1.sh: New file.
47768         * tests/test-mbmemcasecmp2.sh: New file.
47769         * tests/test-mbmemcasecmp3.sh: New file.
47770         * tests/test-mbmemcasecmp.c: New file.
47771
47772         New module 'mbmemcasecmp'.
47773         * lib/mbmemcasecmp.h: New file.
47774         * lib/mbmemcasecmp.c: New file.
47775         * modules/mbmemcasecmp: New file.
47776
47777 2009-03-09  Bruno Haible  <bruno@clisp.org>
47778
47779         Tests for module 'unicase/ulc-casecoll'.
47780         * modules/unicase/ulc-casecoll-tests: New file.
47781         * tests/unicase/test-ulc-casecoll1.sh: New file.
47782         * tests/unicase/test-ulc-casecoll2.sh: New file.
47783         * tests/unicase/test-ulc-casecoll.c: New file.
47784
47785         New module 'unicase/ulc-casecoll'.
47786         * lib/unicase.h (ulc_casecoll): New declaration.
47787         * lib/unicase/ulc-casecoll.c: New file.
47788         * modules/unicase/ulc-casecoll: New file.
47789
47790         New module 'unicase/ulc-casexfrm'.
47791         * lib/unicase.h (ulc_casexfrm): New declaration.
47792         * lib/unicase/ulc-casexfrm.c: New file.
47793         * modules/unicase/ulc-casexfrm: New file.
47794
47795 2009-03-09  Bruno Haible  <bruno@clisp.org>
47796
47797         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47798         invocations.
47799
47800         * m4/mbscasecmp.m4: Remove file.
47801         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47802         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47803
47804         * m4/mbscasestr.m4: Remove file.
47805         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47806         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47807
47808         * m4/mbschr.m4: Remove file.
47809         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47810         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47811
47812         * m4/mbscspn.m4: Remove file.
47813         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47814         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47815
47816         * m4/mbslen.m4: Remove file.
47817         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47818         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47819
47820         * m4/mbsncasecmp.m4: Remove file.
47821         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47822         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47823
47824         * m4/mbsnlen.m4: Remove file.
47825         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47826         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47827
47828         * m4/mbspbrk.m4: Remove file.
47829         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47830         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47831
47832         * m4/mbspcasecmp.m4: Remove file.
47833         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47834         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47835
47836         * m4/mbsrchr.m4: Remove file.
47837         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47838         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47839
47840         * m4/mbssep.m4: Remove file.
47841         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47842         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47843
47844         * m4/mbsspn.m4: Remove file.
47845         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47846         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47847
47848         * m4/mbsstr.m4: Remove file.
47849         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47850         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47851
47852         * m4/mbstok_r.m4: Remove file.
47853         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47854         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47855
47856         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47857
47858         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47859         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47860
47861         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47862
47863 2009-03-08  Bruno Haible  <bruno@clisp.org>
47864
47865         Tests for module 'unicase/ulc-casecmp'.
47866         * modules/unicase/ulc-casecmp-tests: New file.
47867         * tests/unicase/test-ulc-casecmp1.sh: New file.
47868         * tests/unicase/test-ulc-casecmp2.sh: New file.
47869         * tests/unicase/test-ulc-casecmp.c: New file.
47870
47871         New module 'unicase/ulc-casecmp'.
47872         * lib/unicase.h (ulc_casecmp): New declaration.
47873         * lib/unicase/ulc-casecmp.c: New file.
47874         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47875         'const SRC_UNIT *'.
47876         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47877         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47878         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47879         * modules/unicase/ulc-casecmp: New file.
47880
47881         Tests for module 'unicase/u32-is-cased'.
47882         * modules/unicase/u32-is-cased-tests: New file.
47883         * tests/unicase/test-u32-is-cased.c: New file.
47884
47885         Tests for module 'unicase/u16-is-cased'.
47886         * modules/unicase/u16-is-cased-tests: New file.
47887         * tests/unicase/test-u16-is-cased.c: New file.
47888
47889         Tests for module 'unicase/u8-is-cased'.
47890         * modules/unicase/u8-is-cased-tests: New file.
47891         * tests/unicase/test-u8-is-cased.c: New file.
47892         * tests/unicase/test-is-cased.h: New file.
47893
47894         New module 'unicase/u32-is-cased'.
47895         * lib/unicase/u32-is-cased.c: New file.
47896         * modules/unicase/u32-is-cased: New file.
47897
47898         New module 'unicase/u16-is-cased'.
47899         * lib/unicase/u16-is-cased.c: New file.
47900         * modules/unicase/u16-is-cased: New file.
47901
47902         New module 'unicase/u8-is-cased'.
47903         * lib/unicase/u8-is-cased.c: New file.
47904         * lib/unicase/u-is-cased.h: New file.
47905         * modules/unicase/u8-is-cased: New file.
47906
47907         Tests for module 'unicase/u32-is-casefolded'.
47908         * modules/unicase/u32-is-casefolded-tests: New file.
47909         * tests/unicase/test-u32-is-casefolded.c: New file.
47910
47911         Tests for module 'unicase/u16-is-casefolded'.
47912         * modules/unicase/u16-is-casefolded-tests: New file.
47913         * tests/unicase/test-u16-is-casefolded.c: New file.
47914
47915         Tests for module 'unicase/u8-is-casefolded'.
47916         * modules/unicase/u8-is-casefolded-tests: New file.
47917         * tests/unicase/test-u8-is-casefolded.c: New file.
47918         * tests/unicase/test-is-casefolded.h: New file.
47919
47920         New module 'unicase/u32-is-casefolded'.
47921         * lib/unicase/u32-is-casefolded.c: New file.
47922         * modules/unicase/u32-is-casefolded: New file.
47923
47924         New module 'unicase/u16-is-casefolded'.
47925         * lib/unicase/u16-is-casefolded.c: New file.
47926         * modules/unicase/u16-is-casefolded: New file.
47927
47928         New module 'unicase/u8-is-casefolded'.
47929         * lib/unicase/u8-is-casefolded.c: New file.
47930         * modules/unicase/u8-is-casefolded: New file.
47931
47932         Tests for module 'unicase/u32-is-titlecase'.
47933         * modules/unicase/u32-is-titlecase-tests: New file.
47934         * tests/unicase/test-u32-is-titlecase.c: New file.
47935
47936         Tests for module 'unicase/u16-is-titlecase'.
47937         * modules/unicase/u16-is-titlecase-tests: New file.
47938         * tests/unicase/test-u16-is-titlecase.c: New file.
47939
47940         Tests for module 'unicase/u8-is-titlecase'.
47941         * modules/unicase/u8-is-titlecase-tests: New file.
47942         * tests/unicase/test-u8-is-titlecase.c: New file.
47943         * tests/unicase/test-is-titlecase.h: New file.
47944
47945         New module 'unicase/u32-is-titlecase'.
47946         * lib/unicase/u32-is-titlecase.c: New file.
47947         * modules/unicase/u32-is-titlecase: New file.
47948
47949         New module 'unicase/u16-is-titlecase'.
47950         * lib/unicase/u16-is-titlecase.c: New file.
47951         * modules/unicase/u16-is-titlecase: New file.
47952
47953         New module 'unicase/u8-is-titlecase'.
47954         * lib/unicase/u8-is-titlecase.c: New file.
47955         * modules/unicase/u8-is-titlecase: New file.
47956
47957         Tests for module 'unicase/u32-is-lowercase'.
47958         * modules/unicase/u32-is-lowercase-tests: New file.
47959         * tests/unicase/test-u32-is-lowercase.c: New file.
47960
47961         Tests for module 'unicase/u16-is-lowercase'.
47962         * modules/unicase/u16-is-lowercase-tests: New file.
47963         * tests/unicase/test-u16-is-lowercase.c: New file.
47964
47965         Tests for module 'unicase/u8-is-lowercase'.
47966         * modules/unicase/u8-is-lowercase-tests: New file.
47967         * tests/unicase/test-u8-is-lowercase.c: New file.
47968         * tests/unicase/test-is-lowercase.h: New file.
47969
47970         New module 'unicase/u32-is-lowercase'.
47971         * lib/unicase/u32-is-lowercase.c: New file.
47972         * modules/unicase/u32-is-lowercase: New file.
47973
47974         New module 'unicase/u16-is-lowercase'.
47975         * lib/unicase/u16-is-lowercase.c: New file.
47976         * modules/unicase/u16-is-lowercase: New file.
47977
47978         New module 'unicase/u8-is-lowercase'.
47979         * lib/unicase/u8-is-lowercase.c: New file.
47980         * modules/unicase/u8-is-lowercase: New file.
47981
47982         Tests for module 'unicase/u32-is-uppercase'.
47983         * modules/unicase/u32-is-uppercase-tests: New file.
47984         * tests/unicase/test-u32-is-uppercase.c: New file.
47985
47986         Tests for module 'unicase/u16-is-uppercase'.
47987         * modules/unicase/u16-is-uppercase-tests: New file.
47988         * tests/unicase/test-u16-is-uppercase.c: New file.
47989
47990         Tests for module 'unicase/u8-is-uppercase'.
47991         * modules/unicase/u8-is-uppercase-tests: New file.
47992         * tests/unicase/test-u8-is-uppercase.c: New file.
47993         * tests/unicase/test-is-uppercase.h: New file.
47994
47995         New module 'unicase/u32-is-uppercase'.
47996         * lib/unicase/u32-is-uppercase.c: New file.
47997         * modules/unicase/u32-is-uppercase: New file.
47998
47999         New module 'unicase/u16-is-uppercase'.
48000         * lib/unicase/u16-is-uppercase.c: New file.
48001         * modules/unicase/u16-is-uppercase: New file.
48002
48003         New module 'unicase/u8-is-uppercase'.
48004         * lib/unicase/u8-is-uppercase.c: New file.
48005         * modules/unicase/u8-is-uppercase: New file.
48006
48007         New module 'unicase/u32-is-invariant'.
48008         * lib/unicase/u32-is-invariant.c: New file.
48009         * modules/unicase/u32-is-invariant: New file.
48010
48011         New module 'unicase/u16-is-invariant'.
48012         * lib/unicase/u16-is-invariant.c: New file.
48013         * modules/unicase/u16-is-invariant: New file.
48014
48015         New module 'unicase/u8-is-invariant'.
48016         * lib/unicase/u8-is-invariant.c: New file.
48017         * lib/unicase/invariant.h: New file.
48018         * lib/unicase/u-is-invariant.h: New file.
48019         * modules/unicase/u8-is-invariant: New file.
48020
48021         Tests for module 'unicase/u32-casecoll'.
48022         * modules/unicase/u32-casecoll-tests: New file.
48023         * tests/unicase/test-u32-casecoll.c: New file.
48024
48025         Tests for module 'unicase/u16-casecoll'.
48026         * modules/unicase/u16-casecoll-tests: New file.
48027         * tests/unicase/test-u16-casecoll.c: New file.
48028
48029         Tests for module 'unicase/u8-casecoll'.
48030         * modules/unicase/u8-casecoll-tests: New file.
48031         * tests/unicase/test-u8-casecoll.c: New file.
48032
48033         New module 'unicase/u32-casecoll'.
48034         * lib/unicase/u32-casecoll.c: New file.
48035         * modules/unicase/u32-casecoll: New file.
48036
48037         New module 'unicase/u16-casecoll'.
48038         * lib/unicase/u16-casecoll.c: New file.
48039         * modules/unicase/u16-casecoll: New file.
48040
48041         New module 'unicase/u8-casecoll'.
48042         * lib/unicase/u8-casecoll.c: New file.
48043         * lib/unicase/u-casecoll.h: New file.
48044         * modules/unicase/u8-casecoll: New file.
48045
48046         New module 'unicase/u32-casexfrm'.
48047         * lib/unicase/u32-casexfrm.c: New file.
48048         * modules/unicase/u32-casexfrm: New file.
48049
48050         New module 'unicase/u16-casexfrm'.
48051         * lib/unicase/u16-casexfrm.c: New file.
48052         * modules/unicase/u16-casexfrm: New file.
48053
48054         New module 'unicase/u8-casexfrm'.
48055         * lib/unicase/u8-casexfrm.c: New file.
48056         * lib/unicase/u-casexfrm.h: New file.
48057         * modules/unicase/u8-casexfrm: New file.
48058
48059         Tests for module 'unicase/u32-casecmp'.
48060         * modules/unicase/u32-casecmp-tests: New file.
48061         * tests/unicase/test-u32-casecmp.c: New file.
48062
48063         Tests for module 'unicase/u16-casecmp'.
48064         * modules/unicase/u16-casecmp-tests: New file.
48065         * tests/unicase/test-u16-casecmp.c: New file.
48066
48067         Tests for module 'unicase/u8-casecmp'.
48068         * modules/unicase/u8-casecmp-tests: New file.
48069         * tests/unicase/test-u8-casecmp.c: New file.
48070         * tests/unicase/test-casecmp.h: New file.
48071
48072         New module 'unicase/u32-casecmp'.
48073         * lib/unicase/u32-casecmp.c: New file.
48074         * modules/unicase/u32-casecmp: New file.
48075
48076         New module 'unicase/u16-casecmp'.
48077         * lib/unicase/u16-casecmp.c: New file.
48078         * modules/unicase/u16-casecmp: New file.
48079
48080         New module 'unicase/u8-casecmp'.
48081         * lib/unicase/u8-casecmp.c: New file.
48082         * lib/unicase/u-casecmp.h: New file.
48083         * modules/unicase/u8-casecmp: New file.
48084
48085         Tests for module 'unicase/u32-casefold'.
48086         * modules/unicase/u32-casefold-tests: New file.
48087         * tests/unicase/test-u32-casefold.c: New file.
48088
48089         Tests for module 'unicase/u16-casefold'.
48090         * modules/unicase/u16-casefold-tests: New file.
48091         * tests/unicase/test-u16-casefold.c: New file.
48092
48093         Tests for module 'unicase/u8-casefold'.
48094         * modules/unicase/u8-casefold-tests: New file.
48095         * tests/unicase/test-u8-casefold.c: New file.
48096
48097         New module 'unicase/u32-casefold'.
48098         * lib/unicase/u32-casefold.c: New file.
48099         * modules/unicase/u32-casefold: New file.
48100
48101         New module 'unicase/u16-casefold'.
48102         * lib/unicase/u16-casefold.c: New file.
48103         * modules/unicase/u16-casefold: New file.
48104
48105         New module 'unicase/u8-casefold'.
48106         * lib/unicase/u8-casefold.c: New file.
48107         * lib/unicase/u-casefold.h: New file.
48108         * modules/unicase/u8-casefold: New file.
48109
48110         New module 'unicase/tocasefold'.
48111         * lib/unicase/casefold.h: New file.
48112         * lib/unicase/tocasefold.c: New file.
48113         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48114         * modules/unicase/tocasefold: New file.
48115
48116         Tests for module 'unicase/u32-totitle'.
48117         * modules/unicase/u32-totitle-tests: New file.
48118         * tests/unicase/test-u32-totitle.c: New file.
48119
48120         Tests for module 'unicase/u16-totitle'.
48121         * modules/unicase/u16-totitle-tests: New file.
48122         * tests/unicase/test-u16-totitle.c: New file.
48123
48124         Tests for module 'unicase/u8-totitle'.
48125         * modules/unicase/u8-totitle-tests: New file.
48126         * tests/unicase/test-u8-totitle.c: New file.
48127
48128         New module 'unicase/u32-totitle'.
48129         * lib/unicase/u32-totitle.c: New file.
48130         * modules/unicase/u32-totitle: New file.
48131
48132         New module 'unicase/u16-totitle'.
48133         * lib/unicase/u16-totitle.c: New file.
48134         * modules/unicase/u16-totitle: New file.
48135
48136         New module 'unicase/u8-totitle'.
48137         * lib/unicase/u8-totitle.c: New file.
48138         * lib/unicase/u-totitle.h: New file.
48139         * modules/unicase/u8-totitle: New file.
48140
48141         Tests for module 'unicase/u32-tolower'.
48142         * modules/unicase/u32-tolower-tests: New file.
48143         * tests/unicase/test-u32-tolower.c: New file.
48144
48145         Tests for module 'unicase/u16-tolower'.
48146         * modules/unicase/u16-tolower-tests: New file.
48147         * tests/unicase/test-u16-tolower.c: New file.
48148
48149         Tests for module 'unicase/u8-tolower'.
48150         * modules/unicase/u8-tolower-tests: New file.
48151         * tests/unicase/test-u8-tolower.c: New file.
48152
48153         New module 'unicase/u32-tolower'.
48154         * lib/unicase/u32-tolower.c: New file.
48155         * modules/unicase/u32-tolower: New file.
48156
48157         New module 'unicase/u16-tolower'.
48158         * lib/unicase/u16-tolower.c: New file.
48159         * modules/unicase/u16-tolower: New file.
48160
48161         New module 'unicase/u8-tolower'.
48162         * lib/unicase/u8-tolower.c: New file.
48163         * modules/unicase/u8-tolower: New file.
48164
48165         Tests for module 'unicase/u32-toupper'.
48166         * modules/unicase/u32-toupper-tests: New file.
48167         * tests/unicase/test-u32-toupper.c: New file.
48168
48169         Tests for module 'unicase/u16-toupper'.
48170         * modules/unicase/u16-toupper-tests: New file.
48171         * tests/unicase/test-u16-toupper.c: New file.
48172
48173         Tests for module 'unicase/u8-toupper'.
48174         * modules/unicase/u8-toupper-tests: New file.
48175         * tests/unicase/test-u8-toupper.c: New file.
48176
48177         New module 'unicase/u32-toupper'.
48178         * lib/unicase/u32-toupper.c: New file.
48179         * modules/unicase/u32-toupper: New file.
48180
48181         New module 'unicase/u16-toupper'.
48182         * lib/unicase/u16-toupper.c: New file.
48183         * modules/unicase/u16-toupper: New file.
48184
48185         New module 'unicase/u8-toupper'.
48186         * lib/unicase/u8-toupper.c: New file.
48187         * modules/unicase/u8-toupper: New file.
48188
48189         New module 'unicase/u32-casemap'.
48190         * lib/unicase/u32-casemap.c: New file.
48191         * modules/unicase/u32-casemap: New file.
48192
48193         New module 'unicase/u16-casemap'.
48194         * lib/unicase/u16-casemap.c: New file.
48195         * modules/unicase/u16-casemap: New file.
48196
48197         New module 'unicase/u8-casemap'.
48198         * lib/unicase/unicasemap.h: New file.
48199         * lib/unicase/u8-casemap.c: New file.
48200         * lib/unicase/u-casemap.h: New file.
48201         * modules/unicase/u8-casemap: New file.
48202
48203         New module 'unicase/special-casing'.
48204         * lib/unicase/special-casing.h: New file.
48205         * lib/unicase/special-casing.c: New file.
48206         * lib/unicase/special-casing-table.gperf: New file, generated by
48207         gen-uni-tables.c.
48208         * modules/unicase/special-casing: New file.
48209
48210         Tests for module 'unicase/locale-language'.
48211         * modules/unicase/locale-language-tests: New file.
48212         * tests/unicase/test-locale-language.sh: New file.
48213         * tests/unicase/test-locale-language.c: New file.
48214
48215         New module 'unicase/locale-language'.
48216         * lib/unicase/locale-language.c: New file.
48217         * lib/unicase/locale-languages.gperf: New file.
48218         * modules/unicase/locale-language: New file.
48219
48220         Generate more tables for case conversion and case folding.
48221         * lib/gen-uni-tables.c (SCC_*): New enum items.
48222         (struct special_casing_rule): New type.
48223         (casing_rules, num_casing_rules, allocated_casing_rules): New
48224         variables.
48225         (add_casing_rule, fill_casing_rules): New functions.
48226         (struct casefold_rule): New type.
48227         (casefolding_rules, num_casefolding_rules,
48228         allocated_casefolding_rules): New variables.
48229         (fill_casefolding_rules): New function.
48230         (unicode_casefold): New variable.
48231         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48232         sort_casing_rules, output_casing_rules): New functions.
48233         (main): Accept to more arguments: SpecialCasing.txt and
48234         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48235         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48236         Output mapping for casefolding.
48237
48238         * lib/unicase.h: Include stdbool.h, uninorm.h.
48239         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48240         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48241         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48242         arguments.
48243         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48244         resultp arguments.
48245         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48246         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48247         resultp arguments.
48248         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48249         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48250         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48251         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48252         declarations.
48253         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48254
48255 2009-03-08  Bruno Haible  <bruno@clisp.org>
48256
48257         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48258         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48259         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48260         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48261
48262 2009-03-07  Bruno Haible  <bruno@clisp.org>
48263
48264         Adjust u*_normcmp, u*_normcoll API.
48265         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48266         u16_normcoll, u32_normcoll): Change failure conventions.
48267         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48268         errno and return -1.
48269         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48270
48271 2009-03-07  Bruno Haible  <bruno@clisp.org>
48272
48273         Tests for module 'uninorm/u32-normcoll'.
48274         * modules/uninorm/u32-normcoll-tests: New file.
48275         * tests/uninorm/test-u32-normcoll.c: New file.
48276
48277         Tests for module 'uninorm/u16-normcoll'.
48278         * modules/uninorm/u16-normcoll-tests: New file.
48279         * tests/uninorm/test-u16-normcoll.c: New file.
48280
48281         Tests for module 'uninorm/u8-normcoll'.
48282         * modules/uninorm/u8-normcoll-tests: New file.
48283         * tests/uninorm/test-u8-normcoll.c: New file.
48284
48285 2009-03-07  Bruno Haible  <bruno@clisp.org>
48286
48287         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48288         tests/uninorm/test-u32-normcmp.c.
48289         * tests/uninorm/test-u32-normcmp.c: Include it.
48290         (test_nonascii): New function, extracted from main. Add some more
48291         tests.
48292         (main): Invoke test_ascii and test_nonascii.
48293         * modules/uninorm/u32-normcmp-tests (Files): Add
48294         tests/uninorm/test-u32-normcmp.h.
48295         (Depends-on): Remove uninorm/u32-normcmp.
48296
48297         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48298         tests/uninorm/test-u16-normcmp.c.
48299         * tests/uninorm/test-u16-normcmp.c: Include it.
48300         (test_nonascii): New function, extracted from main. Add some more
48301         tests.
48302         (main): Invoke test_ascii and test_nonascii.
48303         * modules/uninorm/u16-normcmp-tests (Files): Add
48304         tests/uninorm/test-u16-normcmp.h.
48305         (Depends-on): Remove uninorm/u16-normcmp.
48306
48307         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48308         tests/uninorm/test-u8-normcmp.c.
48309         * tests/uninorm/test-u8-normcmp.c: Include it.
48310         (test_nonascii): New function, extracted from main. Add some more
48311         tests.
48312         (main): Invoke test_ascii and test_nonascii.
48313         * modules/uninorm/u8-normcmp-tests (Files): Add
48314         tests/uninorm/test-u8-normcmp.h.
48315         (Depends-on): Remove uninorm/u8-normcmp.
48316
48317 2009-03-07  Bruno Haible  <bruno@clisp.org>
48318
48319         New module 'uninorm/u32-normcoll'.
48320         * lib/uninorm/u32-normcoll.c: New file.
48321         * modules/uninorm/u32-normcoll: New file.
48322
48323         New module 'uninorm/u16-normcoll'.
48324         * lib/uninorm/u16-normcoll.c: New file.
48325         * modules/uninorm/u16-normcoll: New file.
48326
48327         New module 'uninorm/u8-normcoll'.
48328         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48329         declarations.
48330         * lib/uninorm/u8-normcoll.c: New file.
48331         * lib/uninorm/u-normcoll.h: New file.
48332         * modules/uninorm/u8-normcoll: New file.
48333
48334         New module 'uninorm/u32-normxfrm'.
48335         * lib/uninorm/u32-normxfrm.c: New file.
48336         * modules/uninorm/u32-normxfrm: New file.
48337
48338         New module 'uninorm/u16-normxfrm'.
48339         * lib/uninorm/u16-normxfrm.c: New file.
48340         * modules/uninorm/u16-normxfrm: New file.
48341
48342         New module 'uninorm/u8-normxfrm'.
48343         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48344         declarations.
48345         * lib/uninorm/u8-normxfrm.c: New file.
48346         * lib/uninorm/u-normxfrm.h: New file.
48347         * modules/uninorm/u8-normxfrm: New file.
48348
48349 2009-03-07  Bruno Haible  <bruno@clisp.org>
48350
48351         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48352         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48353         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48354
48355 2009-03-07  Bruno Haible  <bruno@clisp.org>
48356
48357         New module 'memxfrm'.
48358         * lib/memxfrm.h: New file.
48359         * lib/memxfrm.c: New file.
48360         * modules/memxfrm: New file.
48361
48362 2009-03-07  Bruno Haible  <bruno@clisp.org>
48363
48364         New module 'memcmp2'.
48365         * lib/memcmp2.h: New file.
48366         * lib/memcmp2.c: New file.
48367         * modules/memcmp2: New file.
48368
48369 2009-03-07  Bruno Haible  <bruno@clisp.org>
48370
48371         Tests for module 'uninorm/decomposing-form'.
48372         * modules/uninorm/decomposing-form-tests: New file.
48373         * tests/uninorm/test-decomposing-form.c: New file.
48374
48375         New module 'uninorm/decomposing-form'.
48376         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48377         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48378         Add 'decomposing_variant' field.
48379         * lib/uninorm/decomposing-form.c: New file.
48380         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48381         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48382         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48383         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48384         * modules/uninorm/decomposing-form: New file.
48385         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48386         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48387
48388 2009-03-07  Bruno Haible  <bruno@clisp.org>
48389
48390         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48391         strings.
48392
48393 2009-03-06  Bruno Haible  <bruno@clisp.org>
48394
48395         Tests for module 'uninorm/u32-normcmp'.
48396         * tests/uninorm/test-u32-normcmp.c: New file.
48397         * modules/uninorm/u32-normcmp-tests: New file.
48398
48399         Tests for module 'uninorm/u16-normcmp'.
48400         * tests/uninorm/test-u16-normcmp.c: New file.
48401         * modules/uninorm/u16-normcmp-tests: New file.
48402
48403         Tests for module 'uninorm/u8-normcmp'.
48404         * tests/uninorm/test-u8-normcmp.c: New file.
48405         * modules/uninorm/u8-normcmp-tests: New file.
48406
48407         New module 'uninorm/u32-normcmp'.
48408         * lib/uninorm/u32-normcmp.c: New file.
48409         * modules/uninorm/u32-normcmp: New file.
48410
48411         New module 'uninorm/u16-normcmp'.
48412         * lib/uninorm/u16-normcmp.c: New file.
48413         * modules/uninorm/u16-normcmp: New file.
48414
48415         New module 'uninorm/u8-normcmp'.
48416         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48417         declarations.
48418         * lib/uninorm/u8-normcmp.c: New file.
48419         * lib/uninorm/u-normcmp.h: New file.
48420         * modules/uninorm/u8-normcmp: New file.
48421
48422 2009-03-06  Bruno Haible  <bruno@clisp.org>
48423
48424         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48425         Reported by Eric Blake.
48426
48427 2009-03-06  Eric Blake  <ebb9@byu.net>
48428             Bruno Haible  <bruno@clisp.org>
48429
48430         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48431         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48432         condition.
48433         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48434         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48435         condition.
48436         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48437
48438 2009-03-06  Eric Blake  <ebb9@byu.net>
48439
48440         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48441         to avoid compiler warnings.
48442         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48443
48444 2009-03-05  Bruno Haible  <bruno@clisp.org>
48445
48446         * tests/test-ftell.c (main): Disable test beyond end of file on
48447         FreeMiNT.
48448         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48449
48450 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48451
48452         * lib/filevercmp.c: Move hidden files up in ordering.
48453         * tests/test-filevercmp.c: Add tests for hidden files.
48454
48455 2009-03-04  Bruno Haible  <bruno@clisp.org>
48456
48457         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48458         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48459         AM_CFLAGS.
48460         Reported by Simon Josefsson.
48461
48462 2009-03-03  Bruno Haible  <bruno@clisp.org>
48463
48464         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48465         Reported by Simon Josefsson.
48466
48467         * doc/ld-version-script.texi: Update node reference.
48468
48469 2009-03-03  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/visibility (License): Change to 'unlimited'.
48472         Suggested by Simon Josefsson.
48473
48474 2009-03-03  Jim Meyering  <meyering@redhat.com>
48475
48476         unlinkdir: cannot_unlink_dir may modify process state
48477         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48478         it's neither thread-safe nor appropriate for use in a library.
48479
48480 2009-03-03  Eric Blake  <ebb9@byu.net>
48481
48482         test-closein: silence test under Darwin
48483         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48484         care if it dies from EPIPE or EBADF.
48485
48486 2009-03-03  Bruno Haible  <bruno@clisp.org>
48487
48488         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48489         earlier.
48490         * doc/visibility.texi: Fix @node and @section.
48491
48492 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48493
48494         * doc/gnulib.texi: Link to sections for ld version script and
48495         visibility.
48496         * doc/visibility.texi: Add @node and @section.
48497         * modules/ld-version-script: New module.
48498         * m4/ld-version-script.m4: New file.
48499         * doc/ld-version-script.texi: New file.
48500
48501 2009-03-02  David Lutterkort  <lutter@redhat.com>
48502
48503         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48505
48506 2009-03-02  Bruno Haible  <bruno@clisp.org>
48507
48508         * doc/visibility.texi: Mention libtool's -export-symbols option.
48509
48510 2009-03-02  Jim Meyering  <meyering@redhat.com>
48511
48512         announce-gen: new option: --no-print-checksums
48513         * build-aux/announce-gen (usage): Describe it.
48514         (print_checksums): Print a newline here, not in the [*] footnote.
48515         (main): Honor it.
48516
48517 2009-03-01  Bruno Haible  <bruno@clisp.org>
48518
48519         Use socklen_t in the native Windows replacements prototypes.
48520         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48521         instead of 'int'.
48522         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48523         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48524         * modules/getsockopt (Depends-on): Add socklen.
48525         * modules/setsockopt (Depends-on): Add socklen.
48526
48527 2009-03-01  Bruno Haible  <bruno@clisp.org>
48528
48529         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48530         least 4.2.
48531
48532 2009-03-01  Eric Blake  <ebb9@byu.net>
48533             Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48536         error messages.
48537         * lib/wait-process.c (wait_subprocess): Omit error message about
48538         deadly signal sent to the child of termsigp != NULL.
48539
48540 2009-03-01  Eric Blake  <ebb9@byu.net>
48541
48542         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48543
48544 2009-03-01  Bruno Haible  <bruno@clisp.org>
48545
48546         Avoid a gcc warning.
48547         * tests/test-sched.c (b): Make global.
48548         Reported by Eric Blake.
48549
48550 2009-01-19  Martin Lambers  <marlam@marlam.de>
48551
48552         Provide POSIX semantics for socket timeout options on W32.
48553         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48554         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48555         * modules/setsockopt: Depend on sys_time module for struct timeval.
48556         * modules/getsockopt: Depend on sys_time module for struct timeval.
48557
48558 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48559
48560         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48561         __USE_GNU, for consistency with netdb.in.h.
48562         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48563
48564 2009-03-01  Bruno Haible  <bruno@clisp.org>
48565
48566         More support for FreeMiNT.
48567         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48569
48570 2009-03-01  Bruno Haible  <bruno@clisp.org>
48571
48572         More support for FreeMiNT.
48573         * lib/fpurge.c (fpurge): Correct last commit.
48574         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48575
48576 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48577
48578         Fix unportable awk script in vc-list-files.
48579         * build-aux/vc-list-files: In the replacement awk script, use
48580         substr with a second argument of 1, not zero.
48581         Report by Simon Josefsson.
48582
48583 2009-02-28  Bruno Haible  <bruno@clisp.org>
48584
48585         More support for FreeMiNT.
48586         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48587         to FreeMiNT today.
48588         * lib/fwriting.c (fwriting): Likewise.
48589         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48590
48591 2009-02-28  Bruno Haible  <bruno@clisp.org>
48592
48593         * tests/test-freadseek.c (main): Disable test beyond end of file on
48594         FreeMiNT.
48595         * tests/test-ftello.c (main): Likewise.
48596         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48597
48598 2009-02-28  Bruno Haible  <bruno@clisp.org>
48599
48600         Add tentative support for FreeMiNT.
48601         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48602         * lib/fpurge.c (fpurge): Likewise.
48603         * lib/freadable.c (freadable): Likewise.
48604         * lib/freading.c (freading): Likewise.
48605         * lib/freadptr.c (freadptr): Likewise.
48606         * lib/freadseek.c (freadptrinc): Likewise.
48607         * lib/fseeko.c (rpl_fseeko): Likewise.
48608         * lib/fseterr.c (fseterr): Likewise.
48609         * lib/fwritable.c (fwritable): Likewise.
48610         * lib/fwriting.c (fwriting): Likewise.
48611         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48612         Hourihane.
48613         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48614
48615 2009-02-28  Bruno Haible  <bruno@clisp.org>
48616
48617         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48618         SIGCHLD.
48619         Reported by Jim Meyering.
48620
48621 2009-02-28  Bruno Haible  <bruno@clisp.org>
48622
48623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48624         Mention the results of these tests on various platforms.
48625         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48626         order.
48627         * doc/posix-functions/printf.texi: Likewise.
48628         * doc/posix-functions/snprintf.texi: Likewise.
48629         * doc/posix-functions/sprintf.texi: Likewise.
48630         * doc/posix-functions/vfprintf.texi: Likewise.
48631         * doc/posix-functions/vprintf.texi: Likewise.
48632         * doc/posix-functions/vsnprintf.texi: Likewise.
48633         * doc/posix-functions/vsprintf.texi: Likewise.
48634         * doc/glibc-functions/obstack_printf.texi: Likewise.
48635         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48636
48637 2009-02-28  Bruno Haible  <bruno@clisp.org>
48638
48639         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48640         Reported by Loïc Minier <lool@dooz.org>.
48641
48642 2009-02-27  Bruno Haible  <bruno@clisp.org>
48643
48644         * gnulib-tool (func_import): Make the sed expression used to create the
48645         sed script for updating the .gitignore file POSIX compliant.
48646         Reported by Eric Blake.
48647
48648 2009-02-27  Bruno Haible  <bruno@clisp.org>
48649
48650         * gnulib-tool (sed): Don't alias as "sed --posix".
48651         Reported by Eric Blake.
48652
48653 2009-02-27  Bruno Haible  <bruno@clisp.org>
48654
48655         Avoid test link errors.
48656         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48657         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48658         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48659         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48661
48662 2009-02-27  Bruno Haible  <bruno@clisp.org>
48663
48664         Avoid spurious "(cached)" in configure output.
48665         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48666         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48667         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48668         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48669         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48670         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48671         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48672         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48673         Reported by Eric Blake.
48674
48675 2009-02-27  Eric Blake  <ebb9@byu.net>
48676
48677         printf: fix regression in previous patch
48678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48679
48680 2009-02-27  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48683         value.
48684         * lib/stdint.in.h: Likewise.
48685         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48686
48687 2009-02-27  Eric Blake  <ebb9@byu.net>
48688
48689         doc: mention more functions added in cygwin 1.7.0
48690         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48691         addition.
48692         * doc/posix-functions/open_wmemstream.texi: Likewise.
48693         * doc/posix-functions/wcsnlen.texi: Likewise.
48694         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48695         * doc/posix-functions/wcstod.texi: Likewise.
48696         * doc/posix-functions/wcstof.texi: Likewise.
48697         * doc/posix-functions/wcstoimax.texi: Likewise.
48698         * doc/posix-functions/wcstok.texi: Likewise.
48699         * doc/posix-functions/wcstoumax.texi: Likewise.
48700
48701         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48703         * doc/posix-functions/fprintf.texi: Update.
48704         * doc/posix-functions/printf.texi: Update.
48705         * doc/posix-functions/snprintf.texi: Update.
48706         * doc/posix-functions/sprintf.texi: Update.
48707         * doc/posix-functions/vfprintf.texi: Update.
48708         * doc/posix-functions/vprintf.texi: Update.
48709         * doc/posix-functions/vsnprintf.texi: Update.
48710         * doc/posix-functions/vsprintf.texi: Update.
48711         * doc/glibc-functions/obstack_printf.texi: Update.
48712         * doc/glibc-functions/obstack_vprintf.texi: Update.
48713
48714 2009-02-26  Eric Blake  <ebb9@byu.net>
48715
48716         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48717         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48718         compilation bug by using runtime conversion.
48719         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48720         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48721         * modules/ceill-tests (Files): Use nan.h.
48722         * modules/floorl-tests (Files): Likewise.
48723         * modules/frexpl-tests (Files): Likewise.
48724         * modules/isnanl-tests (Files): Likewise.
48725         * modules/ldexpl-tests (Files): Likewise.
48726         * modules/roundl-tests (Files): Likewise.
48727         * modules/truncl-tests (Files): Likewise.
48728         * tests/test-ceill.c (main): Use a working NaN.
48729         * tests/test-floorl.c (main): Likewise.
48730         * tests/test-frexpl.c (main): Likewise.
48731         * tests/test-isnan.c (test_long_double): Likewise.
48732         * tests/test-isnanl.h (main): Likewise.
48733         * tests/test-ldexpl.h (main): Likewise.
48734         * tests/test-roundl.h (main): Likewise.
48735         * tests/test-truncl.h (main): Likewise.
48736         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48737
48738 2009-02-26  Eric Blake  <ebb9@byu.net>
48739             Bruno Haible  <bruno@clisp.org>
48740
48741         Work around a *printf bug with %ls on Solaris.
48742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48743         precision is specified, sprintf stops converting the wide string
48744         argument when the number of bytes that have been produced by this
48745         conversion equals or exceeds the precision.
48746         * doc/posix-functions/fprintf.texi: Update.
48747         * doc/posix-functions/printf.texi: Update.
48748         * doc/posix-functions/snprintf.texi: Update.
48749         * doc/posix-functions/sprintf.texi: Update.
48750         * doc/posix-functions/vfprintf.texi: Update.
48751         * doc/posix-functions/vprintf.texi: Update.
48752         * doc/posix-functions/vsnprintf.texi: Update.
48753         * doc/posix-functions/vsprintf.texi: Update.
48754         * doc/glibc-functions/obstack_printf.texi: Update.
48755         * doc/glibc-functions/obstack_vprintf.texi: Update.
48756
48757 2009-02-26  Eric Blake  <ebb9@byu.net>
48758
48759         stdlib: favor compiler check of random.h
48760         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48761         to avoid an ObjC random.h installed by Swarm.
48762
48763 2009-02-26  Bruno Haible  <bruno@clisp.org>
48764
48765         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48766         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48767         Reported by Gary V. Vaughan <gary@gnu.org>.
48768
48769 2009-02-26  Bruno Haible  <bruno@clisp.org>
48770
48771         Fix *printf behaviour regarding the %ls directive.
48772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48773         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48774         NEED_PRINTF_DIRECTIVE_LS.
48775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48776         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48778         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48779         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48780         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48781         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48786         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48790         * doc/posix-functions/fprintf.texi: Update.
48791         * doc/posix-functions/printf.texi: Update.
48792         * doc/posix-functions/snprintf.texi: Update.
48793         * doc/posix-functions/sprintf.texi: Update.
48794         * doc/posix-functions/vfprintf.texi: Update.
48795         * doc/posix-functions/vprintf.texi: Update.
48796         * doc/posix-functions/vsnprintf.texi: Update.
48797         * doc/posix-functions/vsprintf.texi: Update.
48798         * doc/glibc-functions/obstack_printf.texi: Update.
48799         * doc/glibc-functions/obstack_vprintf.texi: Update.
48800         Reported by Eric Blake.
48801
48802 2009-02-25  Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48805         with known value.
48806         Reported by Gary V. Vaughan <gary@gnu.org>.
48807
48808 2009-02-25  Bruno Haible  <bruno@clisp.org>
48809
48810         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48811         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48812         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48813         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48814         Reported by Gary V. Vaughan <gary@gnu.org>.
48815
48816 2009-02-25  Bruno Haible  <bruno@clisp.org>
48817
48818         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48819         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48820         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48821         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48822         Reported by Gary V. Vaughan <gary@gnu.org>.
48823
48824 2009-02-25  Eric Blake  <ebb9@byu.net>
48825
48826         tests: skip fseek/ftell tests if ungetc is broken
48827         * m4/ungetc.m4: New file.
48828         * modules/fseek-tests: Split test, so ungetc dependency is
48829         separate from rest of test.
48830         * modules/fseeko-tests: Likewise.
48831         * modules/ftell-tests: Likewise.
48832         * modules/ftello-tests: Likewise.
48833         * tests/test-fseek.c (main): Isolate ungetc dependency.
48834         * tests/test-fseeko.c (main): Likewise.
48835         * tests/test-ftell.c (main): Likewise.
48836         * tests/test-ftello.c (main): Likewise.
48837         * tests/test-fseek2.sh: New file.
48838         * tests/test-fseeko2.sh: Likewise.
48839         * tests/test-ftell2.sh: Likewise.
48840         * tests/test-ftello2.sh: Likewise.
48841
48842 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
48843
48844         test-getaddrinfo: fix usage of skip return code 77
48845         * tests/test-gettaddrinfo.c: Return skip code 77 only
48846         for first occurrence of skip (4x77 is not 77)
48847
48848 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48849
48850         strtod: avoid C99 decl-after-statement
48851         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48852
48853 2009-02-24  Eric Blake  <ebb9@byu.net>
48854
48855         strtod: detect HP-UX 11.31 bug
48856         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48857         Reported by Gary V. Vaughan.
48858
48859 2009-02-23  Bruno Haible  <bruno@clisp.org>
48860
48861         Fix invalid read past end of memory block.
48862         * lib/vasnprintf.c (DCHAR_SET): Define.
48863         (local_wcslen): Define only when needed.
48864         (local_strnlen, local_wcsnlen): New functions.
48865         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48866         directives that involve a conversion ourselves.
48867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48868         wcsnlen, mbrtowc, wcrtomb.
48869         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48870         * tests/test-vasprintf-posix.c (test_function): Likewise.
48871         * tests/test-snprintf-posix.h (test_function): Likewise.
48872         * tests/test-sprintf-posix.h (test_function): Likewise.
48873         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48874
48875 2009-02-22  Bruno Haible  <bruno@clisp.org>
48876
48877         Implement new clarified decomposition of Hangul syllables.
48878         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48879         of type LTV, return only a pairwise decomposition.
48880         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48881         Likewise.
48882         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48883         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48884         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48885
48886 2009-02-22  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48889         zero-length results and shrink excess allocated memory.
48890         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48891         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48892         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48893         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48894         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48895         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48896         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48897         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48898         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48899         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48900         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48901         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48902
48903 2009-02-21  Bruno Haible  <bruno@clisp.org>
48904
48905         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48906         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48907         spaces after a period. Put a space between a macro name and its
48908         argument list. Trivial rewordings.
48909         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48910         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48911         (main): Return 0 explicitly.
48912
48913 2009-02-21  Bruno Haible  <bruno@clisp.org>
48914
48915         Tests for module 'uninorm/filter'.
48916         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48917         * modules/uninorm/filter-tests: New file.
48918
48919         New module 'uninorm/filter'.
48920         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48921         uninorm_filter_flush, uninorm_filter_free): New declarations.
48922         * lib/uninorm/uninorm-filter.c: New file.
48923         * modules/uninorm/filter: New file.
48924
48925 2009-02-21  Bruno Haible  <bruno@clisp.org>
48926
48927         Tests for module 'uninorm/nfkc'.
48928         * tests/uninorm/test-nfkc.c: New file.
48929         * tests/uninorm/test-u8-nfkc.c: New file.
48930         * tests/uninorm/test-u16-nfkc.c: New file.
48931         * tests/uninorm/test-u32-nfkc.c: New file.
48932         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48933         * tests/uninorm/test-u32-nfkc-big.c: New file.
48934         * modules/uninorm/nfkc-tests: New file.
48935
48936         New module 'uninorm/nfkc'.
48937         * lib/uninorm/nfkc.c: New file.
48938         * modules/uninorm/nfkc: New file.
48939
48940         Tests for module 'uninorm/nfkd'.
48941         * tests/uninorm/test-nfkd.c: New file.
48942         * tests/uninorm/test-u8-nfkd.c: New file.
48943         * tests/uninorm/test-u16-nfkd.c: New file.
48944         * tests/uninorm/test-u32-nfkd.c: New file.
48945         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48946         * tests/uninorm/test-u32-nfkd-big.c: New file.
48947         * modules/uninorm/nfkd-tests: New file.
48948
48949         New module 'uninorm/nfkd'.
48950         * lib/uninorm/nfkd.c: New file.
48951         * modules/uninorm/nfkd: New file.
48952
48953         Tests for module 'uninorm/nfc'.
48954         * tests/uninorm/test-nfc.c: New file.
48955         * tests/uninorm/test-u8-nfc.c: New file.
48956         * tests/uninorm/test-u16-nfc.c: New file.
48957         * tests/uninorm/test-u32-nfc.c: New file.
48958         * tests/uninorm/test-u32-nfc-big.sh: New file.
48959         * tests/uninorm/test-u32-nfc-big.c: New file.
48960         * modules/uninorm/nfc-tests: New file.
48961
48962         New module 'uninorm/nfc'.
48963         * lib/uninorm/nfc.c: New file.
48964         * modules/uninorm/nfc: New file.
48965
48966         Tests for module 'uninorm/nfd'.
48967         * tests/uninorm/test-nfd.c: New file.
48968         * tests/uninorm/test-u8-nfd.c: New file.
48969         * tests/uninorm/test-u16-nfd.c: New file.
48970         * tests/uninorm/test-u32-nfd.c: New file.
48971         * tests/uninorm/test-u32-nfd-big.sh: New file.
48972         * tests/uninorm/test-u32-nfd-big.c: New file.
48973         * tests/uninorm/test-u32-normalize-big.h: New file.
48974         * tests/uninorm/test-u32-normalize-big.c: New file.
48975         * tests/uninorm/NormalizationTest.txt: New file, created from
48976         Unicode 5.1.0 NormalizationTest.txt.
48977         * modules/uninorm/nfd-tests: New file.
48978
48979         New module 'uninorm/nfd'.
48980         * lib/uninorm/nfd.c: New file.
48981         * modules/uninorm/nfd: New file.
48982
48983         New module 'uninorm/u32-normalize'.
48984         * lib/uninorm/u32-normalize.c: New file.
48985         * modules/uninorm/u32-normalize: New file.
48986
48987         New module 'uninorm/u16-normalize'.
48988         * lib/uninorm/u16-normalize.c: New file.
48989         * modules/uninorm/u16-normalize: New file.
48990
48991         New module 'uninorm/u8-normalize'.
48992         * lib/uninorm/u8-normalize.c: New file.
48993         * lib/uninorm/normalize-internal.h: New file.
48994         * lib/uninorm/u-normalize-internal.h: New file.
48995         * modules/uninorm/u8-normalize: New file.
48996
48997         New module 'uninorm/decompose-internal'.
48998         * lib/uninorm/decompose-internal.c: New file.
48999         * modules/uninorm/decompose-internal: New file.
49000
49001         Tests for module 'uninorm/composition'.
49002         * tests/uninorm/test-composition.c: New file.
49003         * modules/uninorm/composition-tests: New file.
49004
49005         New module 'uninorm/composition'.
49006         * lib/uninorm/composition.c: New file.
49007         * lib/uninorm/composition-table.gperf: New file, generated by
49008         gen-uni-tables.
49009         * modules/uninorm/composition: New file.
49010
49011         Tests for module 'uninorm/compat-decomposition'.
49012         * tests/uninorm/test-compat-decomposition.c: New file.
49013         * modules/uninorm/compat-decomposition-tests: New file.
49014
49015         New module 'uninorm/compat-decomposition'.
49016         * lib/uninorm/decompose-internal.h: New file.
49017         * lib/uninorm/compat-decomposition.c: New file.
49018         * modules/uninorm/compat-decomposition: New file.
49019
49020         Tests for module 'uninorm/canonical-decomposition'.
49021         * tests/uninorm/test-canonical-decomposition.c: New file.
49022         * modules/uninorm/canonical-decomposition-tests: New file.
49023
49024         New module 'uninorm/canonical-decomposition'.
49025         * lib/uninorm/canonical-decomposition.c: New file.
49026         * modules/uninorm/canonical-decomposition: New file.
49027
49028         Tests for module 'uninorm/decomposition'.
49029         * tests/uninorm/test-decomposition.c: New file.
49030         * modules/uninorm/decomposition-tests: New file.
49031
49032         New module 'uninorm/decomposition'.
49033         * lib/uninorm/decomposition.c: New file.
49034         * modules/uninorm/decomposition: New file.
49035
49036         New module 'uninorm/decomposition-table'.
49037         * lib/uninorm/decomposition-table.h: New file.
49038         * lib/uninorm/decomposition-table.c: New file.
49039         * lib/uninorm/decomposition-table1.h: New file, generated by
49040         gen-uni-tables.
49041         * lib/uninorm/decomposition-table2.h: New file, generated by
49042         gen-uni-tables.
49043         * modules/uninorm/decomposition-table: New file.
49044
49045         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49046         (UC_DECOMP_*): New enumeration items.
49047         (get_decomposition): New function.
49048         (struct decomp_table): New type.
49049         (output_decomposition, output_decomposition_tables): New functions.
49050         (unicode_composition_exclusions): New variable.
49051         (fill_composition_exclusions, debug_output_composition_tables): New
49052         functions.
49053         (main): Accept one more argument. Invoke fill_composition_exclusions.
49054         Output decomposition and composition tables.
49055
49056         New module 'uninorm/base'.
49057         * lib/uninorm.h: New file.
49058         * lib/unictype.h: Update comment.
49059         * modules/uninorm/base: New file.
49060
49061 2009-02-21  David Lutterkort  <lutter@redhat.com>
49062
49063         Tests for module 'safe-alloc'.
49064         * tests/test-safe-alloc.c: New file.
49065         * modules/safe-alloc-tests: New file.
49066
49067         New module 'safe-alloc'.
49068         * lib/safe-alloc.h: New file.
49069         * lib/safe-alloc.c: New file.
49070         * m4/safe-alloc.m4: New file.
49071         * modules/safe-alloc: New file.
49072         * doc/safe-alloc.texi: New file.
49073         * doc/gnulib.texi: Include it.
49074         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49075         safe-alloc.
49076
49077 2009-02-18  Bruno Haible  <bruno@clisp.org>
49078
49079         Fix link error on non-glibc systems.
49080         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49081         variable.
49082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49083
49084 2009-02-18  Jim Meyering  <meyering@redhat.com>
49085
49086         fts: avoid used-uninitialized error due to recent change
49087         * lib/fts.c (fts_read): Guard uses of the new member,
49088         parent->fts_n_dirs_remaining, since it's not relevant for
49089         the parent of a directory specified on the command-line.
49090
49091 2009-02-17  James Youngman  <jay@gnu.org>
49092             Bruno Haible  <bruno@clisp.org>
49093
49094         * m4/include_next.m4: Reformulate comment.
49095
49096 2009-02-16  Jim Meyering  <meyering@redhat.com>
49097
49098         fts: add #if guards so that the fts_lgpl module still builds
49099         * lib/fts.c: Guard just-added hash-table-using parts with
49100         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49101         Reported by Simon Josefsson.
49102
49103 2009-02-15  Bruno Haible  <bruno@clisp.org>
49104
49105         * modules/array-mergesort-tests: New file.
49106         * tests/test-array-mergesort.c: New file.
49107
49108         New module 'array-mergesort'.
49109         * modules/array-mergesort: New file.
49110         * lib/array-mergesort.h: New file.
49111
49112 2009-02-15  Bruno Haible  <bruno@clisp.org>
49113
49114         Fix 2009-02-07 commit.
49115         * lib/gen-uni-tables.c (output_predicate, output_category,
49116         output_combclass, output_bidi_category, output_decimal_digit,
49117         output_digit, output_numeric, output_mirror, output_scripts,
49118         output_ident_category, output_simple_mapping): Fix format directives.
49119         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49120
49121 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49122
49123         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49124         fixes are available from IBM.
49125
49126 2009-02-13  Jim Meyering  <meyering@redhat.com>
49127
49128         fts: arrange not to stat non-directories in more cases
49129         This makes GNU find (when it doesn't need to stat each file)
49130         *much* more efficient at traversing reiserfs file systems.
49131         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49132         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49133         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49134         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49135         (leaf_optimization_applies): New function.
49136         (LCO_hash, LCO_compare): New helper functions.
49137         (link_count_optimize_ok): New function.
49138         (fts_stat): Initialize new member (if dir).
49139         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49140         we've just stat'ed a directory.  Skip the stat call when possible.
49141         ---
49142         Note this AFS-related exchange:
49143         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49144         and note find's pioctl call in find/fstype.c.
49145         But that is necessary only if you want to enable the
49146         optimization for AFS, and for now, I don't.
49147
49148         fts: move a function definition "up" (no semantic change)
49149         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49150         "up" to precede upcoming use of a related function.
49151
49152 2009-02-11  Jim Meyering  <meyering@redhat.com>
49153
49154         fts: correct internal computation of nlinks (optimization-related)
49155         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49156         whether the current entry is a directory, so don't test it.
49157
49158 2009-02-10  Bruno Haible  <bruno@clisp.org>
49159
49160         Tests for module 'uniwbrk/ulc-wordbreaks'.
49161         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49162         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49163         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49164
49165         Tests for module 'uniwbrk/u32-wordbreaks'.
49166         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49167         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49168
49169         Tests for module 'uniwbrk/u16-wordbreaks'.
49170         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49171         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49172
49173         Tests for module 'uniwbrk/u8-wordbreaks'.
49174         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49175         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49176
49177 2009-02-10  Bruno Haible  <bruno@clisp.org>
49178
49179         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49180         property.
49181         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49182         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49183         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49184
49185 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49186
49187         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49188         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49189
49190 2009-02-10  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49193         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49194         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49195         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49196         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49197         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49198
49199 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49200
49201         * lib/sockets.h (gl_fd_to_handle): New function.
49202
49203         * tests/test-sockets.c: Call gl_fd_to_handle.
49204
49205 2009-02-09  Bruno Haible  <bruno@clisp.org>
49206
49207         * doc/havelib.texi: Document the conventions on bi-arch systems.
49208
49209 2009-02-08  Bruno Haible  <bruno@clisp.org>
49210
49211         Document the AC_LIB_LINKFLAGS macro.
49212         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49213         * doc/gnulib.texi: Include it.
49214
49215 2009-02-08  Bruno Haible  <bruno@clisp.org>
49216
49217         Fix wrong order of sections, compared to TOC.
49218         * doc/gnulib.texi: Include relocatable-maint.texi after the
49219         "Regular expressions" node, not before.
49220
49221 2009-02-08  Bruno Haible  <bruno@clisp.org>
49222
49223         Tests for module 'unicase/totitle'.
49224         * modules/unicase/totitle-tests: New file.
49225
49226         Tests for module 'unicase/tolower'.
49227         * modules/unicase/tolower-tests: New file.
49228
49229         Tests for module 'unicase/toupper'.
49230         * modules/unicase/toupper-tests: New file.
49231         * tests/unicase/test-mapping-part1.h: New file.
49232         * tests/unicase/test-mapping-part2.h: New file.
49233
49234         New module 'unicase/totitle'.
49235         * modules/unicase/totitle: New file.
49236         * lib/unicase/totitle.c: New file.
49237
49238         New module 'unicase/tolower'.
49239         * modules/unicase/tolower: New file.
49240         * lib/unicase/tolower.c: New file.
49241
49242         New module 'unicase/toupper'.
49243         * modules/unicase/toupper: New file.
49244         * lib/unicase/toupper.c: New file.
49245         * lib/unicase/simple-mapping.h: New file.
49246
49247         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49248         (mapping_table): New structure.
49249         (output_simple_mapping): New function.
49250         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49251         * modules/gen-uni-tables (Description): Update.
49252         * lib/unicase/toupper.h: New file, automatically generated by
49253         gen-uni-tables.
49254         * lib/unicase/tolower.h: New file, automatically generated by
49255         gen-uni-tables.
49256         * lib/unicase/totitle.h: New file, automatically generated by
49257         gen-uni-tables.
49258         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49259         gen-uni-tables.
49260         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49261         gen-uni-tables.
49262         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49263         gen-uni-tables.
49264
49265         New module 'unicase/base'.
49266         * modules/unicase/base: New file.
49267         * lib/unicase.h: New file.
49268
49269 2009-02-08  Bruno Haible  <bruno@clisp.org>
49270
49271         New module 'uniwbrk/ulc-wordbreaks'.
49272         * modules/uniwbrk/ulc-wordbreaks: New file.
49273         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49274
49275         New module 'uniwbrk/u32-wordbreaks'.
49276         * modules/uniwbrk/u32-wordbreaks: New file.
49277         * lib/uniwbrk/u32-wordbreaks.c: New file.
49278
49279         New module 'uniwbrk/u16-wordbreaks'.
49280         * modules/uniwbrk/u16-wordbreaks: New file.
49281         * lib/uniwbrk/u16-wordbreaks.c: New file.
49282
49283         New module 'uniwbrk/u8-wordbreaks'.
49284         * modules/uniwbrk/u8-wordbreaks: New file.
49285         * lib/uniwbrk/u8-wordbreaks.c: New file.
49286         * lib/uniwbrk/u-wordbreaks.h: New file.
49287
49288         New module 'uniwbrk/table'.
49289         * modules/uniwbrk/table: New file.
49290         * lib/uniwbrk/wbrktable.h: New file.
49291         * lib/uniwbrk/wbrktable.c: New file.
49292
49293         New module 'uniwbrk/wordbreak-property'.
49294         * modules/uniwbrk/wordbreak-property: New file.
49295         * lib/uniwbrk/wordbreak-property.c: New file.
49296
49297         * lib/gen-uni-tables.c (WBP_*): New enum items.
49298         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49299         (unicode_org_wbp): New variable.
49300         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49301         New functions.
49302         (wbp_table): New structure.
49303         (output_wbp, output_wbrk_tables): New functions.
49304         (main): Accept additional argument. Invoke fill_org_wbp,
49305         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49306         output_wbrk_tables.
49307         * modules/gen-uni-tables (Description): Update.
49308         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49309         gen-uni-tables.
49310
49311         New module 'uniwbrk/base'.
49312         * modules/uniwbrk/base: New file.
49313         * lib/uniwbrk.h: New file.
49314
49315 2009-02-08  Bruno Haible  <bruno@clisp.org>
49316
49317         Update to Unicode 5.1.0.
49318         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49319         U+2185..U+2188.
49320         (is_property_default_ignorable_code_point): Don't include characters
49321         of category Cc or Cs and not-a-characters.
49322         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49323         U+0D79, U+109E, U+109F, U+A60C.
49324         * lib/unictype/bidi_of.h: Regenerated.
49325         * lib/unictype/blocks.h: Regenerated.
49326         * lib/unictype/categ_C.h: Regenerated.
49327         * lib/unictype/categ_Cf.h: Regenerated.
49328         * lib/unictype/categ_Cn.h: Regenerated.
49329         * lib/unictype/categ_L.h: Regenerated.
49330         * lib/unictype/categ_Ll.h: Regenerated.
49331         * lib/unictype/categ_Lm.h: Regenerated.
49332         * lib/unictype/categ_Lo.h: Regenerated.
49333         * lib/unictype/categ_Lu.h: Regenerated.
49334         * lib/unictype/categ_M.h: Regenerated.
49335         * lib/unictype/categ_Mc.h: Regenerated.
49336         * lib/unictype/categ_Me.h: Regenerated.
49337         * lib/unictype/categ_Mn.h: Regenerated.
49338         * lib/unictype/categ_N.h: Regenerated.
49339         * lib/unictype/categ_Nd.h: Regenerated.
49340         * lib/unictype/categ_Nl.h: Regenerated.
49341         * lib/unictype/categ_No.h: Regenerated.
49342         * lib/unictype/categ_P.h: Regenerated.
49343         * lib/unictype/categ_Pd.h: Regenerated.
49344         * lib/unictype/categ_Pe.h: Regenerated.
49345         * lib/unictype/categ_Pf.h: Regenerated.
49346         * lib/unictype/categ_Pi.h: Regenerated.
49347         * lib/unictype/categ_Po.h: Regenerated.
49348         * lib/unictype/categ_Ps.h: Regenerated.
49349         * lib/unictype/categ_S.h: Regenerated.
49350         * lib/unictype/categ_Sk.h: Regenerated.
49351         * lib/unictype/categ_Sm.h: Regenerated.
49352         * lib/unictype/categ_So.h: Regenerated.
49353         * lib/unictype/categ_of.h: Regenerated.
49354         * lib/unictype/combining.h: Regenerated.
49355         * lib/unictype/ctype_alnum.h: Regenerated.
49356         * lib/unictype/ctype_alpha.h: Regenerated.
49357         * lib/unictype/ctype_graph.h: Regenerated.
49358         * lib/unictype/ctype_lower.h: Regenerated.
49359         * lib/unictype/ctype_print.h: Regenerated.
49360         * lib/unictype/ctype_punct.h: Regenerated.
49361         * lib/unictype/ctype_upper.h: Regenerated.
49362         * lib/unictype/decdigit.h: Regenerated.
49363         * lib/unictype/digit.h: Regenerated.
49364         * lib/unictype/mirror.h: Regenerated.
49365         * lib/unictype/numeric.h: Regenerated.
49366         * lib/unictype/pr_alphabetic.h: Regenerated.
49367         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49368         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49369         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49370         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49371         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49372         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49373         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49374         * lib/unictype/pr_combining.h: Regenerated.
49375         * lib/unictype/pr_dash.h: Regenerated.
49376         * lib/unictype/pr_decimal_digit.h: Regenerated.
49377         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49378         * lib/unictype/pr_deprecated.h: Regenerated.
49379         * lib/unictype/pr_diacritic.h: Regenerated.
49380         * lib/unictype/pr_extender.h: Regenerated.
49381         * lib/unictype/pr_format_control.h: Regenerated.
49382         * lib/unictype/pr_grapheme_base.h: Regenerated.
49383         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49384         * lib/unictype/pr_grapheme_link.h: Regenerated.
49385         * lib/unictype/pr_id_continue.h: Regenerated.
49386         * lib/unictype/pr_id_start.h: Regenerated.
49387         * lib/unictype/pr_ideographic.h: Regenerated.
49388         * lib/unictype/pr_ignorable_control.h: Regenerated.
49389         * lib/unictype/pr_lowercase.h: Regenerated.
49390         * lib/unictype/pr_math.h: Regenerated.
49391         * lib/unictype/pr_numeric.h: Regenerated.
49392         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49393         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49394         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49395         * lib/unictype/pr_other_id_continue.h: Regenerated.
49396         * lib/unictype/pr_other_lowercase.h: Regenerated.
49397         * lib/unictype/pr_other_math.h: Regenerated.
49398         * lib/unictype/pr_punctuation.h: Regenerated.
49399         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49400         * lib/unictype/pr_soft_dotted.h: Regenerated.
49401         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49402         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49403         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49404         * lib/unictype/pr_uppercase.h: Regenerated.
49405         * lib/unictype/pr_xid_continue.h: Regenerated.
49406         * lib/unictype/pr_xid_start.h: Regenerated.
49407         * lib/unictype/pr_zero_width.h: Regenerated.
49408         * lib/unictype/scripts.h: Regenerated.
49409         * lib/unictype/scripts_byname.gperf: Regenerated.
49410         * lib/unictype/sy_java_ident.h: Regenerated.
49411         * lib/unilbrk/lbrkprop1.h: Regenerated.
49412         * lib/unilbrk/lbrkprop2.h: Regenerated.
49413         * tests/unictype/test-categ_C.c: Regenerated.
49414         * tests/unictype/test-categ_Cf.c: Regenerated.
49415         * tests/unictype/test-categ_Cn.c: Regenerated.
49416         * tests/unictype/test-categ_L.c: Regenerated.
49417         * tests/unictype/test-categ_Ll.c: Regenerated.
49418         * tests/unictype/test-categ_Lm.c: Regenerated.
49419         * tests/unictype/test-categ_Lo.c: Regenerated.
49420         * tests/unictype/test-categ_Lu.c: Regenerated.
49421         * tests/unictype/test-categ_M.c: Regenerated.
49422         * tests/unictype/test-categ_Mc.c: Regenerated.
49423         * tests/unictype/test-categ_Me.c: Regenerated.
49424         * tests/unictype/test-categ_Mn.c: Regenerated.
49425         * tests/unictype/test-categ_N.c: Regenerated.
49426         * tests/unictype/test-categ_Nd.c: Regenerated.
49427         * tests/unictype/test-categ_Nl.c: Regenerated.
49428         * tests/unictype/test-categ_No.c: Regenerated.
49429         * tests/unictype/test-categ_P.c: Regenerated.
49430         * tests/unictype/test-categ_Pd.c: Regenerated.
49431         * tests/unictype/test-categ_Pe.c: Regenerated.
49432         * tests/unictype/test-categ_Pf.c: Regenerated.
49433         * tests/unictype/test-categ_Pi.c: Regenerated.
49434         * tests/unictype/test-categ_Po.c: Regenerated.
49435         * tests/unictype/test-categ_Ps.c: Regenerated.
49436         * tests/unictype/test-categ_S.c: Regenerated.
49437         * tests/unictype/test-categ_Sk.c: Regenerated.
49438         * tests/unictype/test-categ_Sm.c: Regenerated.
49439         * tests/unictype/test-categ_So.c: Regenerated.
49440         * tests/unictype/test-ctype_alnum.c: Regenerated.
49441         * tests/unictype/test-ctype_alpha.c: Regenerated.
49442         * tests/unictype/test-ctype_graph.c: Regenerated.
49443         * tests/unictype/test-ctype_lower.c: Regenerated.
49444         * tests/unictype/test-ctype_print.c: Regenerated.
49445         * tests/unictype/test-ctype_punct.c: Regenerated.
49446         * tests/unictype/test-ctype_upper.c: Regenerated.
49447         * tests/unictype/test-decdigit.h: Regenerated.
49448         * tests/unictype/test-digit.h: Regenerated.
49449         * tests/unictype/test-numeric.h: Regenerated.
49450         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49451         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49452         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49453         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49454         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49455         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49456         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49457         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49458         * tests/unictype/test-pr_combining.c: Regenerated.
49459         * tests/unictype/test-pr_dash.c: Regenerated.
49460         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49461         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49462         * tests/unictype/test-pr_deprecated.c: Regenerated.
49463         * tests/unictype/test-pr_diacritic.c: Regenerated.
49464         * tests/unictype/test-pr_extender.c: Regenerated.
49465         * tests/unictype/test-pr_format_control.c: Regenerated.
49466         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49467         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49468         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49469         * tests/unictype/test-pr_id_continue.c: Regenerated.
49470         * tests/unictype/test-pr_id_start.c: Regenerated.
49471         * tests/unictype/test-pr_ideographic.c: Regenerated.
49472         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49473         * tests/unictype/test-pr_lowercase.c: Regenerated.
49474         * tests/unictype/test-pr_math.c: Regenerated.
49475         * tests/unictype/test-pr_numeric.c: Regenerated.
49476         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49477         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49478         Regenerated.
49479         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49480         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49481         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49482         * tests/unictype/test-pr_other_math.c: Regenerated.
49483         * tests/unictype/test-pr_punctuation.c: Regenerated.
49484         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49485         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49486         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49487         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49488         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49489         * tests/unictype/test-pr_uppercase.c: Regenerated.
49490         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49491         * tests/unictype/test-pr_xid_start.c: Regenerated.
49492         * tests/unictype/test-pr_zero_width.c: Regenerated.
49493
49494         Update to Unicode 5.1.0.
49495         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49496         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49497         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49498         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49499         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49500         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49501         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49502         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49503         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49504         (nonspacing_table_ind): Update.
49505         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49506
49507         Update to Unicode 5.1.0.
49508         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49509         code transform.
49510         * lib/uniname/uniname.c (unicode_character_name,
49511         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49512         * lib/uniname/uninames.h: Regenerated.
49513         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49514
49515 2009-02-07  Bruno Haible  <bruno@clisp.org>
49516
49517         Merge gen-ctype and gen-lbrk into a single program.
49518         * lib/gen-uni-tables.c: New file, incorporating
49519         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49520         Add directory prefixes to the names of the generated files.
49521         * lib/unictype/gen-ctype.c: Remove file.
49522         * lib/unilbrk/gen-lbrk.c: Remove file.
49523         * modules/gen-uni-tables: New file.
49524         * modules/unictype/gen-ctype: Remove file.
49525         * modules/unilbrk/gen-lbrk: Remove file.
49526
49527 2009-02-07  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49530
49531         New module 'unistr/u32-strcoll'.
49532         * modules/unistr/u32-strcoll: New file.
49533         * lib/unistr/u32-strcoll.c: New file.
49534
49535         New module 'unistr/u16-strcoll'.
49536         * modules/unistr/u16-strcoll: New file.
49537         * lib/unistr/u16-strcoll.c: New file.
49538
49539         New module 'unistr/u8-strcoll'.
49540         * modules/unistr/u8-strcoll: New file.
49541         * lib/unistr/u8-strcoll.c: New file.
49542         * lib/unistr/u-strcoll.h: New file.
49543
49544 2009-02-07  Bruno Haible  <bruno@clisp.org>
49545
49546         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49547         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49548         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49549         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49550         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49551         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49552
49553 2009-02-07  Bruno Haible  <bruno@clisp.org>
49554
49555         Make 64-bit clean.
49556         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49557         output_combclass, output_bidi_category, output_decimal_digit,
49558         output_digit, output_numeric, output_mirror, output_scripts,
49559         output_ident_category): Use proper width specifier in format strings.
49560
49561 2009-02-07  Bruno Haible  <bruno@clisp.org>
49562
49563         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49564         failure behaviour.
49565
49566 2009-02-07  Jim Meyering  <meyering@redhat.com>
49567
49568         regex: avoid compilation failure with upcoming gcc-4.4
49569         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49570         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49571         "... error: integer overflow in preprocessor expression".
49572
49573 2009-02-05  Ben Pfaff  <blp@gnu.org>
49574
49575         Fix link errors on Windows when close module is used.
49576         * modules/close: Add $(LIB_CLOSE) to Link section.
49577         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49578         $(LIB_CLOSE) on Windows.
49579
49580 2009-02-05  Jim Meyering  <meyering@redhat.com>
49581
49582         still avoid unused-parameter warnings, but do it cleanly
49583         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49584         (get_fs_usage): Cast to void instead.
49585         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49586         (dev_from_mount_options, read_file_system_list): Cast to void.
49587         Prompted by Bruno Haible.
49588
49589 2009-02-04  Jim Meyering  <meyering@redhat.com>
49590
49591         fsusage.c: correct copyright year
49592         * lib/fsusage.c: Reflect year in which the change is pushed into
49593
49594         avoid misc. warnings
49595         * lib/fsusage.c (UNUSED_PARAM): Define.
49596         (get_fs_usage): Mark parameter "disk" as unused.
49597         * lib/getugroups.c (getgrent): Use "void" in prototype.
49598         * lib/mountlist.c: Mark unused parameters.
49599         (read_file_system_list): Declare a local with "const".
49600         * lib/nanosleep.c (getnow): Declare static.
49601         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49602
49603         dirfd: set errno upon failure
49604         * lib/dirfd.c: Include <errno.h>.
49605         Set errno to ENOTSUP when returning -1.
49606         * modules/dirfd (Depends-on): Add errno.
49607         Suggested by John Kodis <kodis@comcast.net>.
49608
49609 2009-02-01  Bruno Haible  <bruno@clisp.org>
49610
49611         Don't assume sizeof (long) >= sizeof (void *).
49612         * lib/memcmp.c: Include stdint.h.
49613         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49614         srcp2 to 'const byte *'.
49615         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49616         types to uintptr_t.
49617         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49618         * modules/memcmp (Depends-on): Add stdint.
49619         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49620
49621 2009-01-30  Eric Blake  <ebb9@byu.net>
49622
49623         fix more require-before-expand issues
49624         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49625         expand, AC_PROG_AWK.
49626         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49627
49628 2009-01-28  Eric Blake  <ebb9@byu.net>
49629
49630         version-etc: use consistent URL formatting
49631         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49632         Improve formatting.  Use fputs for string without %.
49633
49634 2009-01-28  Jim Meyering  <meyering@redhat.com>
49635
49636         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49637         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49638         "underquoted definition of NAME" from autoconf-2.59.
49639
49640 2009-01-28  Bruno Haible  <bruno@clisp.org>
49641
49642         * doc/gnulib.texi: Add "Obsolete modules" to index.
49643
49644 2009-01-28  Jim Meyering  <meyering@redhat.com>
49645
49646         useless-if-before-free: recognize more variants
49647         * build-aux/useless-if-before-free: Also recognize e.g.,
49648         if (NULL != p) free (p);
49649
49650 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49651
49652         test-getaddrinfo: skip (don't fail) this test when there's no network
49653         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49654         on the presumption that it means you lack network access.
49655
49656 2009-01-26  Jim Meyering  <meyering@redhat.com>
49657
49658         fflush: avoid warnings on modern systems
49659         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49660         pos and result, into scopes where they're used.
49661
49662 2009-01-26  Eric Blake  <ebb9@byu.net>
49663
49664         Silence warning reintroduced by recent extensions patch.
49665         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49666         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49667         autoconf.
49668
49669         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49670         * m4/00gnulib.m4: New file.
49671         * gnulib-tool (func_get_filelist): Always use it.
49672         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49673         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49674
49675 2009-01-25  Bruno Haible  <bruno@clisp.org>
49676
49677         Make test-quotearg work on MacOS X and AIX.
49678         * tests/test-quotearg.sh: New file.
49679         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49680         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49681         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49682         include <libintl.h>.
49683         (fake_locale): Remove variable.
49684         (gettext, dgettext, dcgettext): Remove functions.
49685         (main): Instead of setting a fake locale, set a real locale. Call
49686         textdomain and bindtextdomain.
49687         * modules/quotearg-tests (Files): Add the new files.
49688         (Depends-on): Add gettext, setenv, unsetenv.
49689         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49690         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49691         Augment TESTS_ENVIRONMENT.
49692
49693 2009-01-25  Bruno Haible  <bruno@clisp.org>
49694
49695         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49696         fr_FR.ISO8859-1 locale on MacOS X.
49697         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49698         ja_JP.eucJP locale on MacOS X.
49699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49700         zh_CN.GB18030 locale on MacOS X.
49701
49702 2009-01-25  Bruno Haible  <bruno@clisp.org>
49703
49704         Avoid link errors on MacOS X 10.3.
49705         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49706         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49707
49708 2009-01-25  Bruno Haible  <bruno@clisp.org>
49709
49710         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49711         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49712         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49713         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49714         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49715         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49716         posix_spawnattr_init, posix_spawnattr_setsigmask,
49717         posix_spawnattr_setflags, posix_spawnattr_destroy.
49718
49719         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49720         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49721         * modules/execute (Files): Remove m4/posix_spawn.m4.
49722         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49723         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49724         posix_spawnattr_init, posix_spawnattr_setsigmask,
49725         posix_spawnattr_setflags, posix_spawnattr_destroy.
49726
49727 2009-01-25  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/glthread/threadlib.c: Include <stdlib.h>.
49730
49731 2009-01-25  Bruno Haible  <bruno@clisp.org>
49732
49733         * lib/glthread/threadlib.c (dummy): New declaration.
49734
49735 2009-01-25  Bruno Haible  <bruno@clisp.org>
49736
49737         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49738         multibyte characters also for the GB18030 encoding. Don't crash when
49739         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49740
49741 2009-01-25  Bruno Haible  <bruno@clisp.org>
49742
49743         Avoid redefining 'struct random_data' on OSF/1 5.1.
49744         * lib/stdlib.in.h: Include <random.h> if it exists.
49745         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49746         HAVE_RANDOM_H. Include <random.h> when testing whether
49747         'struct random_data' exists.
49748         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49749
49750 2009-01-25  Bruno Haible  <bruno@clisp.org>
49751
49752         Don't install charset.alias on MacOS X >= 10.3.
49753         * lib/localcharset.c (DARWIN7): New macro.
49754         (get_charset_aliases): Hardcode the result for Darwin7.
49755         * modules/localcharset (install-exec-local): Don't install
49756         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49757
49758 2009-01-25  Bruno Haible  <bruno@clisp.org>
49759
49760         Don't install charset.alias on mingw and Cygwin.
49761         * modules/localcharset (install-exec-local): Don't install
49762         charset.alias on mingw and Cygwin, if the file does not yet exist.
49763         The result for these platforms is hardcoded in localcharset.c.
49764
49765 2009-01-25  Bruno Haible  <bruno@clisp.org>
49766
49767         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49769         before requiring AC_USE_SYSTEM_EXTENSIONS.
49770
49771 2009-01-25  Jim Meyering  <meyering@redhat.com>
49772
49773         c-strtod: avoid warnings
49774         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49775         "assignment discards qualifiers from pointer target type" warnings.
49776
49777 2009-01-24  Bruno Haible  <bruno@clisp.org>
49778
49779         Add support for non-UTF-8 locales on MacOS X.
49780         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49781         canonical encodings. For Darwin 7 and newer, don't map traditional
49782         encodings to UTF-8.
49783         Reported by Vincent Lefevre <vincent@vinc17.org>
49784         at <http://savannah.gnu.org/bugs/?25235>.
49785
49786 2009-01-24  Bruno Haible  <bruno@clisp.org>
49787
49788         * doc/gnulib.texi (Obsolete modules): New section.
49789         Reported by Mike Frysinger <vapier@gentoo.org>.
49790
49791 2009-01-24  Bruno Haible  <bruno@clisp.org>
49792
49793         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49794         (%.dvi): New rule.
49795
49796 2009-01-24  Bruno Haible  <bruno@clisp.org>
49797
49798         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49799         Reported by Eric Blake.
49800
49801 2009-01-24  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49804         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49805         Reported by Gary V. Vaughan <gary@gnu.org>.
49806
49807 2009-01-24  Bruno Haible  <bruno@clisp.org>
49808
49809         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49810
49811 2009-01-23  Bruno Haible  <bruno@clisp.org>
49812
49813         Make c-strtod, c-strtold usable in libraries.
49814         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49815         (C_STRTOD): Call strdup instead of xstrdup.
49816         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49817         * modules/c-strtold (Depends-on): Likewise.
49818         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49819         * NEWS: Mention the change.
49820         Reported by Michael Gold <mgold@ncf.ca>.
49821
49822 2009-01-23  Jim Meyering  <meyering@redhat.com>
49823
49824         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49825         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49826         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49827
49828 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49829
49830         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49831         GNU CoreUtils.
49832         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49833         * modules/version-etc (Description): Update.
49834
49835 2009-01-22  Bruno Haible  <bruno@clisp.org>
49836
49837         Cache the C locale object.
49838         * lib/c-strtod.c (c_locale_cache): New variable.
49839         (c_locale): New function.
49840         (C_STRTOD): Use it, and don't call freelocale.
49841         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49842         Suggested by Paolo Bonzini.
49843
49844 2009-01-21  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49847         conditions other than overflow.
49848
49849 2009-01-21  Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/c-strtod.c: Include errno.h.
49852         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49853         value from STRTOD_L and STRTOD.
49854
49855 2009-01-21  Bruno Haible  <bruno@clisp.org>
49856         and Jim Meyering  <meyering@redhat.com>
49857
49858         nanosleep: skip configure test (fail it) for apple universal builds
49859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49860         universal builds, assume that nanosleep does not work.
49861         * modules/nanosleep (Depends-on): Add multiarch.
49862
49863         mktime: skip configure test (fail it) for apple universal builds
49864         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49865         universal builds, assume that mktime does not work.
49866         * modules/mktime (Depends-on): Add multiarch.
49867
49868 2009-01-21  Eric Blake  <ebb9@byu.net>
49869
49870         multiarch: avoid expand-before-require warning
49871         * modules/multiarch (configure.ac): Require, rather than expand,
49872         gl_MULTIARCH.
49873         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49874         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49875         enforce that all clients require it.  Partial reversion of
49876         2008-12-29 patch.
49877
49878         error: avoid expand-before-require warning
49879         * modules/errno (configure.ac): Require, rather than expand,
49880         gl_HEADER_ERRNO_H.
49881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49882         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49883         enforce that all clients require it.
49884
49885         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49886         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49887         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49888         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49889
49890 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49891
49892         Revert:
49893         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49894
49895         regex: do not depend on obsolete modules.
49896         * modules/regex: Remove memcmp and memmove.
49897
49898 2009-01-20  Bruno Haible  <bruno@clisp.org>
49899
49900         Make the 'link' module link on Windows NT 4.
49901         * lib/link.c (_WIN32_WINNT): Don't define.
49902         (CreateHardLinkFuncType): New type.
49903         (CreateHardLinkFunc, initialized): New variables.
49904         (initialize): New function.
49905         (link): Invoke CreateHardLink indirectly through the function pointer.
49906
49907 2009-01-20  Bruno Haible  <bruno@clisp.org>
49908
49909         Fix compilation failure on mingw.
49910         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49911
49912 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49913
49914         * doc/c-strtod.texi: Mention a couple of restrictions.
49915
49916 2009-01-20  Jim Meyering  <meyering@redhat.com>
49917
49918         gettimeofday: move more declarations out of functions
49919         * lib/gettimeofday.c: Move extern declarations of tzset and
49920         gmtime out of containing functions.  Prompted by Bruno Haible.
49921
49922 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49923
49924         regex: do not depend on obsolete modules.
49925         * modules/regex: Remove memcmp and memmove.
49926
49927 2009-01-19  Bruno Haible  <bruno@clisp.org>
49928
49929         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49930         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49931         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49932         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49933         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49934
49935 2009-01-19  Bruno Haible  <bruno@clisp.org>
49936
49937         * tests/test-link.c: Include <errno.h>.
49938         (main): Exit with code 77 when a hard link cannot be created due to
49939         the file system.
49940         * tests/test-link.sh: Skip test when a hard link cannot be created due
49941         to the file system.
49942         Suggested by Eric Blake.
49943
49944 2009-01-19  Martin Lambers  <marlam@marlam.de>
49945
49946         * modules/link-tests: New file.
49947         * tests/test-link.sh: New file.
49948         * tests/test-link.c: New file.
49949
49950 2009-01-19  Eric Blake  <ebb9@byu.net>
49951
49952         doc: mention another function added in cygwin 1.7.0
49953         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49954         Another new function in cygwin 1.7.
49955
49956 2009-01-19  Bruno Haible  <bruno@clisp.org>
49957
49958         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49959         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49960         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49961         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49962         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49963         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49964         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49965         * m4/md4.m4 (gl_MD4): Likewise.
49966         * m4/md5.m4 (gl_MD5): Likewise.
49967         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49968         * m4/sha1.m4 (gl_SHA1): Likewise.
49969         * m4/sha256.m4 (gl_SHA256): Likewise.
49970         * m4/sha512.m4 (gl_SHA512): Likewise.
49971
49972 2009-01-19  Bruno Haible  <bruno@clisp.org>
49973
49974         * modules/uniname/uniname-tests (Depends-on): Add progname.
49975         * tests/uniname/test-uninames.c: Include progname.h.
49976         (main): Call set_program_name.
49977
49978         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49979         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49980         (main): Call set_program_name.
49981
49982         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49983         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49984         (main): Call set_program_name.
49985
49986         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49987         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49988         (main): Call set_program_name.
49989
49990         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49991         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49992         (main): Call set_program_name.
49993
49994         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49995         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49996         (main): Call set_program_name.
49997
49998         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49999         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50000         (main): Call set_program_name.
50001
50002         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50003         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50004         (main): Call set_program_name.
50005
50006         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50007         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50008         (main): Call set_program_name.
50009
50010 2009-01-19  Eric Blake  <ebb9@byu.net>
50011
50012         test-unistd: test previous patch
50013         * tests/test-unistd.c: Test *_FILENO macros.
50014
50015         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50016         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50017         Guarantee a definition.
50018         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50019         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50020         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50021         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50022         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50023         Likewise.
50024         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50025         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50026         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50027         Likewise.
50028         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50029         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50030         (STDERR_FILENO): Likewise.
50031         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50032         (STDERR_FILENO): Likewise.
50033         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50034         (STDERR_FILENO): Likewise.
50035         Reported by Elbert Pol.
50036
50037 2009-01-19  Eric Blake  <ebb9@byu.net>
50038
50039         doc: mention more functions added in cygwin 1.7.0
50040         * doc/posix-functions/abort.texi (abort): Update wording related
50041         to cygwin.
50042         * doc/posix-functions/daylight.texi (daylight): Likewise.
50043         * doc/posix-functions/optarg.texi (optarg): Likewise.
50044         * doc/posix-functions/optarg.texi (opterr): Likewise.
50045         * doc/posix-functions/optarg.texi (optind): Likewise.
50046         * doc/posix-functions/optarg.texi (optopt): Likewise.
50047         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50048         worked in 1.5.x, and was withdrawn in 1.7.
50049         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50050         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50051         cygwin versions.
50052         * doc/posix-functions/perror.texi (perror): Likewise.
50053         * doc/posix-functions/printf.texi (printf): Likewise.
50054         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50055         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50057         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50058         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50059         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50060         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50061         Likewise.
50062         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50063         Likewise.
50064         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50065         this function.
50066         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50067         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50068         Likewise.
50069         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50070         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50071         * doc/posix-functions/confstr.texi (confstr): Likewise.
50072         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50073         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50074         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50075         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50076         * doc/posix-functions/fputws.texi (fputws): Likewise.
50077         * doc/posix-functions/fwide.texi (fwide): Likewise.
50078         * doc/posix-functions/getwc.texi (getwc): Likewise.
50079         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50080         * doc/posix-functions/putwc.texi (putwc): Likewise.
50081         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50082         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50083         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50084         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50085         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50086         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50087         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50088         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50089         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50090         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50091         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50092
50093 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50094
50095         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50096         * lib/ioctl.c: Include <sys/ioctl.h>.
50097
50098 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50099
50100         * modules/getdate-tests (Depends-on): Add progname.
50101         * tests/test-getdate.c: Use progname module, to avoid link errors
50102         on non-glibc systems.
50103
50104 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50105
50106         * modules/filenamecat-tests (Depends-on): Add progname.
50107         * modules/fstrcmp-tests (Depends-on): Likewise.
50108
50109         * tests/test-filenamecat.c: Use progname module, to avoid link
50110         errors on non-glibc systems.
50111         * tests/test-fstrcmp.c: Likewise.
50112
50113 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50114
50115         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50116         * lib/gettimeofday.c: Move extern declaration out of function.
50117
50118 2009-01-18  Bruno Haible  <bruno@clisp.org>
50119
50120         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50121         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50122         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50123
50124 2009-01-18  Bruno Haible  <bruno@clisp.org>
50125
50126         * lib/strftime.c (MEMPCPY): Remove unused macro.
50127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50128
50129 2009-01-18  Martin Lambers  <marlam@marlam.de>
50130
50131         New module 'link'.
50132         * lib/unistd.in.h (link): New declaration.
50133         * lib/link.c: New file.
50134         * m4/link.m4: New file.
50135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50136         HAVE_LINK.
50137         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50138         * modules/link: New file.
50139         * doc/posix-functions/link.texi: Mention the new module.
50140
50141 2009-01-18  Bruno Haible  <bruno@clisp.org>
50142
50143         * tests/test-avltree_list.c (main): Call set_program_name.
50144         * tests/test-avltree_oset.c (main): Likewise.
50145         * tests/test-obstack-printf.c: Include progname.h.
50146         (main): Call set_program_name.
50147         * tests/test-quotearg.c: Include progname.h.
50148         (main): Call set_program_name.
50149         * tests/test-xmemdup0.c: Include progname.h.
50150         (main): Call set_program_name.
50151
50152 2009-01-18  Bruno Haible  <bruno@clisp.org>
50153
50154         New module 'alphasort'.
50155         * lib/dirent.in.h (alphasort): New declaration.
50156         * lib/alphasort.c: New file, from glibc with modifications.
50157         * m4/alphasort.m4: New file.
50158         * modules/alphasort: New file.
50159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50160         HAVE_ALPHASORT.
50161         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50162         HAVE_ALPHASORT.
50163         * doc/posix-functions/alphasort.texi: Mention the new module and the
50164         portability problems.
50165
50166 2009-01-18  Bruno Haible  <bruno@clisp.org>
50167
50168         New module 'scandir'.
50169         * lib/dirent.in.h (scandir): New declaration.
50170         * lib/scandir.c: New file, from glibc with modifications.
50171         * m4/scandir.m4: New file.
50172         * modules/scandir: New file.
50173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50174         HAVE_SCANDIR.
50175         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50176         HAVE_SCANDIR.
50177         * doc/posix-functions/scandir.texi: Mention the new module and the
50178         portability problems.
50179
50180 2009-01-17  Bruno Haible  <bruno@clisp.org>
50181
50182         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50183         Update documentation.
50184         (func_remove_suffix): Escape all dots in the suffix. Update
50185         documentation.
50186         (func_filter_filelist): Update documentation.
50187         Reported by Ralf Wildenhues.
50188
50189 2009-01-17  Bruno Haible  <bruno@clisp.org>
50190
50191         * modules/dprintf-posix-tests: New file.
50192         * tests/test-dprintf-posix.sh: New file.
50193         * tests/test-dprintf-posix.c: New file.
50194
50195         New modules 'dprintf', 'dprintf-posix'.
50196         * lib/stdio.in.h (dprintf): New declaration.
50197         * lib/dprintf.c: New file.
50198         * m4/dprintf.m4: New file.
50199         * m4/dprintf-posix.m4: New file.
50200         * modules/dprintf: New file.
50201         * modules/dprintf-posix: New file.
50202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50203         HAVE_DPRINTF, REPLACE_DPRINTF.
50204         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50205         HAVE_DPRINTF, REPLACE_DPRINTF.
50206         * doc/posix-functions/dprintf.texi: Mention the new modules.
50207
50208 2009-01-17  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/vdprintf-posix-tests: New file.
50211         * tests/test-vdprintf-posix.sh: New file.
50212         * tests/test-vdprintf-posix.c: New file.
50213
50214         New modules 'vdprintf', 'vdprintf-posix'.
50215         * lib/stdio.in.h (vdprintf): New declaration.
50216         * lib/vdprintf.c: New file.
50217         * m4/vdprintf.m4: New file.
50218         * m4/vdprintf-posix.m4: New file.
50219         * modules/vdprintf: New file.
50220         * modules/vdprintf-posix: New file.
50221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50222         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50223         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50224         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50225         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50226
50227 2009-01-17  Bruno Haible  <bruno@clisp.org>
50228
50229         Fix replacement of fopen on mingw.
50230         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50231         mingw.
50232
50233 2009-01-17  Bruno Haible  <bruno@clisp.org>
50234
50235         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50236         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50237
50238 2009-01-17  Bruno Haible  <bruno@clisp.org>
50239
50240         Avoid test-fflush2.sh failure on mingw.
50241         * tests/test-fflush2.c: Include binary-io.h.
50242         (main): Put standard input into binary mode.
50243         * modules/fflush-tests (Depends-on): Add binary-io.
50244
50245 2009-01-17  Bruno Haible  <bruno@clisp.org>
50246
50247         * lib/wchar.in.h: In another particular situation, include only the
50248         system's <wchar.h> file.
50249         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50250         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50251         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50252
50253 2009-01-17  Bruno Haible  <bruno@clisp.org>
50254
50255         Support for stripping executables in --enable-relocatable.
50256         * build-aux/install-reloc: Expect one more argument, or an environment
50257         variable RELOC_STRIP_PROG. If set, strip the destination program and
50258         its wrapper.
50259         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50260         RELOC_STRIP_PROG.
50261         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50262         to set RELOCATABLE_STRIP.
50263         * NEWS: Mention the new Makefile requirement.
50264
50265 2009-01-17  Bruno Haible  <bruno@clisp.org>
50266
50267         * build-aux/install-reloc: Remove debugging information left over by
50268         C compiler on MacOS X.
50269
50270 2009-01-17  Bruno Haible  <bruno@clisp.org>
50271
50272         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50273         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50274         _NSGetExecutablePath.
50275
50276 2009-01-16  Jim Meyering  <meyering@redhat.com>
50277
50278         strerror: avoid warnings about discarding "const"
50279         * lib/strerror.c (rpl_strerror): Instead of returning a const
50280         string from each and every "case", use a variable, and add a single
50281         cast after the switch.
50282
50283 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50284
50285         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50286
50287 2009-01-16  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50290         array initializer syntax that also works in C++ mode.
50291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50292
50293 2009-01-16  Jim Meyering  <meyering@redhat.com>
50294
50295         poll: suppress a warning
50296         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50297         to ignore "...unsigned expression < 0 is always false" warnings.
50298
50299 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50300
50301         poll: remove declarations of unused variables
50302         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50303         sockbuf and optlen.
50304
50305 2009-01-15  Bruno Haible  <bruno@clisp.org>
50306
50307         Make fflush-after-ungetc POSIX compliant on BSD systems.
50308         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50309         (clear_ungetc_buffer): Implement also for other systems.
50310         (rpl_fflush): On glibc systems, invoke
50311         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50312         clear_ungetc_buffer after fetching the stream's position, not before.
50313
50314 2009-01-15  Bruno Haible  <bruno@clisp.org>
50315
50316         Make fflush-after-ungetc POSIX compliant on glibc systems.
50317         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50318         after ungetc.
50319         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50320         (rpl_fflush): On glibc systems, simply call the system's fflush
50321         function after clearing the ungetc buffer.
50322         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50323         Instead, lseek only to the end of file, then use the system's fseeko
50324         for the rest. On glibc systems, reset the EOF indicator bit.
50325
50326 2009-01-15  Jim Meyering  <meyering@redhat.com>
50327
50328         openmp.m4: revert quote-adding change, for portability to older autoconf
50329         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50330         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50331         Simon Josefsson noticed the problem when using autoconf-2.61.
50332
50333 2009-01-15  Bruno Haible  <bruno@clisp.org>
50334
50335         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50336         * tests/test-fflush2.c (ASSERT): Always fail.
50337         (main): Add two tests for fflush() after ungetc(), taking into account
50338         the Austin Group's clarification.
50339         Suggested by Eric Blake.
50340
50341 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50342
50343         mktime.m4: remove K&R-style function prototypes
50344         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50345         for the Sun C++ compiler.
50346
50347 2009-01-14  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50350         while including <wchar.h>.
50351         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50352         the system's <wchar.h> file.
50353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50354
50355 2009-01-14  Bruno Haible  <bruno@clisp.org>
50356
50357         * m4/csharp.m4: Don't mention gettext on the serial number line.
50358         * m4/csharpexec.m4: Likewise.
50359         * m4/eaccess.m4: Likewise.
50360         * m4/javaexec.m4: Likewise.
50361         * m4/sig_atomic_t.m4: Likewise.
50362         * m4/tmpdir.m4: Likewise.
50363         * m4/intldir.m4: Bump gettext version.
50364         * m4/lib-ld.m4: Likewise.
50365
50366 2009-01-14  Bruno Haible  <bruno@clisp.org>
50367
50368         * lib/progname.c (set_program_name): Add more comments.
50369         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50370
50371 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50372
50373         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50374         were sys/stat.h does not define it.
50375
50376 2009-01-14  Jim Meyering  <meyering@redhat.com>
50377
50378         many *.m4 files: improve m4 quoting
50379         99% of this change was performed by running the following commands:
50380         git ls-files | grep '\.m4$' | xargs perl -pi \
50381           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50382           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50383           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50384           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50385         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50386         The remainder were to add Copyright dates, increment serial numbers,
50387         undo some changes in comments, exclude m4/intl.m4, and add quotes
50388         around the "1" in ",1" where the unusual spacing prohibited the
50389         above regexps from doing the job.  For more details, see
50390         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50391         * m4/acl.m4: Modified.
50392         * m4/afs.m4: Likewise.
50393         * m4/alloca.m4: Likewise.
50394         * m4/argp.m4: Likewise.
50395         * m4/argz.m4: Likewise.
50396         * m4/atexit.m4: Likewise.
50397         * m4/bison-i18n.m4: Likewise.
50398         * m4/bison.m4: Likewise.
50399         * m4/byteswap.m4: Likewise.
50400         * m4/c-stack.m4: Likewise.
50401         * m4/c-strtod.m4: Likewise.
50402         * m4/calloc.m4: Likewise.
50403         * m4/canonicalize-lgpl.m4: Likewise.
50404         * m4/chown.m4: Likewise.
50405         * m4/clock_time.m4: Likewise.
50406         * m4/codeset.m4: Likewise.
50407         * m4/copy-file.m4: Likewise.
50408         * m4/csharp.m4: Likewise.
50409         * m4/csharpcomp.m4: Likewise.
50410         * m4/csharpexec.m4: Likewise.
50411         * m4/d-ino.m4: Likewise.
50412         * m4/d-type.m4: Likewise.
50413         * m4/dirfd.m4: Likewise.
50414         * m4/double-slash-root.m4: Likewise.
50415         * m4/eaccess.m4: Likewise.
50416         * m4/eealloc.m4: Likewise.
50417         * m4/environ.m4: Likewise.
50418         * m4/errno_h.m4: Likewise.
50419         * m4/euidaccess.m4: Likewise.
50420         * m4/execute.m4: Likewise.
50421         * m4/fatal-signal.m4: Likewise.
50422         * m4/fchdir.m4: Likewise.
50423         * m4/fcntl_h.m4: Likewise.
50424         * m4/fileblocks.m4: Likewise.
50425         * m4/filenamecat.m4: Likewise.
50426         * m4/findprog.m4: Likewise.
50427         * m4/flexmember.m4: Likewise.
50428         * m4/fnmatch.m4: Likewise.
50429         * m4/fopen.m4: Likewise.
50430         * m4/fpending.m4: Likewise.
50431         * m4/fprintf-posix.m4: Likewise.
50432         * m4/free.m4: Likewise.
50433         * m4/frexp.m4: Likewise.
50434         * m4/frexpl.m4: Likewise.
50435         * m4/fsusage.m4: Likewise.
50436         * m4/ftruncate.m4: Likewise.
50437         * m4/gc-camellia.m4: Likewise.
50438         * m4/gc-random.m4: Likewise.
50439         * m4/gc.m4: Likewise.
50440         * m4/getaddrinfo.m4: Likewise.
50441         * m4/getcwd-abort-bug.m4: Likewise.
50442         * m4/getcwd-path-max.m4: Likewise.
50443         * m4/getdate.m4: Likewise.
50444         * m4/getdomainname.m4: Likewise.
50445         * m4/getgroups.m4: Likewise.
50446         * m4/gethostname.m4: Likewise.
50447         * m4/gethrxtime.m4: Likewise.
50448         * m4/getline.m4: Likewise.
50449         * m4/getloadavg.m4: Likewise.
50450         * m4/getndelim2.m4: Likewise.
50451         * m4/getpass.m4: Likewise.
50452         * m4/gettext.m4: Likewise.
50453         * m4/gettime.m4: Likewise.
50454         * m4/gettimeofday.m4: Likewise.
50455         * m4/gnulib-common.m4: Likewise.
50456         * m4/group-member.m4: Likewise.
50457         * m4/host-os.m4: Likewise.
50458         * m4/iconv.m4: Likewise.
50459         * m4/iconv_open.m4: Likewise.
50460         * m4/inet_ntop.m4: Likewise.
50461         * m4/inet_pton.m4: Likewise.
50462         * m4/inline.m4: Likewise.
50463         * m4/intldir.m4: Likewise.
50464         * m4/intlmacosx.m4: Likewise.
50465         * m4/intmax.m4: Likewise.
50466         * m4/intmax_t.m4: Likewise.
50467         * m4/inttypes.m4: Likewise.
50468         * m4/inttypes_h.m4: Likewise.
50469         * m4/inttypes-pri.m4: Likewise.
50470         * m4/isapipe.m4: Likewise.
50471         * m4/isnand.m4: Likewise.
50472         * m4/isnanf.m4: Likewise.
50473         * m4/isnanl.m4: Likewise.
50474         * m4/javacomp.m4: Likewise.
50475         * m4/javaexec.m4: Likewise.
50476         * m4/jm-winsz1.m4: Likewise.
50477         * m4/jm-winsz2.m4: Likewise.
50478         * m4/lchown.m4: Likewise.
50479         * m4/lcmessage.m4: Likewise.
50480         * m4/ldexpl.m4: Likewise.
50481         * m4/lib-ld.m4: Likewise.
50482         * m4/lib-link.m4: Likewise.
50483         * m4/libsigsegv.m4: Likewise.
50484         * m4/link-follow.m4: Likewise.
50485         * m4/localcharset.m4: Likewise.
50486         * m4/locale-fr.m4: Likewise.
50487         * m4/locale-ja.m4: Likewise.
50488         * m4/locale-tr.m4: Likewise.
50489         * m4/locale-zh.m4: Likewise.
50490         * m4/lock.m4: Likewise.
50491         * m4/longlong.m4: Likewise.
50492         * m4/ls-mntd-fs.m4: Likewise.
50493         * m4/lstat.m4: Likewise.
50494         * m4/malloc.m4: Likewise.
50495         * m4/mathl.m4: Likewise.
50496         * m4/mbrtowc.m4: Likewise.
50497         * m4/mbstate_t.m4: Likewise.
50498         * m4/mbswidth.m4: Likewise.
50499         * m4/memchr.m4: Likewise.
50500         * m4/memcmp.m4: Likewise.
50501         * m4/memcpy.m4: Likewise.
50502         * m4/memmem.m4: Likewise.
50503         * m4/memmove.m4: Likewise.
50504         * m4/mempcpy.m4: Likewise.
50505         * m4/memrchr.m4: Likewise.
50506         * m4/memset.m4: Likewise.
50507         * m4/minmax.m4: Likewise.
50508         * m4/mkdir-slash.m4: Likewise.
50509         * m4/mkdtemp.m4: Likewise.
50510         * m4/mktime.m4: Likewise.
50511         * m4/mmap-anon.m4: Likewise.
50512         * m4/mountlist.m4: Likewise.
50513         * m4/nanosleep.m4: Likewise.
50514         * m4/nls.m4: Likewise.
50515         * m4/nocrash.m4: Likewise.
50516         * m4/open.m4: Likewise.
50517         * m4/openat.m4: Likewise.
50518         * m4/openmp.m4: Likewise.
50519         * m4/pathmax.m4: Likewise.
50520         * m4/perl.m4: Likewise.
50521         * m4/physmem.m4: Likewise.
50522         * m4/pipe.m4: Likewise.
50523         * m4/po.m4: Likewise.
50524         * m4/poll.m4: Likewise.
50525         * m4/posixtm.m4: Likewise.
50526         * m4/posixver.m4: Likewise.
50527         * m4/printf-frexp.m4: Likewise.
50528         * m4/printf-frexpl.m4: Likewise.
50529         * m4/printf-posix.m4: Likewise.
50530         * m4/printf-posix-rpl.m4: Likewise.
50531         * m4/printf.m4: Likewise.
50532         * m4/progtest.m4: Likewise.
50533         * m4/putenv.m4: Likewise.
50534         * m4/readline.m4: Likewise.
50535         * m4/readlink.m4: Likewise.
50536         * m4/readutmp.m4: Likewise.
50537         * m4/realloc.m4: Likewise.
50538         * m4/regex.m4: Likewise.
50539         * m4/relocatable.m4: Likewise.
50540         * m4/relocatable-lib.m4: Likewise.
50541         * m4/rename-dest-slash.m4: Likewise.
50542         * m4/rename.m4: Likewise.
50543         * m4/rmdir-errno.m4: Likewise.
50544         * m4/rmdir.m4: Likewise.
50545         * m4/roundf.m4: Likewise.
50546         * m4/roundl.m4: Likewise.
50547         * m4/rpmatch.m4: Likewise.
50548         * m4/save-cwd.m4: Likewise.
50549         * m4/selinux-selinux-h.m4: Likewise.
50550         * m4/setenv.m4: Likewise.
50551         * m4/settime.m4: Likewise.
50552         * m4/sig2str.m4: Likewise.
50553         * m4/sig_atomic_t.m4: Likewise.
50554         * m4/signalblocking.m4: Likewise.
50555         * m4/signbit.m4: Likewise.
50556         * m4/sigpipe.m4: Likewise.
50557         * m4/sockets.m4: Likewise.
50558         * m4/sockpfaf.m4: Likewise.
50559         * m4/st_dm_mode.m4: Likewise.
50560         * m4/stat-time.m4: Likewise.
50561         * m4/stdbool.m4: Likewise.
50562         * m4/stdint.m4: Likewise.
50563         * m4/stdint_h.m4: Likewise.
50564         * m4/stpcpy.m4: Likewise.
50565         * m4/stpncpy.m4: Likewise.
50566         * m4/strcase.m4: Likewise.
50567         * m4/strchrnul.m4: Likewise.
50568         * m4/strcspn.m4: Likewise.
50569         * m4/strdup.m4: Likewise.
50570         * m4/strftime.m4: Likewise.
50571         * m4/strndup.m4: Likewise.
50572         * m4/strnlen.m4: Likewise.
50573         * m4/strpbrk.m4: Likewise.
50574         * m4/strptime.m4: Likewise.
50575         * m4/strsep.m4: Likewise.
50576         * m4/strtod.m4: Likewise.
50577         * m4/strtoimax.m4: Likewise.
50578         * m4/strtok_r.m4: Likewise.
50579         * m4/strtol.m4: Likewise.
50580         * m4/strtoll.m4: Likewise.
50581         * m4/strtoul.m4: Likewise.
50582         * m4/strtoull.m4: Likewise.
50583         * m4/strtoumax.m4: Likewise.
50584         * m4/strverscmp.m4: Likewise.
50585         * m4/threadlib.m4: Likewise.
50586         * m4/timegm.m4: Likewise.
50587         * m4/tm_gmtoff.m4: Likewise.
50588         * m4/tmpdir.m4: Likewise.
50589         * m4/tmpfile.m4: Likewise.
50590         * m4/tzset.m4: Likewise.
50591         * m4/uintmax_t.m4: Likewise.
50592         * m4/unlinkdir.m4: Likewise.
50593         * m4/unlocked-io.m4: Likewise.
50594         * m4/uptime.m4: Likewise.
50595         * m4/userspec.m4: Likewise.
50596         * m4/utimbuf.m4: Likewise.
50597         * m4/utime.m4: Likewise.
50598         * m4/utimes-null.m4: Likewise.
50599         * m4/utimes.m4: Likewise.
50600         * m4/vararrays.m4: Likewise.
50601         * m4/vasnprintf.m4: Likewise.
50602         * m4/vfprintf-posix.m4: Likewise.
50603         * m4/vprintf-posix.m4: Likewise.
50604         * m4/wait-process.m4: Likewise.
50605         * m4/wchar_t.m4: Likewise.
50606         * m4/wint_t.m4: Likewise.
50607         * m4/write-any-file.m4: Likewise.
50608         * m4/yield.m4: Likewise.
50609
50610 2009-01-13  Bruno Haible  <bruno@clisp.org>
50611
50612         Avoid test-copy-file.sh failures when ACL support insufficient.
50613         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50614         TESTS_ENVIRONMENT.
50615         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50616         Reported by Jim Meyering.
50617
50618 2009-01-13  Bruno Haible  <bruno@clisp.org>
50619
50620         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50621         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50622         * modules/unistdio/u8-printf-parse (Files): Likewise.
50623         * modules/unistdio/u32-printf-parse (Files): Likewise.
50624         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50625
50626 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50627
50628         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50629         and m4/inttypes_h.m4 too.
50630
50631 2009-01-12  Eric Blake  <ebb9@byu.net>
50632
50633         tests: IRIX 6.2 cc can't compile -0.0 into .data
50634         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50635         rather than at compile-time.
50636         * tests/test-floorl.c (minus_zero): Likewise.
50637         * tests/test-frexpl.c (minus_zero): Likewise.
50638         * tests/test-isnan.c (minus_zerol): Likewise.
50639         * tests/test-isnanl.h (minus_zero): Likewise.
50640         * tests/test-ldexpl.c (minus_zero): Likewise.
50641         * tests/test-roundl.c (minus_zero): Likewise.
50642         * tests/test-signbit.c (minus_zerol): Likewise.
50643         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50644         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50645         * tests/test-truncl.c (minus_zero): Likewise.
50646         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50647         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50648         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50649
50650 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50651
50652         regex: fix glibc bug 9697
50653         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50654         handling.
50655
50656 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50657
50658         regex: fix glibc bug 697
50659         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50660         being NULL also if there are no backreferences.
50661
50662 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50663
50664         regex: merge glibc changes
50665         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50666         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50667         re_string_skip_chars, re_string_reconstruct): Likewise.
50668         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50669
50670 2009-01-07  Jim Meyering  <meyering@redhat.com>
50671
50672         poll: filter through cppi
50673         * lib/poll.c: Indent cpp directives to reflect nesting.
50674
50675 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50676
50677         poll: don't return uninitialized
50678         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50679
50680 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50681
50682         avoid compile failure on AIX 6.1
50683         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50684         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50685
50686 2009-01-04  Jim Meyering  <meyering@redhat.com>
50687
50688         remove duplicate inclusion of <stdio.h>
50689         * tests/test-fprintf-posix.c: Likewise.
50690         * tests/test-printf-posix.c: Likewise.
50691         * tests/test-snprintf-posix.c: Likewise.
50692         * tests/test-sprintf-posix.c: Likewise.
50693         * tests/test-vasprintf-posix.c: Likewise.
50694         * tests/test-vfprintf-posix.c: Likewise.
50695         * tests/test-vprintf-posix.c: Likewise.
50696         * tests/test-vsnprintf-posix.c: Likewise.
50697         * tests/test-vsprintf-posix.c: Likewise.
50698
50699 2009-01-03  Jim Meyering  <meyering@redhat.com>
50700
50701         gnulib-tool: fix sed-based filtering
50702         * gnulib-tool (func_filter_filelist): Remove extra backslash
50703         in sed_fff_filter definition.
50704
50705 2009-01-02  Jim Meyering  <meyering@redhat.com>
50706
50707         strftime: avoid compilation failure on Solaris 2.6
50708         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50709         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50710         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50711         be available.  Reported by Tom G. Christensen.  Details in
50712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50713
50714 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50715             Bruno Haible  <bruno@clisp.org>
50716
50717         Speed up gnulib-tool by doing more string processing through shell
50718         built-ins.
50719         * gnulib-tool (fast_func_append): New variable.
50720         (func_remove_prefix, func_remove_suffix): New functions.
50721         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50722         (func_filter_filelist): New function.
50723         (func_get_dependencies): Use func_remove_suffix instead of sed.
50724         (func_get_automake_snippet): Use func_filter_filelist instead of a
50725         subshell and sed invocation.
50726
50727 2009-01-01  Bruno Haible  <bruno@clisp.org>
50728
50729         Fix a security bug.
50730         * gnulib-tool (func_import, import, update): Don't allow the characters
50731         '"', '$', '`', '\' in macro arguments that become part of commands that
50732         are evaluated.
50733
50734 2009-01-01  Bruno Haible  <bruno@clisp.org>
50735
50736         * gnulib-tool (func_reset_sigpipe): Add more comments.
50737
50738 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50739
50740         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50741         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50742         already know the answer.
50743
50744 2009-01-01  Jim Meyering  <meyering@redhat.com>
50745
50746         * lib/version-etc.c (version_etc_va): Update copyright year.
50747
50748 2008-12-30  Bruno Haible  <bruno@clisp.org>
50749
50750         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50751         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50752         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50753
50754 2008-12-29  Eric Blake  <ebb9@byu.net>
50755
50756         multiarch: avoid autoconf AC_REQUIRE bug
50757         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50758         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50759         2.63 and older.
50760         Reported by Bruno Haible, and analyzed in
50761         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50762
50763 2008-12-29  Bruno Haible  <bruno@clisp.org>
50764
50765         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50766         files in subdirectories correctly.
50767         Reported by Ralf Wildenhues.
50768
50769 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50770
50771         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50772         rather than 'join FILE -', for Solaris join.
50773
50774 2008-12-29  Bruno Haible  <bruno@clisp.org>
50775
50776         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50777         quoting.
50778         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50779         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50780         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50781         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50782         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50783         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50784         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50785         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50786         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50787         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50788         * m4/nls.m4 (AM_NLS): Likewise.
50789         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50790         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50791         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50792         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50793         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50795         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50796         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50797         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50798         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50799         * m4/xsize.m4 (gl_XSIZE): Likewise.
50800         Suggested by Jim Meyering.
50801
50802 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50803
50804         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50805         * lib/parse-duration.c: use a switch instead of cascading if's.
50806
50807 2008-12-29  Eric Blake  <ebb9@byu.net>
50808
50809         wchar.h: supply WEOF on Irix 5.3
50810         * lib/wchar.in.h (wint_t): Also supply WEOF.
50811         * lib/wctype.in.h (wint_t): Likewise.
50812         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50813         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50814         Reported by Tom G. Christensen.
50815
50816 2008-12-26  Bruno Haible  <bruno@clisp.org>
50817
50818         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50819         i486, i586, i686.
50820
50821 2008-12-26  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50824
50825 2008-12-26  Bruno Haible  <bruno@clisp.org>
50826
50827         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50828         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50829         not __STDC_CONSTANT_MACROS.
50830         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50831
50832 2008-12-25  Bruno Haible  <bruno@clisp.org>
50833
50834         Add support for universal builds to vasnprintf.
50835         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50836         universal builds, guess no.
50837         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50838         * modules/vasprintf-posix (Depends-on): Likewise.
50839         * modules/fprintf-posix (Depends-on): Likewise.
50840         * modules/vfprintf-posix (Depends-on): Likewise.
50841         * modules/snprintf-posix (Depends-on): Likewise.
50842         * modules/vsnprintf-posix (Depends-on): Likewise.
50843         * modules/sprintf-posix (Depends-on): Likewise.
50844         * modules/vsprintf-posix (Depends-on): Likewise.
50845         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50846         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50847         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50848         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50849         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50850         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50851         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50852
50853         Add support for universal builds to <inttypes.h>.
50854         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50855         _SCNu64_PREFIX): In Apple
50856         universal builds, define directly, using _LP64.
50857         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50858         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50859         * modules/inttypes (Depends-on): Add multiarch.
50860         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50861
50862         Add support for universal builds to <stdint.h>.
50863         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50864         universal builds, define directly, using _LP64.
50865         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50866         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50867         and size_t.
50868         * modules/stdint (Depends-on): Add multiarch.
50869         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50870
50871         New module 'multiarch'.
50872         * modules/multiarch: New file.
50873         * m4/multiarch.m4: New file.
50874
50875 2008-12-25  Bruno Haible  <bruno@clisp.org>
50876
50877         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50878
50879 2008-12-25  Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/btowc (License): Relicense under LGPLv2+.
50882         * modules/mbsinit (License): Likewise.
50883         * modules/mbrtowc (License): Likewise.
50884         * modules/wcrtomb (License): Likewise.
50885         * modules/streq (License): Likewise.
50886         Reported by David Lutterkort <lutter@redhat.com>.
50887
50888 2008-12-23  Bruno Haible  <bruno@clisp.org>
50889
50890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50891
50892 2008-12-23  Bruno Haible  <bruno@clisp.org>
50893
50894         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50896         GETADDRINFO_LIB, not in LIBS.
50897         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50898         * modules/canon-host (Link): Likewise.
50899         * NEWS: Mention the change.
50900         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50901         GETADDRINFO_LIB.
50902
50903 2008-12-22  Bruno Haible  <bruno@clisp.org>
50904
50905         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50906         * doc/posix-functions/iswalpha_l.texi: Likewise.
50907         * doc/posix-functions/iswblank_l.texi: Likewise.
50908         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50909         * doc/posix-functions/iswctype_l.texi: Likewise.
50910         * doc/posix-functions/iswdigit_l.texi: Likewise.
50911         * doc/posix-functions/iswgraph_l.texi: Likewise.
50912         * doc/posix-functions/iswlower_l.texi: Likewise.
50913         * doc/posix-functions/iswprint_l.texi: Likewise.
50914         * doc/posix-functions/iswpunct_l.texi: Likewise.
50915         * doc/posix-functions/iswspace_l.texi: Likewise.
50916         * doc/posix-functions/iswupper_l.texi: Likewise.
50917         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50918         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50919         * doc/posix-functions/open_wmemstream.texi: Likewise.
50920         * doc/posix-functions/swscanf.texi: Likewise.
50921         * doc/posix-functions/towctrans_l.texi: Likewise.
50922         * doc/posix-functions/towlower.texi: Likewise.
50923         * doc/posix-functions/towlower_l.texi: Likewise.
50924         * doc/posix-functions/towupper.texi: Likewise.
50925         * doc/posix-functions/towupper_l.texi: Likewise.
50926         * doc/posix-functions/vfwprintf.texi: Likewise.
50927         * doc/posix-functions/vfwscanf.texi: Likewise.
50928         * doc/posix-functions/vswscanf.texi: Likewise.
50929         * doc/posix-functions/vwprintf.texi: Likewise.
50930         * doc/posix-functions/vwscanf.texi: Likewise.
50931         * doc/posix-functions/wcpcpy.texi: Likewise.
50932         * doc/posix-functions/wcpncpy.texi: Likewise.
50933         * doc/posix-functions/wcscasecmp.texi: Likewise.
50934         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50935         * doc/posix-functions/wcscoll_l.texi: Likewise.
50936         * doc/posix-functions/wcsdup.texi: Likewise.
50937         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50938         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50939         * doc/posix-functions/wcsnlen.texi: Likewise.
50940         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50941         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50942         * doc/posix-functions/wctrans_l.texi: Likewise.
50943         * doc/posix-functions/wctype_l.texi: Likewise.
50944         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50945         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50946         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50947         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50948         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50949         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50950         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50951         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50952         * doc/glibc-functions/wcschrnul.texi: Likewise.
50953         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50954         * doc/glibc-functions/wcstod_l.texi: Likewise.
50955         * doc/glibc-functions/wcstof_l.texi: Likewise.
50956         * doc/glibc-functions/wcstol_l.texi: Likewise.
50957         * doc/glibc-functions/wcstold_l.texi: Likewise.
50958         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50959         * doc/glibc-functions/wcstoq.texi: Likewise.
50960         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50961         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50962         * doc/glibc-functions/wcstouq.texi: Likewise.
50963         * doc/glibc-functions/wmempcpy.texi: Likewise.
50964
50965 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50966             Eric Blake  <ebb9@byu.net>
50967             Paolo Bonzini  <bonzini@gnu.org>
50968             Bruno Haible  <bruno@clisp.org>
50969
50970         Make c-stack work on Haiku.
50971         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50972         (c_stack_action): Use SA_ONSTACK flag.
50973
50974 2008-12-22  Bruno Haible  <bruno@clisp.org>
50975
50976         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50977
50978 2008-12-22  Bruno Haible  <bruno@clisp.org>
50979
50980         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50981         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50982         being overridden.
50983         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50984         New macros.
50985         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50987         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50988         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50989
50990 2008-12-22  Bruno Haible  <bruno@clisp.org>
50991
50992         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50993         from test code.
50994
50995 2008-12-22  Eric Blake  <ebb9@byu.net>
50996
50997         Avoid gcc warnings on cygwin.
50998         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50999         Avoid unused variable.
51000         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51001         Likewise.
51002
51003 2008-12-22  Bruno Haible  <bruno@clisp.org>
51004
51005         Remove HAVE_MBRTOWC conditionals.
51006         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51007         (mbscasecmp): Assume mbrtowc function.
51008         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51009         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51010         * lib/mbschr.c: Include mbuiter.h unconditionally.
51011         (mbschr): Assume mbrtowc function.
51012         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51013         (mbscspn): Assume mbrtowc function.
51014         * lib/mbslen.c: Include mbuiter.h unconditionally.
51015         (mbslen): Assume mbrtowc function.
51016         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51017         (mbsncasecmp): Assume mbrtowc function.
51018         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51019         (mbsnlen): Assume mbrtowc function.
51020         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51021         (mbspbrk): Assume mbrtowc function.
51022         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51023         (mbspcasecmp): Assume mbrtowc function.
51024         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51025         (mbsrchr): Assume mbrtowc function.
51026         * lib/mbssep.c: Include mbuiter.h unconditionally.
51027         (mbssep): Assume mbrtowc function.
51028         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51029         (mbsspn): Assume mbrtowc function.
51030         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51031         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51032         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51033         (mbstok_r): Assume mbrtowc function.
51034         * lib/propername.c: Include mbuiter.h unconditionally.
51035         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51036         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51037         (trim2): Assume mbrtowc function.
51038         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51039         (mbsnwidth): Assume mbrtowc function.
51040         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51041         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51042         fallback definitions.
51043         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51044
51045 2008-12-22  Bruno Haible  <bruno@clisp.org>
51046
51047         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51048
51049 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51050
51051         * modules/regex: Request emulations for the mb*/wc* functions we need.
51052         * m4/regex.m4: Don't look for those functions here.
51053         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51054
51055 2008-12-22  Bruno Haible  <bruno@clisp.org>
51056
51057         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51058
51059 2008-12-21  Bruno Haible  <bruno@clisp.org>
51060
51061         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51062         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51063         (Include): Remove conditionalization.
51064         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51065         (Include): Remove conditionalization.
51066         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51067         (Include): Remove conditionalization.
51068         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51069         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51070         * NEWS: Mention the change.
51071         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51072         via Sergey Poznyakoff <gray@gnu.org.ua>.
51073
51074 2008-12-21  Bruno Haible  <bruno@clisp.org>
51075
51076         * MODULES.html.sh (Extended multibyte and wide character utilities
51077         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51078         wcrtomb, wcsrtombs.
51079         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51080         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51081         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51082         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51083
51084 2008-12-21  Bruno Haible  <bruno@clisp.org>
51085
51086         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51087
51088 2008-12-21  Bruno Haible  <bruno@clisp.org>
51089
51090         * modules/wcsnrtombs-tests: New file.
51091         * tests/test-wcsnrtombs1.sh: New file.
51092         * tests/test-wcsnrtombs2.sh: New file.
51093         * tests/test-wcsnrtombs3.sh: New file.
51094         * tests/test-wcsnrtombs4.sh: New file.
51095         * tests/test-wcsnrtombs.c: New file.
51096
51097         New module 'wcsnrtombs'.
51098         * lib/wchar.in.h (wcsnrtombs): New declaration.
51099         * lib/wcsnrtombs.c: New file.
51100         * lib/wcsrtombs-state.c: New file.
51101         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51102         (internal_state): Remove variable.
51103         * m4/wcsnrtombs.m4: New file.
51104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51105         compilation units.
51106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51107         HAVE_WCSNRTOMBS.
51108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51109         HAVE_WCSNRTOMBS.
51110         * modules/wcsnrtombs: New file.
51111         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51112         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51113
51114 2008-12-21  Bruno Haible  <bruno@clisp.org>
51115
51116         * modules/wcsrtombs-tests: New file.
51117         * tests/test-wcsrtombs1.sh: New file.
51118         * tests/test-wcsrtombs2.sh: New file.
51119         * tests/test-wcsrtombs3.sh: New file.
51120         * tests/test-wcsrtombs4.sh: New file.
51121         * tests/test-wcsrtombs.c: New file.
51122
51123         New module 'wcsrtombs'.
51124         * lib/wchar.in.h (wcsrtombs): New declaration.
51125         * lib/wcsrtombs.c: New file.
51126         * m4/wcsrtombs.m4: New file.
51127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51128         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51130         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51131         * modules/wcsrtombs: New file.
51132         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51133         bugs.
51134
51135 2008-12-21  Bruno Haible  <bruno@clisp.org>
51136
51137         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51138         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51140         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51141         if not correct.
51142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51143         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51144         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51145         m4/locale-zh.m4, m4/codeset.m4.
51146         * doc/posix-functions/wcrtomb.texi: Document the bug.
51147
51148 2008-12-21  Bruno Haible  <bruno@clisp.org>
51149
51150         Work around a btowc() bug on IRIX 6.5.
51151         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51152         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51153         REPLACE_WTOBC if not.
51154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51155         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51156         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51157
51158 2008-12-21  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/wcrtomb-tests: New file.
51161         * tests/test-wcrtomb.sh: New file.
51162         * tests/test-wcrtomb.c: New file.
51163
51164         New module 'wcrtomb'.
51165         * lib/wchar.in.h (wcrtomb): New declaration.
51166         * lib/wcrtomb.c: New file.
51167         * m4/wcrtomb.m4: New file.
51168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51169         HAVE_WCRTOMB.
51170         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51171         HAVE_WCRTOMB.
51172         * modules/wcrtomb: New file.
51173         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51174
51175 2008-12-21  Bruno Haible  <bruno@clisp.org>
51176
51177         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51178         * modules/mbsrtowcs (Files): Likewise.
51179         * modules/wctob (Files): Likewise.
51180         * modules/c-strcase-tests (Files): Likewise.
51181         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51182         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51183         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51184         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51185         * modules/vasnprintf-posix-tests (Files): Likewise.
51186
51187 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51188
51189         gitlog-to-changelog: pass all command-line arguments to git-log
51190         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51191         it is sometimes convenient to filter the commits in various ways.
51192         gitlog-to-changelog only allows --since to specify a start date,
51193         but git-log itself supports many other filtering mechanisms.
51194         At the moment, I want to filter by branch name.  Rather than
51195         adding a --branch option to gitlog-to-changelog, it seems more
51196         flexible to simply pass all options directly to git-log and let
51197         git do the work.  Notice that this effectively makes --since a
51198         redundant option for gitlog-to-changelog, but removing it would
51199         require current usage to change since calls would then require
51200         an additional '--'.
51201
51202 2008-12-21  Bruno Haible  <bruno@clisp.org>
51203
51204         * modules/mbsnrtowcs-tests: New file.
51205         * tests/test-mbsnrtowcs1.sh: New file.
51206         * tests/test-mbsnrtowcs2.sh: New file.
51207         * tests/test-mbsnrtowcs3.sh: New file.
51208         * tests/test-mbsnrtowcs4.sh: New file.
51209         * tests/test-mbsnrtowcs.c: New file.
51210
51211         New module 'mbsnrtowcs'.
51212         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51213         * lib/mbsnrtowcs.c: New file.
51214         * lib/mbsrtowcs-state.c: New file.
51215         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51216         (internal_state): Remove variable.
51217         * m4/mbsnrtowcs.m4: New file.
51218         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51219         compilation units.
51220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51221         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51222         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51223         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51224         * modules/mbsnrtowcs: New file.
51225         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51226         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51227         portability problem.
51228
51229 2008-12-21  Bruno Haible  <bruno@clisp.org>
51230
51231         Work around mbsrtowcs bug.
51232         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51233         (gl_FUNC_MBSRTOWCS): Invoke it.
51234         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51235         m4/locale-zh.m4.
51236         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51237
51238 2008-12-21  Bruno Haible  <bruno@clisp.org>
51239
51240         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51241
51242 2008-12-21  Bruno Haible  <bruno@clisp.org>
51243
51244         Update doc for AIX.
51245         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51246         16-bit wchar_t type.
51247         * doc/posix-functions/btowc.texi: Likewise.
51248         * doc/posix-functions/fgetwc.texi: Likewise.
51249         * doc/posix-functions/fgetws.texi: Likewise.
51250         * doc/posix-functions/fputwc.texi: Likewise.
51251         * doc/posix-functions/fputws.texi: Likewise.
51252         * doc/posix-functions/fwide.texi: Likewise.
51253         * doc/posix-functions/fwprintf.texi: Likewise.
51254         * doc/posix-functions/fwscanf.texi: Likewise.
51255         * doc/posix-functions/getwchar.texi: Likewise.
51256         * doc/posix-functions/getwc.texi: Likewise.
51257         * doc/posix-functions/iswalnum.texi: Likewise.
51258         * doc/posix-functions/iswalpha.texi: Likewise.
51259         * doc/posix-functions/iswblank.texi: Likewise.
51260         * doc/posix-functions/iswcntrl.texi: Likewise.
51261         * doc/posix-functions/iswctype.texi: Likewise.
51262         * doc/posix-functions/iswdigit.texi: Likewise.
51263         * doc/posix-functions/iswgraph.texi: Likewise.
51264         * doc/posix-functions/iswlower.texi: Likewise.
51265         * doc/posix-functions/iswprint.texi: Likewise.
51266         * doc/posix-functions/iswpunct.texi: Likewise.
51267         * doc/posix-functions/iswspace.texi: Likewise.
51268         * doc/posix-functions/iswupper.texi: Likewise.
51269         * doc/posix-functions/iswxdigit.texi: Likewise.
51270         * doc/posix-functions/mbrtowc.texi: Likewise.
51271         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51272         * doc/posix-functions/mbstowcs.texi: Likewise.
51273         * doc/posix-functions/mbtowc.texi: Likewise.
51274         * doc/posix-functions/putwchar.texi: Likewise.
51275         * doc/posix-functions/putwc.texi: Likewise.
51276         * doc/posix-functions/swprintf.texi: Likewise.
51277         * doc/posix-functions/tolower.texi: Likewise.
51278         * doc/posix-functions/toupper.texi: Likewise.
51279         * doc/posix-functions/towctrans.texi: Likewise.
51280         * doc/posix-functions/ungetwc.texi: Likewise.
51281         * doc/posix-functions/vswprintf.texi: Likewise.
51282         * doc/posix-functions/wcrtomb.texi: Likewise.
51283         * doc/posix-functions/wcscat.texi: Likewise.
51284         * doc/posix-functions/wcschr.texi: Likewise.
51285         * doc/posix-functions/wcscmp.texi: Likewise.
51286         * doc/posix-functions/wcscoll.texi: Likewise.
51287         * doc/posix-functions/wcscpy.texi: Likewise.
51288         * doc/posix-functions/wcscspn.texi: Likewise.
51289         * doc/posix-functions/wcsftime.texi: Likewise.
51290         * doc/posix-functions/wcslen.texi: Likewise.
51291         * doc/posix-functions/wcsncat.texi: Likewise.
51292         * doc/posix-functions/wcsncmp.texi: Likewise.
51293         * doc/posix-functions/wcsncpy.texi: Likewise.
51294         * doc/posix-functions/wcspbrk.texi: Likewise.
51295         * doc/posix-functions/wcsrchr.texi: Likewise.
51296         * doc/posix-functions/wcsrtombs.texi: Likewise.
51297         * doc/posix-functions/wcsspn.texi: Likewise.
51298         * doc/posix-functions/wcsstr.texi: Likewise.
51299         * doc/posix-functions/wcstod.texi: Likewise.
51300         * doc/posix-functions/wcstof.texi: Likewise.
51301         * doc/posix-functions/wcstoimax.texi: Likewise.
51302         * doc/posix-functions/wcstok.texi: Likewise.
51303         * doc/posix-functions/wcstold.texi: Likewise.
51304         * doc/posix-functions/wcstoll.texi: Likewise.
51305         * doc/posix-functions/wcstol.texi: Likewise.
51306         * doc/posix-functions/wcstombs.texi: Likewise.
51307         * doc/posix-functions/wcstoull.texi: Likewise.
51308         * doc/posix-functions/wcstoul.texi: Likewise.
51309         * doc/posix-functions/wcstoumax.texi: Likewise.
51310         * doc/posix-functions/wcswidth.texi: Likewise.
51311         * doc/posix-functions/wcsxfrm.texi: Likewise.
51312         * doc/posix-functions/wctob.texi: Likewise.
51313         * doc/posix-functions/wctomb.texi: Likewise.
51314         * doc/posix-functions/wctrans.texi: Likewise.
51315         * doc/posix-functions/wctype.texi: Likewise.
51316         * doc/posix-functions/wcwidth.texi: Likewise.
51317         * doc/posix-functions/wmemchr.texi: Likewise.
51318         * doc/posix-functions/wmemcmp.texi: Likewise.
51319         * doc/posix-functions/wmemcpy.texi: Likewise.
51320         * doc/posix-functions/wmemmove.texi: Likewise.
51321         * doc/posix-functions/wmemset.texi: Likewise.
51322         * doc/posix-functions/wprintf.texi: Likewise.
51323         * doc/posix-functions/wscanf.texi: Likewise.
51324
51325 2008-12-21  Bruno Haible  <bruno@clisp.org>
51326
51327         Update doc for HP-UX 11.11.
51328         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51329         in HP-UX version 11.00, not in all versions of HP-UX 11.
51330         * doc/posix-functions/fwide.texi: Likewise.
51331         * doc/posix-functions/fwprintf.texi: Likewise.
51332         * doc/posix-functions/fwscanf.texi: Likewise.
51333         * doc/posix-functions/inet_ntop.texi: Likewise.
51334         * doc/posix-functions/inet_pton.texi: Likewise.
51335         * doc/posix-functions/mbrlen.texi: Likewise.
51336         * doc/posix-functions/mbrtowc.texi: Likewise.
51337         * doc/posix-functions/mbsinit.texi: Likewise.
51338         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51339         * doc/posix-functions/swprintf.texi: Likewise.
51340         * doc/posix-functions/swscanf.texi: Likewise.
51341         * doc/posix-functions/towctrans.texi: Likewise.
51342         * doc/posix-functions/vfwprintf.texi: Likewise.
51343         * doc/posix-functions/vswprintf.texi: Likewise.
51344         * doc/posix-functions/vwprintf.texi: Likewise.
51345         * doc/posix-functions/wcrtomb.texi: Likewise.
51346         * doc/posix-functions/wcsrtombs.texi: Likewise.
51347         * doc/posix-functions/wcsstr.texi: Likewise.
51348         * doc/posix-functions/wctob.texi: Likewise.
51349         * doc/posix-functions/wctrans.texi: Likewise.
51350         * doc/posix-functions/wmemchr.texi: Likewise.
51351         * doc/posix-functions/wmemcmp.texi: Likewise.
51352         * doc/posix-functions/wmemcpy.texi: Likewise.
51353         * doc/posix-functions/wmemmove.texi: Likewise.
51354         * doc/posix-functions/wmemset.texi: Likewise.
51355         * doc/posix-functions/wprintf.texi: Likewise.
51356         * doc/posix-functions/wscanf.texi: Likewise.
51357
51358 2008-12-21  Bruno Haible  <bruno@clisp.org>
51359
51360         Work around a portability problem.
51361         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51362         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51363
51364 2008-12-20  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51368         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51370         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51371
51372         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51373         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51374         set.
51375         (GNULIB_defined_mbstate_t): New macro.
51376         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51377         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51378         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51379         reuses the system's mbrtowc function but works around the bugs.
51380         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51381         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51382         macros.
51383         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51384         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51385         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51386         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51387         REPLACE_MBSINIT if mbsinit needs to be overridden.
51388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51389         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51390         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51391         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51392         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51393         m4/locale-zh.m4.
51394         (Depends): Add mbsinit.
51395         * modules/mbsinit (Depends): Add mbrtowc.
51396         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51397
51398 2008-12-20  Bruno Haible  <bruno@clisp.org>
51399
51400         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51401         so that there are no conversion errors on AIX.
51402         * tests/test-mbsrtowcs.c (main): LIkewise.
51403
51404 2008-12-20  Bruno Haible  <bruno@clisp.org>
51405
51406         Work around wctob bug on Solaris <= 9.
51407         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51408         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51410         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51411         * modules/wctob (Files): Add m4/locale-fr.m4.
51412         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51413
51414 2008-12-20  Bruno Haible  <bruno@clisp.org>
51415
51416         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51417         /dev/null.
51418         * tests/test-select-in.sh: Likewise.
51419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51420
51421 2008-12-20  Bruno Haible  <bruno@clisp.org>
51422
51423         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51424         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51425         Cygwin 1.5.x.
51426
51427 2008-12-20  Bruno Haible  <bruno@clisp.org>
51428
51429         Ensure mbstate_t is defined on HP-UX 11.11.
51430         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51431         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51432         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51433         AC_USE_SYSTEM_EXTENSIONS.
51434         * modules/fnmatch (Depends-on): Add extensions.
51435         * modules/mbrlen (Depends-on): Likewise.
51436         * modules/mbrtowc (Depends-on): Likewise.
51437         * modules/mbsinit (Depends-on): Likewise.
51438         * modules/mbsrtowcs (Depends-on): Likewise.
51439         * modules/mbswidth (Depends-on): Likewise.
51440         * modules/quotearg (Depends-on): Likewise.
51441         * modules/strftime (Depends-on): Likewise.
51442
51443 2008-12-20  Bruno Haible  <bruno@clisp.org>
51444
51445         Ensure wctob is declared on IRIX 6.5.
51446         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51447         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51448         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51450         of HAVE_WCTOB.
51451         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51452         HAVE_WCTOB.
51453         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51454
51455 2008-12-19  Bruno Haible  <bruno@clisp.org>
51456
51457         * modules/mbsrtowcs-tests: New file.
51458         * tests/test-mbsrtowcs1.sh: New file.
51459         * tests/test-mbsrtowcs2.sh: New file.
51460         * tests/test-mbsrtowcs3.sh: New file.
51461         * tests/test-mbsrtowcs4.sh: New file.
51462         * tests/test-mbsrtowcs.c: New file.
51463
51464         New module 'mbsrtowcs'.
51465         * lib/wchar.in.h (mbsrtowcs): New declaration.
51466         * lib/mbsrtowcs.c: New file.
51467         * m4/mbsrtowcs.m4: New file.
51468         * modules/mbsrtowcs: New file.
51469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51470         HAVE_MBSRTOWCS.
51471         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51472         HAVE_MBSRTOWCS.
51473         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51474
51475 2008-12-19  Bruno Haible  <bruno@clisp.org>
51476
51477         New module 'mbrlen'.
51478         * lib/wchar.in.h (mbrlen): New declaration.
51479         * lib/mbrlen.c: New file.
51480         * m4/mbrlen.m4: New file.
51481         * modules/mbrlen: New file.
51482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51483         HAVE_MBRLEN.
51484         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51485         HAVE_MBRLEN.
51486         * doc/posix-functions/mbrlen.texi: Document the new module.
51487
51488 2008-12-19  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51491         * modules/mbrtowc (Depends-on): Add verify.
51492         Suggested by Paul Eggert.
51493
51494 2008-12-18  Bruno Haible  <bruno@clisp.org>
51495
51496         * modules/mbsinit-tests: New file.
51497         * tests/test-mbsinit.sh: New file.
51498         * tests/test-mbsinit.c: New file.
51499
51500 2008-12-18  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/mbrtowc-tests: New file.
51503         * tests/test-mbrtowc1.sh: New file.
51504         * tests/test-mbrtowc2.sh: New file.
51505         * tests/test-mbrtowc3.sh: New file.
51506         * tests/test-mbrtowc4.sh: New file.
51507         * tests/test-mbrtowc.c: New file.
51508
51509         New module 'mbrtowc'.
51510         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51511         mbsinit and mbrtowc.
51512         (mbrtowc): New declaration.
51513         * lib/mbrtowc.c: New file.
51514         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51515         * modules/mbrtowc: New file.
51516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51517         HAVE_MBRTOWC.
51518         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51519         HAVE_MBRTOWC.
51520         * doc/posix-functions/mbrtowc.texi: Document the new module.
51521
51522 2008-12-18  Bruno Haible  <bruno@clisp.org>
51523
51524         New module 'wctob'.
51525         * lib/wchar.in.h (wctob): New declaration.
51526         * lib/wctob.c: New file.
51527         * m4/wctob.m4: New file.
51528         * modules/wctob: New file.
51529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51530         HAVE_WCTOB.
51531         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51532         * doc/posix-functions/wctob.texi: Document the new module.
51533
51534 2008-12-18  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51537         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51538
51539 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51540
51541         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51542         G. Christensen" <tgc@jupiterrise.com>.
51543
51544         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51545         G. Christensen" <tgc@jupiterrise.com>.
51546
51547         * lib/flock.c: Need to include string.h.  Reported by "Tom
51548         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51549         <ebb9@byu.net>.
51550
51551 2008-12-18  Bruno Haible  <bruno@clisp.org>
51552
51553         * m4/locale-ja.m4: New file, from GNU gettext.
51554
51555 2008-12-17  Bruno Haible  <bruno@clisp.org>
51556
51557         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51558         Suggested by Eric Blake.
51559
51560 2008-12-17  Bruno Haible  <bruno@clisp.org>
51561
51562         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51563
51564 2008-12-17  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51567         * modules/mbsinit (Depends-on): Add verify.
51568         Suggested by Paul Eggert.
51569
51570 2008-12-17  Bruno Haible  <bruno@clisp.org>
51571
51572         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51573         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51574         gl_FUNC_MBRTOWC.
51575         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51576         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51577         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51578         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51579         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51580         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51581         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51582         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51583         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51584         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51585         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51586         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51587         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51588         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51589         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51590         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51591         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51592         * modules/trim (configure.ac): Likewise.
51593
51594 2008-12-17  Bruno Haible  <bruno@clisp.org>
51595
51596         * modules/btowc-tests: New file.
51597         * tests/test-btowc1.sh: New file.
51598         * tests/test-btowc2.sh: New file.
51599         * tests/test-btowc.c: New file.
51600
51601         New module 'btowc'.
51602         * lib/wchar.in.h (btowc): New declaration.
51603         * lib/btowc.c: New file.
51604         * m4/btowc.m4: New file.
51605         * modules/btowc: New file.
51606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51607         HAVE_BTOWC.
51608         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51609         * doc/posix-functions/btowc.texi: Document the new module.
51610
51611 2008-12-17  Bruno Haible  <bruno@clisp.org>
51612
51613         New module 'mbsinit'.
51614         * lib/wchar.in.h (mbsinit): New declaration.
51615         * lib/mbsinit.c: New file.
51616         * m4/mbsinit.m4: New file.
51617         * modules/mbsinit: New file.
51618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51619         HAVE_MBSINIT.
51620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51621         HAVE_MBSINIT.
51622         * doc/posix-functions/mbsinit.texi: Document the new module.
51623
51624 2008-12-16  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/unistd.in.h: Add comment.
51627         * tests/test-environ.c: Don't include <stdlib.h>.
51628
51629 2008-12-16  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/parse-duration.h (parse_duration): Document return value
51632         convention.
51633         * lib/parse-duration.c: Include specification header first. Add
51634         comments.
51635         (_): Remove macro.
51636         (parse_year_month_day, parse_hour_minute_second): Move side effects
51637         outside of strchr call.
51638         (parse_non_iso8601): Move side effects outside of isspace call.
51639         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51640         call.
51641
51642 2008-12-16  Bruno Haible  <bruno@clisp.org>
51643
51644         * tests/test-parse-duration.sh: Produce no output when the test
51645         succeeds.
51646
51647 2008-12-16  Bruno Haible  <bruno@clisp.org>
51648
51649         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51650         expressions.
51651
51652 2008-12-15  Bruno Haible  <bruno@clisp.org>
51653
51654         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51655         * doc/glibc-functions/flistxattr.texi: Likewise.
51656         * doc/glibc-functions/fopencookie.texi: Likewise.
51657         * doc/glibc-functions/fremovexattr.texi: Likewise.
51658         * doc/glibc-functions/fsetxattr.texi: Likewise.
51659         * doc/glibc-functions/getxattr.texi: Likewise.
51660         * doc/glibc-functions/lgetxattr.texi: Likewise.
51661         * doc/glibc-functions/listxattr.texi: Likewise.
51662         * doc/glibc-functions/llistxattr.texi: Likewise.
51663         * doc/glibc-functions/lremovexattr.texi: Likewise.
51664         * doc/glibc-functions/lsetxattr.texi: Likewise.
51665         * doc/glibc-functions/removexattr.texi: Likewise.
51666         * doc/glibc-functions/setxattr.texi: Likewise.
51667         * doc/posix-functions/open_memstream.texi: Likewise.
51668
51669 2008-12-15  Eric Blake  <ebb9@byu.net>
51670
51671         Update doc for cygwin 1.7.
51672         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51673         functions.
51674         * doc/posix-functions/fchmodat.texi: Likewise.
51675         * doc/posix-functions/fchownat.texi: Likewise.
51676         * doc/posix-functions/fdopendir.texi: Likewise.
51677         * doc/posix-functions/fmemopen.texi: Likewise.
51678         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51679         * doc/posix-functions/fstatat.texi: Likewise.
51680         * doc/posix-functions/futimens.texi: Likewise.
51681         * doc/posix-functions/gai_strerror.texi: Likewise.
51682         * doc/posix-functions/getaddrinfo.texi: Likewise.
51683         * doc/posix-functions/getnameinfo.texi: Likewise.
51684         * doc/posix-functions/if_freenameindex.texi: Likewise.
51685         * doc/posix-functions/if_indextoname.texi: Likewise.
51686         * doc/posix-functions/if_nameindex.texi: Likewise.
51687         * doc/posix-functions/if_nametoindex.texi: Likewise.
51688         * doc/posix-functions/insque.texi: Likewise.
51689         * doc/posix-functions/linkat.texi: Likewise.
51690         * doc/posix-functions/llrint.texi: Likewise.
51691         * doc/posix-functions/llrintf.texi: Likewise.
51692         * doc/posix-functions/llrintl.texi: Likewise.
51693         * doc/posix-functions/lockf.texi: Likewise.
51694         * doc/posix-functions/lrintl.texi: Likewise.
51695         * doc/posix-functions/mkdirat.texi: Likewise.
51696         * doc/posix-functions/mkfifoat.texi: Likewise.
51697         * doc/posix-functions/mknodat.texi: Likewise.
51698         * doc/posix-functions/mq_close.texi: Likewise.
51699         * doc/posix-functions/mq_getattr.texi: Likewise.
51700         * doc/posix-functions/mq_notify.texi: Likewise.
51701         * doc/posix-functions/mq_open.texi: Likewise.
51702         * doc/posix-functions/mq_receive.texi: Likewise.
51703         * doc/posix-functions/mq_send.texi: Likewise.
51704         * doc/posix-functions/mq_setattr.texi: Likewise.
51705         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51706         * doc/posix-functions/mq_timedsend.texi: Likewise.
51707         * doc/posix-functions/mq_unlink.texi: Likewise.
51708         * doc/posix-functions/open_memstream.texi: Likewise.
51709         * doc/posix-functions/openat.texi: Likewise.
51710         * doc/posix-functions/posix_fadvise.texi: Likewise.
51711         * doc/posix-functions/posix_fallocate.texi: Likewise.
51712         * doc/posix-functions/posix_madvise.texi: Likewise.
51713         * doc/posix-functions/posix_memalign.texi: Likewise.
51714         * doc/posix-functions/posix_openpt.texi: Likewise.
51715         * doc/posix-functions/readlinkat.texi: Likewise.
51716         * doc/posix-functions/remque.texi: Likewise.
51717         * doc/posix-functions/renameat.texi: Likewise.
51718         * doc/posix-functions/rintl.texi: Likewise.
51719         * doc/posix-functions/sem_unlink.texi: Likewise.
51720         * doc/posix-functions/shm_open.texi: Likewise.
51721         * doc/posix-functions/shm_unlink.texi: Likewise.
51722         * doc/posix-functions/signgam.texi: Likewise.
51723         * doc/posix-functions/sigset.texi: Likewise.
51724         * doc/posix-functions/stpcpy.texi: Likewise.
51725         * doc/posix-functions/stpncpy.texi: Likewise.
51726         * doc/posix-functions/strerror.texi: Likewise.
51727         * doc/posix-functions/strtod.texi: Likewise.
51728         * doc/posix-functions/symlinkat.texi: Likewise.
51729         * doc/posix-functions/unlinkat.texi: Likewise.
51730         * doc/posix-functions/utimensat.texi: Likewise.
51731         * doc/glibc-functions/bindresvport.texi: Likewise.
51732         * doc/glibc-functions/dn_expand.texi: Likewise.
51733         * doc/glibc-functions/exp10.texi: Likewise.
51734         * doc/glibc-functions/exp10f.texi: Likewise.
51735         * doc/glibc-functions/fgetxattr.texi: Likewise.
51736         * doc/glibc-functions/flistxattr.texi: Likewise.
51737         * doc/glibc-functions/fopencookie.texi: Likewise.
51738         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51739         * doc/glibc-functions/fremovexattr.texi: Likewise.
51740         * doc/glibc-functions/fsetxattr.texi: Likewise.
51741         * doc/glibc-functions/getifaddrs.texi: Likewise.
51742         * doc/glibc-functions/getxattr.texi: Likewise.
51743         * doc/glibc-functions/lgetxattr.texi: Likewise.
51744         * doc/glibc-functions/listxattr.texi: Likewise.
51745         * doc/glibc-functions/llistxattr.texi: Likewise.
51746         * doc/glibc-functions/lremovexattr.texi: Likewise.
51747         * doc/glibc-functions/lsetxattr.texi: Likewise.
51748         * doc/glibc-functions/pow10.texi: Likewise.
51749         * doc/glibc-functions/pow10f.texi: Likewise.
51750         * doc/glibc-functions/rcmd_af.texi: Likewise.
51751         * doc/glibc-functions/removexattr.texi: Likewise.
51752         * doc/glibc-functions/res_init.texi: Likewise.
51753         * doc/glibc-functions/res_mkquery.texi: Likewise.
51754         * doc/glibc-functions/res_query.texi: Likewise.
51755         * doc/glibc-functions/res_querydomain.texi: Likewise.
51756         * doc/glibc-functions/res_send.texi: Likewise.
51757         * doc/glibc-functions/rresvport_af.texi: Likewise.
51758         * doc/glibc-functions/setxattr.texi: Likewise.
51759         * doc/glibc-functions/strcasestr.texi: Likewise.
51760
51761 2008-12-15  Bruno Haible  <bruno@clisp.org>
51762
51763         Fix compilation error on OSF/1 4.0.
51764         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51765         <sys/time.h>, simply delegate to the system header.
51766         Reported by Daniel Richard G. <oss@teragram.com>.
51767
51768 2008-12-15  Bruno Haible  <bruno@clisp.org>
51769
51770         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51771         * doc/posix-functions/fchmodat.texi: Likewise.
51772         * doc/posix-functions/fchownat.texi: Likewise.
51773         * doc/posix-functions/fdopendir.texi: Likewise.
51774         * doc/posix-functions/fstatat.texi: Likewise.
51775         * doc/posix-functions/mkdirat.texi: Likewise.
51776         * doc/posix-functions/unlinkat.texi: Likewise.
51777
51778 2008-12-14  Bruno Haible  <bruno@clisp.org>
51779
51780         Update doc for POSIX:2008.
51781         * doc/posix-functions/faccessat.texi: New file.
51782         * doc/posix-functions/fchmodat.texi: New file.
51783         * doc/posix-functions/fchownat.texi: New file.
51784         * doc/posix-functions/fdopendir.texi: New file.
51785         * doc/posix-functions/fstatat.texi: New file.
51786         * doc/posix-functions/futimens.texi: New file.
51787         * doc/posix-functions/linkat.texi: New file.
51788         * doc/posix-functions/mkdirat.texi: New file.
51789         * doc/posix-functions/mkfifoat.texi: New file.
51790         * doc/posix-functions/mknodat.texi: New file.
51791         * doc/posix-functions/open_wmemstream.texi: New file.
51792         * doc/posix-functions/openat.texi: New file.
51793         * doc/posix-functions/psiginfo.texi: New file.
51794         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51795         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51796         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51797         * doc/posix-functions/readlinkat.texi: New file.
51798         * doc/posix-functions/renameat.texi: New file.
51799         * doc/posix-functions/strerror_l.texi: New file.
51800         * doc/posix-functions/symlinkat.texi: New file.
51801         * doc/posix-functions/unlinkat.texi: New file.
51802         * doc/posix-functions/utimensat.texi: New file.
51803         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51804
51805 2008-12-14  Bruno Haible  <bruno@clisp.org>
51806
51807         Update doc for POSIX:2008.
51808         * doc/posix-functions/alphasort.texi: Renamed from
51809         doc/glibc-functions/alphasort.texi.
51810         * doc/posix-functions/dirfd.texi: Renamed from
51811         doc/glibc-functions/dirfd.texi.
51812         * doc/posix-functions/dprintf.texi: Renamed from
51813         doc/glibc-functions/dprintf.texi.
51814         * doc/posix-functions/duplocale.texi: Renamed from
51815         doc/glibc-functions/duplocale.texi.
51816         * doc/posix-functions/fexecve.texi: Renamed from
51817         doc/glibc-functions/fexecve.texi.
51818         * doc/posix-functions/fmemopen.texi: Renamed from
51819         doc/glibc-functions/fmemopen.texi.
51820         * doc/posix-functions/freelocale.texi: Renamed from
51821         doc/glibc-functions/freelocale.texi.
51822         * doc/posix-functions/getdate_err.texi: Renamed from
51823         doc/glibc-functions/getdate_err.texi.
51824         * doc/posix-functions/isalnum_l.texi: Renamed from
51825         doc/glibc-functions/isalnum_l.texi.
51826         * doc/posix-functions/isalpha_l.texi: Renamed from
51827         doc/glibc-functions/isalpha_l.texi.
51828         * doc/posix-functions/isblank_l.texi: Renamed from
51829         doc/glibc-functions/isblank_l.texi.
51830         * doc/posix-functions/iscntrl_l.texi: Renamed from
51831         doc/glibc-functions/iscntrl_l.texi.
51832         * doc/posix-functions/isdigit_l.texi: Renamed from
51833         doc/glibc-functions/isdigit_l.texi.
51834         * doc/posix-functions/isgraph_l.texi: Renamed from
51835         doc/glibc-functions/isgraph_l.texi.
51836         * doc/posix-functions/islower_l.texi: Renamed from
51837         doc/glibc-functions/islower_l.texi.
51838         * doc/posix-functions/isprint_l.texi: Renamed from
51839         doc/glibc-functions/isprint_l.texi.
51840         * doc/posix-functions/ispunct_l.texi: Renamed from
51841         doc/glibc-functions/ispunct_l.texi.
51842         * doc/posix-functions/isspace_l.texi: Renamed from
51843         doc/glibc-functions/isspace_l.texi.
51844         * doc/posix-functions/isupper_l.texi: Renamed from
51845         doc/glibc-functions/isupper_l.texi.
51846         * doc/posix-functions/iswalnum_l.texi: Renamed from
51847         doc/glibc-functions/iswalnum_l.texi.
51848         * doc/posix-functions/iswalpha_l.texi: Renamed from
51849         doc/glibc-functions/iswalpha_l.texi.
51850         * doc/posix-functions/iswblank_l.texi: Renamed from
51851         doc/glibc-functions/iswblank_l.texi.
51852         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51853         doc/glibc-functions/iswcntrl_l.texi.
51854         * doc/posix-functions/iswctype_l.texi: Renamed from
51855         doc/glibc-functions/iswctype_l.texi.
51856         * doc/posix-functions/iswdigit_l.texi: Renamed from
51857         doc/glibc-functions/iswdigit_l.texi.
51858         * doc/posix-functions/iswgraph_l.texi: Renamed from
51859         doc/glibc-functions/iswgraph_l.texi.
51860         * doc/posix-functions/iswlower_l.texi: Renamed from
51861         doc/glibc-functions/iswlower_l.texi.
51862         * doc/posix-functions/iswprint_l.texi: Renamed from
51863         doc/glibc-functions/iswprint_l.texi.
51864         * doc/posix-functions/iswpunct_l.texi: Renamed from
51865         doc/glibc-functions/iswpunct_l.texi.
51866         * doc/posix-functions/iswspace_l.texi: Renamed from
51867         doc/glibc-functions/iswspace_l.texi.
51868         * doc/posix-functions/iswupper_l.texi: Renamed from
51869         doc/glibc-functions/iswupper_l.texi.
51870         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51871         doc/glibc-functions/iswxdigit_l.texi.
51872         * doc/posix-functions/isxdigit_l.texi: Renamed from
51873         doc/glibc-functions/isxdigit_l.texi.
51874         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51875         doc/glibc-functions/mbsnrtowcs.texi.
51876         * doc/posix-functions/mkdtemp.texi: Renamed from
51877         doc/glibc-functions/mkdtemp.texi.
51878         * doc/posix-functions/newlocale.texi: Renamed from
51879         doc/glibc-functions/newlocale.texi.
51880         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51881         doc/glibc-functions/nl_langinfo_l.texi.
51882         * doc/posix-functions/open_memstream.texi: Renamed from
51883         doc/glibc-functions/open_memstream.texi.
51884         * doc/posix-functions/opterr.texi: Renamed from
51885         doc/glibc-functions/opterr.texi.
51886         * doc/posix-functions/optind.texi: Renamed from
51887         doc/glibc-functions/optind.texi.
51888         * doc/posix-functions/optopt.texi: Renamed from
51889         doc/glibc-functions/optopt.texi.
51890         * doc/posix-functions/psignal.texi: Renamed from
51891         doc/glibc-functions/psignal.texi.
51892         * doc/posix-functions/scandir.texi: Renamed from
51893         doc/glibc-functions/scandir.texi.
51894         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51895         doc/glibc-functions/sched_get_priority_min.texi.
51896         * doc/posix-functions/signgam.texi: Renamed from
51897         doc/glibc-functions/signgam.texi.
51898         * doc/posix-functions/stpcpy.texi: Renamed from
51899         doc/glibc-functions/stpcpy.texi.
51900         * doc/posix-functions/stpncpy.texi: Renamed from
51901         doc/glibc-functions/stpncpy.texi.
51902         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51903         doc/glibc-functions/strcasecmp_l.texi.
51904         * doc/posix-functions/strcoll_l.texi: Renamed from
51905         doc/glibc-functions/strcoll_l.texi.
51906         * doc/posix-functions/strfmon_l.texi: Renamed from
51907         doc/glibc-functions/strfmon_l.texi.
51908         * doc/posix-functions/strftime_l.texi: Renamed from
51909         doc/glibc-functions/strftime_l.texi.
51910         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51911         doc/glibc-functions/strncasecmp_l.texi.
51912         * doc/posix-functions/strndup.texi: Renamed from
51913         doc/glibc-functions/strndup.texi.
51914         * doc/posix-functions/strnlen.texi: Renamed from
51915         doc/glibc-functions/strnlen.texi.
51916         * doc/posix-functions/strsignal.texi: Renamed from
51917         doc/glibc-functions/strsignal.texi.
51918         * doc/posix-functions/strxfrm_l.texi: Renamed from
51919         doc/glibc-functions/strxfrm_l.texi.
51920         * doc/posix-functions/timer_gettime.texi: Renamed from
51921         doc/glibc-functions/timer_gettime.texi.
51922         * doc/posix-functions/tolower_l.texi: Renamed from
51923         doc/glibc-functions/tolower_l.texi.
51924         * doc/posix-functions/toupper_l.texi: Renamed from
51925         doc/glibc-functions/toupper_l.texi.
51926         * doc/posix-functions/towctrans_l.texi: Renamed from
51927         doc/glibc-functions/towctrans_l.texi.
51928         * doc/posix-functions/towlower_l.texi: Renamed from
51929         doc/glibc-functions/towlower_l.texi.
51930         * doc/posix-functions/towupper_l.texi: Renamed from
51931         doc/glibc-functions/towupper_l.texi.
51932         * doc/posix-functions/uselocale.texi: Renamed from
51933         doc/glibc-functions/uselocale.texi.
51934         * doc/posix-functions/vdprintf.texi: Renamed from
51935         doc/glibc-functions/vdprintf.texi.
51936         * doc/posix-functions/wcpcpy.texi:
51937         Renamed from doc/glibc-functions/wcpcpy.texi.
51938         * doc/posix-functions/wcpncpy.texi: Renamed from
51939         doc/glibc-functions/wcpncpy.texi.
51940         * doc/posix-functions/wcscasecmp.texi: Renamed from
51941         doc/glibc-functions/wcscasecmp.texi.
51942         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51943         doc/glibc-functions/wcscasecmp_l.texi.
51944         * doc/posix-functions/wcscoll_l.texi: Renamed from
51945         doc/glibc-functions/wcscoll_l.texi.
51946         * doc/posix-functions/wcsdup.texi: Renamed from
51947         doc/glibc-functions/wcsdup.texi.
51948         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51949         doc/glibc-functions/wcsncasecmp.texi.
51950         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51951         doc/glibc-functions/wcsncasecmp_l.texi.
51952         * doc/posix-functions/wcsnlen.texi: Renamed from
51953         doc/glibc-functions/wcsnlen.texi.
51954         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51955         doc/glibc-functions/wcsnrtombs.texi.
51956         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51957         doc/glibc-functions/wcsxfrm_l.texi.
51958         * doc/posix-functions/wctrans_l.texi: Renamed from
51959         doc/glibc-functions/wctrans_l.texi.
51960         * doc/posix-functions/wctype_l.texi: Renamed from
51961         doc/glibc-functions/wctype_l.texi.
51962         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51963         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51964         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51965         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51966         these subsections.
51967         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51968         Remove sections.
51969
51970 2008-12-14  Bruno Haible  <bruno@clisp.org>
51971
51972         Update doc for POSIX:2008.
51973         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51974
51975 2008-12-14  Bruno Haible  <bruno@clisp.org>
51976
51977         Update doc for POSIX:2008.
51978         * doc/pastposix-functions/bcmp.texi: Renamed from
51979         doc/posix-functions/bcmp.texi.
51980         * doc/pastposix-functions/bcopy.texi: Renamed from
51981         doc/posix-functions/bcopy.texi.
51982         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51983         doc/posix-functions/bsd_signal.texi.
51984         * doc/pastposix-functions/bzero.texi: Renamed from
51985         doc/posix-functions/bzero.texi.
51986         * doc/pastposix-functions/ecvt.texi: Renamed from
51987         doc/posix-functions/ecvt.texi.
51988         * doc/pastposix-functions/fcvt.texi: Renamed from
51989         doc/posix-functions/fcvt.texi.
51990         * doc/pastposix-functions/ftime.texi: Renamed from
51991         doc/posix-functions/ftime.texi.
51992         * doc/pastposix-functions/gcvt.texi: Renamed from
51993         doc/posix-functions/gcvt.texi.
51994         * doc/pastposix-functions/getcontext.texi: Renamed from
51995         doc/posix-functions/getcontext.texi.
51996         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51997         doc/posix-functions/gethostbyaddr.texi.
51998         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51999         doc/posix-functions/gethostbyname.texi.
52000         * doc/pastposix-functions/getwd.texi: Renamed from
52001         doc/posix-functions/getwd.texi.
52002         * doc/pastposix-functions/h_errno.texi: Renamed from
52003         doc/posix-functions/h_errno.texi.
52004         * doc/pastposix-functions/index.texi: Renamed from
52005         doc/posix-functions/index.texi.
52006         * doc/pastposix-functions/makecontext.texi: Renamed from
52007         doc/posix-functions/makecontext.texi.
52008         * doc/pastposix-functions/mktemp.texi: Renamed from
52009         doc/posix-functions/mktemp.texi.
52010         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52011         doc/posix-functions/pthread_attr_getstackaddr.texi.
52012         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52013         doc/posix-functions/pthread_attr_setstackaddr.texi.
52014         * doc/pastposix-functions/rindex.texi: Renamed from
52015         doc/posix-functions/rindex.texi.
52016         * doc/pastposix-functions/scalb.texi: Renamed from
52017         doc/posix-functions/scalb.texi.
52018         * doc/pastposix-functions/setcontext.texi: Renamed from
52019         doc/posix-functions/setcontext.texi.
52020         * doc/pastposix-functions/swapcontext.texi: Renamed from
52021         doc/posix-functions/swapcontext.texi.
52022         * doc/pastposix-functions/ualarm.texi: Renamed from
52023         doc/posix-functions/ualarm.texi.
52024         * doc/pastposix-functions/usleep.texi: Renamed from
52025         doc/posix-functions/usleep.texi.
52026         * doc/pastposix-functions/vfork.texi: Renamed from
52027         doc/posix-functions/vfork.texi.
52028         * doc/pastposix-functions/wcswcs.texi: Renamed from
52029         doc/posix-functions/wcswcs.texi.
52030         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52031         (Function Substitutes): Update.
52032
52033 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52034
52035         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52036         m4/strerror.m4.
52037
52038 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52039             Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52042
52043 2008-12-13  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/strtoull (Depends-on): Remove unistd.
52046
52047 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52048
52049         * modules/strtoull (Depends-on): Add stdlib.
52050
52051 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52052
52053         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52054
52055 2008-12-10  Jim Meyering  <meyering@redhat.com>
52056
52057         gl_ASSERT: don't say assertions are disabled when they're not
52058         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52059         "checking whether to enable assertions... no", when they are in
52060         fact enabled.  This is solely a bug in the output of configure.
52061         In spite of saying "no", NDEBUG was not defined in that case.
52062         Also, as noted by Eric Blake, leave assertions enabled upon
52063         --enable-assert=INVALID.
52064
52065 2008-12-10  Bruno Haible  <bruno@clisp.org>
52066
52067         Change MODULES.html to refer to POSIX:2008 where possible.
52068         * MODULES.html.sh (POSIX2008_URL): New variable.
52069         (posix_headers): Remove sys/timeb, ucontext.
52070         (posix2001_headers): New variable.
52071         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52072         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52073         index, makecontext, mktemp, pthread_attr_getstackaddr,
52074         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52075         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52076         (posix2001_functions): New variable.
52077         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52078         otherwise.
52079
52080 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52081
52082         add missing include to parse-duration.c
52083         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52084         * modules/parse-duration (Depends-on): Add xalloc.
52085
52086         fix sed script reading maint.mk
52087         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52088         (syntax-check-rules): Use it.
52089
52090 2008-12-09  Bruno Haible  <bruno@clisp.org>
52091
52092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52093         MacOS X 10.4/PowerPC.
52094         Reported by Simon Josefsson.
52095
52096 2008-12-08  Jim Meyering  <meyering@redhat.com>
52097
52098         work around mingw's lack of some S_IF definitions
52099         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52100         Reported by Simon Josefsson.
52101
52102 2008-12-08  Bruno Haible  <bruno@clisp.org>
52103
52104         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52105         applied to variables. Needed on MacOS X 10.4/PowerPC.
52106         Reported by Simon Josefsson.
52107
52108 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52109         and Eric Blake  <ebb9@byu.net>
52110
52111         assert: honor --enable-assert
52112         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52113         order to honor --enable-assert, rather than treating it as a
52114         synonym for --disable-assert.
52115
52116 2008-12-08  Jim Meyering  <meyering@redhat.com>
52117
52118         * lib/posixtm.c: Remove now-useless declaration of mktime.
52119
52120         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52121
52122 2008-12-07  Bruno Haible  <bruno@clisp.org>
52123
52124         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52125         test_once): Mark functions as static.
52126         * tests/test-tls.c (test_tls): Likewise.
52127
52128 2008-12-07  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52131         iconv_register_autodetect.
52132
52133 2008-12-07  Jim Meyering  <meyering@redhat.com>
52134
52135         posixtm.c: avoid a warning
52136         * lib/posixtm.c (posixtime): Don't initialize tm0.
52137         It's no longer needed to placate gcc4's -Wuninitialized,
52138         and the attempt to placate would elicit a new warning.
52139
52140         unicodeio.c: mark unused parameters
52141         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52142         (fallback_failure_callback): Likewise.
52143
52144 2008-12-07  Bruno Haible  <bruno@clisp.org>
52145
52146         * gnulib-tool (func_create_testdir): When building the tests
52147         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52148         Reported by Simon Josefsson.
52149
52150 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52151
52152         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52153
52154 2008-12-06  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52157         Suggested by Eric Blake.
52158
52159 2008-12-06  Bruno Haible  <bruno@clisp.org>
52160
52161         Fix a c-stack test failure on MacOS X.
52162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52163         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52164         handler for SIGBUS as well.
52165         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52166         install a signal handler for SIGBUS as well.
52167         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52168
52169 2008-12-06  Bruno Haible  <bruno@clisp.org>
52170
52171         Advocacy documentation.
52172         * doc/gnulib-intro.texi (Benefits): New section.
52173         * doc/gnulib.texi: Update.
52174
52175 2008-12-06  Bruno Haible  <bruno@clisp.org>
52176
52177         Document the 'manywarnings' module.
52178         * doc/manywarnings.texi: New file.
52179         * doc/gnulib.texi: Include it.
52180
52181 2008-12-05  Eric Blake  <ebb9@byu.net>
52182
52183         tests: silence some gcc warnings
52184         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52185         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52186         type mismatches.
52187
52188 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52189             Bruno Haible  <bruno@clisp.org>
52190
52191         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52192
52193 2008-11-29  Jim Meyering  <meyering@redhat.com>
52194
52195         unicodeio.c: mark unused parameters
52196         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52197         (fallback_failure_callback): Likewise.
52198
52199         fts: fix a thinko
52200         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52201         (set_stat_type): Return S_IF*-valued "type" directly.
52202         Prompted by James Youngman's spotting a related bug.
52203         Confirmed by further testing through find.
52204
52205         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52206         * lib/fts.c (D_TYPE): Define.
52207         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52208         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52209         (s_ifmt_shift_bits): New function.
52210         (set_stat_type): New function.
52211         (fts_build): When not calling fts_stat, call set_stat_type
52212         to propagate dirent.d_type info to fts_read caller.
52213         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52214         fts_statp->st_mode type information may be valid.
52215
52216 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52217
52218         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52219         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52220         <sds@gnu.org>.
52221
52222 2008-11-20  Bruno Haible  <bruno@clisp.org>
52223
52224         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52225         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52226         INCLUDE_NEXT.
52227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52228         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52229         * modules/math (Makefile.am): Substitute
52230         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52232
52233 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52234             Bruno Haible  <bruno@clisp.org>
52235
52236         * lib/stdint.in.h: Define all type macros so that their expansion is
52237         a single typedef'ed token. Fixes a compilation failure in Boost which
52238         does "using ::int8_t;".
52239
52240 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52241
52242         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52243         gl_MANYWARN_ALL_GCC.
52244         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52245         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52246         * modules/manywarnings: New file.
52247         * MODULES.html.sh: Mention manywarnings module.
52248
52249 2008-11-18  Bruno Haible  <bruno@clisp.org>
52250
52251         * doc/gnulib-tool.texi (Unit tests): New section.
52252
52253 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52254
52255         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52256         paths like 'lib/po/foo.po'.
52257
52258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52259
52260         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52261         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52262
52263 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52264
52265         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52266         parameter works.
52267
52268 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52269
52270         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52271
52272 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52273
52274         * modules/parse-duration-tests: New file.
52275         * tests/test-parse-duration.sh: New file.
52276         * tests/test-parse-duration.c: New file.
52277
52278         New module 'parse-duration'.
52279         * lib/parse-duration.h: New file.
52280         * lib/parse-duration.c: New file.
52281         * modules/parse-duration: New file.
52282
52283 2008-11-17  Bruno Haible  <bruno@clisp.org>
52284
52285         * tests/test-select-out.sh: Comment out the first pipe test.
52286         Reported by Simon Josefsson.
52287
52288 2008-11-17  Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52292         gl_HOSTENT.
52293
52294 2008-11-17  Bruno Haible  <bruno@clisp.org>
52295
52296         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52297         -lnetwork and -lnet. Needed for Haiku and BeOS.
52298
52299 2008-11-16  Bruno Haible  <bruno@clisp.org>
52300
52301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52302
52303 2008-11-16  Bruno Haible  <bruno@clisp.org>
52304
52305         Avoid test failure on Haiku.
52306         * tests/test-fsync.c: Include <errno.h>.
52307         (main): Don't require that fsync (0) fails.
52308
52309 2008-11-15  Bruno Haible  <bruno@clisp.org>
52310
52311         New module 'hostent'.
52312         * modules/hostent: New file.
52313         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52314
52315 2008-11-15  Bruno Haible  <bruno@clisp.org>
52316
52317         New module 'servent'.
52318         * modules/servent: New file.
52319         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52320
52321 2008-11-15  Bruno Haible  <bruno@clisp.org>
52322
52323         Avoid generating same test program with two different rules.
52324         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52325         test-frexp to test-frexp-nolibm.
52326         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52327         test-frexpl to test-frexpl-nolibm.
52328
52329 2008-11-15  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52332         $(FREXPL_LIBM).
52333
52334 2008-11-15  Bruno Haible  <bruno@clisp.org>
52335
52336         * lib/netdb.in.h: Activate the definitions also when the system's
52337         <netdb.h> has 'struct addrinfo'.
52338         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52339         EAI_OVERFLOW or AI_NUMERICSERV.
52340         * doc/posix-headers/netdb.texi: Document the problem.
52341
52342 2008-11-15  Bruno Haible  <bruno@clisp.org>
52343
52344         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52345
52346         Make the 'sched' module work on platforms where <sched.h> exists but
52347         is incomplete (such as Haiku).
52348         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52349         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52350         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52351         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52352         HAVE_STRUCT_SCHED_PARAM.
52353         * modules/sched (Depends-on): Add include_next.
52354         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52355         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52356         * doc/posix-headers/sched.texi: Document the issue.
52357
52358 2008-11-13  Jim Meyering  <meyering@redhat.com>
52359
52360         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52361         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52362         test would fail due to the difference in the Report bugs to ...
52363         line.  The expected address is empty, "<>", while the actual
52364         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52365
52366 2008-11-12  Bruno Haible  <bruno@clisp.org>
52367
52368         lstat: don't compile lstat.c on systems lacking lstat
52369         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52370         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52371         Reported by Daniel P. Berrange via Jim Meyering.
52372
52373 2008-11-12  Jim Meyering  <meyering@redhat.com>
52374
52375         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52376
52377 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52378
52379         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52380         instead.
52381
52382 2008-11-12  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/unicodeio.c: Include unistr.h.
52385         (utf8_wctomb): Remove function.
52386         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52387
52388 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52389
52390         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52391         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52392         <bruno@clisp.org>.
52393         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52394
52395 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52396
52397         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52398         * doc/gnulib.texi: Add section for warnings.
52399
52400 2008-11-11  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/sockets.h: Add a comment.
52403
52404 2008-11-11  Karl Berry  <karl@gnu.org>
52405
52406         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52407
52408 2008-11-11  Eric Blake  <ebb9@byu.net>
52409
52410         fdl.texi: avoid git symlinks
52411         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52412
52413 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52414
52415         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52416
52417 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52418
52419         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52420         (gl_WARN_ADD): Substitute $2 if literal.
52421
52422 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52423
52424         * m4/warning.m4: Remove.
52425
52426 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52427
52428         * m4/warnings.m4: Almost complete rewrite. :-)
52429
52430 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52431
52432         * modules/warnings: New module.
52433         * m4/warnings.m4: New file.
52434         * MODULES.html.sh: Mention warnings module.
52435         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52436         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52437
52438 2008-11-10  Eric Blake  <ebb9@byu.net>
52439
52440         fdl.texi: make a symlink to the latest version
52441         * doc/standards.texi: Revert today's earlier change.
52442         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52443         * doc/fdl.texi: ...and replace this with a symlink to the newer
52444         fdl-1.3.texi.
52445
52446 2008-11-10  Bruno Haible  <bruno@clisp.org>
52447
52448         * tests/test-select-fd.c (main): Accept the result file name as fourth
52449         argument.
52450         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52451         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52452
52453 2008-11-10  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52456         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52457         as autoconf-substituted macros.
52458         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52460         gl_NETDB_H_DEFAULTS. Set these variables.
52461         * modules/netdb (Makefile.am): Substitute these variables.
52462
52463 2008-11-10  Eric Blake  <ebb9@byu.net>
52464
52465         standards.texi: include correct file for FDL 1.3
52466         * doc/standards.texi (GNU Free Documentation License): Change
52467         include file to pull in FDL 1.3, not 1.2.
52468
52469         fdl.texi: revert accidental change to license
52470         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52471
52472 2008-11-10  Bruno Haible  <bruno@clisp.org>
52473
52474         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52475         cross-compiling guesses also when the native compile gives no result.
52476
52477 2008-11-10  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/spawni.c (__spawni): Force variable into the stack.
52480
52481 2008-11-10  Bruno Haible  <bruno@clisp.org>
52482
52483         Add support for Haiku.
52484         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52485         glibc and BeOS, but also on Haiku.
52486         * lib/fpurge.c (fpurge): Likewise.
52487         * lib/freadable.c (freadable): Likewise.
52488         * lib/freadahead.c (freadahead): Likewise.
52489         * lib/freading.c (freading): Likewise.
52490         * lib/freadptr.c (freadptr): Likewise.
52491         * lib/freadseek.c (freadptrinc): Likewise.
52492         * lib/fseeko.c (rpl_fseeko): Likewise.
52493         * lib/fseterr.c (fseterr): Likewise.
52494         * lib/fwritable.c (fwritable): Likewise.
52495         * lib/fwriting.c (fwriting): Likewise.
52496         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52497
52498 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52499
52500         * lib/config.charset: Treat Haiku like BeOS.
52501
52502 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52503
52504         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52505         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52506
52507 2008-11-08  Bruno Haible  <bruno@clisp.org>
52508
52509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52510         AC_CACHE_CHECK.
52511
52512 2008-11-08  Bruno Haible  <bruno@clisp.org>
52513
52514         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52515
52516 2008-11-08  Bruno Haible  <bruno@clisp.org>
52517
52518         * tests/test-select-fd.c: New file.
52519         * tests/test-select-in.sh: New file.
52520         * tests/test-select-out.sh: New file.
52521         * tests/test-select-stdin.c: New file.
52522         * modules/select-tests (Files): Add the new files.
52523         (Depends-on): Add gettimeofday.
52524         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52525         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52526         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52527
52528 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52529             Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52532
52533 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52534
52535         * build-aux/pmccabe2html: Added support for C++ source files.
52536
52537 2008-11-05  Ben Pfaff  <blp@gnu.org>
52538
52539         Fix lib/close.c build on Windows.
52540         * modules/close (Files): Add lib/w32sock.h.
52541
52542 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52543
52544         Accept Bison's NEWS format.
52545         * build-aux/announce-gen (print_news_deltas): Tweak
52546         $re_prefix.
52547
52548 2008-11-04  Bruno Haible  <bruno@clisp.org>
52549
52550         * modules/random_r (Maintainer): Add glibc.
52551
52552 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52553
52554         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52555         by karl@freefriends.org (Karl Berry).
52556         * doc/alloca.texi: Likewise.
52557         * doc/c-ctype.texi: Likewise.
52558         * doc/c-strcase.texi: Likewise.
52559         * doc/c-strcaseeq.texi: Likewise.
52560         * doc/c-strcasestr.texi: Likewise.
52561         * doc/c-strstr.texi: Likewise.
52562         * doc/c-strtod.texi: Likewise.
52563         * doc/c-strtold.texi: Likewise.
52564         * doc/ctime.texi: Likewise.
52565         * doc/error.texi: Likewise.
52566         * doc/fdl.texi: Likewise.
52567         * doc/gcd.texi: Likewise.
52568         * doc/getdate.texi: Likewise.
52569         * doc/gnulib-intro.texi: Likewise.
52570         * doc/gnulib-tool.texi: Likewise.
52571         * doc/gnulib.texi: Likewise.
52572         * doc/inet_ntoa.texi: Likewise.
52573         * doc/maintain.texi: Likewise.
52574         * doc/make-stds.texi: Likewise.
52575         * doc/quote.texi: Likewise.
52576         * doc/regexprops-generic.texi: Likewise.
52577         * doc/standards.texi: Likewise.
52578         * doc/verify.texi: Likewise.
52579         * doc/visibility.texi: Likewise.
52580         * doc/gnulib.texi (GNU Free Documentation License): Include
52581         fdl-1.3.texi instead of fdl.texi.
52582
52583 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52584
52585         * doc/fdl-1.3.texi: New file, from
52586         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52587         * modules/fdl-1.3: Add.
52588         * MODULES.html.sh: Add fdl-1.3.
52589
52590 2008-11-03  Bruno Haible  <bruno@clisp.org>
52591
52592         Make determination of absolute name of header file work with AIX xlc.
52593         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52594         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52595         preprocessing.
52596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52597         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52598
52599 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52600
52601         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52602         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52603         <ludo@gnu.org>.
52604
52605 2008-11-02  Bruno Haible  <bruno@clisp.org>
52606
52607         Mark 'strpbrk' obsolete.
52608         * modules/strpbrk (Status, Notice): New sections.
52609         * modules/strtok_r (Depends-on): Add strpbrk.
52610
52611 2008-11-02  Bruno Haible  <bruno@clisp.org>
52612
52613         Mark 'strdup' obsolete.
52614         * modules/strdup (Status, Notice): New sections.
52615         * modules/findprog (Depends-on): Add strdup.
52616         * modules/getaddrinfo (Depends-on): Likewise.
52617         * modules/localename (Depends-on): Likewise.
52618         * modules/relocatable-lib (Depends-on): Likewise.
52619         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52620         * modules/relocatable-prog (Depends-on): Likewise.
52621         * modules/trim (Depends-on): Likewise.
52622         * modules/unictype/gen-ctype (Depends-on): Likewise.
52623         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52624
52625 2008-11-02  Bruno Haible  <bruno@clisp.org>
52626
52627         Mark 'strcspn' obsolete.
52628         * modules/strcspn (Status, Notice): New sections.
52629
52630 2008-11-02  Bruno Haible  <bruno@clisp.org>
52631
52632         Mark 'rmdir' obsolete.
52633         * modules/rmdir (Status, Notice): New sections.
52634         * modules/clean-temp (Depends-on): Add rmdir.
52635         * modules/openat (Depends-on): Likewise.
52636
52637 2008-11-02  Bruno Haible  <bruno@clisp.org>
52638
52639         Mark 'raise' obsolete.
52640         * modules/raise (Status, Notice): New sections.
52641         (Include): Specify <signal.h>.
52642         * modules/stdio (Depends-on): Add raise.
52643         * modules/write (Depends-on): Likewise.
52644
52645 2008-11-02  Bruno Haible  <bruno@clisp.org>
52646
52647         Mark 'memset' obsolete.
52648         * modules/memset (Status, Notice): New sections.
52649
52650 2008-11-02  Bruno Haible  <bruno@clisp.org>
52651
52652         Mark 'memmove' obsolete.
52653         * modules/memmove (Status, Notice): New sections.
52654         * modules/argp (Depends-on): Add memmove.
52655         * modules/argz (Depends-on): Likewise.
52656         * modules/canonicalize (Depends-on): Likewise.
52657         * modules/canonicalize-lgpl (Depends-on): Likewise.
52658         * modules/fts (Depends-on): Likewise.
52659         * modules/getcwd (Depends-on): Likewise.
52660         * modules/human (Depends-on): Likewise.
52661         * modules/regex (Depends-on): Likewise.
52662         * modules/striconveh (Depends-on): Likewise.
52663         * modules/trim (Depends-on): Likewise.
52664         * modules/unistr/u8-move (Depends-on): Likewise.
52665         * modules/unistr/u16-move (Depends-on): Likewise.
52666         * modules/unistr/u32-move (Depends-on): Likewise.
52667
52668 2008-11-02  Bruno Haible  <bruno@clisp.org>
52669
52670         Mark 'memcpy' obsolete.
52671         * modules/memcpy (Status, Notice): New sections.
52672
52673 2008-11-02  Bruno Haible  <bruno@clisp.org>
52674
52675         Mark 'memcmp' obsolete.
52676         * modules/memcmp (Status, Notice): New sections.
52677         * modules/argmatch (Depends-on): Add memchr.
52678         * modules/backupfile (Depends-on): Likewise.
52679         * modules/c-strcasestr (Depends-on): Likewise.
52680         * modules/crypto/des (Depends-on): Likewise.
52681         * modules/csharpcomp (Depends-on): Likewise.
52682         * modules/fnmatch (Depends-on): Likewise.
52683         * modules/git-merge-changelog (Depends-on): Likewise.
52684         * modules/isnand (Depends-on): Likewise.
52685         * modules/isnand-nolibm (Depends-on): Likewise.
52686         * modules/isnanf (Depends-on): Likewise.
52687         * modules/isnanf-nolibm (Depends-on): Likewise.
52688         * modules/isnanl (Depends-on): Likewise.
52689         * modules/isnanl-nolibm (Depends-on): Likewise.
52690         * modules/mbchar (Depends-on): Likewise.
52691         * modules/memcoll (Depends-on): Likewise.
52692         * modules/quotearg (Depends-on): Likewise.
52693         * modules/regex (Depends-on): Likewise.
52694         * modules/relocatable-prog (Depends-on): Likewise.
52695         * modules/same (Depends-on): Likewise.
52696         * modules/signbit (Depends-on): Likewise.
52697         * modules/strcasestr-simple (Depends-on): Likewise.
52698         * modules/unictype/gen-ctype (Depends-on): Likewise.
52699         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52700         * modules/uniname/uniname (Depends-on): Likewise.
52701         * modules/unistr/u8-cmp (Depends-on): Likewise.
52702
52703 2008-11-02  Bruno Haible  <bruno@clisp.org>
52704
52705         Mark 'memchr' obsolete.
52706         * modules/memchr (Status, Notice): New sections.
52707         * modules/argp (Depends-on): Add memchr.
52708         * modules/base64 (Depends-on): Likewise.
52709         * modules/c-strcasestr (Depends-on): Likewise.
52710         * modules/chdir-long (Depends-on): Likewise.
52711         * modules/fnmatch (Depends-on): Likewise.
52712         * modules/getsubopt (Depends-on): Likewise.
52713         * modules/git-merge-changelog (Depends-on): Likewise.
52714         * modules/glob (Depends-on): Likewise.
52715         * modules/strcasestr-simple (Depends-on): Likewise.
52716         * modules/strnlen (Depends-on): Likewise.
52717
52718 2008-11-02  Bruno Haible  <bruno@clisp.org>
52719
52720         Mark 'atexit' obsolete.
52721         * modules/atexit (Status, Notice): New sections.
52722         * modules/chdir-long (Depends-on): Add atexit.
52723         * modules/wait-process (Depends-on): Likewise.
52724
52725 2008-11-02  Bruno Haible  <bruno@clisp.org>
52726
52727         * gnulib-tool: New option --with-obsolete.
52728         (func_usage): Document it.
52729         (func_modules_transitive_closure): Drop obsolete dependencies if
52730         incobsolete is not true.
52731         (func_import): Read and save the incobsolete variable to the cache.
52732
52733 2008-11-02  Bruno Haible  <bruno@clisp.org>
52734
52735         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52736         * gnulib-tool: New option --extract-status.
52737         (func_usage): Document it.
52738         (sed_extract_prog): Recognize it.
52739         (func_get_status): New function.
52740
52741 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52742
52743         * modules/sockets (License): Change from LGPL to LGPLv2+.
52744
52745 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52746
52747         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52748
52749 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52750
52751         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52752         Mention times and sys_times.
52753         * modules/sys_times, modules/sys_times-tests: New modules.
52754         * modules/times, modules/times-tests: Likewise
52755         * m4/sys_times_h.m4: New file.
52756         * lib/sys_times.in.h: Likewise
52757         * lib/times.c: Likewise.
52758         * tests/test-sys_times.c: Likewise.
52759         * tests/test-times.c: Likewise.
52760         * doc/posix-headers/sys_times.texi: Update.
52761         * doc/posix-functions/times.texi: Update.
52762
52763 2008-10-28  Jim Meyering  <meyering@redhat.com>
52764
52765         * modules/tempname (Depends-on): Add lstat.
52766
52767         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52768
52769 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52770
52771         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52772         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52773         using idiom used elsewhere in gnulib.
52774
52775 2008-10-27  Jim Meyering  <meyering@redhat.com>
52776
52777         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52778
52779 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52780
52781         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52782         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52783         programs.
52784         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52785
52786 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52787
52788         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52789
52790 2008-10-27  Bruno Haible  <bruno@clisp.org>
52791
52792         * tests/test-lstat.c: Include <stdio.h>.
52793
52794 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52795
52796         * modules/lstat-tests: New module.
52797         * tests/test-lstat.c: New file.
52798
52799 2008-10-26  Jim Meyering  <meyering@redhat.com>
52800
52801         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52802
52803 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52804             Bruno Haible  <bruno@clisp.org>
52805
52806         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52807         * modules/configmake (Include): Add a note that the include must come
52808         after all system headers.
52809         * lib/javaversion.c: Include configmake.h after all other includes.
52810
52811 2008-10-26  Bruno Haible  <bruno@clisp.org>
52812
52813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52814         HAVE_STRUCT_RANDOM_DATA to 1.
52815         (gl_STDLIB_H): Simplify.
52816
52817 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52818
52819         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52820         substitute HAVE_STRUCT_RANDOM_DATA.
52821         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52822         random_data.
52823         * modules/stdlib (Makefile.am): Substitute
52824         HAVE_STRUCT_RANDOM_DATA.
52825
52826 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52827
52828         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52829         * doc/gnulib-intro.texi (Copyright): Likewise.
52830
52831 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52832
52833         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52834         findings.
52835
52836 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52837             Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/unistd.in.h: Include <winsock2.h>.
52840         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52841         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52842         Provide dummy declarations.
52843         (gethostname): Override.
52844         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52845         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52846         gl_PREREQ_SYS_H_WINSOCK2.
52847         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52848         * doc/posix-functions/gethostname.texi: More details.
52849
52850 2008-10-25  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52853         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52854         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52855
52856         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52857         here ...
52858         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52860         gl_UNISTD_H_DEFAULTS.
52861
52862 2008-10-25  Eric Blake  <ebb9@byu.net>
52863
52864         signbit: avoid spurious compiler failure
52865         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52866         declarations inside function.
52867
52868 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52869             Bruno Haible  <bruno@clisp.org>
52870
52871         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52872         * modules/random_r (Depends-on): Add stdint.
52873
52874 2008-10-24  Bruno Haible  <bruno@clisp.org>
52875
52876         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52877         Eggert.
52878         * modules/strerror (License): Likewise.
52879
52880 2008-10-24  Jim Meyering  <meyering@redhat.com>
52881
52882         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52883         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52884
52885 2008-10-24  Eric Blake  <ebb9@byu.net>
52886
52887         getgroups: fix compilation when getgroups is available
52888         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52889         but with <config.h> override of getgroups disabled.
52890
52891 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52892
52893         * doc/gnulib.texi (Header files): Add note about C++ problems.
52894         Explained by Bruno Haible <bruno@clisp.org>.
52895
52896 2008-10-23  Bruno Haible  <bruno@clisp.org>
52897
52898         Define a dummy SA_NODEFER macro on Interix.
52899         * lib/signal.in.h (SA_NODEFER): Define fallback.
52900         Reported by Aleksey Cheusov <cheusov@tut.by> via
52901         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52902
52903 2008-10-23  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/freadahead (License): Change to LGPLv2+.
52906         Suggested by Simon Josefsson.
52907
52908 2008-10-23  Jim Meyering  <meyering@redhat.com>
52909
52910         random_r: new module
52911         * modules/random_r: New file.
52912         * m4/random_r.m4: New file.
52913         * lib/random_r.c: New file, from glibc.
52914         * modules/random_r-tests: New file.
52915         * tests/test-random_r.c: New file.
52916         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52917          Declare.
52918         (RAND_MAX): Define.
52919         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52920         * modules/stdlib: Substitute them, too.
52921         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52922         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52923         * doc/glibc-functions/random_r.texi: Likewise.
52924         * doc/glibc-functions/setstate_r.texi: Likewise.
52925         * doc/glibc-functions/srandom_r.texi: Likewise.
52926         * config/srclist.txt: Mention it.
52927
52928 2008-10-23  David Lutterkort  <lutter@redhat.com>
52929
52930         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52931         link requirement
52932
52933 2008-10-23  Jim Meyering  <meyering@redhat.com>
52934
52935         selinux-h: mark parameters of stub functions as intentionally unused
52936         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52937         * lib/se-context.in.h: Likewise.
52938
52939 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52940
52941         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52942
52943 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52944
52945         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52946
52947 2008-10-22  Eric Blake  <ebb9@byu.net>
52948
52949         glthread/thread: avoid compiler warning
52950         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52951         Add unreachable abort to silence compiler.
52952
52953 2008-10-22  Eric Blake  <ebb9@byu.net>
52954
52955         netdb: also supply struct addrinfo for cygwin 1.5.x
52956         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52957         older cygwin.
52958         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52959         cygwin.
52960         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52961
52962 2008-10-22  Bruno Haible  <bruno@clisp.org>
52963
52964         * users.txt: Update entry about pspp.
52965
52966 2008-10-21  Bruno Haible  <bruno@clisp.org>
52967
52968         Simplification.
52969         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52970         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52971
52972         Simplification.
52973         * lib/ioctl.c (ioctl): Don't undefine.
52974         * lib/socket.c (socket): Don't undefine.
52975
52976         Remove unused module indicator macros.
52977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52978         GNULIB_$1 as a C macro.
52979
52980         * doc/posix-functions/close.texi: Undo last change.
52981         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52982         Windows platforms.
52983
52984 2008-10-21  Bruno Haible  <bruno@clisp.org>
52985
52986         Add gethostname() declaration to <unistd.h>.
52987         * lib/unistd.in.h (gethostname): New declaration.
52988         * lib/gethostname.c: Include <unistd.h>.
52989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52990         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52992         and HAVE_GETHOSTNAME.
52993         * modules/gethostname (Depends-on): Add unistd.
52994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52995         (Include): Specify <unistd.h>.
52996         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52997         HAVE_GETHOSTNAME.
52998         * tests/test-gethostname.c: Include <unistd.h> first.
52999
53000 2008-10-21  Bruno Haible  <bruno@clisp.org>
53001
53002         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53003         * modules/select-tests (Depends-on): Likewise.
53004         Reported by Simon Josefsson.
53005
53006 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53007
53008         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53009         * lib/accept.c: New file, based on winsock.c.
53010         * lib/bind.c: New file, based on winsock.c.
53011         * lib/connect.c: New file, based on winsock.c.
53012         * lib/getpeername.c: New file, based on winsock.c.
53013         * lib/getsockname.c: New file, based on winsock.c.
53014         * lib/getsockopt.c: New file, based on winsock.c.
53015         * lib/ioctl.c: New file, based on winsock.c.
53016         * lib/listen.c: New file, based on winsock.c.
53017         * lib/recv.c: New file, based on winsock.c.
53018         * lib/recvfrom.c: New file, based on winsock.c.
53019         * lib/send.c: New file, based on winsock.c.
53020         * lib/sendto.c: New file, based on winsock.c.
53021         * lib/setsockopt.c: New file, based on winsock.c.
53022         * lib/shutdown.c: New file, based on winsock.c.
53023         * lib/socket.c: New file, based on winsock.c.
53024         * lib/w32sock.h: New file, based on winsock.c.
53025         * lib/winsock.c: Remove file.
53026         * modules/accept: Likewise.
53027         * modules/bind: Likewise.
53028         * modules/connect: Likewise.
53029         * modules/getpeername: Likewise.
53030         * modules/getsockname: Likewise.
53031         * modules/getsockopt: Likewise.
53032         * modules/ioctl: Likewise.
53033         * modules/listen: Likewise.
53034         * modules/recv: Likewise.
53035         * modules/recvfrom: Likewise.
53036         * modules/send: Likewise.
53037         * modules/sendto: Likewise.
53038         * modules/setsockopt: Likewise.
53039         * modules/shutdown: Likewise.
53040         * modules/socket: Use socket.c instead of winsock.c.
53041         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53042         * doc/posix-functions/accept.texi: Doc fix.
53043         * doc/posix-functions/bind.texi: Doc fix.
53044         * doc/posix-functions/close.texi: Doc fix.
53045         * doc/posix-functions/connect.texi: Doc fix.
53046         * doc/posix-functions/getpeername.texi: Doc fix.
53047         * doc/posix-functions/getsockname.texi: Doc fix.
53048         * doc/posix-functions/getsockopt.texi: Doc fix.
53049         * doc/posix-functions/ioctl.texi: Doc fix.
53050         * doc/posix-functions/listen.texi: Doc fix.
53051         * doc/posix-functions/recv.texi: Doc fix.
53052         * doc/posix-functions/recvfrom.texi: Doc fix.
53053         * doc/posix-functions/send.texi: Doc fix.
53054         * doc/posix-functions/sendto.texi: Doc fix.
53055         * doc/posix-functions/setsockopt.texi: Doc fix.
53056         * doc/posix-functions/shutdown.texi: Doc fix.
53057         * doc/posix-functions/socket.texi: Doc fix.
53058
53059 2008-10-20  Bruno Haible  <bruno@clisp.org>
53060
53061         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53062         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53063         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53064         as an alias for SIGABRT.
53065         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53066         (sigaction): Map it to SIGABRT.
53067         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53068
53069 2008-10-20  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/fts.c: Don't include lstat.h.
53072         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53073
53074         Move the lstat() declaration to <sys/stat.h>.
53075         * lib/lstat.h: Remove file.
53076         * lib/sys_stat.in.h: Add special invocation convention.
53077         (lstat): New declaration.
53078         * lib/lstat.c (orig_lstat): New function.
53079         (rpl_lstat): Use orig_lstat instead of lstat.
53080         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53081         AC_C_INLINE. Set REPLACE_LSTAT.
53082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53083         and REPLACE_LSTAT.
53084         * modules/lstat (Files): Remove lib/lstat.h.
53085         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53086         (Include): Specify <sys/stat.h> instead of lstat.h.
53087         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53088         REPLACE_LSTAT.
53089         * NEWS: Mention the change.
53090
53091 2008-10-20  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/posix_spawn-tests: New file.
53094         * tests/test-posix_spawn3.c: New file.
53095
53096 2008-10-20  Bruno Haible  <bruno@clisp.org>
53097
53098         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53099         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53100         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53101         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53102         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53103
53104 2008-10-20  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53107         of posix_spawn on AIX 5.3.
53108
53109 2008-10-20  Bruno Haible  <bruno@clisp.org>
53110
53111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53112
53113 2008-10-20  Bruno Haible  <bruno@clisp.org>
53114
53115         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53116         of AC_LANG_PROGRAM.
53117
53118 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53119
53120         * lib/netdb.in.h: Don't define GNU specific constants until they
53121         are supported or needed.  Reported by Bruno Haible
53122         <bruno@clisp.org>.
53123
53124 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53125
53126         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53127
53128 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53129
53130         * lib/getaddrinfo.h: Remove file.
53131         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53132         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53133         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53134         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53135         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53136         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53137         * tests/test-getaddrinfo.c: Likewise.
53138         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53139         * NEWS: Mention change.
53140
53141 2008-10-19  Bruno Haible  <bruno@clisp.org>
53142
53143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53144
53145 2008-10-19  Bruno Haible  <bruno@clisp.org>
53146
53147         * lib/wait-process.c: Include simply <sys/wait.h>.
53148         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53149         WIFSTOPPED): Remove fallback definitions.
53150         * modules/wait-process (Depends-on): Add sys_wait.
53151
53152         New module 'sys_wait'.
53153         * modules/sys_wait: New file.
53154         * lib/sys_wait.in.h: New file, partially copied from
53155         lib/wait-process.c.
53156         * m4/sys_wait_h.m4: New file.
53157         * doc/posix-headers/sys_wait.texi: Mention the new module.
53158
53159 2008-10-19  Bruno Haible  <bruno@clisp.org>
53160
53161         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53162
53163 2008-10-19  Bruno Haible  <bruno@clisp.org>
53164
53165         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53166         * lib/wait-process.c (WAIT_T): Remove type.
53167         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53168         (wait_subprocess): Update.
53169
53170 2008-10-19  Bruno Haible  <bruno@clisp.org>
53171
53172         New module 'atoll'.
53173         * modules/atoll: New file.
53174         * lib/stdlib.in.h (atoll): New declaration.
53175         * lib/atoll.c: New file, from glibc with modifications.
53176         * m4/atoll.m4: New file.
53177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53178         HAVE_ATOLL.
53179         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53180         * doc/posix-functions/atoll.texi: Mention the new module.
53181
53182 2008-10-19  Bruno Haible  <bruno@clisp.org>
53183
53184         Add strtoull() declaration to <stdlib.h>.
53185         * lib/stdlib.in.h (strtoull): New declaration.
53186         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53187         Set HAVE_STRTOULL.
53188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53189         HAVE_STRTOULL.
53190         * modules/strtoull (Depends-on): Add stdlib.
53191         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53192         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53193         HAVE_STRTOULL.
53194
53195 2008-10-19  Bruno Haible  <bruno@clisp.org>
53196
53197         Add strtoll() declaration to <stdlib.h>.
53198         * lib/stdlib.in.h (strtoll): New declaration.
53199         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53200         Set HAVE_STRTOLL.
53201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53202         HAVE_STRTOLL.
53203         * modules/strtoll (Depends-on): Add stdlib.
53204         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53205         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53206
53207 2008-10-19  Bruno Haible  <bruno@clisp.org>
53208
53209         * modules/bcopy (Depends-on): Add strings.
53210         (Include): Specify <strings.h>.
53211
53212 2008-10-19  Bruno Haible  <bruno@clisp.org>
53213
53214         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53215
53216 2008-10-19  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53219         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53220         mingw.
53221
53222 2008-10-19  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/atanl.c: Don't include isnanl.h.
53225         * lib/cosl.c: Likewise.
53226         * lib/ldexpl.c: Likewise.
53227         * lib/logl.c: Likewise.
53228         * lib/sinl.c: Likewise.
53229         * lib/sqrtl.c: Likewise.
53230         * lib/tanl.c: Likewise.
53231
53232         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53233         * lib/isnanf.h: Remove file.
53234         * lib/isnand.h: Remove file.
53235         * lib/isnanl.h: Remove file.
53236         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53237         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53238         macros.
53239         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53240         HAVE_ISNANF, don't define it as a C macro.
53241         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53242         HAVE_ISNAND, don't define it as a C macro.
53243         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53244         HAVE_ISNANL, don't define it as a C macro.
53245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53246         HAVE_ISNAN[FDL].
53247         * modules/isnanf (Files): Remove lib/isnanf.h.
53248         (Depends-on): Add math.
53249         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53250         (Include): Specify <math.h> instead of isnanf.h.
53251         * modules/isnand (Files): Remove lib/isnand.h.
53252         (Depends-on): Add math.
53253         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53254         (Include): Specify <math.h> instead of isnand.h.
53255         * modules/isnanl (Files): Remove lib/isnanl.h.
53256         (Depends-on): Add math.
53257         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53258         (Include): Specify <math.h> instead of isnanl.h.
53259         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53260         HAVE_ISNAN[FDL].
53261         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53262         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53263         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53264         * NEWS: Mention the change.
53265
53266 2008-10-18  Bruno Haible  <bruno@clisp.org>
53267
53268         Add getusershell(), setusershell(), endusershell() declarations to
53269         <unistd.h>.
53270         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53271         declarations.
53272         * lib/getusershell.c: Include unistd.h.
53273         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53274         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53275         HAVE_GETUSERSHELL.
53276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53277         and HAVE_GETUSERSHELL.
53278         * modules/getusershell (Depends-on): Add unistd, extensions.
53279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53280         (Include): Specify <unistd.h>.
53281         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53282         HAVE_GETUSERSHELL.
53283
53284 2008-10-18  Bruno Haible  <bruno@clisp.org>
53285
53286         Add a getloadavg() declaration to <stdlib.h>.
53287         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53288         getloadavg declaration.
53289         (getloadavg): New declaration.
53290         * lib/getloadavg.c: Include <stdlib.h> first.
53291         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53292         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53293         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53295         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53296         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53297         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53298         (Include): Specify <stdlib.h>.
53299         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53300         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53301
53302 2008-10-18  Bruno Haible  <bruno@clisp.org>
53303
53304         * lib/dirchownmod.c: Don't include lchmod.h.
53305
53306         Move the lchmod() declaration to <sys/stat.h>.
53307         * lib/lchmod.h: Remove file.
53308         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53309         (lchmod): New declaration, moved here from lib/lchown.h.
53310         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53311         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53313         and HAVE_LCHMOD.
53314         * modules/lchmod (Files): Remove lib/lchmod.h.
53315         (Depends-on): Add sys_stat, extensions.
53316         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53317         (Include): Specify <sys/stat.h> instead of lchmod.h.
53318         * modules/sys_stat (Depends-on): Add link-warning.
53319         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53320         definition of GL_LINK_WARNING.
53321         * NEWS: Mention the change.
53322
53323 2008-10-18  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/fchdir.c: Don't include dirfd.h.
53326         * lib/fts.c: Likewise.
53327         * lib/getcwd.c: Likewise.
53328         * lib/glob.c: Likewise.
53329
53330         Move the dirfd() declaration to <dirent.h>.
53331         * lib/dirfd.h: Remove file.
53332         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53333         (dirfd): New declaration.
53334         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53335         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53336         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53337         HAVE_DECL_DIRFD.
53338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53339         HAVE_DECL_DIRFD.
53340         * modules/dirfd (Files): Remove lib/dirfd.h.
53341         (Depends-on): Add dirent, extensions.
53342         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53343         (Include): Specify <dirent.h> instead of dirfd.h.
53344         * modules/dirent (Depends-on): Add link-warning.
53345         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53346         definition of GL_LINK_WARNING.
53347         * NEWS: Mention the change.
53348
53349 2008-10-18  Bruno Haible  <bruno@clisp.org>
53350
53351         Move the euidaccess() declaration to <unistd.h>.
53352         * lib/euidaccess.h: Remove file.
53353         * lib/unistd.in.h (euidaccess): New declaration.
53354         * lib/euidaccess.c: Don't include euidaccess.h.
53355         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53356         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53358         and HAVE_EUIDACCESS.
53359         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53360         (Depends-on): Add unistd.
53361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53362         (Include): Specify <unistd.h> instead of euidaccess.h.
53363         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53364         HAVE_EUIDACCESS.
53365         * NEWS: Mention the change.
53366
53367 2008-10-18  Bruno Haible  <bruno@clisp.org>
53368
53369         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53370
53371         Move the getdomainname() declaration to <unistd.h>.
53372         * lib/getdomainname.h: Remove file.
53373         * lib/unistd.in.h (getdomainname): New declaration.
53374         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53375         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53376         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53377         HAVE_GETDOMAINNAME.
53378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53379         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53380         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53381         (Depends-on): Add unistd, extensions.
53382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53383         (Includes): Specify <unistd.h> instead of getdomainname.h.
53384         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53385         HAVE_GETDOMAINNAME.
53386         * NEWS: Mention the change.
53387
53388 2008-10-18  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/dirent: New file.
53391         * m4/dirent_h.m4: New file.
53392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53393         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53394         * modules/fchdir (Files): Remove lib/dirent.in.h.
53395         (Depends-on): Add dirent.
53396         (Makefile.am): Move rules to modules/dirent.
53397         * doc/posix-headers/dirent.texi: Mention the new module.
53398
53399 2008-10-18  Bruno Haible  <bruno@clisp.org>
53400
53401         Avoid -Wunused-parameter warnings in public gnulib header files.
53402         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53403         macro.
53404         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53405
53406 2008-10-18  Bruno Haible  <bruno@clisp.org>
53407
53408         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53409         * doc/glibc-functions/error.texi: Mention the module 'error'.
53410         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53411         * doc/glibc-functions/getdomainname.texi: Mention the module
53412         'getdomainname'.
53413         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53414         * doc/glibc-functions/getpagesize.texi: Mention the module
53415         'getpagesize'.
53416         * doc/glibc-functions/getusershell.texi: Mention the module
53417         'getusershell'.
53418         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53419         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53420         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53421         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53422         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53423         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53424         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53425         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53426         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53427         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53428         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53429         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53430         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53431         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53432
53433 2008-10-17  Bruno Haible  <bruno@clisp.org>
53434
53435         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53436         HP-UX and IRIX, use -0.0L.
53437         * tests/test-ceill.c (minus_zero): Likewise.
53438         * tests/test-floorl.c (minus_zero): Likewise.
53439         * tests/test-frexpl.c (minus_zero): Likewise.
53440         * tests/test-isnan.c (minus_zerol): Likewise.
53441         * tests/test-isnanl.h (minus_zero): Likewise.
53442         * tests/test-ldexpl.c (minus_zero): Likewise.
53443         * tests/test-roundl.c (minus_zero): Likewise.
53444         * tests/test-signbit.c (minus_zerol): Likewise.
53445         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53446         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53447         * tests/test-truncl.c (minus_zero): Likewise.
53448         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53449         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53450         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53451         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53452
53453 2008-10-17  Bruno Haible  <bruno@clisp.org>
53454
53455         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53456         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53457         that it gets activated only for gcc >= 3.0.
53458         * lib/dirent.in.h: Likewise.
53459         * lib/errno.in.h: Likewise.
53460         * lib/fcntl.in.h: Likewise.
53461         * lib/float.in.h: Likewise.
53462         * lib/iconv.in.h: Likewise.
53463         * lib/inttypes.in.h: Likewise.
53464         * lib/locale.in.h: Likewise.
53465         * lib/math.in.h: Likewise.
53466         * lib/netdb.in.h: Likewise.
53467         * lib/netinet_in.in.h: Likewise.
53468         * lib/search.in.h: Likewise.
53469         * lib/signal.in.h: Likewise.
53470         * lib/spawn.in.h: Likewise.
53471         * lib/stdarg.in.h: Likewise.
53472         * lib/stdint.in.h: Likewise.
53473         * lib/stdio.in.h: Likewise.
53474         * lib/stdlib.in.h: Likewise.
53475         * lib/string.in.h: Likewise.
53476         * lib/strings.in.h: Likewise.
53477         * lib/sys_file.in.h: Likewise.
53478         * lib/sys_ioctl.in.h: Likewise.
53479         * lib/sys_select.in.h: Likewise.
53480         * lib/sys_socket.in.h: Likewise.
53481         * lib/sys_stat.in.h: Likewise.
53482         * lib/sys_time.in.h: Likewise.
53483         * lib/sysexits.in.h: Likewise.
53484         * lib/time.in.h: Likewise.
53485         * lib/unistd.in.h: Likewise.
53486         * lib/wchar.in.h: Likewise.
53487         * lib/wctype.in.h: Likewise.
53488         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53489
53490 2008-10-17  Jim Meyering  <meyering@redhat.com>
53491
53492         ignore-value: don't depend on inline module
53493         * modules/ignore-value (Depends-on): Remove 'inline'.
53494         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53495         Suggestion from Bruno Haible.
53496
53497 2008-10-17  Bruno Haible  <bruno@clisp.org>
53498
53499         New implementation of condition variables for Win32.
53500         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53501         (gl_linked_waitqueue_t): New type.
53502         (gl_cond_t): Use it.
53503         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53504         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53505         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53506         (glthread_cond_init_func, glthread_cond_wait_func,
53507         glthread_cond_timedwait_func, glthread_cond_signal_func,
53508         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53509         Reimplemented on the basis of gl_linked_waitqueue_t.
53510         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53511         gl_waitqueue_t.
53512         (gl_rwlock_t): Update.
53513         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53514
53515 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53516
53517         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53518         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53519
53520 2008-10-17  Jim Meyering  <meyering@redhat.com>
53521
53522         ignore-value: new module
53523         * modules/ignore-value: New file.
53524         * lib/ignore-value.h: New file.
53525         * MODULES.html.sh (Compiler warning management): New section,
53526         just for this module.  More to come.
53527
53528 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53531         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53532         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53533
53534 2008-10-16  Jim Meyering  <meyering@redhat.com>
53535
53536         openat-die.c: avoid 'no previous prototype' warning
53537         * lib/openat-die.c: Include "openat.h".
53538         Reported by Reuben Thomas <rrt@sc3d.org>.
53539
53540 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53541
53542         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53543         * lib/netdb.in.h: Fix typo.
53544         Reported by Bruno Haible  <bruno@clisp.org>
53545
53546         * lib/netdb.in.h: Include sys/socket.h for platforms without
53547         netdb.h, to get structures like hostent on MinGW.
53548         * modules/netdb (Depends-on): Add sys_socket.
53549
53550 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53551
53552         * modules/netdb, modules/netdb-tests: New file.
53553         * m4/netdb_h.m4: New file.
53554         * lib/netdb.in.h: Add, currently just an empty file pending
53555         definitions.
53556         * tests/test-netdb.c: New file.
53557         * doc/posix-headers/netdb.texi: Mention that we replace it if
53558         needed.
53559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53560         netdb.
53561
53562 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53563
53564         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53565         with code.
53566
53567 2008-10-13  Bruno Haible  <bruno@clisp.org>
53568
53569         * lib/glthread/cond.c (glthread_cond_wait_func,
53570         glthread_cond_timedwait_func): Add a comment.
53571
53572 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53573
53574         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53575         * tests/test-select.c: Likewise,
53576
53577 2008-10-13  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/glthread/cond.c (glthread_cond_wait_func,
53580         glthread_cond_timedwait_func): Fix variable name.
53581         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53582
53583 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53584
53585         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53587         struct sockaddr.sa_len.
53588         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53589
53590 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53591
53592         * build-aux/pmccabe2html: Add css and css_url parameters.
53593
53594 2008-10-12  Bruno Haible  <bruno@clisp.org>
53595
53596         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53597         calling aclx_get.
53598         Reported by Rainer Tammer <tammer@tammer.net>.
53599
53600 2008-10-12  Bruno Haible  <bruno@clisp.org>
53601
53602         Use msvcrt aware primitives for creation/termination of Win32 threads.
53603         * lib/glthread/thread.c: Include <process.h>.
53604         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53605         (wrapper_func): Update signature.
53606         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53607
53608 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53609             Bruno Haible  <bruno@clisp.org>
53610
53611         Provide a Win32 implementation of the 'cond' module.
53612         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53613         * lib/glthread/cond.c (glthread_cond_init_func,
53614         glthread_cond_wait_func, glthread_cond_timedwait_func,
53615         glthread_cond_signal_func, glthread_cond_broadcast_func,
53616         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53617         * modules/cond (Dependencies): Add gettimeofday.
53618
53619 2008-10-11  Bruno Haible  <bruno@clisp.org>
53620
53621         Make sleep work on older versions of mingw.
53622         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53623         only whether it exists.
53624         * doc/posix-functions/sleep.texi: Mention the problem with older
53625         versions of mingw.
53626
53627 2008-10-11  Bruno Haible  <bruno@clisp.org>
53628
53629         New module 'shutdown'.
53630         * modules/shutdown: New file.
53631         * lib/sys_socket.in.h (shutdown): New declaration.
53632         * lib/winsock.c (shutdown): New function.
53633         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53634         GNULIB_SHUTDOWN.
53635         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53636         * doc/posix-functions/shutdown.texi: Document the new module.
53637
53638 2008-10-11  Jim Meyering  <meyering@redhat.com>
53639
53640         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53641
53642 2008-10-11  Bruno Haible  <bruno@clisp.org>
53643
53644         New module 'fclose'.
53645         * modules/fclose: New file.
53646         * lib/stdio.in.h (fclose): New declaration.
53647         * lib/fclose.c: New file.
53648         * m4/fclose.m4: New file.
53649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53650         REPLACE_FCLOSE.
53651         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53652         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53653         REPLACE_FCLOSE.
53654         * modules/close (Depends-on): fclose.
53655         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53656
53657 2008-10-11  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53660         set errno and don't call _close.
53661
53662 2008-10-10  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53665         ACL, not afterwards. Fixes test failure on Cygwin.
53666
53667 2008-10-09  Ben Pfaff  <blp@gnu.org>
53668
53669         * build-aux/announce-gen: Fix gnulib version related part of usage
53670         message.  Die with a useful error message if no tarballs are
53671         found.
53672
53673 2008-10-10  Jim Meyering  <meyering@redhat.com>
53674
53675         bootstrap: use git's --depth=N option only if it's supported
53676         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53677         recognize the --depth option.  Reported by Pádraig Brady.
53678
53679 2008-10-09  Bruno Haible  <bruno@clisp.org>
53680
53681         New module 'ioctl'.
53682         * modules/ioctl: New file.
53683         * lib/sys_socket.in.h (ioctl): Remove declaration.
53684         * lib/winsock.c: Include <sys/ioctl.h>.
53685         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53686         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53687         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53688         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53689         * doc/posix-functions/ioctl.texi: Mention the new module.
53690
53691 2008-10-09  Bruno Haible  <bruno@clisp.org>
53692
53693         New module 'sys_ioctl'.
53694         * lib/sys_ioctl.in.h: New file.
53695         * m4/sys_ioctl_h.m4: New file.
53696         * modules/sys_ioctl: New file.
53697         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53698
53699 2008-10-09  Bruno Haible  <bruno@clisp.org>
53700
53701         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53702         * lib/winsock.c: Include <stdarg.h>.
53703         (rpl_ioctl): Change to second argument 'int' and then varargs.
53704
53705 2008-10-09  Bruno Haible  <bruno@clisp.org>
53706
53707         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53708         when the sys_socket module is present and the system has <winsock2.h>.
53709
53710 2008-10-09  Bruno Haible  <bruno@clisp.org>
53711
53712         * doc/posix-functions/close.texi: Mention module 'close' instead of
53713         module 'sys_socket'.
53714
53715 2008-10-09  Bruno Haible  <bruno@clisp.org>
53716
53717         * doc/glibc-headers/sys_ioctl.texi: New file.
53718         * doc/gnulib.texi: Include it.
53719
53720 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53721             Bruno Haible  <bruno@clisp.org>
53722
53723         Combine the two replacements of 'close'.
53724         * lib/sys_socket.in.h (close): Define to a reminder to include
53725         <unistd.h>.
53726         (_gl_close_fd_maybe_socket): New declaration.
53727         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53728         * lib/winsock.c (close): Remove undefinition.
53729         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53730         needed for the gnulib module 'close'.
53731         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53732         define to an error symbol or to a warning, if suitable.
53733         * lib/close.c: Include <sys/socket.h>.
53734         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53735         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53736         UNISTD_H_HAVE_WINSOCK2_H.
53737         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53739         UNISTD_H_HAVE_WINSOCK2_H.
53740         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53741         (configure.ac): Set a module indicator.
53742         (Makefile.am): Substitute GNULIB_CLOSE.
53743         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53744         * modules/poll-tests (Depends-on): Add close.
53745         * modules/select-tests (Depends-on): Likewise.
53746
53747 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53748             Bruno Haible  <bruno@clisp.org>
53749
53750         New module 'close'.
53751         * modules/close: New file.
53752         * lib/unistd.in.h (close): Move declaration out of the
53753         FCHDIR_REPLACEMENT scope.
53754         (_gl_unregister_fd): New declaration.
53755         * lib/close.c: New file.
53756         * lib/fchdir.c (rpl_close): Remove function.
53757         * m4/close.m4: New file.
53758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53759         close.
53760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53761         REPLACE_CLOSE.
53762         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53763         REPLACE_CLOSE.
53764         * modules/fchdir (Depends-on): Add close.
53765
53766 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53767             Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/fcntl.in.h (open): Simplify conditionals.
53770         (_gl_register_fd): New declaration.
53771         * lib/fchdir.c (rpl_open): Remove function.
53772         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53773         also.
53774         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53776         open.
53777
53778 2008-10-09  Jim Meyering  <meyering@redhat.com>
53779
53780         GNUmakefile: use the more name-space-friendly "_version"
53781         * top/GNUmakefile (_dummy): Update.
53782         (_version): Rename from "version".
53783
53784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53785             Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53788         rpl_close.
53789         (_gl_register_fd): New function, extracted from rpl_open.
53790         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53791         (rpl_open, rpl_opendir): Use _gl_register_fd.
53792
53793 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53794
53795         Fix organization of 'open' replacement.
53796         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53797         (gl_FUNC_OPEN): Use it.
53798         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53799
53800 2008-10-08  Bruno Haible  <bruno@clisp.org>
53801
53802         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53803
53804 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53805
53806         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53807         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53808         listen).
53809
53810 2008-10-08  Eric Blake  <ebb9@byu.net>
53811
53812         GNUmakefile: add 'make version' target
53813         * top/GNUmakefile (_curr-ver): Split version update rules...
53814         (version): ...into a target.
53815
53816 2008-10-07  Bruno Haible  <bruno@clisp.org>
53817
53818         Use a more portable replacement expression for -0.0L.
53819         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53820         instead of -0.0L. Fix m4 quotation.
53821
53822         * tests/test-signbit.c: Include <float.h>.
53823         (minus_zero): New variable.
53824         (test_signbitl): Use minus_zero instead of -zero.
53825         * modules/signbit-tests (Depends-on): Add float.
53826
53827         * tests/test-ceill.c: Include <float.h>.
53828         (zero): Remove variable.
53829         (minus_zero): New variable.
53830         (main): Use minus_zero instead of -zero.
53831         * modules/ceill-tests (Depends-on): Add float.
53832
53833         * tests/test-floorl.c: Include <float.h>.
53834         (zero): Remove variable.
53835         (minus_zero): New variable.
53836         (main): Use minus_zero instead of -zero.
53837         * modules/floorl-tests (Depends-on): Add float.
53838
53839         * tests/test-roundl.c: Include <float.h>.
53840         (zero): Remove variable.
53841         (minus_zero): New variable.
53842         (main): Use minus_zero instead of -zero.
53843         * modules/roundl-tests (Depends-on): Add float.
53844
53845         * tests/test-truncl.c: Include <float.h>.
53846         (zero): Remove variable.
53847         (minus_zero): New variable.
53848         (main): Use minus_zero instead of -zero.
53849         * modules/truncl-tests (Depends-on): Add float.
53850
53851         * tests/test-frexpl.c (zero): Remove variable.
53852         (minus_zero): New variable.
53853         (main): Use minus_zero instead of -zero.
53854         * modules/frexpl-tests (Depends-on): Add float.
53855
53856         * tests/test-isnan.c (zerol): Remove variable.
53857         (minus_zerol): New variable.
53858         (test_long_double): Use minus_zerol instead of -zerol.
53859         * modules/isnan-tests (Depends-on): Add float.
53860
53861         * tests/test-isnanl.h (zero): Remove variable.
53862         (minus_zero): New variable.
53863         (main): Use minus_zero instead of -zero.
53864         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53865         * modules/isnanl-tests (Depends-on): Add float.
53866
53867         * tests/test-ldexpl.c (zero): Remove variable.
53868         (minus_zero): New variable.
53869         (main): Use minus_zero instead of -zero.
53870         * modules/ldexpl-tests (Depends-on): Add float.
53871
53872         * tests/test-snprintf-posix.h (zerol): Remove variable.
53873         (minus_zerol): New variable.
53874         (test_function): Use minus_zerol instead of -zerol.
53875         * modules/snprintf-posix-tests (Depends-on): Add float.
53876         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53877
53878         * tests/test-sprintf-posix.h (zerol): Remove variable.
53879         (minus_zerol): New variable.
53880         (test_function): Use minus_zerol instead of -zerol.
53881         * modules/sprintf-posix-tests (Depends-on): Add float.
53882         * modules/vsprintf-posix-tests (Depends-on): Add float.
53883
53884         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53885         (minus_zerol): New variable.
53886         (test_function): Use minus_zerol instead of -zerol.
53887         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53888
53889         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53890         (minus_zerol): New variable.
53891         (test_function): Use minus_zerol instead of -zerol.
53892         * modules/vasprintf-posix-tests (Depends-on): Add float.
53893
53894 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53895
53896         * MODULES.html.sh (Support for building documentation): Mention
53897         pmccabe2html.  Sort entries.
53898
53899         Add pmccabe2html module, from gnupdf.
53900         * build-aux/pmccabe.css: New file.
53901         * build-aux/pmccabe2html: New file.
53902         * m4/pmccabe2html.m4: New file.
53903         * modules/pmccabe2html: New file.
53904
53905 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53906
53907         flock: new module
53908         * MODULES.html.sh: Add to list of modules.
53909         * lib/flock.c: flock implementation for Windows and Unix systems
53910         which have fcntl.
53911         * doc/glibc-functions/flock.texi: Update documentation.
53912         * lib/sys_file.in.h: <sys/file.h> header file.
53913         * m4/flock.m4: M4 macros.
53914         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53915         * modules/flock: flock module.
53916         * modules/flock-tests: flock tests module.
53917         * modules/sys_file: sys/file.h module.
53918         * tests/test-flock.c: test suite for flock.
53919
53920 2008-10-06  Jim Meyering  <meyering@redhat.com>
53921
53922         bootstrap: check for LT_INIT more portably still ;-)
53923         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53924         Spotted by Bruno Haible.
53925
53926 2008-10-06  Eric Blake  <ebb9@byu.net>
53927
53928         test-signbit: avoid tripping Irix cc bug on -0.0L
53929         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53930         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53931         entire testsuite consistent and avoids an Irix 6.2 bug.
53932
53933 2008-10-05  Bruno Haible  <bruno@clisp.org>
53934             Jim Meyering  <jim@meyering.net>
53935
53936         Add an option for ignoring EPIPE during close_stdout.
53937         * lib/closeout.h: Include <stdbool.h>.
53938         (close_stdout_set_ignore_EPIPE): New declaration.
53939         * lib/closeout.c: Include <stdbool.h>.
53940         (ignore_EPIPE): New variable.
53941         (close_stdout_set_ignore_EPIPE): New function.
53942         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53943         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53944         failure.
53945         * modules/closeout (Depends-on): Add stdbool.
53946
53947 2008-10-05  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/accept: New file.
53950         * modules/bind: New file.
53951         * modules/connect: New file.
53952         * modules/getpeername: New file.
53953         * modules/getsockname: New file.
53954         * modules/getsockopt: New file.
53955         * modules/listen: New file.
53956         * modules/recv: New file.
53957         * modules/recvfrom: New file.
53958         * modules/send: New file.
53959         * modules/sendto: New file.
53960         * modules/setsockopt: New file.
53961         * modules/socket: New file.
53962         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53963         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53964         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53965         the particular module is requested. Add a link warning when the
53966         particular module is not requested.
53967         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53968         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53969         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53970         the particular module is requested.
53971         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53972         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53973         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53974         * modules/sys_socket (Depends-on): Add link-warning.
53975         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53976         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53977         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53978         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53979         GL_LINK_WARNING.
53980         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53981         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53982         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53983         * doc/posix-functions/getpeername.texi: Mention the new module
53984         'getpeername'.
53985         * doc/posix-functions/getsockname.texi: Mention the new module
53986         'getsockname'.
53987         * doc/posix-functions/getsockopt.texi: Mention the new module
53988         'getsockopt'.
53989         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53990         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53991         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53992         * doc/posix-functions/send.texi: Mention the new module 'send'.
53993         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53994         * doc/posix-functions/setsockopt.texi: Mention the new module
53995         'setsockopt'.
53996         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53997         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53998         listen, connect, accept.
53999         * modules/select-tests (Depends-on): Likewise.
54000
54001 2008-10-05  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/winsock.c (strerror): Remove unused #undef.
54004         (rpl_close): Remove unused local variable.
54005
54006         * modules/sys_socket (Depends-on); Add errno.
54007
54008 2008-10-05  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54011         (select): Add a link warning when the 'select' module is not used.
54012         * modules/sys_select (Depends-on): Add link-warning.
54013         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54014         Suggested by Paolo Bonzini.
54015
54016 2008-10-05  Jim Meyering  <meyering@redhat.com>
54017
54018         bootstrap: check for LT_INIT more portably
54019         * build-aux/bootstrap: Avoid using grep -E, since it's not
54020         portable enough.  Suggestion from Bruno Haible.
54021
54022 2008-10-05  Bruno Haible  <bruno@clisp.org>
54023
54024         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54025         as being fixed by gnulib.
54026
54027 2008-10-05  Bruno Haible  <bruno@clisp.org>
54028
54029         * modules/select-tests: New file, mostly copied from
54030         modules/sys_select-tests.
54031         * tests/test-select.c: New file, mostly copied from
54032         tests/test-sys_select.c.
54033         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54034         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54035         (Makefile.am): Remove test_sys_select_LDADD.
54036
54037         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54038         to an undefined symbol, for an error message.
54039         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54040         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54041         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54042         winsock-select.c here.
54043         * modules/sys_select (Files): Remove lib/winsock-select.c.
54044         (Depends-on): Remove alloca.
54045         (Makefile.am): Substitute GNULIB_SELECT.
54046         * modules/select: New file.
54047         * doc/posix-functions/select.texi: Update.
54048
54049 2008-10-05  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54052         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54053         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54054         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54055         getdtablesize.
54056         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54057         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54058
54059 2008-10-05  Bruno Haible  <bruno@clisp.org>
54060
54061         * modules/getdtablesize-tests: New file.
54062         * tests/test-getdtablesize.c: New file.
54063
54064         New module 'getdtablesize'.
54065         * lib/unistd.in.h (getdtablesize): New declaration.
54066         * lib/getdtablesize.c: New file.
54067         * m4/getdtablesize.m4: New file.
54068         * modules/getdtablesize: New file.
54069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54070         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54071         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54072         HAVE_GETDTABLESIZE.
54073         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54074
54075 2008-10-05  Bruno Haible  <bruno@clisp.org>
54076
54077         * modules/sched (Makefile.am): Fix typo.
54078         Reported by Simon Josefsson.
54079
54080 2008-10-05  Jim Meyering  <meyering@redhat.com>
54081
54082         bootstrap: check for LT_INIT, too
54083         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54084         are deprecated.  Suggestion from Ralf Wildenhues.
54085
54086 2008-10-05  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54089         overriding them by ours.
54090         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54091
54092 2008-10-05  Jim Meyering  <meyering@redhat.com>
54093
54094         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54095         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54096         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54097
54098 2008-10-04  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/dup2 (License): Change to LGPLv2+.
54101         * modules/sleep (License): Likewise.
54102         * modules/perror (License): Likewise.
54103         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54104         Blake.
54105         * modules/signal (License): Likewise.
54106         * modules/sigprocmask (License): Likewise.
54107         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54108         Meyering.
54109
54110 2008-10-04  Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54113         Reported by Rainer Tammer <tammer@tammer.net>.
54114
54115 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54116             Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54119         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54120         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54121
54122 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54123
54124         filevercmp: new module
54125         * lib/filevercmp.h: New function filevercmp comparing version strings.
54126         * lib/filevercmp.c: Implementation of filevercmp function.
54127         * modules/filevercmp: Module metadata.
54128         * tests/test-filevercmp.c: Unit test for new module.
54129         * modules/filevercmp-tests: Unit test metadata.
54130         * MODULES.html.sh: Add filevercmp module.
54131
54132 2008-10-03  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/c-ctype.h: Add comment.
54135         Reported by Jim Meyering.
54136
54137 2008-10-02  Bruno Haible  <bruno@clisp.org>
54138
54139         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54140
54141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54142
54143         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54144         name of bootstrap.conf accordingly.
54145
54146 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54147
54148         * build-aux/bootstrap: Install git-merge-changelog configuration
54149         items into .gitconfig if needed.
54150
54151 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54152
54153         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54154         git repository, and initialize/update it accordingly.
54155
54156 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54157
54158         * modules/fsync-tests: New file.
54159         * tests/test-fsync.c: New file.
54160
54161         New module 'fsync'.
54162         * lib/fsync.c: New file.
54163         * m4/fsync.m4: New file.
54164         * modules/fsync: New file.
54165         * lib/unistd.in.h (fsync): New declaration.
54166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54167         GNULIB_FSYNC and HAVE_FSYNC.
54168         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54169         * MODULES.html.sh (posix_functions): Add fsync.
54170         * doc/posix-functions/fsync.texi: Mention the new module.
54171
54172 2008-10-02  Jim Meyering  <meyering@redhat.com>
54173
54174         fts.c: sync with similar code from coreutils' remove.c
54175         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54176         Guard also with "#if defined __linux__", since for now at least,
54177         this code is Linux-kernel-specific.
54178
54179 2008-10-02  Jim Meyering  <meyering@redhat.com>
54180
54181         fts: bug fixes
54182         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54183         Include <sys/vfs.h>, not <sys/statfs.h>.
54184
54185         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54186         Include <sys/vfs.h>, not <sys/statfs.h>.
54187
54188 2008-10-01  Bruno Haible  <bruno@clisp.org>
54189
54190         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54192         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54193         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54194         * doc/posix-functions/posix_spawnp.texi: Likewise.
54195         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54196         whether posix_spawn actually works.
54197         * m4/pipe.m4 (gl_PIPE): Likewise.
54198         * modules/execute (Files): Add m4/posix_spawn.m4.
54199         * modules/pipe (Files): Add m4/posix_spawn.m4.
54200         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54201
54202 2008-10-01  Jim Meyering  <meyering@redhat.com>
54203
54204         remove trailing spaces
54205         * NEWS: Likewise.
54206         * lib/poll.c (poll): Likewise.
54207         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54208         * lib/winsock.c (rpl_close): Likewise.
54209         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54210         * modules/yield: Likewise.
54211         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54212         * tests/test-sys_select.c (connect_to_socket): Likewise.
54213
54214         fts.c: adjust a new interface to be more generally useful
54215         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54216         (fts_build): Adjust caller.
54217
54218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54219
54220         * modules/cond-tests: New file.
54221         * tests/test-cond.c: New file.
54222
54223 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54224             Bruno Haible  <bruno@clisp.org>
54225
54226         * modules/cond (Dependencies): Add errno, time.
54227         * lib/glthread/cond.h: Include <time.h>.
54228         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54229         across platforms.
54230
54231 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54232             Bruno Haible  <bruno@clisp.org>
54233
54234         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54235
54236 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54237             Bruno Haible  <bruno@clisp.org>
54238
54239         * modules/tls-tests (Depends-on): Add thread, yield.
54240         (configure.ac): Remove all checks.
54241         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54242         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54243         gl_thread_self): Remove definitions. Include glthread/thread.h and
54244         glthread/yield.h instead.
54245         (test_tls): Pass an additional NULL argument to gl_thread_join.
54246
54247 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54248             Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/lock-tests (Depends-on): Add thread, yield.
54251         (configure.ac): Remove all checks.
54252         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54253         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54254         gl_thread_self): Remove definitions. Include glthread/thread.h and
54255         glthread/yield.h instead.
54256         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54257         additional NULL argument to gl_thread_join.
54258
54259 2008-09-30  Bruno Haible  <bruno@clisp.org>
54260
54261         Fix the Win32 implementation of the 'thread' module.
54262         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54263         pointer type.
54264         (gl_thread_self): Invoke gl_thread_self_func.
54265         (gl_thread_self_func): New declaration.
54266         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54267         (do_init_self_key, init_self_key): New functions.
54268         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54269         Remove some fields.
54270         (running_threads, running_lock): Remove variables.
54271         (get_current_thread_handle): New function.
54272         (gl_thread_self_func, wrapper_func, glthread_create_func,
54273         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54274         simplified.
54275
54276 2008-09-30  Bruno Haible  <bruno@clisp.org>
54277
54278         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54279         files.
54280
54281 2008-09-30  Jim Meyering  <meyering@redhat.com>
54282
54283         fts.m4: correct the test for statfs.f_type
54284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54285         when checking for statfs.f_type.
54286
54287 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54288
54289         tests: avoid some compiler warnings
54290         * tests/test-memchr.c (main): Pass NULL indirectly.
54291         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54292
54293 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
54294
54295         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54296         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54297         exactly specified dayshifts.
54298         (dayshift): New rule.
54299         (rel): Add dayshift.
54300         (relative_time_table) [tomorrow, yesterday, today, now]:
54301         Use tDAY_SHIFT in place of tDAY_UNIT.
54302         * tests/test-getdate.c: Add tests for now-disallowed countable
54303         dayshifts, e.g., "4 yesterday ago".
54304
54305 2008-09-29  Bruno Haible  <bruno@clisp.org>
54306
54307         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54308         * tests/test-posix_spawn1.in.sh: Renamed from
54309         tests/test-posix_spawn.in.sh.
54310         * tests/test-posix_spawn2.c: New file.
54311         * tests/test-posix_spawn2.in.sh: New file.
54312         * modules/posix_spawnp-tests (Files): Update.
54313         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54314
54315 2008-09-29  Bruno Haible  <bruno@clisp.org>
54316
54317         Propagate effects of putenv/setenv/unsetenv to child processes.
54318         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54319         * lib/pipe.c (create_pipe): Likewise.
54320
54321 2008-09-29  Bruno Haible  <bruno@clisp.org>
54322
54323         Enable use of shell scripts as executables in mingw.
54324         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54325         run the program as a shell script.
54326         * lib/pipe.c (create_pipe): Likewise.
54327         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54328         resulting array.
54329
54330 2008-09-29  Eric Blake  <ebb9@byu.net>
54331
54332         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54333
54334 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54335
54336         * doc/posix-functions/accept.texi: Update mingw problems.
54337         * doc/posix-functions/bind.texi: Update mingw problems.
54338         * doc/posix-functions/close.texi: Update mingw problems.
54339         * doc/posix-functions/connect.texi: Update mingw problems.
54340         * doc/posix-functions/getpeername.texi: Update mingw problems.
54341         * doc/posix-functions/getsockname.texi: Update mingw problems.
54342         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54343         * doc/posix-functions/ioctl.texi: Update mingw problems.
54344         * doc/posix-functions/listen.texi: Update mingw problems.
54345         * doc/posix-functions/recv.texi: Update mingw problems.
54346         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54347         * doc/posix-functions/select.texi: Update mingw problems.
54348         * doc/posix-functions/send.texi: Update mingw problems.
54349         * doc/posix-functions/sendto.texi: Update mingw problems.
54350         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54351         * doc/posix-functions/socket.texi: Update mingw problems.
54352
54353 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54354             Bruno Haible  <bruno@clisp.org>
54355
54356         * lib/sys_select.in.h: Include sys/time.h.
54357         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54358         * modules/sys_select: Depend on sys_time.
54359         * tests/test-sys_select.c: Test that sys/select.h defines struct
54360         timeval fully.
54361
54362 2008-09-29  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54365         * lib/sys_select.in.h: Likewise.
54366
54367 2008-09-29  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54370
54371 2008-09-29  Bruno Haible  <bruno@clisp.org>
54372
54373         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54374         Set LIBSOCKET instead of augmenting LIBS.
54375         * modules/sockets (Link): New section.
54376         * modules/sockets-tests (test_sockets_LDADD): New variable.
54377         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54378         * modules/poll-tests (test_poll_LDADD): New variable.
54379         * NEWS: Document the change.
54380
54381 2008-09-29  Bruno Haible  <bruno@clisp.org>
54382
54383         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54384         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54385         ARPA_INET_H directly.
54386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54387
54388 2008-09-28  Bruno Haible  <bruno@clisp.org>
54389
54390         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54391         from gl_HEADER_SYS_SOCKET.
54392         (gl_HEADER_SYS_SOCKET): Invoke it.
54393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54394
54395 2008-09-28  Bruno Haible  <bruno@clisp.org>
54396
54397         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54398         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54399         Needed on OSF/1 4.0.
54400
54401 2008-09-28  Bruno Haible  <bruno@clisp.org>
54402
54403         Override open more carefully.
54404         * lib/open.c (orig_open): New function.
54405         (rpl_open): Use orig_open instead of open.
54406         * lib/fcntl.in.h: Add special invocation convention.
54407         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54408         (gl_FUNC_OPEN): Invoke it.
54409
54410         Override freopen more carefully.
54411         * lib/freopen.c (orig_freopen): New function.
54412         (rpl_freopen): Use orig_freopen instead of freopen.
54413         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54414         (gl_FUNC_FREOPEN): Invoke it.
54415
54416         Override fopen more carefully.
54417         * lib/fopen.c (orig_fopen): New function.
54418         (rpl_fopen): Use orig_fopen instead of fopen.
54419         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54420         (gl_FUNC_FOPEN): Invoke it.
54421         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54422
54423 2008-09-28  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54426         SIGPIPE.
54427
54428 2008-09-28  Bruno Haible  <bruno@clisp.org>
54429
54430         * tests/test-sigaction.c (handler, main): Disable the check whether
54431         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54432         glibc systems with LinuxThreads.
54433
54434 2008-09-28  Bruno Haible  <bruno@clisp.org>
54435
54436         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54437
54438         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54439         with AIX xlc.
54440         * lib/fcntl.in.h (open): Likewise.
54441         Reported by Rainer Tammer <tammer@tammer.net>.
54442
54443 2008-09-28  Bruno Haible  <bruno@clisp.org>
54444
54445         * modules/posix_spawnp-tests: New file.
54446         * tests/test-posix_spawn.c: New file.
54447         * tests/test-posix_spawn.in.sh: New file.
54448
54449         New module 'posix_spawnp'.
54450         * modules/posix_spawnp: New file.
54451         * lib/spawnp.c: New file, from GNU libc with modifications.
54452         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54453
54454         New module 'posix_spawn'.
54455         * modules/posix_spawn: New file.
54456         * lib/spawn.c: New file, from GNU libc with modifications.
54457         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54458
54459         New module 'posix_spawnattr_destroy'.
54460         * modules/posix_spawnattr_destroy: New file.
54461         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54462         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54463         module.
54464
54465         New module 'posix_spawnattr_setsigmask'.
54466         * modules/posix_spawnattr_setsigmask: New file.
54467         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54468         modifications.
54469         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54470         new module.
54471
54472         New module 'posix_spawnattr_getsigmask'.
54473         * modules/posix_spawnattr_getsigmask: New file.
54474         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54475         modifications.
54476         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54477         new module.
54478
54479         New module 'posix_spawnattr_setsigdefault'.
54480         * modules/posix_spawnattr_setsigdefault: New file.
54481         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54482         modifications.
54483         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54484         new module.
54485
54486         New module 'posix_spawnattr_getsigdefault'.
54487         * modules/posix_spawnattr_getsigdefault: New file.
54488         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54489         modifications.
54490         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54491         new module.
54492
54493         New module 'posix_spawnattr_setschedpolicy'.
54494         * modules/posix_spawnattr_setschedpolicy: New file.
54495         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54496         modifications.
54497         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54498         new module.
54499
54500         New module 'posix_spawnattr_getschedpolicy'.
54501         * modules/posix_spawnattr_getschedpolicy: New file.
54502         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54503         modifications.
54504         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54505         new module.
54506
54507         New module 'posix_spawnattr_setschedparam'.
54508         * modules/posix_spawnattr_setschedparam: New file.
54509         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54510         modifications.
54511         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54512         new module.
54513
54514         New module 'posix_spawnattr_getschedparam'.
54515         * modules/posix_spawnattr_getschedparam: New file.
54516         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54517         modifications.
54518         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54519         new module.
54520
54521         New module 'posix_spawnattr_setpgroup'.
54522         * modules/posix_spawnattr_setpgroup: New file.
54523         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54524         modifications.
54525         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54526         module.
54527
54528         New module 'posix_spawnattr_getpgroup'.
54529         * modules/posix_spawnattr_getpgroup: New file.
54530         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54531         modifications.
54532         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54533         module.
54534
54535         New module 'posix_spawnattr_setflags'.
54536         * modules/posix_spawnattr_setflags: New file.
54537         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54538         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54539         module.
54540
54541         New module 'posix_spawnattr_getflags'.
54542         * modules/posix_spawnattr_getflags: New file.
54543         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54544         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54545         module.
54546
54547         New module 'posix_spawnattr_init'.
54548         * modules/posix_spawnattr_init: New file.
54549         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54550         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54551         module.
54552
54553         New module 'posix_spawn_file_actions_destroy'.
54554         * modules/posix_spawn_file_actions_destroy: New file.
54555         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54556         modifications.
54557         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54558         the new module.
54559
54560         New module 'posix_spawn_file_actions_addopen'.
54561         * modules/posix_spawn_file_actions_addopen: New file.
54562         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54563         modifications.
54564         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54565         the new module.
54566
54567         New module 'posix_spawn_file_actions_adddup2'.
54568         * modules/posix_spawn_file_actions_adddup2: New file.
54569         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54570         modifications.
54571         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54572         the new module.
54573
54574         New module 'posix_spawn_file_actions_addclose'.
54575         * modules/posix_spawn_file_actions_addclose: New file.
54576         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54577         modifications.
54578         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54579         the new module.
54580
54581         New module 'posix_spawn_file_actions_init'.
54582         * modules/posix_spawn_file_actions_init: New file.
54583         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54584         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54585         new module.
54586
54587         New module 'posix_spawn-internal'.
54588         * modules/posix_spawn-internal: New file.
54589         * lib/spawn_int.h: New file, from GNU libc with modifications.
54590         * lib/spawni.c: New file, from GNU libc with modifications.
54591         * m4/posix_spawn.m4: New file.
54592
54593         New module 'spawn'.
54594         * modules/spawn: New file.
54595         * lib/spawn.in.h: New file, from GNU libc with modifications.
54596         * m4/spawn_h.m4: New file.
54597         * doc/posix-headers/spawn.texi: Mention the new module.
54598
54599 2008-09-28  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/sched-tests: New file.
54602         * tests/test-sched.c: New file.
54603
54604         New module 'sched'.
54605         * modules/sched: New file.
54606         * lib/sched.in.h: New file.
54607         * m4/sched_h.m4: New file.
54608         * doc/posix-headers/sched.texi: Mention the new module.
54609
54610 2008-09-27  Eric Blake  <ebb9@byu.net>
54611
54612         Fix previous patch, and tweak references to $0.
54613         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54614         (func_version, func_gnulib_dir): Don't call this program
54615         gnulib-tool.
54616         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54617         with using $0 in function.
54618         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54619         (func_fatal_error): Reuse the name the user invoked us with.
54620
54621 2008-09-27  Bruno Haible  <bruno@clisp.org>
54622
54623         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54624         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54625         (gl_ICONV_H): Not here.
54626         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54627         instead of assigning ICONV_H directly.
54628
54629         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54631         WCHAR_H directly.
54632
54633 2008-09-27  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54636         * modules/arpa_inet (Depends-on): Add link-warning.
54637         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54638         * modules/unistd (Makefile.am): Likewise.
54639
54640 2008-09-26  Bruno Haible  <bruno@clisp.org>
54641
54642         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54643         variables.
54644         (func_version): Essentially copied from gnulib-tool.
54645         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54646         func_readlink): Copied from gnulib-tool.
54647
54648 2008-09-26  Bruno Haible  <bruno@clisp.org>
54649
54650         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54651         invoking git-version-gen.
54652
54653 2008-09-26  Bruno Haible  <bruno@clisp.org>
54654
54655         * posix-modules: Update to directory names changed on 2008-01-19.
54656         Remove commas in output before splitting into words. No more need to
54657         avoid 'ftruncate' since 2007-02-19.
54658
54659 2008-09-26  Bruno Haible  <bruno@clisp.org>
54660
54661         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54662
54663 2008-09-26  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54666         * modules/fwriteerror (Depends-on): Add errno.
54667
54668 2008-09-26  Bruno Haible  <bruno@clisp.org>
54669
54670         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54671         * tests/test-vc-list-files-cvs.sh: Likewise.
54672
54673 2008-09-26  Bruno Haible  <bruno@clisp.org>
54674
54675         * doc/posix-headers/sys_resource.texi: Reorder items.
54676
54677 2008-09-26  Jim Meyering  <meyering@redhat.com>
54678
54679         fts: tweak inode comparison function
54680         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54681         inode numbers, as documented.
54682
54683         fts: sort dirent entries on inode number before traversing
54684         This avoids a quadratic, seek-related performance penalty when
54685         operating on a directory containing many entries (measurable at 10k;
54686         3.5 hours at 2 million entries with a cold cache) on certain types
54687         of file systems, including ext3 and ext4, but not tmpfs.
54688         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54689         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54690         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54691         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54692         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54693         (fts_build): Set the stat.st_ino member from D_INO.
54694         If it is likely to be useful, sort dirent entries on inode number.
54695
54696         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54697         and the struct statfs.f_type member.
54698         * modules/fts (Depends-on): Add d-ino.
54699
54700 2008-09-26  Bruno Haible  <bruno@clisp.org>
54701
54702         * modules/sigpipe-die (Depends-on): Add sigpipe.
54703
54704         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54705         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54706         and GNULIB_STDIO_H_SIGPIPE are set.
54707         * lib/stdio-write.c: New file.
54708         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54709         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54710         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54711         REPLACE_STDIO_WRITE_FUNCS.
54712         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54713         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54714         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54715         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54716         * modules/stdio (Files): Add lib/stdio-write.c.
54717         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54718         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54719         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54720         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54721         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54722         REPLACE_FPRINTF_POSIX.
54723         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54724         REPLACE_PRINTF_POSIX.
54725         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54726         REPLACE_VFPRINTF_POSIX.
54727         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54728         REPLACE_VPRINTF_POSIX.
54729         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54730         SIGPIPE issue.
54731         * doc/posix-functions/fputc.texi: Likewise.
54732         * doc/posix-functions/fputs.texi: Likewise.
54733         * doc/posix-functions/fwrite.texi: Likewise.
54734         * doc/posix-functions/printf.texi: Likewise.
54735         * doc/posix-functions/putc.texi: Likewise.
54736         * doc/posix-functions/putchar.texi: Likewise.
54737         * doc/posix-functions/puts.texi: Likewise.
54738         * doc/posix-functions/vfprintf.texi: Likewise.
54739         * doc/posix-functions/vprintf.texi: Likewise.
54740
54741         * modules/safe-write (Depends-on): Add write.
54742
54743         * modules/sigpipe-tests: New file.
54744         * tests/test-sigpipe.c: New file.
54745         * tests/test-sigpipe.sh: New file.
54746
54747         * modules/write: New file.
54748         * lib/unistd.in.h: Include <sys/types.h>.
54749         (write): New declaration.
54750         * lib/write.c: New file.
54751         * m4/write.m4: New file.
54752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54753         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54754         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54755         GNULIB_WRITE, REPLACE_WRITE.
54756         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54757         and the SIGPIPE issue.
54758
54759         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54760         (raise): New declaration.
54761         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54762         (ext_signal): New function.
54763         (rpl_raise): New function.
54764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54765         GNULIB_SIGNAL_H_SIGPIPE.
54766         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54767         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54768
54769         * modules/sigpipe: New file.
54770         * m4/sigpipe.m4: New file.
54771
54772 2008-09-25  Derek Price  <derek@ximbiot.com>
54773             Bruno Haible  <bruno@clisp.org>
54774
54775         * gnulib-tool (func_import): Report all license incompatibilities, not
54776         just the first one.
54777
54778 2008-09-25  Bruno Haible  <bruno@clisp.org>
54779
54780         * gnulib-tool (func_import): When computing the edits, consider not
54781         only the Makefile.ams that exist but also those that will be generated.
54782
54783 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54784
54785         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54786         fixes gnulib-tool --test warning about duplicate dependency.
54787
54788 2008-09-25  Bruno Haible  <bruno@clisp.org>
54789
54790         * gnulib-tool: Don't ask the user to perform edits in the generated
54791         Makefile.ams.
54792         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54793         apply to the Makefile.am being generated.
54794         (func_emit_tests_Makefile_am): Execute edits that apply to the
54795         Makefile.am being generated.
54796         (func_import): Setup list of Makefile.am edits before emitting the
54797         Makefile.ams, not at the end.
54798         (func_create_testdir): Update.
54799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54800
54801 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54802
54803         * gnulib-tool (func_import): Store the --tests-base option in the
54804         comment in gnulib-cache.m4.
54805
54806 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54807
54808         * NEWS: Document increased portability that sys_select now provides.
54809
54810         * lib/sys_select.in.h: Install select wrapper.
54811         * lib/sys_socket.in.h: Use more descriptive name when there is no
54812         select wrapper.
54813         * lib/winsock-select.c: New.
54814         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54815         Require gl_HEADER_SYS_SOCKET.
54816         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54817         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54818         * tests/test-sys_select.c: Add functional tests.
54819
54820 2008-09-24  Eric Blake  <ebb9@byu.net>
54821
54822         open, fopen: close fd leak in last patch
54823         * lib/open.c (rpl_open): Close fd before returning error.
54824         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54825         * doc/posix-functions/open.texi (open): Document that Irix also
54826         has the bug.
54827         * doc/posix-functions/fopen.texi (fopen): Likewise.
54828         Reported by Paolo Bonzini.
54829
54830 2008-09-24  Bruno Haible  <bruno@clisp.org>
54831
54832         Ensure that a filename ending in a slash cannot be used to access a
54833         non-directory.
54834         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54835         to check whether it's really a directory.
54836         * lib/fopen.c: Include fcntl.h, unistd.h.
54837         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54838         and fdopen().
54839         * modules/fopen (Depends-on): Add unistd.
54840         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54841         * tests/test-fopen.c (main): Likewise.
54842         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54843         * doc/posix-functions/fopen.texi: Likewise.
54844         Reported by Eric Blake.
54845
54846 2008-09-23  Eric Blake  <ebb9@byu.net>
54847
54848         c-stack: avoid compiler optimizations when provoking overflow
54849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54850         recursion harder to optimize, to ensure a stack overflow occurs.
54851         * tests/test-c-stack.c (recurse): Likewise.
54852         Borrowed from libsigsegv.
54853
54854         c-stack: work around Irix sigaltstack bug
54855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54856         whether sigaltstack uses wrong end of stack_t (copied in part from
54857         libsigsegv).
54858         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54859         Irix bug, without requiring an over-allocation.
54860         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54861         bug.
54862
54863         fopen: document mingw bug on directories
54864         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54865         not allowing a stream visiting a directory, even though reading
54866         from such a stream is not portable.
54867
54868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54869
54870         * lib/poll.c: Rewrite.
54871         * modules/poll: Depend on alloca.
54872
54873 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54874
54875         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54876         instead define prototypes for a full set of wrappers.  Ensure
54877         that Cygwin does not use the compatibility code, which is only
54878         for MinGW.
54879         * lib/winsock.c: New.
54880         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54881         * modules/sys_socket: Add lib/winsock.c.
54882
54883         * modules/poll-tests: Add errno and perror.
54884         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54885
54886 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54887
54888         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54889
54890 2008-09-23  Bruno Haible  <bruno@clisp.org>
54891
54892         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54893         * doc/glibc-functions/*: Likewise.
54894
54895 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54896
54897         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54898         success.
54899
54900 2008-09-22  Eric Blake  <ebb9@byu.net>
54901             Bruno Haible  <bruno@clisp.org>
54902
54903         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54904         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54905         supply %A but mishandle pseudo-NaN.
54906         Reported by Simon Josefsson.
54907
54908 2008-09-21  Bruno Haible  <bruno@clisp.org>
54909
54910         * tests/test-lock.c (main): Tweak skip message.
54911         * tests/test-tls.c (main): Likewise.
54912
54913 2008-09-21  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54916         whether 'struct sigaction' has sa_sigaction here...
54917         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54918         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54919
54920 2008-09-21  Bruno Haible  <bruno@clisp.org>
54921
54922         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54923         section.
54924         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54925         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54926         the new section.
54927         (Support for obsolete systems lacking POSIX:2001): New section.
54928         (String handling <string.h>): Move strdup to the new section.
54929         Suggested by Simon Josefsson and Paolo Bonzini.
54930
54931 2008-09-21  Bruno Haible  <bruno@clisp.org>
54932
54933         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54934         exponents in %e and %g results on 'long double'. Needed for mingw's
54935         improved *printf functions.
54936         * tests/test-vasprintf-posix.c (test_function): Likewise.
54937         * tests/test-snprintf-posix.h (test_function): Likewise.
54938         * tests/test-sprintf-posix.h (test_function): Likewise.
54939         Reported by Eric Blake.
54940
54941 2008-09-21  Bruno Haible  <bruno@clisp.org>
54942
54943         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54944         * tests/test-sprintf-posix.h (test_function): Likewise.
54945
54946 2008-09-21  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/getpass (Depends-on): Add strdup-posix.
54949
54950         New module 'strdup-posix'.
54951         * modules/strdup-posix: New file.
54952         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54953         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54955         REPLACE_STRDUP.
54956         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54957         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54959         strdup-posix.
54960
54961         * modules/strdup (Depends-on): Remove malloc-posix.
54962
54963 2008-09-20  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54966         Wildenhues.
54967
54968 2008-09-20  Bruno Haible  <bruno@clisp.org>
54969
54970         Ensure that wint_t gets defined on IRIX 5.3.
54971         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54972         * lib/wctype.in.h (wint_t): Likewise.
54973         (__wctype_wint_t): Remove type.
54974         (isw*): Use wint_t instead of __wctype_wint_t.
54975         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54976         * modules/wchar (Files): Add m4/wint_t.m4.
54977         (Makefile.am): Substitute HAVE_WINT_T.
54978         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54979         * tests/test-wctype.c: Check that wint_t is defined.
54980         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54981         * doc/posix-headers/wctype.texi: Likewise.
54982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54983
54984 2008-09-18  Bruno Haible  <bruno@clisp.org>
54985
54986         * gnulib-tool (func_exit): Update comment.
54987
54988 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54989
54990         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54991         assumes strdup exists and does not depend on strdup to return
54992         ENOMEM on out of memory conditions.
54993
54994 2008-09-18  Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
54997         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54998         digits for the exponent.
54999
55000 2008-09-18  Jim Meyering  <meyering@redhat.com>
55001             Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/vasnprintf.c (decimal_point_char): Define also if
55004         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55005
55006 2008-09-16  Bruno Haible  <bruno@clisp.org>
55007         and Eric Blake  <ebb9@byu.net>
55008
55009         vasnprintf: support Irix 5.3
55010         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55011         that mishandle long double infinity.
55012         Reported by Tom G. Christensen.
55013
55014 2008-09-16  Bruno Haible  <bruno@clisp.org>
55015
55016         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55017         Solaris 9.
55018         * doc/glibc-functions/alphasort.texi: Likewise.
55019         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55020
55021 2008-09-16  Jim Meyering  <meyering@redhat.com>
55022
55023         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55024         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55025         a umask modification leak out of a subshell.  Otherwise, the
55026         opensolaris /bin/sh would be accepted and thus cause unwarranted
55027         failures in the coreutils test suite.
55028
55029 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55030
55031         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55032         to succeed.
55033
55034 2008-09-16  Jim Meyering  <meyering@redhat.com>
55035
55036         avoid spurious test failure when library is built without ACL support
55037         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55038         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55039         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55040         * tests/test-copy-acl.sh: Likewise.
55041
55042 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55043
55044         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55045         based on character occurrence counts.
55046
55047 2008-09-15  Eric Blake  <ebb9@byu.net>
55048
55049         tests: avoid some compiler warnings
55050         * tests/test-memchr.c (main): Pass NULL indirectly.
55051         * tests/test-closein.c (main): Avoid unused variable.
55052
55053 2008-09-15  Bruno Haible  <bruno@clisp.org>
55054
55055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55056         are missing on OpenBSD 4.0 individually.
55057         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55058
55059 2008-09-15  Bruno Haible  <bruno@clisp.org>
55060
55061         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55062         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55063         * doc/posix-functions/perror.texi: Likewise.
55064         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55065         is missing.
55066         Reported by Eric Blake.
55067
55068         * lib/errno.in.h: Use replacement values >= 2000.
55069         Reported by Eric Blake.
55070
55071 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55072
55073         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55074         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55075         limit.
55076         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55077         compareseq was aborted.
55078
55079 2008-09-14  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55082         yvec_edit_count.
55083         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55084         (fstrcmp_bounded): Simplify result computation accordingly.
55085
55086 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55087
55088         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55089         (fstrcmp): Define in terms of fstrcmp_bounded.
55090         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55091         lower_bound argument.
55092         Return quickly if the result is certainly < lower_bound.
55093         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55094
55095 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55096
55097         * lib/diffseq.h (EARLY_ABORT): New macro.
55098         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55099         evaluates to true.
55100
55101 2008-09-14  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/perror-tests: New file.
55104         * tests/test-perror.sh: New file.
55105         * tests/test-perror.c: New file.
55106
55107         New module 'perror'.
55108         * lib/stdio.in.h (perror): New declaration.
55109         * lib/perror.c: New file.
55110         * m4/perror.m4: New file.
55111         * modules/perror: New file.
55112         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55113         * doc/posix-functions/perror.texi: Mention the perror module.
55114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55115         REPLACE_PERROR.
55116         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55117         REPLACE_PERROR.
55118
55119 2008-09-14  Bruno Haible  <bruno@clisp.org>
55120
55121         * modules/stdio (Makefile.am): Reorder to match the order in
55122         lib/stdio.in.h.
55123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55124
55125 2008-09-13  Bruno Haible  <bruno@clisp.org>
55126
55127         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55128
55129 2008-09-13  Bruno Haible  <bruno@clisp.org>
55130
55131         Extend strerror to cover the added errno values.
55132         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55133         (rpl_strerror): Provide error messages for the added errno values and
55134         for the WSA* values.
55135         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55136         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55137         strerror.
55138         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55139         * modules/strerror (Depends-on): Add errno.
55140         * doc/posix-functions/strerror.texi: Document the change.
55141         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55142         and EOVERFLOW.
55143
55144 2008-09-13  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/EOVERFLOW: Remove file.
55147         * m4/eoverflow.m4: Remove file.
55148         * modules/EOVERFLOW-tests: Remove file.
55149         * tests/test-EOVERFLOW.c: Remove file.
55150         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55151         * modules/ftell (Depends-on): Likewise.
55152         * modules/getdelim (Depends-on): Likewise.
55153         * modules/getugroups (Depends-on): Likewise.
55154         * modules/poll (Depends-on): Likewise.
55155         * modules/snprintf (Depends-on): Likewise.
55156         * modules/sprintf-posix (Depends-on): Likewise.
55157         * modules/vasnprintf (Depends-on): Likewise.
55158         * modules/vasprintf (Depends-on): Likewise.
55159         * modules/vfprintf-posix (Depends-on): Likewise.
55160         * modules/vsnprintf (Depends-on): Likewise.
55161         * modules/vsprintf-posix (Depends-on): Likewise.
55162         * modules/xvasprintf (Depends-on): Likewise.
55163         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55164         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55165         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55166         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55167         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55168         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55169         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55170         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55171         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55172         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55173         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55174         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55175         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55176         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55177         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55178         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55180         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55181         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55182         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55183         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55184         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55185         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55186         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55187         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55189         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55190         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55191         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55192         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55193         * MODULES.html.sh: Remove EOVERFLOW.
55194         * NEWS: Mention the change.
55195
55196 2008-09-13  Bruno Haible  <bruno@clisp.org>
55197
55198         * modules/errno-tests: New file.
55199         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55200
55201         * lib/errno.in.h: New file.
55202         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55203         * modules/errno: New file.
55204         * doc/posix-headers/errno.texi: Update documentation.
55205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55206
55207 2008-09-13  Bruno Haible  <bruno@clisp.org>
55208
55209         * tests/test-poll.c: Use #if for native Windows, rather than testing
55210         __MSVCRT__.
55211
55212 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55213             Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/glob.c: Don't include <pwd.h> on native Windows.
55216         (WINDOWS32): New macro.
55217         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55218
55219 2008-09-13  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55222         (ETIMEDOUT): Remove macro.
55223         (glthread_cond_timedwait_multithreaded): New declaration.
55224         (glthread_cond_timedwait): Use it.
55225         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55226         (glthread_cond_timedwait_multithreaded): New function.
55227
55228 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55229
55230         * modules/poll-tests: Do not check for io.h.
55231         * tests/test-poll.c: Check for __MSVCRT__ instead.
55232
55233 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55234
55235         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55236         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55237         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55238
55239 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55240
55241         * modules/poll-tests: New.
55242         * tests/test-poll.c: New.
55243
55244 2008-09-12  Eric Blake  <ebb9@byu.net>
55245
55246         frexp: test for NetBSD failure on -0.0
55247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55248         not all, bugs from NetBSD 3.0 have been fixed.
55249         * doc/posix-functions/frexp.texi (frexp): Document bug.
55250         Reported by Thomas Klausner.
55251
55252         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55253         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55254         literal -0.0.
55255         Reported by Jonathan C. Patschke <jp@centtech.com>.
55256
55257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55258
55259         * lib/glthread/cond.h: Use dummy implementation also if
55260         USE_WIN32_THREADS.
55261
55262 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55263
55264         * modules/fnmatch-posix (License): Change to LGPLv2+.
55265         * modules/fnmatch-gnu (License): Likewise.
55266
55267 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55268
55269         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55270
55271 2008-09-11  Jim Meyering  <meyering@redhat.com>
55272
55273         * users.txt: Add gtk-vnc.
55274
55275 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55276
55277         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55278         rotate amounts.
55279
55280         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55281         required for 16-bit and 8-bit rotates.
55282         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55283         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55284         UINT8_MAX instead of hard-coded constants.
55285         Suggested by Paul Eggert.
55286
55287 2008-09-07  Bruno Haible  <bruno@clisp.org>
55288
55289         * tests/test-striconveh.c (main): Check behaviour when converting from
55290         UTF-7.
55291
55292         Make striconveh work better with stateful encodings.
55293         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55294         that iconv does not increment the inptr when returning -1/EINVAL.
55295
55296 2008-09-07  Bruno Haible  <bruno@clisp.org>
55297
55298         * build-aux/config.rpath: Update according to libtool-2.2.6.
55299         * build-aux/config.libpath: Likewise.
55300
55301 2008-09-06  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55304         * lib/freadptr.c (freadptr): Likewise.
55305         * lib/freadseek.c (freadptrinc): Likewise.
55306         Reported by Simon Josefsson.
55307
55308 2008-09-06  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/freadptr (License): Change to LGPLv2+.
55311         * modules/freadseek (License): Likewise.
55312         Suggested by Eric Blake.
55313
55314         * modules/memchr2 (License): Change to LGPLv2+.
55315         Approved by Eric Blake.
55316
55317 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55318             Bruno Haible  <bruno@clisp.org>
55319
55320         Make gnulib-tool work with native 'sed' on AIX.
55321         * gnulib-tool (sed_noop): New variable.
55322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55323         func_add_or_update, func_create_testdir): Use it to initialize sed
55324         script variables.
55325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55326
55327 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55328             Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55331         also works after #include directives.
55332
55333 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
55334
55335         getdate.y: reject an out-of-range timezone value
55336         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55337         the range [-24...+24].  When specified with only one or two digits,
55338         * tests/test-getdate.c: Tests for the fix.
55339         * doc/getdate.texi: Document this change.
55340
55341 2008-09-03  Bruno Haible  <bruno@clisp.org>
55342
55343         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55344
55345 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55346
55347         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55348         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55349         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55350         Blake <ebb9@byu.net>.
55351
55352         * tests/test-bitrotate.c: Add more test vectors.
55353
55354 2008-09-02  Eric Blake  <ebb9@byu.net>
55355
55356         vasnprintf-posix: handle large precision via %.*d
55357         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55358         when handling it ourselves.
55359         * tests/test-vasnprintf-posix.c (test_function): Add test.
55360         * tests/test-snprintf-posix.h (test_function): Likewise.
55361         * tests/test-sprintf-posix.h (test_function): Likewise.
55362         * tests/test-vasprintf-posix.c (test_function): Likewise.
55363         Reported by Alain Guibert.
55364
55365 2008-09-01  Eric Blake  <ebb9@byu.net>
55366
55367         c-stack: make configure-time check more robust
55368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55369         successful sigaction call.
55370         Reported by Tom G. Christensen.
55371
55372 2008-09-01  Bruno Haible  <bruno@clisp.org>
55373
55374         New module 'findprog-lgpl'.
55375         * modules/findprog-lgpl: New file.
55376         * lib/findprog-lgpl.c: New file.
55377         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55378         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55379         to decide whether to use strdup or xstrdup, concatenated_filename or
55380         xconcatenated_filename.
55381
55382 2008-09-01  Bruno Haible  <bruno@clisp.org>
55383
55384         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55385         'xconcat-filename' (GPL).
55386         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55387         (License): Change to LGPLv2+.
55388         * modules/xconcat-filename: New file.
55389         * lib/concat-filename.h (concatenated_filename): Change specification.
55390         (xconcatenated_filename): New declaration.
55391         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55392         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55393         memory situations.
55394         * lib/xconcat-filename.c: New file.
55395         * NEWS: Mention the change.
55396         * lib/findprog.c: Include concat-filename.h, not filename.h.
55397         (find_in_path): Use xconcatenated_filename instead of
55398         concatenated_filename.
55399         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55403         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55404         instead of concatenated_filename.
55405         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55406         (execute_java_class): Use xconcatenated_filename instead of
55407         concatenated_filename.
55408         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55409         * modules/javacomp (Depends-on): Likewise.
55410         * modules/javaexec (Depends-on): Likewise.
55411
55412 2008-09-01  Bruno Haible  <bruno@clisp.org>
55413
55414         Split module 'filename' into 'filename' and 'concat-filename'.
55415         * modules/filename: Keep only lib/filename.h.
55416         (License): Change to LGPLv2+.
55417         * modules/concat-filename: New file, extracted from modules/filename.
55418         * lib/filename.h (concatenated_filename): Remove declaration.
55419         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55420         * lib/concat-filename.c: Include concat-filename.h.
55421         * NEWS: Mention the change.
55422
55423 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55424
55425         * lib/bitrotate.h (rotl8, rotr8): Add.
55426
55427         * modules/bitrotate (configure.ac): Need
55428         AC_REQUIRE([AC_C_INLINE]).
55429         (Description): Mention stdint.h.  Reported by Bruno Haible
55430         <bruno@clisp.org>.
55431
55432         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55433         Paolo Bonzini <bonzini@gnu.org>.
55434
55435 2008-08-31  Bruno Haible  <bruno@clisp.org>
55436
55437         Assume Solaris specific bi-arch conventions on Solaris systems.
55438         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55439         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55441         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55442         like acl_libdirstem.
55443         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55444         acl_libdirstem.
55445         * NEWS: Mention the change.
55446         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55447
55448 2008-08-31  Jim Meyering  <meyering@redhat.com>
55449
55450         * lib/strftime.h: Add comments describing the two added arguments.
55451
55452         remove duplicate #include directives
55453         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55454         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55455
55456 2008-08-31  Bruno Haible  <bruno@clisp.org>
55457
55458         New module 'sigpipe-die'.
55459         * modules/sigpipe-die: New file.
55460         * lib/sigpipe-die.h: New file.
55461         * lib/sigpipe-die.c: New file.
55462         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55463
55464 2008-08-31  Bruno Haible  <bruno@clisp.org>
55465
55466         Don't override previously installed signal handlers.
55467         * lib/fatal-signal.c (saved_sigactions): New variable.
55468         (uninstall_handlers): Reset the signal to the saved handler, not
55469         to SIG_DFL (except when ignored).
55470         (install_handlers): Save the previous handlers.
55471
55472 2008-08-30  Bruno Haible  <bruno@clisp.org>
55473
55474         * gnulib-tool (func_reset_sigpipe): New function.
55475         (func_get_automake_snippet, func_modules_transitive_closure,
55476         func_import): Invoke it before a join command that reads from stdin,
55477         to avoid "echo: write error: Broken pipe" error messages on stderr.
55478         Reported by Sam Steingold <sds@gnu.org>.
55479
55480 2008-08-30  Bruno Haible  <bruno@clisp.org>
55481
55482         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55483         Code copied from m4/open.m4.
55484         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55485         access and the filename ends in a slash. Code copied from lib/open.c.
55486         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55487         * tests/test-fopen.c (main): Check against bug with trailing slash.
55488
55489 2008-08-29  Bruno Haible  <bruno@clisp.org>
55490
55491         Avoid some "gcc -pedantic" warnings.
55492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55493         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55494         * lib/dirent.in.h: Likewise.
55495         * lib/fcntl.in.h: Likewise.
55496         * lib/float.in.h: Likewise.
55497         * lib/iconv.in.h: Likewise.
55498         * lib/inttypes.in.h: Likewise.
55499         * lib/locale.in.h: Likewise.
55500         * lib/math.in.h: Likewise.
55501         * lib/netinet_in.in.h: Likewise.
55502         * lib/search.in.h: Likewise.
55503         * lib/signal.in.h: Likewise.
55504         * lib/stdarg.in.h: Likewise.
55505         * lib/stdint.in.h: Likewise.
55506         * lib/stdio.in.h: Likewise.
55507         * lib/stdlib.in.h: Likewise.
55508         * lib/string.in.h: Likewise.
55509         * lib/strings.in.h: Likewise.
55510         * lib/sys_select.in.h: Likewise.
55511         * lib/sys_socket.in.h: Likewise.
55512         * lib/sys_stat.in.h: Likewise.
55513         * lib/sys_time.in.h: Likewise.
55514         * lib/sysexits.in.h: Likewise.
55515         * lib/time.in.h: Likewise.
55516         * lib/unistd.in.h: Likewise.
55517         * lib/wchar.in.h: Likewise.
55518         * lib/wctype.in.h: Likewise.
55519         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55520         * modules/fchdir (Makefile.am): Likewise.
55521         * modules/fcntl (Makefile.am): Likewise.
55522         * modules/float (Makefile.am): Likewise.
55523         * modules/iconv_open (Makefile.am): Likewise.
55524         * modules/inttypes (Makefile.am): Likewise.
55525         * modules/locale (Makefile.am): Likewise.
55526         * modules/math (Makefile.am): Likewise.
55527         * modules/netinet_in (Makefile.am): Likewise.
55528         * modules/search (Makefile.am): Likewise.
55529         * modules/signal (Makefile.am): Likewise.
55530         * modules/stdarg (Makefile.am): Likewise.
55531         * modules/stdint (Makefile.am): Likewise.
55532         * modules/stdio (Makefile.am): Likewise.
55533         * modules/stdlib (Makefile.am): Likewise.
55534         * modules/string (Makefile.am): Likewise.
55535         * modules/strings (Makefile.am): Likewise.
55536         * modules/sys_select (Makefile.am): Likewise.
55537         * modules/sys_socket (Makefile.am): Likewise.
55538         * modules/sys_stat (Makefile.am): Likewise.
55539         * modules/sys_time (Makefile.am): Likewise.
55540         * modules/sysexits (Makefile.am): Likewise.
55541         * modules/time (Makefile.am): Likewise.
55542         * modules/unistd (Makefile.am): Likewise.
55543         * modules/wchar (Makefile.am): Likewise.
55544         * modules/wctype (Makefile.am): Likewise.
55545         Reported by Reuben Thomas <rrt@sc3d.org>.
55546
55547 2008-08-29  Bruno Haible  <bruno@clisp.org>
55548
55549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55550         any more.
55551
55552 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55553
55554         * MODULES.html.sh (Misc): Add bitrotate.
55555
55556         * modules/bitrotate: New file.
55557
55558         * lib/bitrotate.h: New file.
55559
55560         * modules/bitrotate-tests: New file.
55561
55562         * tests/test-bitrotate.c: New file.
55563
55564         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55565         on the bitrotate module.
55566
55567         * lib/arctwo.c: Use new bitrotate module.
55568
55569 2008-08-29  Jim Meyering  <meyering@redhat.com>
55570
55571         bootstrap: merge changes from coreutils
55572         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55573         of copied files.  Remove a kludge, now that this is fixed.
55574         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55575         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55576         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55577
55578 2008-08-29  Bruno Haible  <bruno@clisp.org>
55579
55580         * MODULES.html.sh: Remove --cvs-urls option.
55581
55582 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55583
55584         maint.mk: adjust to file name change
55585         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55586
55587 2008-08-28  Jim Meyering  <meyering@redhat.com>
55588
55589         * modules/getndelim2 (License): Relicense to LGPLv2+.
55590         Approved by Richard Stallman for the version of 1995, and by
55591         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55592
55593 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55594
55595         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55596         dummy if one is not available.  Do not touch them if
55597         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55598         (getc_maybe_unlocked): New.
55599         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55600
55601 2008-08-26  Eric Blake  <ebb9@byu.net>
55602
55603         doc/INSTALL: resync from autoconf
55604         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55605         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55606         moving...
55607         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55608         * INSTALL: Regenerate.
55609         * INSTALL.ISO: New file.
55610         * INSTALL.UTF-8: Likewise.
55611
55612 2008-08-26  Jim Meyering  <meyering@redhat.com>
55613
55614         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55615         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55616         these definitions conditional, so that they may be overridden, too.
55617
55618 2008-08-26  Bruno Haible  <bruno@clisp.org>
55619
55620         Generate INSTALL file variants with prettier quotes.
55621         * doc/Makefile (INSTALL_PRELUDE): New macro.
55622         (INSTALL): Use it.
55623         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55624
55625 2008-08-26  Bruno Haible  <bruno@clisp.org>
55626
55627         Run makeinfo in an English locale.
55628         * doc/Makefile (MAKEINFO): New variable.
55629
55630 2008-08-26  Bruno Haible  <bruno@clisp.org>
55631
55632         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55633         Suggested by Eric Blake.
55634
55635 2008-08-25  Bruno Haible  <bruno@clisp.org>
55636
55637         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55638
55639 2008-08-25  Eric Blake  <ebb9@byu.net>
55640
55641         c-stack: test that stack overflow can be caught
55642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55643         that platform allows handling stack overflow; at least OS/2 EMX
55644         has sigaltstack, but crashes before transferring control to
55645         handler on stack overflow.
55646         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55647         check for HAVE_STACK_OVERFLOW_HANDLING.
55648         Reported by Elbert Pol.
55649
55650 2008-08-25  Bruno Haible  <bruno@clisp.org>
55651
55652         * doc/posix-functions/strftime.texi: Fix description of strftime
55653         module.
55654
55655 2008-08-24  Bruno Haible  <bruno@clisp.org>
55656
55657         * tests/uniwidth/test-uc_width2.c: New file.
55658         * tests/uniwidth/test-uc_width2.sh: New file.
55659         * modules/uniwidth/width-tests (Files): Add the new files.
55660         (TESTS): Add uniwidth/test-uc_width2.sh.
55661         (TESTS_ENVIRONMENT): New variable.
55662         (check_PROGRAMS): Add test-uc_width2.
55663         (test_uc_width2_SOURCES): New variable.
55664
55665         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55666         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55667         not 0x00AB.
55668         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55669
55670 2008-08-22  Eric Blake  <ebb9@byu.net>
55671
55672         test-lock, test-tls: mention why a test is skipped
55673         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55674         skipped.
55675         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55676
55677         count-one-bits: relax license
55678         * modules/count-one-bits (License): Relicense to LGPLv2+.
55679         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55680
55681 2008-08-22  Andreas Schwab  <schwab@suse.de>
55682
55683         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55684         Remove spurious space in assignment.
55685
55686 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55687
55688         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55689         Paul Eggert <eggert@CS.UCLA.EDU>.
55690
55691 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55692
55693         * modules/gettext: Add m4/threadlib.m4.
55694
55695 2008-08-19  Eric Blake  <ebb9@byu.net>
55696
55697         test-c-stack: fix compilation failure on FreeBSD 5.0
55698         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55699         headers before <sys/resource.h>.
55700         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55701         the bug.
55702         Reported by Nelson H. F. Beebe.
55703
55704         strverscmp: migrate from "strverscmp.h" to <string.h>
55705         * modules/string (Makefile.am): Add new hooks.
55706         * modules/strverscmp (Files): Remove strverscmp.h.
55707         (Depends-on): Add string.
55708         (configure.ac): Add indicator.
55709         (Include): Mention new header.
55710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55711         defaults.
55712         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55713         results.
55714         * lib/strverscmp.h: Delete.
55715         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55716         * tests/test-strverscmp.c (includes): Adjust client.
55717         * lib/check-version.c (includes): Likewise.
55718         * NEWS: Document the change.
55719
55720         strverscmp: add unit test
55721         * modules/strverscmp-tests: New file.
55722         * tests/test-strverscmp.c: Likewise.
55723
55724 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55725
55726         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55727         regarding Windows crypto stuff, from Mono.
55728
55729 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55730
55731         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55732         if present, for intel RND.  Return error on failures.
55733
55734 2008-08-18  Ben Pfaff  <blp@gnu.org>
55735
55736         gitlog-to-changelog: give better diagnostic for failed pipe-open
55737         * build-aux/gitlog-to-changelog: Improve error message: suggest
55738         that the version of Git may be too old.
55739
55740 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55741
55742         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55743         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55744
55745 2008-08-18  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55748         pthread_in_use().
55749
55750 2008-08-18  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/glthread/threadlib.c: Include <pthread.h>.
55753
55754 2008-08-18  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55757         glthread_recursive_lock_* macros.
55758         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55759         Fix syntax error.
55760
55761 2008-08-18  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/glthread/thread.c: Avoid forcing a context switch right after
55764         thread creation.
55765
55766 2008-08-17  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55769         * lib/glthread/thread.h: Provide Win32 specific implementation.
55770         * modules/thread (Files): Add lib/glthread/thread.c.
55771         (Depends-on): Add lock.
55772         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55773
55774 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55775
55776         New module 'yield'.
55777         * modules/yield: New file.
55778         * lib/glthread/yield.h: New file.
55779         * m4/yield.m4: New file.
55780         * MODULES.html.sh (Multithreading): Add yield.
55781
55782 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55783
55784         New module 'thread'.
55785         * modules/thread: New file.
55786         * lib/glthread/thread.h: New file.
55787         * m4/thread.m4: New file.
55788         * MODULES.html.sh (Multithreading): Add thread.
55789
55790 2008-08-17  Bruno Haible  <bruno@clisp.org>
55791
55792         * lib/glthread/lock.h: Include <stdlib.h> always.
55793         * lib/glthread/tls.h: Likewise.
55794         * lib/glthread/cond.h: Likewise.
55795
55796 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55797
55798         New module 'cond'.
55799         * modules/cond: New file.
55800         * lib/glthread/cond.h: New file.
55801         * lib/glthread/cond.c: New file.
55802         * m4/cond.m4: New file.
55803         * MODULES.html.sh (Multithreading): Add cond.
55804
55805 2008-08-16  Eric Blake  <ebb9@byu.net>
55806
55807         c-stack: fix regression on Irix 5.3 from 2008-06-21
55808         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55809         sa_sigaction...
55810         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55811         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55812         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55813         * modules/signal (Makefile.am): Use the value.
55814         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55815         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55816         * doc/posix-headers/signal.texi (signal.h): Document this
55817         portability issue.
55818         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55819         Reported by Tom G. Christensen.
55820
55821 2008-08-17  Bruno Haible  <bruno@clisp.org>
55822
55823         New module 'threadlib'.
55824         * modules/threadlib: New file.
55825         * lib/glthread/threadlib.c: New file, extracted from
55826         lib/glthread/lock.c.
55827         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55828         functions.
55829         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55830         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55831         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55832         macros.
55833         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55834         (gl_DISABLE_THREADS): Remove macro.
55835         * modules/lock (Files): Remove build-aux/config.rpath.
55836         (Depends-on): Remove havelib. Add threadlib.
55837         (configure.ac-early): Remove section.
55838         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55839         * modules/tls (Depends-on): Remove lock. Add threadlib.
55840         (Link): New section, copied from threadlib.
55841         * MODULES.html.sh (Multithreading): Add threadlib.
55842
55843 2008-08-14  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55846         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55847         glthread_rwlock_unlock, glthread_rwlock_destroy,
55848         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55849         glthread_recursive_lock_destroy): Define as macros always.
55850         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55851         glthread_lock_lock.
55852         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55853         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55854         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55855         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55856         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55857         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55858         (glthread_recursive_lock_lock_func): Renamed from
55859         glthread_recursive_lock_lock.
55860         (glthread_recursive_lock_unlock_func): Renamed from
55861         glthread_recursive_lock_unlock.
55862         (glthread_recursive_lock_destroy_func): Renamed from
55863         glthread_recursive_lock_destroy.
55864
55865 2008-08-14  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/glthread/lock.h: Renamed from lib/lock.h.
55868         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55869         * lib/glthread/tls.h: Renamed from lib/tls.h.
55870         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55871         * lib/fstrcmp.c: Update includes.
55872         * lib/strsignal.c: Update includes.
55873         * modules/lock (Files, Makefile.am): Update.
55874         (Include): Change to "glthread/lock.h".
55875         * modules/tls (Files, Makefile.am): Update.
55876         (Include): Change to "glthread/tls.h".
55877         * tests/test-lock.c: Update includes.
55878         * tests/test-tls.c: Update includes.
55879         * NEWS: Mention the renamed header files.
55880
55881 2008-08-11  Jim Meyering  <meyering@redhat.com>
55882
55883         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55884
55885 2008-08-11  Eric Blake  <ebb9@byu.net>
55886
55887         test-c-stack: avoid C99-ism
55888         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55889         before statement.
55890         Reported by Alain Guibert.
55891
55892 2008-08-10  Jim Meyering  <meyering@redhat.com>
55893
55894         ensure that return value of uinttostr et al are not ignored
55895         * lib/inttostr.h (__GNUC_PREREQ): Define.
55896         (__attribute_warn_unused_result__): Define.
55897         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55898
55899 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55900
55901         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55902         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55903
55904 2008-08-07  Jim Meyering  <meyering@redhat.com>
55905
55906         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55907
55908         * modules/mkstemp (License): Relicense under LGPLv2+.
55909         * modules/tempname (License): Likewise.
55910
55911 2008-08-06  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/poll.c (poll): Further micro-optimization.
55914
55915 2008-08-06  Jim Meyering  <meyering@redhat.com>
55916
55917         inet_pton.c: use locale-independent tolower
55918         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55919         (inet_pton6): Use c_tolower rather than tolower.
55920         * modules/inet_pton (Depends-on): Add c-ctype.
55921
55922 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55923
55924         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55925         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55926
55927 2008-08-06  Jim Meyering  <meyering@redhat.com>
55928
55929         * modules/inet_pton (License): Relicense under LGPLv2+.
55930
55931 2008-08-03  Bruno Haible  <bruno@clisp.org>
55932
55933         Additional non-aborting API for lock and tls.
55934         * lib/lock.h: Include <errno.h>.
55935         (glthread_lock_init): New macro/function.
55936         (gl_lock_init): Define as wrapper around glthread_lock_init.
55937         (glthread_lock_lock): New macro/function.
55938         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55939         (glthread_lock_unlock): New macro/function.
55940         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55941         (glthread_lock_destroy): New macro/function.
55942         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55943         (glthread_rwlock_init): New macro/function.
55944         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55945         (glthread_rwlock_rdlock): New macro/function.
55946         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55947         (glthread_rwlock_wrlock): New macro/function.
55948         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55949         (glthread_rwlock_unlock): New macro/function.
55950         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55951         (glthread_rwlock_destroy): New macro/function.
55952         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55953         (glthread_recursive_lock_init): New macro/function.
55954         (gl_recursive_lock_init): Define as wrapper around
55955         glthread_recursive_lock_init.
55956         (glthread_recursive_lock_lock): New macro/function.
55957         (gl_recursive_lock_lock): Define as wrapper around
55958         glthread_recursive_lock_lock.
55959         (glthread_recursive_lock_unlock): New macro/function.
55960         (gl_recursive_lock_unlock): Define as wrapper around
55961         glthread_recursive_lock_unlock.
55962         (glthread_recursive_lock_destroy): New macro/function.
55963         (gl_recursive_lock_destroy): Define as wrapper around
55964         glthread_recursive_lock_destroy.
55965         (glthread_once): New macro/function.
55966         (gl_once): Define as wrapper around glthread_once.
55967         Update function declarations.
55968         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55969         glthread_rwlock_init. Return error code.
55970         (glthread_rwlock_rdlock_multithreaded): Renamed from
55971         glthread_rwlock_rdlock. Return error code.
55972         (glthread_rwlock_wrlock_multithreaded): Renamed from
55973         glthread_rwlock_wrlock. Return error code.
55974         (glthread_rwlock_unlock_multithreaded): Renamed from
55975         glthread_rwlock_unlock. Return error code.
55976         (glthread_rwlock_destroy_multithreaded): Renamed from
55977         glthread_rwlock_destroy. Return error code.
55978         (glthread_recursive_lock_init_multithreaded): Renamed from
55979         glthread_recursive_lock_init. Return error code.
55980         (glthread_recursive_lock_lock_multithreaded): Renamed from
55981         glthread_recursive_lock_lock. Return error code.
55982         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55983         glthread_recursive_lock_unlock. Return error code.
55984         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55985         glthread_recursive_lock_destroy. Return error code.
55986         (glthread_once_call): Make static.
55987         (glthread_once_multithreaded): Renamed from glthread_once.
55988         * lib/tls.h: Include <errno.h>.
55989         (glthread_tls_key_init): New macro/function.
55990         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55991         (glthread_tls_set): New macro/function.
55992         (gl_tls_set): Define as wrapper around glthread_tls_set.
55993         (glthread_tls_key_destroy): New macro/function.
55994         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55995         Update function declarations.
55996         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55997         glthread_tls_get.
55998         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55999
56000 2008-08-04  Eric Blake  <ebb9@byu.net>
56001
56002         gnumakefile: use space, not TAB, outside of targets
56003         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56004
56005 2008-08-02  Jim Meyering  <meyering@redhat.com>
56006
56007         getdate.y: avoid locale-dependent date parsing failure
56008         In Turkish locales, getdate would fail to recognize keywords
56009         containing a lowercase "i".  The solution is not to rely on
56010         locale-sensitive case-conversion.
56011         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56012         (lookup_word): Use c_toupper in place of toupper.
56013         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56014         Reported by Vefa Bicakci <bicave@superonline.com> in
56015         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56016         * modules/getdate (Depends-on): Add c-ctype.
56017
56018 2008-08-02  Bruno Haible  <bruno@clisp.org>
56019
56020         * gnulib-tool (func_import): When updating or creating a .gitignore
56021         file, prepend each added line with a slash, and ignore leading slashes
56022         from the existing lines.
56023         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56024
56025 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56026
56027         Portability fix for GNU make 3.79.1.
56028         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56029         versions do not understand.
56030
56031 2008-08-01  Bruno Haible  <bruno@clisp.org>
56032
56033         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56034         * tests/test-isnanf.h (zero): New variable.
56035         (main): Avoid literal -0.0f.
56036         * tests/test-isnand.h (zero): New variable.
56037         (main): Avoid literal -0.0.
56038         * tests/test-isnanl.h (zero): New variable.
56039         (main): Avoid literal -0.0L.
56040         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56041         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56042         -0.0, -0.0L.
56043         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56044         (test_signbitd): Avoid literal -0.0.
56045         (test_signbitl): Avoid literal -0.0L.
56046         * tests/test-ceilf1.c (zero): New variable.
56047         (main): Avoid literal -0.0f.
56048         * tests/test-ceill.c (zero): New variable.
56049         (main): Avoid literal -0.0L.
56050         * tests/test-floorf1.c (zero): New variable.
56051         (main): Avoid literal -0.0f.
56052         * tests/test-floorl.c (zero): New variable.
56053         (main): Avoid literal -0.0L.
56054         * tests/test-roundf1.c (zero): New variable.
56055         (main): Avoid literal -0.0f.
56056         * tests/test-round1.c (zero): New variable.
56057         (main): Avoid literal -0.0.
56058         * tests/test-roundl.c (zero): New variable.
56059         (main): Avoid literal -0.0L.
56060         * tests/test-truncf1.c (zero): New variable.
56061         (main): Avoid literal -0.0f.
56062         * tests/test-trunc1.c (zero): New variable.
56063         (main): Avoid literal -0.0.
56064         * tests/test-truncl.c (zero): New variable.
56065         (main): Avoid literal -0.0L.
56066         * tests/test-frexp.c (zero): New variable.
56067         (main): Avoid literal -0.0.
56068         * tests/test-frexpl.c (zero): New variable.
56069         (main): Avoid literal -0.0L.
56070         * tests/test-ldexpl.c (zero): New variable.
56071         (main): Avoid literal -0.0L.
56072         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56073         (zerod, zerol): New variables.
56074         (test_function): Avoid literals -0.0, -0.0L.
56075         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56076         (zerod, zerol): New variables.
56077         (test_function): Avoid literals -0.0, -0.0L.
56078         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56079         (zerod, zerol): New variables.
56080         (test_function): Avoid literals -0.0, -0.0L.
56081         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56082         (zerod, zerol): New variables.
56083         (test_function): Avoid literals -0.0, -0.0L.
56084         * tests/test-strtod.c (zero): New variable.
56085         (main): Avoid literal -0.0.
56086         Reported by Jonathan C. Patschke <jp@centtech.com>.
56087
56088 2008-07-31  Jim Meyering  <meyering@redhat.com>
56089
56090         sha256.h: correct definition of SHA224_DIGEST_SIZE
56091         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56092         Reported by Paulie Pena IV <paulie4@gmail.com>.
56093         Define as 224 / 8, rather than as a literal.
56094         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56095         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56096         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56097
56098 2008-07-31  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56101         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56102         Reported by Jonathan Patschke <jp@centtech.com>.
56103
56104 2008-07-31  Bruno Haible  <bruno@clisp.org>
56105
56106         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56107         Reported by Paolo Bonzini <bonzini@gnu.org>.
56108
56109 2008-07-30  Eric Blake  <ebb9@byu.net>
56110
56111         test-strtod: allow compilation without -lm
56112         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56113         Reported by Dennis Clarke <blastwave@gmail.com>.
56114
56115 2008-07-28  Jim Meyering  <meyering@redhat.com>
56116
56117         bootstrap: work also when there are no .po files in po/
56118         * build-aux/bootstrap (update_po_files): Complete the change
56119         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56120
56121 2008-07-27  Jim Meyering  <meyering@redhat.com>
56122
56123         * users.txt: Add zile.
56124
56125 2008-07-26  Ben Pfaff  <blp@gnu.org>
56126
56127         Add missing dependencies on new m4/exponent[fdl].m4 files.
56128         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56129         * modules/isnand-nolibm: Add m4/exponentd.m4.
56130         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56131         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56132         m4/isnan[fdl].m4, because the macros actually used moved.
56133         Reported by Jim Meyering.
56134
56135 2008-07-14  Ben Pfaff  <blp@gnu.org>
56136
56137         Add isinf module.
56138         * lib/isinf.c: New file.
56139         * lib/math.in.h: Define isinf macro if we have decided to replace
56140         it.
56141         * m4/isinf.m4: New file.
56142         * m4/math_h.m4: Initialize and substitute variables for isinf
56143         module.
56144         * modules/isinf: New file.
56145         * modules/isinf-tests: New file.
56146         * modules/math: Add substitutions for new module.
56147         * tests/test-isinf.c: New file.
56148         * doc/posix-functions/isinf.texi: Mention new module.
56149         * MODULES.html.sh: Mention new module.
56150
56151 2008-07-14  Ben Pfaff  <blp@gnu.org>
56152
56153         Factor out some macros for use by additional modules.
56154         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56155         exponentf.m4.
56156         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56157         exponentd.m4.
56158         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56159         file exponentl.m4.
56160         * m4/exponentf.m4: New file.
56161         * m4/exponentd.m4: New file.
56162         * m4/exponentl.m4: New file.
56163         * modules/isnanf: Use new file m4/exponentf.m4.
56164         * modules/isnand: Use new file m4/exponentd.m4.
56165         * modules/isnanl: Use new file m4/exponentl.m4.
56166
56167 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56168
56169         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56170         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56171         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56172         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56173
56174         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56175         readlink on platforms without PATH_MAX.
56176
56177 2008-07-21  Eric Blake  <ebb9@byu.net>
56178
56179         Warn, not fail, on stale version.
56180         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56181
56182         Don't allow installation with stale devel version number.
56183         * top/GNUmakefile (_is-install-target): New macro.
56184         (_curr-ver): Forbid installation with stale version number.
56185
56186 2008-07-20  Bruno Haible  <bruno@clisp.org>
56187
56188         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56189         TESTS_ENVIRONMENT.
56190         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56191
56192 2008-07-20  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/c-stack.h (c_stack_action): Add documentation.
56195         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56196
56197 2008-07-20  Bruno Haible  <bruno@clisp.org>
56198
56199         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56200         * modules/readlink (License): Likewise.
56201
56202 2008-07-17  Eric Blake  <ebb9@byu.net>
56203
56204         * modules/c-stack (Link): Fix typo.
56205
56206         Make c-stack use libsigsegv, when available.
56207         * modules/c-stack (Depends-on): Add libsigsegv.
56208         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56209         needed.
56210         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56211         (segv_handler, overflow_handler, c_stack_action)
56212         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56213         implementation when libsigsegv is available, but only when using
56214         the library is necessary.
56215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56216         comment, explaining why XSI check fails on Linux.
56217         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56218         * tests/test-c-stack2.sh: Tweak skip message.
56219         * NEWS: Document new link-time requirements.
56220
56221 2008-07-16  Eric Blake  <ebb9@byu.net>
56222
56223         c-stack: Expose false positives when not using libsigsegv.
56224         * modules/c-stack-tests (Files): Expand test.
56225         * tests/test-c-stack.c (main): Add means to conditionally trigger
56226         non-overflow SIGSEGV.
56227         * tests/test-c-stack2.sh: New file.
56228
56229 2008-07-14  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56232         Reported by Eric Blake.
56233
56234 2008-07-14  Sam Steingold  <sds@gnu.org>
56235             Bruno Haible  <bruno@clisp.org>
56236
56237         New module libsigsegv.
56238         * modules/libsigsegv: New file.
56239         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56240         modifications.
56241         * MODULES.html.sh (Signal handling): New section.
56242
56243 2008-07-14  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/unictype/ctype-* (Description): Add the word "function".
56246         Improves the resulting doc in MODULES.html.
56247
56248 2008-07-12  Ben Pfaff  <blp@gnu.org>
56249
56250         Add longlong module.
56251         * modules/longlong: New file.
56252
56253 2008-07-12  Bruno Haible  <bruno@clisp.org>
56254
56255         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56256         to empty.
56257
56258 2008-07-10  Ben Pfaff  <blp@gnu.org>
56259
56260         Add isnan module.
56261         * doc/posix-functions/isnan.texi: Mention new module.
56262         * lib/math.in.h: Define isnan macro if we have decided to replace
56263         it.
56264         * m4/isnan.m4: New file.
56265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56266         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56267         also.
56268         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56269         redundancy.
56270         * m4/math_h.m4: Initialize and substitute variables for isnan
56271         module.
56272         * modules/isnan: New file.
56273         * modules/isnan-tests: New file.
56274         * modules/math: Add substitutions for new module.
56275         * tests/test-isnan.c: New file.
56276         * MODULES.html.sh: Mention new module.
56277
56278 2008-07-10  Ben Pfaff  <blp@gnu.org>
56279
56280         Add isnanf module.
56281         * lib/isnanf.m4: New file.
56282         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56283         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56284         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56285         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56286         * modules/isnanf: New file.
56287         * modules/isnanf-tests: New file.
56288         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56289         files.
56290         * tests/test-isnanf-nolibm.c: factored most of its contents into
56291         new file tests/test-isnanf.h.
56292         * tests/test-isnanf.h: New file.
56293         * tests/test-isnanf.c: New file.
56294         * MODULES.html.sh: Mention new module.
56295         * doc/glibc-functions/isnanf.texi: Mention new module.
56296
56297 2008-07-10  Ben Pfaff  <blp@gnu.org>
56298
56299         Add isnand module.
56300         * lib/isnand.h: New file.
56301         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56302         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56303         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56304         functionality also.
56305         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56306         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56307         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56308         * modules/isnand: New file.
56309         * modules/isnand-tests: New file.
56310         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56311         files.
56312         * tests/test-isnand-nolibm.c: factored most of its contents into
56313         new file tests/test-isnand.h.
56314         * tests/test-isnand.h: New file.
56315         * tests/test-isnand.c: New file.
56316         * MODULES.html.sh: Mention new module.
56317
56318 2008-07-10  Ben Pfaff  <blp@gnu.org>
56319
56320         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56321         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56322         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56323         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56324         * modules/isnanf-nolibm: Update references to renamed files.
56325         * modules/isnand-nolibm: Likewise.
56326         * modules/isnanf-nolibm-tests: Likewise.
56327         * modules/isnand-nolibm-tests: Likewise.
56328         * lib/frexp.c: Likewise.
56329         * lib/isfinite.c: Likewise.
56330         * lib/signbitd.c: Likewise.
56331         * lib/signbitf.c: Likewise.
56332         * lib/vasnprintf.c: Likewise.
56333         * tests/test-ceilf1.c: Likewise.
56334         * tests/test-ceilf2.c: Likewise.
56335         * tests/test-floorf1.c: Likewise.
56336         * tests/test-floorf2.c: Likewise.
56337         * tests/test-frexp.c: Likewise.
56338         * tests/test-round1.c: Likewise.
56339         * tests/test-round2.c: Likewise.
56340         * tests/test-roundf1.c: Likewise.
56341         * tests/test-strtod.c: Likewise.
56342         * tests/test-trunc1.c: Likewise.
56343         * tests/test-trunc2.c: Likewise.
56344         * tests/test-truncf1.c: Likewise.
56345         * tests/test-truncf2.c: Likewise.
56346         * NEWS: Mention the renamed header files.
56347
56348 2008-07-11  Jim Meyering  <meyering@redhat.com>
56349
56350         vc-list-files: make the last-resort awk code more portable
56351         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56352         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56353         does not support it.
56354
56355 2008-07-10  Eric Blake  <ebb9@byu.net>
56356
56357         Work with tar's bootstrap.
56358         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56359         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56360         an m4 comment.
56361
56362 2008-07-09  Jim Meyering  <meyering@redhat.com>
56363
56364         posix-shell.m4: fix typo that made this test malfunction
56365         * m4/posix-shell.m4: Remove capitalization in variable name.
56366
56367 2008-07-08  Bruno Haible  <bruno@clisp.org>
56368
56369         * m4/onceonly.m4: Update comments.
56370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56371
56372 2008-07-04  Jim Meyering  <meyering@redhat.com>
56373
56374         * users.txt: Add vc-dwim.
56375         (bison, coreutils): Use the gitweb URL.
56376
56377 2008-07-03  Jim Meyering  <meyering@redhat.com>
56378
56379         * users.txt: Add libffcall.  From Sam Steingold.
56380
56381 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
56382
56383         getdate.y: do not ignore TZ with relative day, month or year offset
56384         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56385         relative-date-handling, since otherwise, the latter would clobber the
56386         sole output (an updated Start value) of the tz-handling block.
56387         * tests/test-getdate.c: Tests for the fix
56388
56389 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56390
56391         Recognize 'foo_LIBRARIES += libgnu.a'.
56392         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56393         makefile snippet has already specified an installation location,
56394         also using '+='.
56395
56396 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
56397
56398         getdate.y: factor out common actions
56399         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56400         Use them in place of open-coded actions.
56401
56402 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56403
56404         Add self-test for getdate module.
56405         * modules/getdate-tests: New file.
56406         * tests/test-getdate.c: New file.
56407
56408 2008-06-29  Bruno Haible  <bruno@clisp.org>
56409
56410         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56411         .gitignore.
56412         Reported by Sylvain Beucler <beuc@beuc.net>.
56413
56414 2008-06-29  Bruno Haible  <bruno@clisp.org>
56415
56416         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56417         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56418
56419 2008-06-29  Bruno Haible  <bruno@clisp.org>
56420
56421         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56422         EXTRA_DIST.
56423         Reported by Sylvain Beucler <beuc@beuc.net>.
56424
56425 2008-06-26  Jim Meyering  <meyering@redhat.com>
56426
56427         make several modules depend on the "open" module
56428         This provides slightly increased consistency when opening-for-write
56429         the name of a non-directory spelled with a trailing slash.
56430         * modules/chdir-safer: Likewise.
56431         * modules/chown: Likewise.
56432         * modules/clean-temp: Likewise.
56433         * modules/copy-file: Likewise.
56434         * modules/fchdir: Likewise.
56435         * modules/fcntl-safer: Likewise.
56436         * modules/pipe: Likewise.
56437         * modules/utime: Likewise.
56438         Prompted by Eric Blake and Bruno Haible.
56439
56440 2008-06-24  Andreas Schwab  <schwab@suse.de>
56441
56442         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56443         literals can be used as initializers for global variables.
56444
56445 2008-06-23  Eric Blake  <ebb9@byu.net>
56446
56447         Make gnulib-cache.m4 easier to diff.
56448         * gnulib-tool (func_import): Allow newlines when reading cached
56449         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56450
56451 2008-06-23  Bruno Haible  <bruno@clisp.org>
56452
56453         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56454         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56455         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56456         m4/signalblocking.m4.
56457         (gl_PREREQ_SIGACTION): Don't invoke it.
56458         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56459         gl_PREREQ_SIG_HANDLER_H.
56460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56461         Don't check for sigaction here.
56462
56463 2008-06-23  Bruno Haible  <bruno@clisp.org>
56464
56465         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56466         (install_handlers): Don't set the SA_RESETHAND flag.
56467
56468 2008-06-23  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/sigaction.m4: Comment fixes.
56471         * lib/signal.in.h: Likewise.
56472
56473 2008-06-23  Eric Blake  <ebb9@byu.net>
56474
56475         Fix typo.
56476         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56477
56478         Avoid SA_ namespace.
56479         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56480         Reported by Ralf Wildenhues.
56481
56482         Avoid test failure due to SA_RESTORER.
56483         * tests/test-sigaction.c (SA_MASK): New macro.
56484         (main): Avoid failing due to extension flags being set.
56485         Reported by Jim Meyering.
56486
56487         Revert use of sig-handler.h in sigprocmask.c.
56488         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56489         it requires the existence of struct sigaction.
56490         * lib/sigprocmask.c (handler_t): Restore typedef.
56491         (rpl_signal, old_handlers): Use local type.
56492
56493 2008-06-22  Bruno Haible  <bruno@clisp.org>
56494
56495         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56496         conditionally.
56497         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56498
56499 2008-06-22  Bruno Haible  <bruno@clisp.org>
56500
56501         * doc/posix-functions/siginterrupt.texi: Move note.
56502
56503         * lib/signal.in.h (SA_RESTART): New macro.
56504         * lib/sigaction.c: Update comment.
56505
56506         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56507
56508         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56509         (gl_PREREQ_SIGPROCMASK): Invoke it.
56510         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56511
56512         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56513
56514         * lib/sigprocmask.c: Update a comment.
56515
56516 2008-06-21  Eric Blake  <ebb9@byu.net>
56517
56518         Use sigaction module rather than signal().
56519         * modules/c-stack (Depends-on): Add sigaction.
56520         * modules/fatal-signal (Depends-on): Likewise.
56521         * modules/nanosleep (Depends-on): Likewise.
56522         * modules/sigprocmask (Files): Add sig-handler.h.
56523         * modules/sigaction (Files): Likewise.
56524         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56525         Eggert.
56526         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56527         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56528         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56529         (init_fatal_signals): Likewise.
56530         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56531         (siginterrupt): Delete fallback.
56532         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56533         instead.
56534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56535         siginterrupt.
56536
56537         New module sigaction, for mingw.
56538         * modules/sigaction: New module...
56539         * modules/sigaction-tests: ...and its test.
56540         * m4/sigaction.m4: New file.
56541         * lib/sigaction.c: Likewise.
56542         * tests/test-sigaction.c: Likewise.
56543         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56544         * modules/signal (Makefile.am): Likewise.
56545         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56546         needed.
56547         * doc/posix-headers/signal.texi (signal.h): Mention provided
56548         types.
56549         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56550         that sigaction is preferable.
56551         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56552         module.
56553         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56554         sigaction.
56555
56556         Improve robustness of sigprocmask by overriding signal.
56557         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56558         is in use.
56559         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56560         (SIGKILL, SIGSTOP): Provide fallbacks.
56561         (rpl_signal): Implement.
56562         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56563         signal can be called inside handlers.
56564
56565         Fix nanosleep module on mingw.
56566         * modules/nanosleep (Depends-on): Add sys_select.
56567         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56568
56569         Fix licensing of sigprocmask.
56570         * modules/raise (License): Relicense as LGPL.
56571
56572 2008-06-21  Bruno Haible  <bruno@clisp.org>
56573
56574         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56575         result if it contains question marks.
56576         Reported by Michael Geng <linux@michaelgeng.de>.
56577
56578 2008-06-19  Bruno Haible  <bruno@clisp.org>
56579
56580         Fix CVS-ism.
56581         * doc/gnulib.texi: Include updated-stamp.texi.
56582         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56583         (updated-stamp.texi): New rule.
56584         (gnulib.info): Depend on it.
56585         * doc/.gitignore: Add updated-stamp.texi.
56586         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56587
56588 2008-06-19  Bruno Haible  <bruno@clisp.org>
56589
56590         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56591         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56592
56593 2008-06-19  Eric Blake  <ebb9@byu.net>
56594
56595         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56596         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56597         Reported by Stepan Kasal.
56598
56599 2008-06-18  Bruno Haible  <bruno@clisp.org>
56600
56601         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56602         Reported by Eric Blake.
56603
56604 2008-06-18  Eric Blake  <ebb9@byu.net>
56605
56606         Work around cygwin 1.5.25 strsignal bug.
56607         * tests/test-strsignal.c: Allow for const char *.
56608         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56609
56610 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56611
56612         * users.txt: Update URL to article and add author/date
56613         information.
56614
56615 2008-06-17  Bruno Haible  <bruno@clisp.org>
56616
56617         New macro gl_DISABLE_THREADS.
56618         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56619         if the user did not pass --enable-threads or --disable-threads option.
56620         (gl_DISABLE_THREADS): New macro.
56621         Reported by Eric Blake <ebb9@byu.net>.
56622
56623 2008-06-17  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56626         when the macro ignores it.
56627         Based on a patch by Eric Blake <ebb9@byu.net>.
56628
56629 2008-06-17  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/tls (License): Change to LGPLv2+.
56632         Reported by Eric Blake.
56633
56634 2008-06-17  Eric Blake  <ebb9@byu.net>
56635
56636         Simplify c-stack prerequisites.
56637         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56639         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56640         check.
56641         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56642         <sys/resource.h>.
56643
56644         Move c-stack test into testsuite.
56645         * modules/c-stack-tests: New file.
56646         * lib/c-stack.c [DEBUG]: Move test program...
56647         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56648         fail test if sigaltstack is lacking.
56649         * tests/test-c-stack.sh: New driver file.
56650
56651 2008-06-16  Eric Blake  <ebb9@byu.net>
56652
56653         Use raise module consistently.
56654         * modules/fatal-signal (Depends-on): Add raise.
56655         * modules/sigprocmask (Depends-on): Likewise.
56656         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56657         * lib/sigprocmask.c (sigprocmask): Likewise.
56658         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56659         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56660
56661         Fix compliance bug in sigpending.
56662         * lib/sigprocmask.c (sigpending): Return pending array via
56663         parameter, not return value.
56664
56665 2008-06-14  Eric Blake  <ebb9@byu.net>
56666
56667         Improve obstack-printf test code.
56668         * tests/test-obstack-printf.c (test_function): Fix comment, and
56669         simplify usage of obstack_* in macros.  Add a test for coverage.
56670         Reported by Bruno Haible.
56671
56672 2008-06-14  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56675         array size as a constant, not as a const variable.
56676         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56677         AC_USE_SYSTEM_EXTENSIONS.
56678         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56679         Test whether the obstack_printf function actually exists.
56680         * modules/obstack-printf (Depends-on): Add extensions.
56681         (Include): Remove obstack.h.
56682         * modules/obstack-printf-posix (Depends-on): Add extensions.
56683         (Include): Remove obstack.h.
56684
56685 2008-06-13  Eric Blake  <ebb9@byu.net>
56686
56687         Add obstack-printf and obstack-printf-posix modules.
56688         * modules/obstack-printf: New file.
56689         * modules/obstack-printf-posix: Likewise.
56690         * MODULES.html.sh (Misc): Mention them.
56691         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56692         Likewise.
56693         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56694         Likewise.
56695         * modules/stdio (Makefile.am): Accomodate new modules.
56696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56697         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56698         Declare.
56699         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56700         functions.
56701         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56702         (gl_REPLACE_OBSTACK_PRINTF): New macros
56703         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56704         * tests/test-obstack-printf.c: New file.
56705         * modules/obstack-printf-tests: Likewise.
56706         * modules/obstack-printf-posix-tests: Likewise.
56707
56708 2008-06-11  Bruno Haible  <bruno@clisp.org>
56709
56710         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56711         * lib/open.c: Include errno.h.
56712         (open): Fail when attempting to write to a file that has a trailing
56713         slash.
56714         * tests/test-open.c (main): Test against trailing slash bug.
56715         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56716
56717 2008-06-10  Bruno Haible  <bruno@clisp.org>
56718
56719         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56720         for $? to work inside the trap command, with various /bin/sh-s.
56721         * tests/test-vc-list-files-cvs.sh: Likewise.
56722
56723 2008-06-10  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/acl-internal.h: Don't include gettext.h here.
56726         * lib/set-mode-acl.c: Include gettext.h here.
56727         * lib/copy-acl.c: Likewise.
56728
56729 2008-06-10  Bruno Haible  <bruno@clisp.org>
56730
56731         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56732         * lib/wait-process.c (wait_subprocess): Likewise.
56733         * lib/execute.h (execute): Add termsigp argument.
56734         * lib/execute.c (execute): Likewise.
56735         * lib/csharpcomp.c (compile_csharp_using_pnet,
56736         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56737         * lib/csharpexec.c (execute_csharp_using_pnet,
56738         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56739         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56740         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56741         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56742         is_jikes_present): Update.
56743         * lib/javaexec.c (execute_java_class): Update.
56744         * lib/javaversion.c (execute_and_read_line): Update.
56745         * NEWS: Document the changes.
56746         Reported by Eric Blake.
56747
56748 2008-06-10  Eric Blake  <ebb9@byu.net>
56749
56750         Add missing include.
56751         * tests/test-strstr.c (includes): Add <signal.h>.
56752         * tests/test-strcasestr.c (includes): Likewise.
56753         * tests/test-memmem.c (includes): Likewise.
56754
56755 2008-06-10  Bruno Haible  <bruno@clisp.org>
56756
56757         * lib/wait-process.c (wait_subprocess): Add an assertion.
56758
56759 2008-06-10  Bruno Haible  <bruno@clisp.org>
56760
56761         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56762
56763 2008-06-10  Bruno Haible  <bruno@clisp.org>
56764
56765         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56766         using alarm().
56767         * tests/test-strcasestr.c (main): Likewise.
56768         * tests/test-strstr.c (main): Likewise.
56769
56770 2008-06-09  Bruno Haible  <bruno@clisp.org>
56771
56772         Work around the Solaris 10 ACE ACLs ABI change.
56773         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56774         declare if ACL_NO_TRIVIAL is present.
56775         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56776         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56777         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56778         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56779         define if ACL_NO_TRIVIAL is present.
56780         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56781         and use the current ABI.
56782         (file_has_acl): Use same #if condition as elsewhere.
56783         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56784         in use, and use the current ABI.
56785         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56786         Reported by Jim Meyering.
56787
56788 2008-06-09  Eric Blake  <ebb9@byu.net>
56789
56790         Work around environments that (stupidly) ignore SIGALRM.
56791         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56792         before using alarm().
56793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56795         Reported by Ian Beckwith <ianb@erislabs.net>.
56796
56797         Produce autobuild blurb earlier in log.
56798         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56799
56800 2008-06-09  Jim Meyering  <meyering@redhat.com>
56801         and Ondřej Vašík  <ovasik@redhat.com>
56802
56803         utimens.c: correct kernel bug work-around
56804         Ondřej Vašík found that the invalid return value of 280 indicates
56805         failure, not success, and the kernel bug we're trying to work
56806         around affects not just the utimensat call, but also the fallback
56807         futimens call.
56808         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56809         not success.
56810         [HAVE_FUTIMENS]: Use the same work-around, here.
56811
56812 2008-06-09  Jim Meyering  <meyering@redhat.com>
56813
56814         add more guards around definition of ACE_-related code
56815         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56816         ALLOW and ACE_OWNER are also defined.
56817
56818 2008-06-08  Bruno Haible  <bruno@clisp.org>
56819
56820         * lib/acl-internal.h: Add me as co-author.
56821         * lib/file-has-acl.c: Likewise.
56822         * lib/set-mode-acl.c: Likewise.
56823         * lib/copy-acl.c: Likewise.
56824
56825 2008-06-08  Bruno Haible  <bruno@clisp.org>
56826
56827         Add support for AIX ACLs.
56828         * lib/acl-internal.h (acl_nontrivial): New declaration.
56829         * lib/file-has-acl.c (acl_nontrivial): New function.
56830         (file_has_acl): Add implementation using AIX 4 ACL API.
56831         * lib/set-mode-acl.c (qset_acl): Likewise.
56832         * lib/copy-acl.c (qcopy_acl): Likewise.
56833
56834 2008-06-08  Bruno Haible  <bruno@clisp.org>
56835
56836         Add support for HP-UX ACLs.
56837         * lib/acl-internal.h (acl_nontrivial): New declaration.
56838         * lib/file-has-acl.c (acl_nontrivial): New function.
56839         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56840         * lib/set-mode-acl.c (qset_acl): Likewise.
56841         * lib/copy-acl.c (qcopy_acl): Likewise.
56842
56843 2008-06-08  Bruno Haible  <bruno@clisp.org>
56844
56845         Add support for Cygwin ACLs.
56846         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56847         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56848         the chmod_or_fchmod call.
56849         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56850
56851 2008-06-08  Bruno Haible  <bruno@clisp.org>
56852
56853         Fix bug with setuid modes in Solaris 10+ code.
56854         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56855         succeeded, when the mode contains some special bits.
56856
56857 2008-06-08  Bruno Haible  <bruno@clisp.org>
56858
56859         Add support for Solaris 7..10 ACLs.
56860         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56861         declarations.
56862         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56863         functions.
56864         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56865         * lib/set-mode-acl.c (qset_acl): Likewise.
56866         * lib/copy-acl.c (qcopy_acl): Likewise.
56867
56868 2008-06-08  Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56871         declaration.
56872         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56873         (acl_access_nontrivial): Remove MacOS X case.
56874         (file_has_acl): Use acl_extended_nontrivial.
56875         * lib/copy-acl.c (qcopy_acl): Likewise.
56876
56877 2008-06-08  Bruno Haible  <bruno@clisp.org>
56878
56879         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56880
56881 2008-06-08  Jim Meyering  <meyering@redhat.com>
56882
56883         * modules/acl (Maintainer): Add Bruno Haible.
56884
56885 2008-06-07  Bruno Haible  <bruno@clisp.org>
56886
56887         Improve support for Tru64 ACLs.
56888         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56889         ACL on OSF/1.
56890
56891 2008-06-07  Bruno Haible  <bruno@clisp.org>
56892
56893         Add support for MacOS X ACLs.
56894         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56895         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56896         * lib/set-mode-acl.c (qset_acl): Likewise.
56897         * lib/copy-acl.c (qcopy_acl): Likewise.
56898
56899 2008-06-07  Bruno Haible  <bruno@clisp.org>
56900
56901         Fix memory leak introduced on 2008-05-22.
56902         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56903         use.
56904
56905 2008-06-07  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56908         to construct an empty ACL.
56909
56910 2008-06-07  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56913         precisely.
56914         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56915
56916 2008-06-07  Bruno Haible  <bruno@clisp.org>
56917
56918         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56919         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56920
56921 2008-06-07  Bruno Haible  <bruno@clisp.org>
56922
56923         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56924         regardless of POSIX.
56925         * doc/posix-functions/_longjmp.texi: Likewise.
56926         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56927         SystemV platform in this case.
56928
56929 2008-06-06  Eric Blake  <ebb9@byu.net>
56930
56931         Document abort() bugs.
56932         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56933
56934         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56935         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56936         sigsetjmp.
56937         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56938         siglongjmp, but only as a macro.
56939         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56940         is obsolete.
56941         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56942
56943         Tweak documentation to cover cygwin argz bugs.
56944         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56945         argz bug fix; no code change needed since no cygwin releases
56946         occurred between the last fix and the bug being tested.
56947         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56948         module and recently fixed cygwin bugs.
56949         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56950         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56951         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56952         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56953         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56954         Likewise.
56955         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56956         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56957         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56958         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56959         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56960         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56961         Likewise.
56962
56963         Avoid gcc warning on cygwin.
56964         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56965         !ACL_NO_TRIVIAL]: Avoid unused variable.
56966
56967 2008-06-05  Eric Blake  <ebb9@byu.net>
56968
56969         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56970         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56971         git-version-gen fails to come up with a version.
56972         Reported by Simon Josefsson.
56973
56974 2008-06-05  Jim Meyering  <meyering@redhat.com>
56975             Paul Eggert  <eggert@cs.ucla.edu>
56976
56977         utimens.c: work around a probable Linux kernel bug
56978         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56979         appears to be a kernel bug that causes utimensat to return 280
56980         instead of 0, indicating success.
56981
56982 2008-06-04  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56985         2008-06-01 commit.
56986
56987 2008-06-04  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56990         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56991         (file_has_acl): Use it. Save errno afterwards.
56992         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56993
56994 2008-06-03  Bruno Haible  <bruno@clisp.org>
56995
56996         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56997         draft code. Simplify #ifs.
56998         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56999         Put Solaris code after POSIX-draft code. Fix comments regarding
57000         Solaris 10, HP-UX. Mention Cygwin.
57001         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57002
57003 2008-06-03  Eric Blake  <ebb9@byu.net>
57004
57005         Provide fallback for older kernels.
57006         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57007         Provide runtime fallback if kernel lacks support.
57008         Reported by Mike Frysinger.
57009
57010 2008-06-02  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57013         it exists.
57014
57015 2008-06-02  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57018         * lib/copy-acl.c (qcopy_acl): Update comment.
57019
57020 2008-06-02  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57023         like ACL APIs.
57024
57025 2008-06-02  Bruno Haible  <bruno@clisp.org>
57026
57027         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57028         * tests/test-set-mode-acl.sh: Likewise.
57029         * tests/test-copy-acl.sh: Likewise.
57030         * tests/test-copy-file.sh: Likewise.
57031
57032 2008-06-02  Bruno Haible  <bruno@clisp.org>
57033
57034         * tests/test-file-has-acl.sh: Remove unused code.
57035
57036 2008-06-01  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57039         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57040         messages.
57041         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57042
57043 2008-06-01  Bruno Haible  <bruno@clisp.org>
57044
57045         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57046         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57047         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57048         APIs.
57049         * modules/acl-tests (configure.ac): Remove tests now contained in
57050         m4/acl.m4.
57051
57052 2008-06-02  Jim Meyering  <meyering@redhat.com>
57053
57054         announce-gen: use a better key-server host name
57055         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57056         it may be more consistently reliable.  Suggested by Werner Koch
57057         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57058
57059 2008-06-01  Bruno Haible  <bruno@clisp.org>
57060
57061         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57062         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57063
57064 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57065
57066         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57067
57068 2008-06-01  Bruno Haible  <bruno@clisp.org>
57069
57070         New ACL tests.
57071         * tests/test-file-has-acl.sh: New file.
57072         * tests/test-file-has-acl.c: New file.
57073         * tests/test-set-mode-acl.sh: New file.
57074         * tests/test-set-mode-acl.c: New file.
57075         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57076         * tests/test-copy-acl.c: New file.
57077         * modules/acl-tests: New file, based on modules/copy-file-tests.
57078         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57079         (Depends-on): Add acl-tests.
57080         (configure.ac): Remove checks.
57081         (Makefile.am): Don't create test-sameacls program here any more.
57082
57083 2008-06-01  Bruno Haible  <bruno@clisp.org>
57084
57085         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57086         * tests/test-sameacls.c: Include progname.h.
57087         (main): Invoke set_program_name. Portability fixes for MacOS X,
57088         Solaris, HP-UX.
57089
57090 2008-06-01  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57093         function.
57094         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57095
57096 2008-06-01  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/rpmatch (Depends-on): Add strdup.
57099
57100 2008-06-01  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/pipe.c: Include unistd-safer.h.
57103         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57104         * modules/pipe (Depends-on): Add unistd-safer.
57105
57106 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57107
57108         * modules/autobuild (configure.ac): Call AB_INIT.
57109
57110 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57111
57112         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57113         Suggested by Bruno Haible <bruno@clisp.org>.
57114
57115 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57116
57117         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57118         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57119         <bruno@clisp.org>.
57120
57121 2008-05-29  Eric Blake  <ebb9@byu.net>
57122
57123         Prefer new POSIX 200x interfaces over futimesat.
57124         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57125         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57126         when available.
57127         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57128
57129 2008-05-28  Bruno Haible  <bruno@clisp.org>
57130
57131         * modules/stpcpy (License): Change to LGPLv2+.
57132         Requested by David Lutterkort <dlutter@redhat.com>.
57133
57134 2008-05-27  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57137         current mingw.
57138         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57139
57140 2008-05-27  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/iconv_open (Link): New section, from module 'iconv'.
57143         * modules/striconv (Link): Likewise.
57144         * modules/striconveh (Link): Likewise.
57145         * modules/xstriconv (Link): Likewise.
57146         * modules/unicodeio (Link): Likewise.
57147         * modules/propername (Link): Likewise.
57148         Reported by Jim Meyering.
57149
57150 2008-05-26  Jim Meyering  <meyering@redhat.com>
57151
57152         sha256: do not artificially restrict buffer length to be < 2^32
57153         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57154         uint32_t to size_t.
57155         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57156         to match.
57157
57158         avoid unaligned access errors, e.g., on sparc
57159         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57160         direct access through a possibly-unaligned uint64* pointer.
57161         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57162         direct access through a possibly-unaligned uint32* pointer.
57163         Prompted by this patch from Tom "spot" Callaway:
57164         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57165
57166         sha512.c: fix typo in comment
57167         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57168
57169 2008-05-25  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57172         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57173         (Makefile.am): Update lib_SOURCES.
57174
57175 2008-05-25  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57178
57179 2008-05-25  Jim Meyering  <meyering@redhat.com>
57180
57181         useless-if-before-free: freed expr may have white-space differences
57182         * build-aux/useless-if-before-free: Recognize cases in which the
57183         freed expression differs from the tested one in embedded white
57184         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57185         $1 was used, so we can't make any regexp shy.  Improved tests now
57186         detect this.
57187
57188         useless-if-before-free: accept white space in the expression.
57189         * build-aux/useless-if-before-free: For now, any white space
57190         in the expression must be identical in the free argument.
57191
57192         useless-if-before-free: efficiency tweak
57193         * build-aux/useless-if-before-free: Make the expression-matching
57194         regexp "shy".
57195         Make the *outer* regexp shy, not the expr-matching one.
57196
57197         update code-in-comment to accept cast of free arg
57198         * build-aux/useless-if-before-free: Update regexp.
57199
57200 2008-05-25  Bruno Haible  <bruno@clisp.org>
57201
57202         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57203         * modules/copy-file-tests (Files, Makefile.am): Update.
57204         * tests/test-copy-file.c (func_test_copy): Update.
57205
57206 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57207
57208         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57209
57210 2008-05-23  Bruno Haible  <bruno@clisp.org>
57211
57212         Improve support for ACLs on OSF/1.
57213         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57214         Remove fallback for unknown flavors of ACLs.
57215
57216 2008-05-22  Bruno Haible  <bruno@clisp.org>
57217
57218         Add support for ACLs on OSF/1.
57219         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57220         replacements.
57221         (acl_free_text): New macro fallback.
57222         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57223         acl_free.
57224         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57225         acl_free_text function. Require AC_C_INLINE.
57226
57227 2008-05-22  Bruno Haible  <bruno@clisp.org>
57228
57229         Make copy_acl work on MacOS X 10.5.
57230         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57231         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57232         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57233         If MODE_INSIDE_ACL, don't assume that every system has the same text
57234         representation for ACLs as FreeBSD.
57235         * lib/copy-acl.c (copy_acl): Add support for platforms with
57236         !MODE_INSIDE_ACL.
57237         * lib/file-has-acl.c (file_has_acl): Likewise.
57238         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57239         FreeBSD, MacOS X, or IRIX, respectively.
57240
57241 2008-05-22  Bruno Haible  <bruno@clisp.org>
57242
57243         * lib/acl.h: Don't include <sys/acl.h>.
57244         (GETACLCNT): Move fallback to lib/acl-internal.h.
57245         * lib/acl-internal.h: Include <sys/acl.h> here.
57246         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57247
57248 2008-05-22  Bruno Haible  <bruno@clisp.org>
57249
57250         Split off copy_acl function to separate file.
57251         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57252         * lib/acl.c (copy_acl): Moved function to separate file.
57253         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57254         * modules/acl (Files): Add lib/copy-acl.c.
57255         (Makefiles.am): Augment lib_SOURCES.
57256
57257 2008-05-22  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/copy-file-tests: New file.
57260         * tests/test-copy-file.sh: New file.
57261         * tests/test-copy-file.c: New file.
57262         * tests/test-copy-file-sameacls.c: New file.
57263
57264 2008-05-22  Eric Blake  <ebb9@byu.net>
57265
57266         Avoid gcc warning.
57267         * tests/test-memcmp.c (main): Pass NULL indirectly.
57268
57269 2008-05-21  Bruno Haible  <bruno@clisp.org>
57270
57271         Add reference doc about ACLs.
57272         * doc/acl-resources.txt: New file.
57273         * doc/acl-cygwin.txt: New file.
57274
57275 2008-05-21  Bruno Haible  <bruno@clisp.org>
57276
57277         Avoid one more warning from gcc.
57278         * lib/vasnprintf.c (IF_LINT): Update comments.
57279         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57280
57281 2008-05-21  Jim Meyering  <meyering@redhat.com>
57282
57283         avoid a warning from gcc
57284         * lib/vasnprintf.c (IF_LINT): Define.
57285         (scale10_round_decimal_long_double):
57286         Use it to avoid a "may be used uninitialized" warning.
57287         (scale10_round_decimal_double): Likewise.
57288
57289 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57290
57291         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57292         declared.
57293
57294 2008-05-20  Bruno Haible  <bruno@clisp.org>
57295
57296         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57297         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57298
57299 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57300
57301         * modules/memcmp-tests: New file.
57302         * tests/test-memcmp.c: New file.
57303
57304 2008-05-19  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/propername (Notice, configure.ac): Put quoted "..." into
57307         --keyword option.
57308         * lib/propername.h: Update comments accordingly.
57309         Reported by Eric Blake.
57310
57311 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57312
57313         * modules/getpass-gnu (Depends-on): Add fseeko.
57314
57315 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57316
57317         * modules/base64-tests: New file.
57318
57319 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57320
57321         * lib/base64.c (base64_decode_ctx): If a decode context structure
57322         was passed in use it to ignore newlines.  If a context structure
57323         was _not_ passed in, continue to treat newlines as garbage (this
57324         is the historical behavior).  Formerly base64_decode.
57325         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57326         takes a decode context structure.
57327         * lib/base64.h (base64_decode): Macro for four-argument calls.
57328         (base64_decode_alloc): Likewise.
57329         * lib/base64.c (base64_decode_ctx): If a decode context structure
57330         was passed in use it to ignore newlines.  If a context structure
57331         was _not_ passed in, continue to treat newlines as garbage (this
57332         is the historical behavior).  Formerly base64_decode.
57333         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57334         takes a decode context structure.
57335         * lib/base64.h (base64_decode): Macro for four-argument calls.
57336         (base64_decode_alloc): Likewise.
57337
57338 2008-05-19  Jim Meyering  <meyering@redhat.com>
57339
57340         avoid a warning from gcc
57341         * lib/trim.c (IF_LINT): Define.
57342         (trim2): Use it to avoid a "may be used uninitialized" warning.
57343
57344         Fix doc typo.
57345         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57346
57347 2008-05-19  Bruno Haible  <bruno@clisp.org>
57348
57349         * doc/glibc-functions/getpass.texi: Document limits of other
57350         implementations.
57351
57352 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57353             Bruno Haible <bruno@clisp.org>
57354
57355         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57356
57357 2008-05-18  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/propername: New file, from GNU gettext.
57360         * lib/propername.h: New file, from GNU gettext.
57361         * lib/propername.c: New file, from GNU gettext.
57362         * MODULES.html.sh (Internationalization functions): Add propername.
57363
57364 2008-05-16  Jim Meyering  <meyering@redhat.com>
57365             Bruno Haible  <bruno@clisp.org>
57366
57367         Avoid some warnings from "gcc -Wshadow".
57368         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57369
57370 2008-05-15  Eric Blake  <ebb9@byu.net>
57371
57372         Extend previous patch to cygwin 1.7.0.
57373         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57374         fast implementation in cygwin >= 1.7.0.
57375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57377
57378 2008-05-15  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57381         implementation in glibc >= 2.9.
57382         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57384
57385 2008-05-15  Bruno Haible  <bruno@clisp.org>
57386
57387         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57388         (Unicode string functions): Add unilbrk/*.
57389         Reported by Karl Berry.
57390
57391 2008-05-15  Eric Blake  <ebb9@byu.net>
57392
57393         Fix violation of <stdbool.h> replacement in regex.
57394         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57395         * lib/regexec.c (re_search_internal): Likewise.
57396         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57397
57398 2008-05-15  Jim Meyering  <meyering@redhat.com>
57399
57400         avoid distracting test output when git or cvs is not found
57401         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57402         * tests/test-vc-list-files-git.sh: Likewise.
57403
57404 2008-05-15  Eric Blake  <ebb9@byu.net>
57405
57406         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57407         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57408         glibc version.
57409         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57410         * doc/posix-functions/strstr.texi (strstr): Likewise.
57411         * lib/str-two-way.h (MAX): Sychronize with glibc.
57412
57413 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57414
57415         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57416         opr.ctx_type.
57417         (calc_first): Initialize constraint field.
57418         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57419         Fix grammar.
57420         (duplicate_node): Merge constraint field for all node types.
57421         (calc_eclosure_iter): Look at constraint field for all node types.
57422         * lib/regex_internal.c (create_cd_newstate): Don't look at
57423         opr.ctx_type.
57424
57425 2008-05-14  Bruno Haible  <bruno@clisp.org>
57426
57427         Help GCC to do better code generation.
57428         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57429         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57430         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57431         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57432         Declare with attribute 'malloc' if supported.
57433
57434 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57435
57436         use "echo STR|wc -c" rather than unportable "expr length STR"
57437         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57438         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57439
57440 2008-05-14  Jim Meyering  <meyering@redhat.com>
57441
57442         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57443         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57444         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57445         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57446         via Collin Lasse.
57447
57448 2008-05-14  Eric Blake  <ebb9@byu.net>
57449
57450         Avoid quadratic growth in gl_LIBSOURCES.
57451         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57452         Suggested by Bruno Haible.
57453
57454         Test xmemdup0.
57455         * modules/xmemdup0-tests: New file.
57456         * tests/test-xmemdup0.c: Likewise.
57457
57458 2008-05-13  Eric Blake  <ebb9@byu.net>
57459
57460         Split xmemdup0 into its own module.
57461         * modules/xmemdup0: New file.
57462         * lib/xmemdup0.h: Likewise.
57463         * lib/xmemdup0.c: Likewise.
57464         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57465         * lib/xalloc.h (xmemdup0): Remove.
57466         * lib/xmalloc.c (xmemdup0): Likewise.
57467
57468 2008-05-13  Eric Blake  <ebb9@byu.net>
57469             Bruno Haible  <bruno@clisp.org>
57470
57471         Reduce number of forks required during autoconf.
57472         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57473         and gl_LIBSOURCES_DIR.
57474         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57475         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57476         m4_syscmd per file.
57477         <m4_foreach_w>: Move...
57478         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57479
57480 2008-05-13  Eric Blake  <ebb9@byu.net>
57481
57482         * gnulib-tool: Fix various comment typos.
57483
57484 2008-05-12  Bruno Haible  <bruno@clisp.org>
57485
57486         Tailor the linebreaking algorithm.
57487         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57488
57489 2008-05-12  Bruno Haible  <bruno@clisp.org>
57490
57491         Update to Unicode 5.0.0.
57492         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57493         LBP_JV, LBP_JT. Redistribute values.
57494         (unilbrk_table): Change size.
57495         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57496         Unicode TR#14 rev. 22.
57497         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57498         LBP_JV, LBP_JT. Redistribute values.
57499         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57500         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57501         Update.
57502         * lib/unilbrk/lbrkprop1.h: Regenerated.
57503         * lib/unilbrk/lbrkprop2.h: Regenerated.
57504         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57505         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57506         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57507         Likewise.
57508         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57509         Likewise.
57510         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57511         result.
57512         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57513         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57514         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57515         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57516         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57517         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57518
57519 2008-05-11  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57522
57523 2008-05-11  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57526         * modules/unilbrk/gen-lbrk: New file.
57527
57528 2008-05-11  Bruno Haible  <bruno@clisp.org>
57529
57530         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57531         * m4/sha512.m4 (gl_SHA512): Likewise.
57532
57533 2008-05-11  Jim Meyering  <meyering@redhat.com>
57534
57535         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57536         * modules/crypto/sha256: New file.
57537         * modules/crypto/sha512: Likewise.
57538         * lib/sha256.c: Likewise.
57539         * lib/sha256.h: Likewise.
57540         * lib/sha512.c: Likewise.
57541         * lib/sha512.h: Likewise.
57542         * lib/u64.h: Likewise.
57543         * m4/sha256.m4: Likewise.
57544         * m4/sha512.m4: Likewise.
57545         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57546
57547 2008-05-10  Bruno Haible  <bruno@clisp.org>
57548
57549         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57550         (Input/Output <stdio.h>): Add xprintf.
57551         (Signal handling <signal.h>): Add strsignal.
57552         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57553         (Core language properties): Add func.
57554         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57555         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57556         strings.
57557         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57558         (Input/output): New section.
57559         (File system functions): Add openat-die, stat-macros.
57560         (Networking functions): Add sockets.
57561         (Unicode string functions): Add unictype/*.
57562         (Support for building libraries and executables): Add gperf.
57563         (Support for building documentation): Add agpl-3.0.
57564         (Misc): Add nocrash.
57565
57566 2008-05-10  Bruno Haible  <bruno@clisp.org>
57567
57568         * modules/unictype/gen-ctype: New file.
57569
57570 2008-05-10  Jim Meyering  <meyering@redhat.com>
57571
57572         Make chdir-safer.c more efficient on a system with no symlinks.
57573         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57574         also if ELOOP is zero.  Suggested by Bruno Haible.
57575
57576         Make chdir-safer.c slightly safer.
57577         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57578         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57579
57580         Avoid compile failure on systems without ELOOP (like mingw).
57581         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57582         Reported by Bruno Haible.
57583
57584 2008-05-10  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57587         (is_utf8_encoding): Use a case-insensitive comparison.
57588         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57589         streq.
57590
57591 2008-05-10  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57594         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57595         * lib/unilbrk/ulc-common.h (iconv_string_length,
57596         iconv_string_keeping_offsets): Remove declarations.
57597         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57598         Don't include <iconv.h>, streq.h, xsize.h.
57599         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57600         conversion.
57601         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57602         <iconv.h>, streq.h, xsize.h.
57603         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57604         conversion.
57605         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57606         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57607         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57608         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57609
57610 2008-05-10  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57613         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57614
57615         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57616         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57617
57618         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57619         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57620
57621         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57622         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57623
57624         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57625         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57626
57627         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57628         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57629
57630         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57631         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57632
57633         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57634         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57635
57636 2008-05-10  Bruno Haible  <bruno@clisp.org>
57637
57638         Split up 'linebreak' module.
57639         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57640         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57641         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57642         modifications.
57643         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57644         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57645         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57646         lib/linebreak.c.
57647         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57648         lib/linebreak.c.
57649         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57650         lib/linebreak.c.
57651         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57652         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57653         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57654         lib/linebreak.c.
57655         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57656         lib/linebreak.c.
57657         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57658         lib/linebreak.c.
57659         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57660         lib/linebreak.c.
57661         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57662         lib/linebreak.c.
57663         * modules/unilbrk/base: New file.
57664         * modules/unilbrk/tables: New file.
57665         * modules/unilbrk/u8-possible-linebreaks: New file.
57666         * modules/unilbrk/u16-possible-linebreaks: New file.
57667         * modules/unilbrk/u32-possible-linebreaks: New file.
57668         * modules/unilbrk/ulc-common: New file.
57669         * modules/unilbrk/ulc-possible-linebreaks: New file.
57670         * modules/unilbrk/u8-width-linebreaks: New file.
57671         * modules/unilbrk/u16-width-linebreaks: New file.
57672         * modules/unilbrk/u32-width-linebreaks: New file.
57673         * modules/unilbrk/ulc-width-linebreaks: New file.
57674         * lib/linebreak.h: Remove file.
57675         * lib/linebreak.c: Remove file.
57676         * m4/linebreak.m4: Remove file.
57677         * modules/linebreak: Remove file.
57678         * NEWS: Mention the changes.
57679
57680 2008-05-09  Eric Blake  <ebb9@byu.net>
57681
57682         Add xmemdup0.
57683         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57684         implementation.
57685         * lib/xmalloc.c (xmemdup0): New C implementation.
57686
57687 2008-05-08  Bruno Haible  <bruno@clisp.org>
57688
57689         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57690
57691 2008-05-07  Eric Blake  <ebb9@byu.net>
57692
57693         Support cross-compilation of <wctype.h>.
57694         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57695         AC_CACHE_CHECK.
57696
57697 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57698
57699         * build-aux/vc-list-files: Add support for bzr.
57700
57701 2008-05-03  Jim Meyering  <meyering@redhat.com>
57702
57703         avoid failed assertion with tight malloc
57704         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57705
57706 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57707
57708         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57709         are needed from arpa/inet.h.
57710         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57711         Reported by Bruno Haible.
57712
57713 2008-05-02  Jim Meyering  <meyering@redhat.com>
57714
57715         avoid compilation error on FreeBSD 6
57716         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57717
57718 2008-05-01  Jim Meyering  <meyering@redhat.com>
57719
57720         useless-if-before-free: correct --help's exit status description
57721         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57722         for one or more matches, etc.  Reported by Bruno Haible.
57723
57724         vc-list-files: make the stand-alone gnulib test work
57725         * modules/vc-list-files-tests (configure.ac):
57726         Define and AC_SUBST abs_aux_dir.
57727         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57728         $(abs_top_srcdir) to each script and having each of them
57729         duplicate the work of setting PATH, set PATH here, using
57730         the new variable, abs_aux_dir instead.
57731         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57732         * tests/test-vc-list-files-git.sh: Likewise.
57733         Reported by Bruno Haible.
57734
57735 2008-05-01  Bruno Haible  <bruno@clisp.org>
57736
57737         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57738         reallocation. Rename 'done' to 'found_delimiter'.
57739
57740 2008-05-01  Jim Meyering  <meyering@redhat.com>
57741
57742         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57743         * build-aux/vc-list-files: Use `...`, not $(...).
57744
57745 2008-04-30  Jim Meyering  <meyering@redhat.com>
57746
57747         add tests for vc-list-files
57748         * modules/vc-list-files-tests: New module.
57749         * tests/test-vc-list-files-cvs.sh: New file.
57750         * tests/test-vc-list-files-git.sh: New file.
57751
57752         avoid a warning from gcc
57753         * lib/getndelim2.c (IF_LINT): Define.
57754         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57755
57756         vc-list-files: work properly with build-aux/cvsu, too
57757         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57758         to all cvs-based clauses.
57759
57760         vc-list-files: work properly in the CVS+awk case, too
57761         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57762
57763         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57764         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57765         take more than one file argument, so .  Add quotes, just in case $dir
57766         ever contains a shell meta-character.  Prompted by Soren Hansen in
57767         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57768
57769 2008-04-29  Eric Blake  <ebb9@byu.net>
57770
57771         Optimize getndelim2 to use block operations when possible.
57772         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57773         freadseek, and memchr2.
57774         * lib/getndelim2.c (getndelim2): Use them for block reads.
57775
57776 2008-04-29  Bruno Haible  <bruno@clisp.org>
57777
57778         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57780         * modules/inet_ntop (Depends-on): Add extensions.
57781         * modules/inet_pton (Depends-on): Likewise.
57782         Reported by Simon Josefsson.
57783
57784 2008-04-29  Jim Meyering  <meyering@redhat.com>
57785
57786         When the is more than one match in a block, match all of them.
57787         * build-aux/useless-if-before-free: Iterate through each block
57788         until there are no more matches.
57789
57790         Fix broken useless-if-before-free script.
57791         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57792         the expression to match cast of argument to free-like function.
57793
57794 2008-04-29  Eric Blake  <ebb9@byu.net>
57795
57796         Use new header.
57797         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57798
57799 2008-04-29  Jim Meyering  <meyering@redhat.com>
57800
57801         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57802         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57803         by gnulib to exist and to declare e.g., inet_ntop.
57804         Don't include "inet_ntop.h", now removed.
57805
57806         * m4/arpa_inet_h.m4: Remove trailing blanks.
57807
57808 2008-04-29  Eric Blake  <ebb9@byu.net>
57809
57810         Silence valgrind on safe reads beyond potential array bounds.
57811         * lib/rawmemchr.valgrind: New file.
57812         * lib/strchrnul.valgrind: Likewise.
57813         * modules/rawmemchr (Files): Distribute new file.
57814         * modules/strchrnul (Files): Likewise.
57815         Suggested by Bruno Haible.
57816
57817 2008-04-29  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57820         (inet_ntop, inet_pton): Change portability warning's wording.
57821         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57822         Invoke gl_CHECK_NEXT_HEADERS.
57823         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57824         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57825         set ARPA_INET_H.
57826         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57827         * modules/arpa_inet (Description): No longer only for systems that
57828         lack it.
57829         (Depends-on): Add include_next.
57830         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57831         HAVE_ARPA_INET_H.
57832
57833 2008-04-29  Jim Meyering  <meyering@redhat.com>
57834
57835         * modules/mkdir (License): Re-license as LGPLv2+.
57836
57837 2008-04-29  Bruno Haible  <bruno@clisp.org>
57838
57839         * modules/rawmemchr (Maintainer): Set to Eric.
57840         * modules/strchrnul (Maintainer): Likewise.
57841
57842 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57843
57844         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57845         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57846
57847         * modules/arpa_inet (arpa/inet.h): Use them.
57848
57849 2008-04-28  Eric Blake  <ebb9@byu.net>
57850
57851         Test getndelim2.
57852         * modules/getndelim2-tests: New file.
57853         * tests/test-getndelim2.c: Likewise.
57854         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57855         stream.
57856         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57857
57858         * MODULES.html.sh: Document new module.
57859
57860 2008-04-20  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/c-stack.c (die): Use raise.
57863         * modules/c-stack (Depends-on): Add raise.
57864
57865 2008-04-28  Bruno Haible  <bruno@clisp.org>
57866
57867         Expect rpmatch to be declared.
57868         * lib/yesno.c (rpmatch): Remove declaration.
57869
57870         Declare rpmatch.
57871         * lib/stdlib.in.h (rpmatch): New declaration.
57872         * lib/rpmatch.c: Include <stdlib.h> first.
57873         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57874         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57876         HAVE_RPMATCH.
57877         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57878         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57879         (Include): Set to <stdlib.h>.
57880         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57881         HAVE_RPMATCH.
57882         * NEWS: Document the change.
57883
57884 2008-04-28  Bruno Haible  <bruno@clisp.org>
57885
57886         Change rpmatch to use nl_langinfo when appropriate.
57887         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57888         (N_): New macro.
57889         (localized_pattern): New function/macro.
57890         (try): Remove match, nomatch arguments. Copy the pattern into safe
57891         memory before caching it.
57892         (rpmatch): Use localized_pattern. Add translator comments.
57893         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57894         Suggested by Eric Blake.
57895         * modules/rpmatch (Depends-on): Add stdbool.
57896
57897 2008-04-28  Eric Blake  <ebb9@byu.net>
57898
57899         Add rawmemchr module, matching glibc.
57900         * modules/string (Makefile.am): New indicator.
57901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57902         * lib/string.in.h (rawmemchr): Declare when appropriate.
57903         * modules/rawmemchr: New file.
57904         * m4/rawmemchr.m4: Likewise.
57905         * lib/rawmemchr.c: Likewise.
57906         * modules/rawmemchr-tests: Likewise.
57907         * tests/test-rawmemchr.c: Likewise.
57908         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57909         module.
57910         * modules/strchrnul (Depends-on): Add rawmemchr.
57911         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57912
57913         Whitespace cleanup.
57914         * tests/test-strchrnul.c: Reindent.
57915         * lib/strchrnul.c: Likewise.
57916
57917         Optimize and test strchrnul.
57918         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57919         * modules/strchrnul-tests: New file.
57920         * tests/test-strchrnul.c: Likewise.
57921
57922         Remove intprops dependency.
57923         * modules/memchr (Depends-on): Remove intprops.
57924         * modules/memrchr (Depends-on): Likewise.
57925         * modules/memchr2 (Depends-on): Likewise.
57926         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57927         * lib/memrchr.c (__memrchr): Likewise.
57928         * lib/memrchr2.c (memchr2): Likewise.
57929         Reported by Simon Josefsson.
57930
57931 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57932
57933         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57934         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57935
57936 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57937
57938         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57939
57940         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57941
57942         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57943
57944         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57945         declarations.
57946         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57947
57948         * m4/inet_pton.m4: Don't check for header files.
57949
57950         * m4/inet_ntop.m4: Don't check for header files.
57951
57952 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57953
57954         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57955         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57956         trigger for cygwin).
57957         Reported by Bruno Haible  <bruno@clisp.org>.
57958
57959 2008-04-28  Bruno Haible  <bruno@clisp.org>
57960
57961         * doc/posix-functions/strdup.texi: Mention mingw problem.
57962
57963 2008-04-27  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/stat-time-tests (Depends-on): Add sleep.
57966         * tests/test-stat-time.c (force_unlink): New function.
57967         (cleanup): Use it.
57968         (test_mtime): Remove the ctime related tests.
57969         (test_ctime): New function, containing the ctime related tests.
57970         (main): Call test_ctime, except on native Windows platforms.
57971
57972 2008-04-27  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/rpmatch.c (rpmatch): Add some comments.
57975         Reported by James Youngman <jay@gnu.org>.
57976
57977 2008-04-27  Bruno Haible  <bruno@clisp.org>
57978
57979         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57980         quiet NaNs.
57981
57982 2008-04-27  Bruno Haible  <bruno@clisp.org>
57983
57984         Make test-yesno.sh work on mingw.
57985         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57986         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57987         (main): Set stdin to binary mode.
57988         * modules/yesno-tests (Depends-on): Add binary-io.
57989
57990 2008-04-27  Bruno Haible  <bruno@clisp.org>
57991
57992         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57993         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57994         argument that lie outside the IEEE 854 domain.
57995         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57996         (gl_ISFINITE): Use it.
57997         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57998
57999 2008-04-27  Bruno Haible  <bruno@clisp.org>
58000
58001         Allow local renaming in config.h.
58002         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58003
58004 2008-04-27  Bruno Haible  <bruno@clisp.org>
58005
58006         * lib/memchr.c (__memchr): Change type of 'i'.
58007         * lib/memchr2.c (memchr2): Likewise.
58008
58009 2008-04-26  Eric Blake  <ebb9@byu.net>
58010         and Bruno Haible  <bruno@clisp.org>
58011
58012         Optimize and test memrchr.
58013         * modules/memrchr (Depends-on): Add intprops.
58014         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58015         * modules/memrchr-tests: New file.
58016         * tests/test-memrchr.c: New file.
58017
58018 2008-04-26  Bruno Haible  <bruno@clisp.org>
58019
58020         Add tentative support for DragonFly BSD.
58021         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58022         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58023         fp.
58024         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58025         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58026         * lib/fpurge.c (fpurge): Likewise.
58027         * lib/freadable.c (freaadable): Likewise.
58028         * lib/freadahead.c (freadahead): Likewise.
58029         * lib/freading.c (freading): Likewise.
58030         * lib/freadptr.c (freadptr): Likewise.
58031         * lib/freadseek.c (freadptrinc): Likewise.
58032         * lib/fseeko.c (fseeko): Likewise.
58033         * lib/fseterr.c (fseterr): Likewise.
58034         * lib/fwritable.c (fwritable): Likewise.
58035         * lib/fwriting.c (fwriting): Likewise.
58036
58037 2008-04-26  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/stdio-impl.h: New file.
58040         * lib/fbufmode.c: Include stdio-impl.h.
58041         (fbufmode): Use fp_, remove redundant #defines.
58042         * lib/fflush.c: Include stdio-impl.h.
58043         (clear_ungetc_buffer): Remove redundant #defines.
58044         * lib/fpurge.c: Include stdio-impl.h.
58045         (fpurge): Remove redundant #defines.
58046         * lib/freadable.c: Include stdio-impl.h.
58047         (freadable): Remove redundant #defines.
58048         * lib/freadahead.c: Include stdio-impl.h.
58049         (freadahead): Remove redundant #defines.
58050         * lib/freading.c: Include stdio-impl.h.
58051         (freading): Remove redundant #defines.
58052         * lib/freadptr.c: Include stdio-impl.h.
58053         (freadptr): Remove redundant #defines.
58054         * lib/freadseek.c: Include stdio-impl.h.
58055         (freadptrinc): Remove redundant #defines.
58056         * lib/fseeko.c: Include stdio-impl.h.
58057         (rpl_fseeko): Remove redundant #defines.
58058         * lib/fseterr.c: Include stdio-impl.h.
58059         (fseterr): Remove redundant #defines.
58060         * lib/fwritable.c: Include stdio-impl.h.
58061         (fwritable: Remove redundant #defines.
58062         * lib/fwriting.c: Include stdio-impl.h.
58063         (fwriting): Remove redundant #defines.
58064         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58065         * modules/fflush (Files): Likewise.
58066         * modules/fpurge (Files): Likewise.
58067         * modules/freadable (Files): Likewise.
58068         * modules/freadahead (Files): Likewise.
58069         * modules/freading (Files): Likewise.
58070         * modules/freadptr (Files): Likewise.
58071         * modules/freadseek (Files): Likewise.
58072         * modules/fseeko (Files): Likewise.
58073         * modules/fseterr (Files): Likewise.
58074         * modules/fwritable (Files): Likewise.
58075         * modules/fwriting (Files): Likewise.
58076
58077 2008-04-26  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58080         restore_seek_optimization, update_fpos_cache): New functions, extracted
58081         from rpl_fflush.
58082         (rpl_fflush): Use them.
58083         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58084         (gl_REPLACE_FFLUSH): Use it.
58085
58086 2008-04-26  Bruno Haible  <bruno@clisp.org>
58087
58088         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58089         on Solaris.
58090         * tests/test-xstrtoimax.sh: Likewise.
58091         * tests/test-xstrtoumax.sh: Likewise.
58092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58093
58094 2008-04-26  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/memchr-tests: New file.
58097         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58098
58099 2008-04-26  Eric Blake  <ebb9@byu.net>
58100             Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/memchr.c: Include intprops.h.
58103         (__memchr): Optimize parallel detection of matching bytes. Rename local
58104         variables. Add explanatory comments.
58105
58106 2008-04-26  Bruno Haible  <bruno@clisp.org>
58107
58108         Fix module 'memchr', broken since 2000-10-28.
58109         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58110
58111 2008-04-26  Bruno Haible  <bruno@clisp.org>
58112
58113         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58114         comments.
58115
58116 2008-04-25  Eric Blake  <ebb9@byu.net>
58117
58118         Use native fstatat on cygwin 1.7.0.
58119         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58120         first.
58121
58122 2008-04-23  Eric Blake  <ebb9@byu.net>
58123
58124         Improve memchr2 performance.
58125         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58126         NUL bytes.
58127         * modules/memchr2 (Depends-on): Use intprops.h.
58128
58129 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58130
58131         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58132         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58133         <blp@cs.stanford.edu>.
58134
58135 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58136
58137         * lib/arpa_inet.in.h: New file.
58138
58139         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58140         (Makefile.am): Sed in substitute header file.
58141
58142         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58143         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58144
58145         * modules/inet_ntop (configure.ac): Use
58146         gl_ARPA_INET_MODULE_INDICATOR.
58147
58148         * modules/inet_pton (configure.ac): Use
58149         gl_ARPA_INET_MODULE_INDICATOR.
58150
58151 2008-04-22  Jim Meyering  <meyering@redhat.com>
58152
58153         * modules/verify (License): Re-license as LGPLv2+.
58154
58155 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58156
58157         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58158         parameter to void* as per POSIX standard (MinGW uses char*).
58159
58160 2008-04-21  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58163         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58164         Define to replacements if REPLACE_ISWCNTRL is 1.
58165         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58166         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58167         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58168         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58169         what it fixes.
58170         * doc/posix-functions/iswalpha.texi: Likewise.
58171         * doc/posix-functions/iswblank.texi: Likewise.
58172         * doc/posix-functions/iswcntrl.texi: Likewise.
58173         * doc/posix-functions/iswdigit.texi: Likewise.
58174         * doc/posix-functions/iswgraph.texi: Likewise.
58175         * doc/posix-functions/iswlower.texi: Likewise.
58176         * doc/posix-functions/iswprint.texi: Likewise.
58177         * doc/posix-functions/iswpunct.texi: Likewise.
58178         * doc/posix-functions/iswspace.texi: Likewise.
58179         * doc/posix-functions/iswupper.texi: Likewise.
58180         * doc/posix-functions/iswxdigit.texi: Likewise.
58181         Reported by Alain Guibert.
58182
58183 2008-04-21  Bruno Haible  <bruno@clisp.org>
58184
58185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58186         Patch by Alain Guibert.
58187
58188 2008-04-21  Bruno Haible  <bruno@clisp.org>
58189
58190         Fix test failures on mingw.
58191         * tests/test-xstrtol.c (print_no_progname): New function.
58192         (main): Install it in error_print_progname hook.
58193         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58194         * tests/test-xstrtoimax.sh: Likewise.
58195         * tests/test-xstrtoumax.sh: Likewise.
58196
58197 2008-04-21  Bruno Haible  <bruno@clisp.org>
58198
58199         Fix test failure on mingw.
58200         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58201
58202 2008-04-21  Bruno Haible  <bruno@clisp.org>
58203
58204         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58205         Actually assign a value.
58206
58207 2008-04-20  Bruno Haible  <bruno@clisp.org>
58208
58209         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58210         take 2.
58211         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58212         'canonicalize-lgpl' module is also used.
58213         * lib/canonicalize-lgpl.c: Undo last change.
58214         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58215
58216 2008-04-20  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58219         config.h. Provide _mkdir based fallback for mingw.
58220         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58221         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58222         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58223         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58224         rather than defining mkdir in config.h.
58225         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58226         (gl_SYS_STAT_H_DEFAULTS): New macro.
58227         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58228         HAVE_IO_H any more.
58229         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58230         HAVE_DECL_MKDIR and HAVE_IO_H.
58231
58232 2008-04-20  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/isapipe.c: Port to native Windows platforms.
58235
58236 2008-04-20  Bruno Haible  <bruno@clisp.org>
58237
58238         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58239
58240 2008-04-21  Eric Blake  <ebb9@byu.net>
58241
58242         Work around preprocessors that don't handle UINTMAX_MAX.
58243         * lib/memchr2.c (memchr2): Avoid embedded #if.
58244         Reported by Alain Guibert, fix suggested by Bruno Haible.
58245
58246 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58247
58248         * doc/posix-functions/strftime.texi (strftime): Explain better
58249         Windows incompatibility.  Suggested by Micah Cowan
58250         <micah@cowan.name>.
58251
58252 2008-04-20  Bruno Haible  <bruno@clisp.org>
58253
58254         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58255         unistr/u8-mblen.
58256
58257 2008-04-20  Bruno Haible  <bruno@clisp.org>
58258
58259         Fix test failure on platforms with non-GNU iconv.
58260         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58261         (U_TO_U8): Use it, rather than u16_to_u8.
58262         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58263         units at the end of the input string.
58264         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58265
58266 2008-04-20  Bruno Haible  <bruno@clisp.org>
58267
58268         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58269         when the resulting length is 0.
58270         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58271
58272 2008-04-20  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58275         works.
58276         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58277
58278 2008-04-20  Bruno Haible  <bruno@clisp.org>
58279
58280         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58281         * modules/tsearch-tests (configure.ac): Test for initstate function.
58282
58283 2008-04-20  Bruno Haible  <bruno@clisp.org>
58284
58285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58286         for nlink_t if missing.
58287         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58288
58289 2008-04-19  Bruno Haible  <bruno@clisp.org>
58290
58291         Work around snprintf bug on Linux libc5.
58292         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58294         gl_SNPRINTF_SIZE1.
58295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58296         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58297         that test failed.
58298         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58299         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58300         * modules/snprintf (Files): Add m4/printf.m4.
58301         * modules/vsnprintf (Files): Likewise.
58302         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58303         * doc/posix-functions/vsnprintf.texi: Likewise.
58304
58305 2008-04-19  Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58308         from 0.0058 to less than 10^-7.
58309
58310 2008-04-19  Bruno Haible  <bruno@clisp.org>
58311
58312         Fix rounding when a precision is given.
58313         * lib/vasnprintf.c (is_borderline): New function.
58314         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58315         9...9x.
58316         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58317         %e, %g.
58318         * tests/test-vasprintf-posix.c (test_function): Likewise.
58319         * tests/test-snprintf-posix.h (test_function): Likewise.
58320         * tests/test-sprintf-posix.h (test_function): Likewise.
58321         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58322         * tests/test-printf-posix.h (test_function): Likewise.
58323         * tests/test-printf-posix.output: Update.
58324         Reported by John Darrington <john@darrington.wattle.id.au> via
58325         Ben Pfaff <blp@cs.stanford.edu>.
58326
58327 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58328
58329         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58330         Suggested by Bruno Haible <bruno@clisp.org>.
58331
58332 2008-04-17  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58335         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58336         implementation.
58337         Patch by Bruce Merry <bmerry@gmail.com>.
58338
58339 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58340
58341         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58342         doesn't work under Windows.
58343
58344 2008-04-16  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58347         New macros.
58348         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58349         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58350         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58351         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58352         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58353         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58354         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58355         macros.
58356         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58357         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58358         Northern Sotho, Uighur.
58359
58360 2008-04-16  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58363         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58364         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58365         Reported by Daniel Bergström <daniel@octocode.com>.
58366
58367 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58368             Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58371         function.
58372         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58373         New functions, mostly extracted from gl_locale_name_default.
58374         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58375
58376 2008-04-16  Eric Blake  <ebb9@byu.net>
58377
58378         Adjust strtod detection to catch glibc 2.7 bug.
58379         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58380         Reported by John Gatewood Ham.
58381
58382 2008-04-16  Bruno Haible  <bruno@clisp.org>
58383
58384         Add tentative support for Linux libc5.
58385         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58386         * lib/fpurge.c (fpurge): Likewise.
58387         * lib/freadable.c (freadable): Likewise.
58388         * lib/freadahead.c (freadahead): Likewise.
58389         * lib/freading.c (freading): Likewise.
58390         * lib/freadptr.c (freadptr): Likewise.
58391         * lib/freadseek.c (freadptrinc): Likewise.
58392         * lib/fseeko.c (rpl_fseeko): Likewise.
58393         * lib/fseterr.c (fseterr): Likewise.
58394         * lib/fwritable.c (fwritable): Likewise.
58395         * lib/fwriting.c (fwriting): Likewise.
58396         Reported by Alain Guibert <alguibert+bts@free.fr>.
58397
58398 2008-04-15  Bruno Haible  <bruno@clisp.org>
58399
58400         * modules/mathl (configure.ac): Define module indicator.
58401
58402 2008-04-15  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/logl.c (logl): Remove unused variables.
58405
58406 2008-04-15  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58409         fails.
58410
58411 2008-04-15  Bruno Haible  <bruno@clisp.org>
58412
58413         * lib/trim.c (trim2): Fix argument of isspace() macro.
58414
58415 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58416
58417         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58418         to 0.
58419         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58420
58421 2008-04-14  Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58424         AC_LANG_PROGRAM argument.
58425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58426         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58428         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58429         * m4/math_h.m4 (gl_MATH_H): Likewise.
58430         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58432         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58433         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58434         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58435         * m4/regex.m4 (gl_REGEX): Likewise.
58436         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58439         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58440         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58444
58445 2008-04-14  Jim Meyering  <meyering@redhat.com>
58446
58447         test-strtod: fix typos: s/abs/fabs/
58448         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58449
58450 2008-04-13  Bruno Haible  <bruno@clisp.org>
58451
58452         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58453         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58454         module is also used and while not building the reloc-wrapper.
58455
58456 2008-04-13  Bruno Haible  <bruno@clisp.org>
58457
58458         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58459
58460 2008-04-13  Bruno Haible  <bruno@clisp.org>
58461
58462         Fix AIX compilation failure introduced on 2008-04-02.
58463         * tests/test-frexp.c (exp): Undefine before redefining.
58464         * tests/test-frexpl.c (exp): Likewise.
58465
58466 2008-04-13  Bruno Haible  <bruno@clisp.org>
58467
58468         Work around a HP-UX stdio bug.
58469         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58470         * tests/test-ftello.c (main): Likewise.
58471         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58472         * doc/posix-functions/ftello.texi: Likewise.
58473
58474 2008-04-13  Bruno Haible  <bruno@clisp.org>
58475
58476         Make test-signbit pass on HP-UX/hppa.
58477         * tests/test-signbit.c (minus_zerol): New variable.
58478         (test_signbitl): Use it.
58479
58480 2008-04-13  Bruno Haible  <bruno@clisp.org>
58481
58482         Make truncl work on OSF/1 4.0.
58483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58484         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58485         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58487         HAVE_DECL_TRUNCL.
58488         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58489         HAVE_DECL_TRUNCL.
58490         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58491
58492 2008-04-13  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58495
58496 2008-04-13  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58499         expression, so as to avoid HP-UX 11 cc compiler bug.
58500
58501 2008-04-13  Bruno Haible  <bruno@clisp.org>
58502
58503         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58504
58505 2008-04-13  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/git-merge-changelog.c: Remove empty declaration outside of
58508         functions.
58509
58510 2008-04-13  Bruno Haible  <bruno@clisp.org>
58511
58512         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58513
58514 2008-04-13  Bruno Haible  <bruno@clisp.org>
58515
58516         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58517         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58519         also if it exists but lacks definitions of the SHUT_* macros.
58520         * modules/sys_socket (Description): Update.
58521         Reported by Elbert Pol <e.pol@chello.nl>.
58522
58523 2008-04-13  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/localcharset.c (OS2): Don't redefine if already defined.
58526         Reported by Elbert Pol <e.pol@chello.nl>.
58527
58528 2008-04-13  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/binary-io.h [__EMX__]: Include <io.h>.
58531         Reported by Elbert Pol <e.pol@chello.nl>.
58532
58533 2008-04-12  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/fpucw.h: Enable the definitions also for x86_64.
58536         Needed for NetBSD/x86_64.
58537         Reported by Thomas Klausner <tk@giga.or.at>.
58538
58539 2008-04-12  Bruno Haible  <bruno@clisp.org>
58540
58541         * tests/test-strtod.c: Include isnand.h.
58542         (main): Use isnand instead of isnan.
58543         Reported by Jim Meyering.
58544
58545 2008-04-12  Bruno Haible  <bruno@clisp.org>
58546
58547         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58548         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58549
58550 2008-04-12  Jim Meyering  <meyering@redhat.com>
58551
58552         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58553
58554 2008-04-12  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58557         Reported by Elbert Pol <e.pol@chello.nl>.
58558
58559 2008-04-12  Eric Blake  <ebb9@byu.net>
58560
58561         Work around Solaris 10 math.h bug.
58562         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58563         (gl_MATH_H_DEFAULTS): Set up default.
58564         * modules/math (Makefile.am): Replace new indicators.
58565         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58566         * tests/test-math.c (main): Test this.
58567         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58568         * doc/posix-headers/math.texi (math.h): Mention bug.
58569         Reported by Nelson H. F. Beebe and Jim Meyering.
58570
58571 2008-04-11  Bruno Haible  <bruno@clisp.org>
58572
58573         Adapt to future versions of Apple GCC.
58574         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58575         Reported by Peter O'Gorman <peter@pogma.com>.
58576
58577 2008-04-11  Bruno Haible  <bruno@clisp.org>
58578
58579         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58580
58581 2008-04-11  Bruno Haible  <bruno@clisp.org>
58582
58583         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58584
58585         * modules/getaddrinfo-tests (Makefile.am): Define
58586         test_getaddrinfo_LDADD.
58587
58588 2008-04-11  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58591         (init): Fix syntax error.
58592         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58593         is declared.
58594
58595 2008-04-11  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58598         * modules/glob (Depends-on): Add stdbool.
58599
58600 2008-04-11  Bruno Haible  <bruno@clisp.org>
58601
58602         * lib/trim.c: Include <string.h>.
58603
58604 2008-04-11  Eric Blake  <ebb9@byu.net>
58605
58606         Avoid compile failure on OS/2.
58607         * lib/regex_internal.h (internal_function): Disable optimization
58608         on OS/2 (__EMX__), where it caused compiler error.
58609         Reported by Elbert Pol.
58610
58611 2008-04-11  Bruno Haible  <bruno@clisp.org>
58612
58613         Flush the standard error stream before aborting. Needed on mingw.
58614         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58615         * tests/test-array_list.c (ASSERT): Likewise.
58616         * tests/test-array_oset.c (ASSERT): Likewise.
58617         * tests/test-avltree_list.c (ASSERT): Likewise.
58618         * tests/test-avltree_oset.c (ASSERT): Likewise.
58619         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58620         * tests/test-binary-io.c (ASSERT): Likewise.
58621         * tests/test-byteswap.c (ASSERT): Likewise.
58622         * tests/test-c-ctype.c (ASSERT): Likewise.
58623         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58624         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58625         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58626         * tests/test-c-strstr.c (ASSERT): Likewise.
58627         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58628         * tests/test-canonicalize.c (ASSERT): Likewise.
58629         * tests/test-carray_list.c (ASSERT): Likewise.
58630         * tests/test-ceilf1.c (ASSERT): Likewise.
58631         * tests/test-ceilf2.c (ASSERT): Likewise.
58632         * tests/test-ceill.c (ASSERT): Likewise.
58633         * tests/test-count-one-bits.c (ASSERT): Likewise.
58634         * tests/test-fbufmode.c (ASSERT): Likewise.
58635         * tests/test-fflush2.c (ASSERT): Likewise.
58636         * tests/test-floorf1.c (ASSERT): Likewise.
58637         * tests/test-floorf2.c (ASSERT): Likewise.
58638         * tests/test-floorl.c (ASSERT): Likewise.
58639         * tests/test-fopen.c (ASSERT): Likewise.
58640         * tests/test-fpending.c (ASSERT): Likewise.
58641         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58642         * tests/test-fpurge.c (ASSERT): Likewise.
58643         * tests/test-freadable.c (ASSERT): Likewise.
58644         * tests/test-freadahead.c (ASSERT): Likewise.
58645         * tests/test-freading.c (ASSERT): Likewise.
58646         * tests/test-freadptr.c (ASSERT): Likewise.
58647         * tests/test-freadptr2.c (ASSERT): Likewise.
58648         * tests/test-freadseek.c (ASSERT): Likewise.
58649         * tests/test-freopen.c (ASSERT): Likewise.
58650         * tests/test-frexp.c (ASSERT): Likewise.
58651         * tests/test-frexpl.c (ASSERT): Likewise.
58652         * tests/test-fseek.c (ASSERT): Likewise.
58653         * tests/test-fseeko.c (ASSERT): Likewise.
58654         * tests/test-fstrcmp.c (ASSERT): Likewise.
58655         * tests/test-ftell.c (ASSERT): Likewise.
58656         * tests/test-ftello.c (ASSERT): Likewise.
58657         * tests/test-func.c (ASSERT): Likewise.
58658         * tests/test-fwritable.c (ASSERT): Likewise.
58659         * tests/test-fwriting.c (ASSERT): Likewise.
58660         * tests/test-getdelim.c (ASSERT): Likewise.
58661         * tests/test-getline.c (ASSERT): Likewise.
58662         * tests/test-i-ring.c (ASSERT): Likewise.
58663         * tests/test-iconv-utf.c (ASSERT): Likewise.
58664         * tests/test-iconv.c (ASSERT): Likewise.
58665         * tests/test-isfinite.c (ASSERT): Likewise.
58666         * tests/test-isnand.c (ASSERT): Likewise.
58667         * tests/test-isnanf.c (ASSERT): Likewise.
58668         * tests/test-isnanl.h (ASSERT): Likewise.
58669         * tests/test-ldexpl.c (ASSERT): Likewise.
58670         * tests/test-linked_list.c (ASSERT): Likewise.
58671         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58672         * tests/test-localename.c (ASSERT): Likewise.
58673         * tests/test-lseek.c (ASSERT): Likewise.
58674         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58675         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58676         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58677         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58678         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58679         * tests/test-mbschr.c (ASSERT): Likewise.
58680         * tests/test-mbscspn.c (ASSERT): Likewise.
58681         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58682         * tests/test-mbspbrk.c (ASSERT): Likewise.
58683         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58684         * tests/test-mbsrchr.c (ASSERT): Likewise.
58685         * tests/test-mbsspn.c (ASSERT): Likewise.
58686         * tests/test-mbsstr1.c (ASSERT): Likewise.
58687         * tests/test-mbsstr2.c (ASSERT): Likewise.
58688         * tests/test-mbsstr3.c (ASSERT): Likewise.
58689         * tests/test-memchr2.c (ASSERT): Likewise.
58690         * tests/test-memmem.c (ASSERT): Likewise.
58691         * tests/test-open.c (ASSERT): Likewise.
58692         * tests/test-printf-frexp.c (ASSERT): Likewise.
58693         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58694         * tests/test-printf-posix.c (ASSERT): Likewise.
58695         * tests/test-quotearg.c (ASSERT): Likewise.
58696         * tests/test-rbtree_list.c (ASSERT): Likewise.
58697         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58698         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58699         * tests/test-round1.c (ASSERT): Likewise.
58700         * tests/test-roundf1.c (ASSERT): Likewise.
58701         * tests/test-roundl.c (ASSERT): Likewise.
58702         * tests/test-signbit.c (ASSERT): Likewise.
58703         * tests/test-sleep.c (ASSERT): Likewise.
58704         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58705         * tests/test-snprintf.c (ASSERT): Likewise.
58706         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58707         * tests/test-stat-time.c (ASSERT): Likewise.
58708         * tests/test-strcasestr.c (ASSERT): Likewise.
58709         * tests/test-strerror.c (ASSERT): Likewise.
58710         * tests/test-striconv.c (ASSERT): Likewise.
58711         * tests/test-striconveh.c (ASSERT): Likewise.
58712         * tests/test-striconveha.c (ASSERT): Likewise.
58713         * tests/test-strsignal.c (ASSERT): Likewise.
58714         * tests/test-strstr.c (ASSERT): Likewise.
58715         * tests/test-strtod.c (ASSERT): Likewise.
58716         * tests/test-trunc1.c (ASSERT): Likewise.
58717         * tests/test-trunc2.c (ASSERT): Likewise.
58718         * tests/test-truncf1.c (ASSERT): Likewise.
58719         * tests/test-truncf2.c (ASSERT): Likewise.
58720         * tests/test-truncl.c (ASSERT): Likewise.
58721         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58722         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58723         * tests/test-vasnprintf.c (ASSERT): Likewise.
58724         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58725         * tests/test-vasprintf.c (ASSERT): Likewise.
58726         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58727         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58728         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58729         * tests/test-vsnprintf.c (ASSERT): Likewise.
58730         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58731         * tests/test-wcwidth.c (ASSERT): Likewise.
58732         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58733         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58734         * tests/test-xvasprintf.c (ASSERT): Likewise.
58735         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58736         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58737         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58738         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58739         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58740         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58741         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58742         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58743         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58744         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58745         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58746         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58747         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58748         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58749         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58750         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58751         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58752         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58753         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58754         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58755         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58756         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58757         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58758         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58759         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58760         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58761         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58762         * tests/unictype/test-combining.c (ASSERT): Likewise.
58763         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58764         * tests/unictype/test-digit.c (ASSERT): Likewise.
58765         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58766         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58767         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58768         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58769         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58770         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58771         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58772         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58773         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58774         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58775         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58776         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58777         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58778         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58779         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58780         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58781         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58782         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58783         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58784         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58785         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58786         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58787         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58788         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58789         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58790         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58791         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58792         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58793         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58794         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58795         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58796         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58797         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58798         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58799         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58800         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58801         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58802         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58803         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58804         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58805         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58806         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58807         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58808         Reported by Eric Blake.
58809
58810 2008-04-11  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/wchar.in.h: Tweak comment.
58813
58814 2008-04-11  Bruno Haible  <bruno@clisp.org>
58815
58816         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58817         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58818         gl_COMMON.
58819         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58820
58821 2008-04-11  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58824
58825 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58826
58827         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58828         of attempting to use non-existing /dev/*random.  Based on patch
58829         from Adam Strzelecki <ono@java.pl> in
58830         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58831
58832 2008-04-08  Bruno Haible  <bruno@clisp.org>
58833
58834         Add tentative support for emx+gcc.
58835         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58836         * lib/fpurge.c (fpurge): Likewise.
58837         * lib/freadable.c (freadable): Likewise.
58838         * lib/freadahead.c (freadahead): Likewise.
58839         * lib/freading.c (freading): Likewise.
58840         * lib/freadptr.c (freadptr): Likewise.
58841         * lib/freadseek.c (freadptrinc): Likewise.
58842         * lib/fseeko.c (rpl_fseeko): Likewise.
58843         * lib/fseterr.c (fseterr): Likewise.
58844         * lib/fwritable.c (fwritable): Likewise.
58845         * lib/fwriting.c (fwriting): Likewise.
58846         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58847
58848 2008-04-09  Eric Blake  <ebb9@byu.net>
58849
58850         Avoid some autoconf warnings.
58851         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58852         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58853         * m4/afs.m4 (gl_AFS): Likewise.
58854         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58855         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58856         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58857         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58858         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58859         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58860         (AC_CHECK_DECLS_ONCE): Likewise.
58861         Rename file...
58862         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58863         gnulib-tool requires autoconf 2.59 or better.
58864         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58865
58866 2008-04-08  Eric Blake  <ebb9@byu.net>
58867
58868         Use 'git describe --match' if present (added in git 1.5.5).
58869         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58870         if possible.
58871
58872 2008-04-08  Bruno Haible  <bruno@clisp.org>
58873
58874         Add tentative support for OpenServer.
58875         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58876         _ptr, _cnt.
58877         * lib/fpurge.c (fpurge): Likewise.
58878         * lib/freadable.c (freadable): Likewise.
58879         * lib/freadahead.c (freadahead): Likewise.
58880         * lib/freading.c (freading): Likewise.
58881         * lib/freadptr.c (freadptr): Likewise.
58882         * lib/freadseek.c (freadptrinc): Likewise.
58883         * lib/fseeko.c (rpl_fseeko): Likewise.
58884         * lib/fseterr.c (fseterr): Likewise.
58885         * lib/fwritable.c (fwritable): Likewise.
58886         * lib/fwriting.c (fwriting): Likewise.
58887         Reported by Roger Cornelius <rac@tenzing.org> and
58888         Brian K. White <brian@aljex.com>.
58889
58890 2008-04-06  Jim Meyering  <meyering@redhat.com>
58891
58892         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58893
58894 2008-04-06  Bruno Haible  <bruno@clisp.org>
58895
58896         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58897         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58898         * tests/test-printf-posix.sh: Likewise.
58899         * tests/test-vfprintf-posix.sh: Likewise.
58900         * tests/test-vprintf-posix.sh: Likewise.
58901         * tests/test-xprintf-posix.sh: Likewise.
58902
58903 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58904
58905         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58906         hide error from 'ls', needed on OS/2.
58907         Report by Elbert Pol <elbert.pol@gmail.com>.
58908
58909 2008-04-04  Eric Blake  <ebb9@byu.net>
58910
58911         Make test-fseeko.c failures meaningful.
58912         * tests/test-fseeko.c: Print line number on failure.
58913         * tests/test-fseek.c: Likewise.
58914         Reported by Nelson H. F. Beebe.
58915
58916         Improve strtod bug detection check.
58917         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58918         required for Solaris 10.
58919         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58920
58921 2008-04-04  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58924         by m4/setenv.m4.
58925
58926 2008-04-03  Eric Blake  <ebb9@byu.net>
58927
58928         Ensure sane .version contents.
58929         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58930         version string.
58931         * build-aux/git-version-gen: Improve documentation.
58932
58933         Make GNU make output nicer.
58934         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58935         MAKECMDGOALS to enforce message for all command line targets.  Set
58936         srcdir for use in maint.mk.
58937
58938         Another maintainer tweak.
58939         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58940         a target that regenerates version.
58941
58942 2008-04-03  Jim Meyering  <meyering@redhat.com>
58943
58944         vc-list-files: don't cause coreutils "make po-check" failure
58945         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58946
58947 2008-04-03  Eric Blake  <ebb9@byu.net>
58948
58949         Allow VPATH usage of vc-list-files.
58950         * build-aux/vc-list-files (scriptversion): Add timestamp.
58951         (options): Add --help, --version, -C.
58952         (CVS): Support installed cvsu.
58953
58954 2008-04-02  Bruno Haible  <bruno@clisp.org>
58955
58956         Avoid some "statement with no effect" warnings from gcc.
58957         * tests/test-wctype.c (main): Explicitly ignore unused values.
58958         Reported by Jim Meyering.
58959
58960 2008-04-02  Jim Meyering  <meyering@redhat.com>
58961
58962         Avoid some warnings from "gcc -Wshadow".
58963         * tests/test-frexp.c (exp): Define to a different identifier.
58964         * tests/test-frexpl.c (exp): Likewise.
58965
58966 2008-04-03  Jim Meyering  <meyering@redhat.com>
58967
58968         bootstrap: remove dangling *.[ch] symlinks from lib
58969         * build-aux/bootstrap [dangling symlink removal]: Move find's
58970         -depth option to precede all others, to avoid a warning.
58971         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58972
58973 2008-04-02  Bruno Haible  <bruno@clisp.org>
58974
58975         Avoid some warnings from "gcc -Wshadow".
58976         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58977         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58978         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58979         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58980         Reported by Jim Meyering.
58981
58982 2008-04-01  Bruno Haible  <bruno@clisp.org>
58983
58984         Fix test to work on IRIX 6.5 with cc.
58985         * tests/test-math.c (numeric_equal): New function.
58986         (main): Use it.
58987
58988 2008-04-01  Bruno Haible  <bruno@clisp.org>
58989
58990         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58991
58992 2008-04-01  Bruno Haible  <bruno@clisp.org>
58993
58994         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58996         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58997         (Depends-on): Remove math.
58998
58999         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59000         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59001         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59002         (Depends-on): Remove math.
59003
59004         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59005         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59006         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59007         (Depends-on): Remove math.
59008         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59009         (Depends-on): Remove math.
59010
59011         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59012         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59013         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59014         (Depends-on): Remove math.
59015         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59016         (Depends-on): Remove math.
59017
59018         * tests/test-round1.c: Include nan.h.
59019         (main): Use NaNd instead of NAN.
59020         * modules/round-tests (Files): Add tests/nan.h.
59021
59022         * tests/test-trunc1.c: Include nan.h.
59023         (main): Use NaNd instead of NAN.
59024         * modules/trunc-tests (Files): Add tests/nan.h.
59025
59026         * tests/test-roundf1.c: Include nan.h.
59027         (main): Use NaNf instead of NAN.
59028         * modules/roundf-tests (Files): Add tests/nan.h.
59029
59030         * tests/test-truncf1.c: Include nan.h.
59031         (main): Use NaNf instead of NAN.
59032         * modules/truncf-tests (Files): Add tests/nan.h.
59033
59034         * tests/test-ceilf1.c: Include nan.h.
59035         (main): Use NaNf instead of NAN.
59036         * modules/ceilf-tests (Files): Add tests/nan.h.
59037
59038         * tests/test-floorf1.c: Include nan.h.
59039         (main): Use NaNf instead of NAN.
59040         * modules/floorf-tests (Files): Add tests/nan.h.
59041
59042         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59043         (main): Use NaNf instead of NAN.
59044         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59045
59046         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59047         (main): Use NaNd instead of NAN.
59048         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59049
59050         * tests/test-frexp.c: Include nan.h.
59051         (main): Use NaNd instead of NAN.
59052         * modules/frexp-tests (Files): Add tests/nan.h.
59053
59054         * lib/isnan.c: Don't include <math.h>.
59055         (FUNC): Don't use NAN macro.
59056         * modules/isnand-nolibm (Depends-on): Remove math.
59057         * modules/isnanf-nolibm (Depends-on): Remove math.
59058         * modules/isnanl (Depends-on): Remove math.
59059         * modules/isnanl-nolibm (Depends-on): Remove math.
59060
59061         * tests/nan.h: New file.
59062
59063 2008-04-01  Eric Blake  <ebb9@byu.net>
59064
59065         Fix typos.
59066         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59067         values to be the right type.
59068
59069         For now, cater to gnulib strtod inaccuracies.
59070         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59071         fractional results.  While not as nice from a QoI perspective, it
59072         is a quicker patch than correctly implementing decimal to binary
59073         rounding.
59074
59075 2008-03-31  Eric Blake  <ebb9@byu.net>
59076
59077         Guarantee a definition of NAN.
59078         * lib/math.in.h (NAN): Define if missing.
59079         * tests/test-math.c (main): Test it.
59080         * doc/posix-headers/math.texi (math.h): Document this.
59081         * lib/isnan.c (rpl_isnand): Use it.
59082         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59083         * tests/test-floorf1.c (NaN): Likewise.
59084         * tests/test-frexp.c (NaN): Likewise.
59085         * tests/test-isnand.c (NaN): Likewise.
59086         * tests/test-isnanf.c (NaN): Likewise.
59087         * tests/test-round1.c (NaN): Likewise.
59088         * tests/test-roundf1.c (NaN): Likewise.
59089         * tests/test-snprintf-posix.h (NaN): Likewise.
59090         * tests/test-sprintf-posix.h (NaN): Likewise.
59091         * tests/test-trunc1.c (NaN): Likewise.
59092         * tests/test-truncf1.c (NaN): Likewise.
59093         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59094         * tests/test-vasprintf-posix.c (NaN): Likewise.
59095         * modules/isnand-nolibm (Depends-on): Add math.
59096         * modules/isnanf-nolibm (Depends-on): Likewise.
59097         * modules/isnanl (Depends-on): Likewise.
59098         * modules/isnanl-nolibm (Depends-on): Likewise.
59099         * modules/snprintf-posix-tests (Depends-on): Likewise.
59100         * modules/sprintf-posix-tests (Depends-on): Likewise.
59101         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59102         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59103         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59104         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59105
59106 2008-03-31  Bruno Haible  <bruno@clisp.org>
59107
59108         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59109         * doc/posix-functions/strtod.texi: Likewise.
59110
59111 2008-03-31  Bruno Haible  <bruno@clisp.org>
59112
59113         * tests/test-strtod.c (main): Don't use C99 syntax.
59114
59115 2008-03-31  Bruno Haible  <bruno@clisp.org>
59116
59117         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59118         Reported by Eric Blake.
59119
59120 2008-03-31  Jim Meyering  <meyering@redhat.com>
59121
59122         Don't compare actual signbit return values.
59123         * tests/test-strtod.c (main): Rather, compare only their
59124         zero/non-zero nature.
59125
59126 2008-03-31  Eric Blake  <ebb9@byu.net>
59127
59128         More strtod documentation.
59129         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59130         failures as distinct bugs.
59131
59132 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59133
59134         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59135         Problem reported by Erik Benada in
59136         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59137
59138 2008-03-30  Bruno Haible  <bruno@clisp.org>
59139
59140         * tests/test-strtod.c: Add comments about which assertion fails on which
59141         platform.
59142         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59143
59144 2008-03-30  Eric Blake  <ebb9@byu.net>
59145
59146         Test signbit behavior on zeros.
59147         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59148         (test_signbitd, test_signbitl): Likewise.
59149
59150         More strtod touchups.
59151         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59152         sign of negative underflow, for now.  Use .5, not .1.
59153         * doc/posix-functions/strtod.texi (strtod): Mention these
59154         limitations.
59155         Reported by Jim Meyering.
59156
59157 2008-03-30  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59160         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59161
59162 2008-03-30  Bruno Haible  <bruno@clisp.org>
59163
59164         Avoid failure when attempting to return empty iconv results on some
59165         platforms.
59166         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59167         allocation, don't report ENOMEM when the resulting string is empty.
59168
59169 2008-03-30  Bruno Haible  <bruno@clisp.org>
59170
59171         Fix buffer overrun.
59172         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59173         Don't consider the width for tmp_length. Check count against tmp_length
59174         before doing the padding. Ensure enough allocation during padding.
59175
59176 2008-03-30  Eric Blake  <ebb9@byu.net>
59177
59178         strtod touchups.
59179         * lib/strtod.c (strtod): Avoid compiler warnings.
59180         Reported by Jim Meyering.
59181
59182 2008-03-30  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59185         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59186         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59187         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59188         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59189         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59190         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59191         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59192
59193         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59194         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59195         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59196         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59197         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59198         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59199         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59200         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59201
59202         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59203         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59204         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59205         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59206         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59207         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59208         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59209         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59210
59211         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59212         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59213
59214         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59215         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59216
59217         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59218         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59219
59220         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59222         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59223
59224         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59226         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59227
59228         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59230         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59231
59232         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59234         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59235
59236         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59237         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59239         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59240         (Depends-on): Add EOVERFLOW.
59241         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59242         (Depends-on): Add EOVERFLOW.
59243         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59244         (Depends-on): Add EOVERFLOW.
59245         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59246         (Depends-on): Add EOVERFLOW.
59247         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59248         (Depends-on): Add EOVERFLOW.
59249         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59250         (Depends-on): Add EOVERFLOW.
59251         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59252         (Depends-on): Add EOVERFLOW.
59253         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59254         (Depends-on): Add EOVERFLOW.
59255
59256         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59258         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59259
59260         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59262         * modules/snprintf (Depends-on): Add EOVERFLOW.
59263
59264         * lib/poll.c (EOVERFLOW): Remove fallback.
59265         * modules/poll (Depends-on): Add EOVERFLOW.
59266
59267         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59268         * modules/getugroups (Depends-on): Add EOVERFLOW.
59269
59270         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59271         * modules/getdelim (Depends-on): Add EOVERFLOW.
59272
59273         * lib/ftell.c (EOVERFLOW): Remove fallback.
59274         * modules/ftell (Depends-on): Add EOVERFLOW.
59275
59276         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59278         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59279
59280         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59281
59282         * modules/EOVERFLOW-tests: New file.
59283         * tests/test-EOVERFLOW.c: New file.
59284
59285         * modules/EOVERFLOW: New file.
59286         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59287
59288 2008-03-30  Bruno Haible  <bruno@clisp.org>
59289
59290         Fix bug introduced on 2007-06-10.
59291         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59292         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59293
59294 2008-03-30  Bruno Haible  <bruno@clisp.org>
59295
59296         Improve freadseek's efficiency after ungetc.
59297         * lib/freadseek.c: Include freadahead.h.
59298         (freadptrinc): New function, extracted from freadseek.
59299         (freadseek): Use it in a loop. Use freadahead to determine the number
59300         of loop iterations.
59301         * modules/freadseek (Depends-on): Add freadahead.
59302         (configure.ac): Require AC_C_INLINE.
59303
59304 2008-03-30  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/freadseek.c (freadseek): Don't ignore the return value of
59307         freadptr.
59308
59309 2008-03-29  Eric Blake  <ebb9@byu.net>
59310
59311         Add hex float support.
59312         * modules/strtod (Depends-on): Add c-ctype.
59313         (Link): Mention POW_LIB.
59314         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59315         whitespace between 'e' and exponent.
59316         * tests/test-strtod.c (main): Enable hex float tests.
59317         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59318         now provides.
59319
59320         Document various strtod bugs, with some fixes.
59321         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59322         "-0x", "inf", "nan", and hex constants.
59323         * doc/posix-functions/atof.texi (atof): Likewise.
59324         * modules/stdlib (Makefile.am): Support strtod.
59325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59326         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59327         detect additional strtod bugs.
59328         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59329         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59330         bool where appropriate.  Parse 'inf' and 'nan'.
59331         * tests/test-strtod.c: New file.
59332         * modules/strtod (Depends-on): Add stdbool, stdlib.
59333         (configure.ac): Turn on module indicator.
59334         * modules/strtod-tests: New module.
59335
59336 2008-03-29  Eric Blake  <ebb9@byu.net>
59337
59338         Fix ftell on mingw.
59339         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59340         * modules/ftell-tests (Depends-on): Add binary-io.
59341         * modules/ftello-tests (Depends-on): Likewise.
59342         * tests/test-ftell.c (main): Enhance test to cover behavior after
59343         ungetc.  Enforce binary mode.
59344         * tests/test-ftello.c (main): Likewise.
59345
59346         Pass test-freadseek on cygwin.
59347         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59348         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59349         ungetc buffer.
59350
59351         * tests/test-fflush2.c (main): Fix typo.
59352
59353 2008-03-29  Bruno Haible  <bruno@clisp.org>
59354
59355         * tests/test-fflush2.c (main): Temporarily disable the contents of
59356         this test.
59357         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59358         Reported by Eric Blake.
59359
59360 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59361
59362         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59363         (GC_SHA224_DIGEST_SIZE): Add.
59364
59365         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59366         (gc_hash_digest_length): Likewise.
59367         (gc_hash_buffer): Likewise.
59368
59369 2008-03-25  Bruno Haible  <bruno@clisp.org>
59370
59371         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59372         detail which gettext release to use.
59373         Reported by Simon Josefsson.
59374
59375 2008-03-26  Jim Meyering  <meyering@redhat.com>
59376
59377         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59378         * modules/gnumakefile (clean-GNUmakefile): Also, use
59379         test ... && ... || : syntax rather than if-then ... fi.
59380
59381         gnumakefile: Don't double-quote-expand $(VPATH) value.
59382         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59383
59384 2008-03-24  Eric Blake  <ebb9@byu.net>
59385
59386         Alter GNUmakefile to install into top directory.
59387         * modules/maintainer-makefile: Split, and add dependency...
59388         * modules/gnumakefile: to this new module.
59389         * build-aux/GNUmakefile: Move...
59390         * top/GNUmakefile: ...here.
59391         * build-aux/maint.mk: Move...
59392         * top/maint.mk: ...here.
59393         * MODULES.html.sh (Support for maintaining...): Document new
59394         module.
59395
59396 2008-03-23  Bruno Haible  <bruno@clisp.org>
59397
59398         * gnulib-tool: New options --vc-files, --no-vc-files.
59399         (func_usage): Document them.
59400         (vc_files): New variable.
59401         (func_import): Consider vc_files.
59402         (func_create_testdir): Set vc_files to empty.
59403         Suggested by Jim Meyering and Karl Berry.
59404
59405 2008-03-23  Bruno Haible  <bruno@clisp.org>
59406
59407         Fix regex compilation error on HP-UX 11.
59408         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59409         * modules/regex (Files): Add m4/mbstate_t.m4.
59410         Reported by Ton Voon <ton.voon@altinity.com>.
59411
59412 2008-03-23  Bruno Haible  <bruno@clisp.org>
59413
59414         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59415
59416 2008-03-23  Eric Blake  <ebb9@byu.net>
59417             Bruno Haible  <bruno@clisp.org>
59418
59419         Install files from top/ in the destination directory.
59420         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59421         augmentation also for the files from top/.
59422         (func_import, func_create_testdir): Rewrite file names:
59423         top/filename -> filename.
59424
59425 2008-03-23  Bruno Haible  <bruno@clisp.org>
59426
59427         Tweak "gnulib --version" output.
59428         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59429
59430 2008-03-23  Bruno Haible  <bruno@clisp.org>
59431
59432         Tweak "gnulib --version" output.
59433         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59434         rather than contents of ChangeLog, when possible.
59435
59436 2008-03-21  Eric Blake  <ebb9@byu.net>
59437
59438         More --version tweaks.
59439         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59440         date of last ChangeLog entry.
59441
59442 2008-03-21  Jim Meyering  <meyering@redhat.com>
59443
59444         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59445
59446 2008-03-20  Eric Blake  <ebb9@byu.net>
59447
59448         VPATH fix.
59449         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59450
59451 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59452
59453         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59454         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59455
59456 2008-03-20  Eric Blake  <ebb9@byu.net>
59457
59458         Sync GNUmakefile with coreutils.
59459         * build-aux/GNUmakefile (have-Makefile): Rename...
59460         (_have-Makefile): ...to this, for namespace consideration.
59461         (GNUmakefile.cfg): Include, if present.
59462         (_autoreconf): Define a default.
59463         (_is-dist-target): New rule for rebuilds to pick up intra-release
59464         version.
59465         (maint-cfg.mk): Rename...
59466         (cfg.mk): ...to this.
59467
59468 2008-03-18  Jim Meyering  <meyering@redhat.com>
59469
59470         New script and module: mktempd
59471         * MODULES.html.sh (maint+release support): Add mktempd.
59472         * build-aux/mktempd: New file.
59473         * modules/mktempd: New file.
59474
59475 2008-03-15  Jim Meyering  <meyering@redhat.com>
59476
59477         Undo last change.
59478         * lib/sha1.c, lib/md5.c: 63 != ~63.
59479         Reported by Andreas Schwab.
59480
59481         sha1.c, md5.c: Hoist a redundant expression.
59482         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59483         "ctx->buflen" only once, before calling *_process_block.
59484         * lib/md5.c (md5_process_bytes): Likewise.
59485
59486 2008-03-14  Eric Blake  <ebb9@byu.net>
59487
59488         Bump copyright year in files generated by gnulib-tool.
59489         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59490         gnulib-tool, rather than hard-coding it.
59491
59492         Fix 'gnulib-tool --version' output to work with git.
59493         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59494         (startup): ...here.
59495         (func_version): Use it to invoke git-version-gen, rather than
59496         relying on CVS keyword expansion.  Modernize wording.
59497         (cvsdatestamp, last_checkin_date, version): Kill unused
59498         variables.
59499
59500 2008-03-12  Jim Meyering  <meyering@redhat.com>
59501
59502         Recognize optional cast of the argument to free.
59503         * build-aux/useless-if-before-free: Update regexps.
59504
59505         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59506
59507 2008-03-11  Bruno Haible  <bruno@clisp.org>
59508
59509         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59510         by a single package.
59511         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59512         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59513         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59514         Reported by Sam Steingold <sds@gnu.org>.
59515
59516 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59517
59518         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59519         repositories.
59520
59521 2008-03-11  Bruno Haible  <bruno@clisp.org>
59522
59523         Avoid conflicts between local macro definitions.
59524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59525         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59526
59527 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59528             Bruno Haible  <bruno@clisp.org>
59529
59530         Make va_copy work with some version of xlc on AIX 5.1.
59531         * lib/stdarg.in.h: New file.
59532         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59533         On AIX, use a <stdarg.h> file substitute.
59534         * modules/stdarg (Files): Add lib/stdarg.in.h.
59535         (Depends-on): Add include_next.
59536         (Makefile.am): Build a stdarg.h substitute if requested.
59537         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59538
59539 2008-03-10  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59543         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59544
59545 2008-03-10  Bruno Haible  <bruno@clisp.org>
59546
59547         * modules/stdlib (Depends-on): Add include_next, remove
59548         absolute-header.
59549
59550 2008-03-09  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/freadahead.h (freadahead): Document more precisely.
59553         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59554         the sum of both buffer sizes.
59555         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59556         * NEWS: Document the change.
59557
59558 2008-03-09  Bruno Haible  <bruno@clisp.org>
59559
59560         Extend freadptr to return also the buffer size.
59561         * lib/freadptr.h (freadptr): Add sizep argument.
59562         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59563         (freadptr): Add sizep argument. Determine buffer size like freadahead
59564         does.
59565         * tests/test-freadptr.c: Don't include freadahead.h.
59566         (main): Adapt for new calling convention of freadptr.
59567         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59568         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59569         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59570         tests/test-freadptr2.sh.
59571         (Depends): Remove freadahead.
59572         (TESTS): Add test-freadptr2.sh.
59573         (check_PROGRAMS): Add test-freadptr2.
59574
59575 2008-03-09  Bruno Haible  <bruno@clisp.org>
59576
59577         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59578         Report and solution by Simon Josefsson.
59579
59580 2008-03-06  Bruno Haible  <bruno@clisp.org>
59581
59582         Make fflush after ungetc work on BSD platforms.
59583         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59584         * tests/test-fflush2.c: New file.
59585         * tests/test-fflush2.sh: New file.
59586         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59587         tests/test-fflush2.c.
59588         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59589         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59590
59591 2008-03-06  Eric Blake  <ebb9@byu.net>
59592
59593         Likewise for ftello.
59594         * modules/ftello (Dependencies): Add extensions.
59595         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59596
59597 2008-03-06  Bruno Haible  <bruno@clisp.org>
59598
59599         * modules/fseeko (Dependencies): Add extensions.
59600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59601         Needed on glibc systems.
59602
59603 2008-03-06  Bruno Haible  <bruno@clisp.org>
59604
59605         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59606         email address.
59607         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59608
59609 2008-03-06  Bruno Haible  <bruno@clisp.org>
59610
59611         * users.txt: Add libgnupdf.
59612
59613 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59614
59615         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59616         (Header File Substitutes, Function Substitutes,
59617         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59618         (Build robot for gnulib): Fix typo.
59619
59620 2008-03-06  Bruno Haible  <bruno@clisp.org>
59621
59622         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59623         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59624
59625 2008-03-06  Bruno Haible  <bruno@clisp.org>
59626
59627         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59628         * doc/gnulib.texi: Include it.
59629
59630 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59631
59632         * modules/func (License): Change license to unlimited; there was
59633         no LGPL parts in the module anyway.
59634
59635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59636
59637         * modules/__func__: Renamed to modules/func.
59638         * modules/__func__-tests: Renamed to modules/func-tests.
59639         * tests/test-__func__.c: Renamed to tests/test-func.c.
59640         * m4/__func__.m4: Renamed to m4/func.m4.
59641         * doc/gnulib.texi (__func__): Section renamed to func.
59642         Suggested by Eric Blake <ebb9@byu.net>.
59643
59644 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59645
59646         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59647         about __func__.  Make example self-contained.  Suggested by Eric
59648         Blake <ebb9@byu.net>.
59649
59650         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59651         Suggested by Eric Blake <ebb9@byu.net>.
59652
59653 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59654
59655         * modules/__func__: New file.
59656         * modules/__func__-tests: New file.
59657         * tests/test-__func__.c: New file.
59658         * m4/__func__.m4: New file.
59659         * doc/gnulib.texi (__func__): Document __func__ module.
59660
59661 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59662
59663         * modules/byteswap (License): Re-license as LGPLv2+.
59664
59665 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59666
59667         * doc/Makefile: Add pdf target.
59668
59669 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59670
59671         * modules/inline (License): Use 'unlimited', since there are only
59672         *.m4 files in this module.
59673
59674 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59675             Bruno Haible  <bruno@clisp.org>
59676
59677         Add support for HP C 7.1 on OpenVMS 8.3.
59678         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59679
59680 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59681
59682         Update VMS specifics.
59683         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59684
59685 2008-03-02  Jim Meyering  <meyering@redhat.com>
59686
59687         Remove the last dependency on the "free" module.
59688         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59689         Reported by Bob Proulx.
59690
59691         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59692
59693         Remove useless "if" tests before free.  Deprecate "free" module.
59694         * doc/posix-functions/free.texi: Mention that this
59695         module is no longer useful.
59696         * modules/free (Notice): Say this module is obsolete.
59697         * modules/readutmp (Depends-on): Remove free.
59698         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59699         * lib/putenv.c (putenv): Likewise.
59700         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59701         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59702         * tests/test-c-strcasestr.c (main): Likewise.
59703         * tests/test-c-strstr.c (main): Likewise.
59704         * tests/test-mbscasestr1.c (main): Likewise.
59705         * tests/test-mbscasestr2.c (main): Likewise.
59706         * tests/test-mbsstr1.c (main): Likewise.
59707         * tests/test-mbsstr2.c (main): Likewise.
59708         * tests/test-memmem.c (main): Likewise.
59709         * tests/test-strcasestr.c (main): Likewise.
59710         * tests/test-striconv.c (main): Likewise.
59711         * tests/test-striconveh.c (main): Likewise.
59712         * tests/test-striconveha.c (main): Likewise.
59713         * tests/test-strstr.c (main): Likewise.
59714
59715         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59716
59717         bootstrap: sync from coreutils again
59718         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59719
59720 2008-03-01  Jim Meyering  <meyering@redhat.com>
59721
59722         bootstrap: sync from coreutils
59723         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59724         also when the target doesn't exist.
59725
59726 2008-03-01  Eric Blake  <ebb9@byu.net>
59727
59728         Fix bugs in last patch.
59729         * lib/memchr2.c (memchr2): Fix typo.
59730         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59731         extension.
59732         Reported by Bruce Korb.
59733
59734         New module 'memchr2'.
59735         * modules/memchr2: New file.
59736         * modules/memchr2-tests: Likewise.
59737         * lib/memchr2.h: Likewise.
59738         * lib/memchr2.c: Likewise, based on memchr.c.
59739         * tests/test-memchr2.c: New test.
59740         * MODULES.html.sh (String handling): Add memchr2.
59741
59742 2008-02-29  Bruno Haible  <bruno@clisp.org>
59743
59744         * modules/freadseek-tests: New file.
59745         * tests/test-freadseek.sh: New file.
59746         * tests/test-freadseek.c: New file.
59747
59748         New module 'freadseek'.
59749         * modules/freadseek: New file.
59750         * lib/freadseek.h: New file.
59751         * lib/freadseek.c: New file.
59752         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59753
59754 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59755
59756         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59757         wydawca.
59758
59759         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59760         program_invocation_name and program_invocation_short_name are
59761         present.
59762
59763 2008-02-28  Bruno Haible  <bruno@clisp.org>
59764
59765         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59766         * tests/test-freadptr.sh: Also test non-seekable stdin.
59767
59768 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59769
59770         * build-aux/bootstrap (source_base, m4_base)
59771         (doc_base, tests_base): New variables.
59772         (gnulib_tool_options): Do not hardcode base directories, use
59773         the above variables instead.
59774
59775 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59776
59777         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59778
59779 2008-02-28  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/freadptr-tests: New file.
59782         * tests/test-freadptr.sh: New file.
59783         * tests/test-freadptr.c: New file.
59784
59785         New module 'freadptr'.
59786         * modules/freadptr: New file.
59787         * lib/freadptr.h: New file.
59788         * lib/freadptr.c: New file.
59789         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59790
59791 2008-02-26  Karl Berry  <karl@freefriends.org>
59792
59793         Sync from Libtool:
59794         * libltdl/argz.c (argz_add, argz_count): New functions.
59795         * libltdl/argz.in.h: Declare them.
59796         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59797
59798 2008-02-22  Bruno Haible  <bruno@clisp.org>
59799
59800         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59801         is a pointer type.  Needed for HP-UX 10.
59802         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59803         * doc/posix-functions/gmtime_r.texi: Likewise.
59804         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59805
59806 2008-02-24  Bruno Haible  <bruno@clisp.org>
59807
59808         * modules/environ-tests: New file.
59809         * tests/test-environ.c: New file.
59810
59811         New module 'environ'.
59812         * modules/environ: New file.
59813         * lib/unistd.in.h (environ): New declaration.
59814         * m4/environ.m4: New file.
59815         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59816         after use.
59817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59818         HAVE_DECL_ENVIRON.
59819         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59820         HAVE_DECL_ENVIRON.
59821         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59822         wrong claim that 'environ' is missing on some systems.
59823         * modules/execute (Depends-on): Add environ.
59824         * lib/execute.c (environ): Remove fallback declaration.
59825         * modules/pipe (Depends-on): Add environ.
59826         * lib/pipe.c (environ): Remove fallback declaration.
59827         * modules/setenv (Depends-on): Add environ.
59828         * lib/setenv.c (environ): Remove fallback declaration.
59829         * modules/unsetenv (Depends-on): Add environ.
59830         * lib/unsetenv.c (environ): Remove fallback declaration.
59831         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59832         m4/environ.m4.
59833         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59834         (gl_PREREQ_UNSETENV): Likewise.
59835
59836 2008-02-24  Bruno Haible  <bruno@clisp.org>
59837
59838         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59839
59840 2008-02-20  Bob Proulx  <bob@proulx.com>
59841
59842         Enable use of older two part flavor 'git describe'.
59843         * build-aux/git-version-gen: If using the older two part flavor of
59844         git version then recreate the third part now present in the
59845         newer three part flavor of git describe.
59846
59847 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59848
59849         * lib/fts.c (fts_build): Typo correction to comment.
59850
59851 2008-02-17  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59854         generating no-op conflicts.
59855
59856 2008-02-17  Bruno Haible  <bruno@clisp.org>
59857
59858         Speed up by 10%.
59859         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59860         result_entries, rather than an index-based loop.
59861
59862 2008-02-17  Bruno Haible  <bruno@clisp.org>
59863
59864         Speed up by 25%.
59865         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59866         'hashcode_cached'.
59867         (entry_create): New function.
59868         (entry_hashcode): Use the cached hashcode if possible.
59869         (read_changelog_file, try_split_merged_entry): Use entry_create.
59870
59871 2008-02-17  Bruno Haible  <bruno@clisp.org>
59872
59873         Speed up from O(n^2) to O(n) for long ChangeLog files.
59874         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59875         (read_changelog_file): Change implementation of entries_reversed list
59876         to rbtreehash.
59877         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59878
59879 2008-02-17  Bruno Haible  <bruno@clisp.org>
59880
59881         New option --split-merged-entry.
59882         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59883         (find_paragraph_end, try_split_merged_entry): New functions.
59884         (long_options): Add option --split-merged-entry.
59885         (usage): Document option --split-merged-entry.
59886         (main): Implement option --split-merged-entry.
59887         Reported by Eric Blake.
59888
59889 2008-02-17  Bruno Haible  <bruno@clisp.org>
59890
59891         * lib/git-merge-changelog.c: Include c-strstr.h.
59892         (main): Support the "git pull --rebase" situation.
59893         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59894         Reported by Eric Blake.
59895
59896 2008-02-16  Eric Blake  <ebb9@byu.net>
59897
59898         Avoid doubling \ in common case of "c-maybe" quoting style.
59899         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59900         eliding outer quotes.
59901         * lib/quotearg.h: Document this.
59902         * tests/test-quotearg.c (result_strings, inputs, results_g)
59903         (flag_results, locale_results): Test it by adding a new string to
59904         each test group.
59905         (compare_strings): Test new string.
59906
59907 2008-02-13  Eric Blake  <ebb9@byu.net>
59908
59909         Avoid trigraph quoting in default output.
59910         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59911         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59912         unless explicitly requested.
59913         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59914
59915 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59916
59917         Don't rely on signed integer overflowing to negative value.
59918         * lib/getugroups.c (getugroups): Include <limits.h>.
59919         Instead, compare against INT_MAX, and increment only if the test passes.
59920
59921 2008-02-13  Jim Meyering  <meyering@redhat.com>
59922         and Eric Blake  <ebb9@byu.net>
59923
59924         Avoid shadowing warning and compile errors on Linux.
59925         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59926         forwarding macros on Linux.
59927         (dcgettext): Define a stub, for Linux.
59928         (results_g, main): Avoid warnings.
59929
59930 2008-02-12  Eric Blake  <ebb9@byu.net>
59931
59932         Silence warning in last patch.
59933         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59934
59935         Quotearg part 4: add tests, fix c-maybe colon quoting.
59936         * lib/quotearg.h: Improve documentation.
59937         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59938         escapes when adding outer quotes.  When quoting trigraphs, use
59939         valid C notation.  When quoting NUL, omit extra characters if next
59940         character is not digit.  Alter prototype.
59941         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59942         callers.
59943         * modules/quotearg-tests: New module.
59944         * tests/test-quotearg.c: New test.
59945
59946 2008-02-07  Eric Blake  <ebb9@byu.net>
59947
59948         Quotearg part 3: add flag to control outer quote elision.
59949         * lib/quotearg.h (c_maybe_quoting_style): New style.
59950         (enum quoting_flags): Better documentation of flags.
59951         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59952         c-maybe style.
59953         (quotearg_buffer_restyled): Handle new flag to elide outer
59954         quotes.
59955
59956         Quotearg part 2: add flag that can control NUL elision.
59957         * lib/quotearg.h (set_quoting_flags): New prototype.
59958         * lib/quotearg.c (struct quoting_options): Add flag field.
59959         (set_quoting_flags): New function.
59960         (quotearg_buffer_restyled): Add flags parameter.
59961         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59962         (quotearg_n_options): Set the flag, since length cannot be
59963         returned.
59964         (quoting_options_from_style): Default flags correctly.
59965
59966         Quotearg part 1: more wrappers, restore quotearg_char state.
59967         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59968         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59969         (quotearg_colon_mem): New wrappers.
59970         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59971         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59972         functions.
59973         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59974         (quotearg_colon_mem): New functions.
59975
59976 2008-02-11  Bruno Haible  <bruno@clisp.org>
59977
59978         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59979         library in the current directory: it does not work with parallel make.
59980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59981
59982 2008-02-11  Bruno Haible  <bruno@clisp.org>
59983
59984         * .gitattributes: New file.
59985
59986 2008-02-11  Jim Meyering  <meyering@redhat.com>
59987
59988         useless-if-before-free: Fix reversed exit values.
59989         * build-aux/useless-if-before-free: Use correct values
59990         for EXIT_MATCH and EXIT_NO_MATCH.
59991
59992         * build-aux/useless-if-before-free: Close stdout carefully.
59993
59994 2008-02-10  Bruno Haible  <bruno@clisp.org>
59995
59996         New module 'git-merge-changelog'.
59997         * modules/git-merge-changelog: New file.
59998         * lib/git-merge-changelog.c: New file.
59999
60000 2008-02-10  Jim Meyering  <meyering@redhat.com>
60001
60002         useless-if-before-free: New option: --list (-l).
60003
60004         useless-if-before-free: Don't exit immediately upon open failure.
60005         * build-aux/useless-if-before-free: Exit 2 for errors.
60006         Upon failure to open a file, don't exit immediately.
60007         Rather, just warn and continue with any remaining files.
60008
60009 2008-02-10  Bruno Haible  <bruno@clisp.org>
60010
60011         New abstract list operation 'node_set_value'.
60012         * lib/gl_list.h (gl_list_node_set_value): New function.
60013         (struct gl_list_implementation): New field node_set_value.
60014         * lib/gl_list.c (gl_list_node_set_value): New function.
60015         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60016         (gl_array_list_implementation): Update.
60017         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60018         (gl_carray_list_implementation): Update.
60019         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60020         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60021         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60022         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60023         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60024         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60025         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60026         Update.
60027         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60028         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60029         (gl_sublist_list_implementation): Update.
60030
60031 2008-02-10  Bruno Haible  <bruno@clisp.org>
60032
60033         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60034         Needed when ELEMENT is #defined to 'some_type *'.
60035
60036 2008-02-10  Jim Meyering  <meyering@redhat.com>
60037
60038         New script and module: useless-if-before-free
60039         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60040         * build-aux/useless-if-before-free: New file.
60041         * modules/useless-if-before-free: New file.
60042
60043         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60044
60045         xstrtol_error: Fix typo.
60046         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60047         s/exit_failure/exit_status/.
60048
60049 2008-02-09  Jim Meyering  <meyering@redhat.com>
60050
60051         New script and module: gitlog-to-changelog
60052         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60053         * modules/gitlog-to-changelog: New file.
60054         * build-aux/gitlog-to-changelog: New file.
60055
60056 2008-02-08  Jim Meyering  <meyering@redhat.com>
60057
60058         Avoid two "parameter unused" warnings.
60059         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60060         Mark "st" as used.
60061
60062         Use "git COMMAND", not "git-COMMAND".
60063         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60064         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60065         * build-aux/git-version-gen: Use "git status", not "git-status".
60066
60067 2008-02-07  Bruno Haible  <bruno@clisp.org>
60068
60069         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60070         Avoids a crash on Windows Vista.
60071         Reported by Adam Strzelecki <ono@java.pl> via
60072         Simon Josefsson <simon@josefsson.org>.
60073
60074 2008-02-06  Bruno Haible  <bruno@clisp.org>
60075
60076         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60077         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60078         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60080         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60082         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60083         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60084         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60085         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60087         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60088         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60089         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60090         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60091         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60092         left-adjust flag.
60093         * tests/test-snprintf-posix.h (test_function): Likewise.
60094         * tests/test-sprintf-posix.h (test_function): Likewise.
60095         * tests/test-vasprintf-posix.c (test_function): Likewise.
60096         * doc/posix-functions/fprintf.texi: Update.
60097         * doc/posix-functions/printf.texi: Update.
60098         * doc/posix-functions/snprintf.texi: Update.
60099         * doc/posix-functions/sprintf.texi: Update.
60100         * doc/posix-functions/vfprintf.texi: Update.
60101         * doc/posix-functions/vprintf.texi: Update.
60102         * doc/posix-functions/vsnprintf.texi: Update.
60103         * doc/posix-functions/vsprintf.texi: Update.
60104         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60105
60106 2008-02-06  Bruno Haible  <bruno@clisp.org>
60107
60108         Fix bug introduced on 2008-01-26.
60109         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60110
60111 2008-02-06  Bruno Haible  <bruno@clisp.org>
60112
60113         Fix bug introduced on 2007-06-10.
60114         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60115         !NEED_PRINTF_FLAG_ZERO.
60116
60117 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60118
60119         getloadavg: use libperfstat on AIX5
60120         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60121
60122 2008-02-03  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/diffseq.h: Add comments about required #includes.
60125         Reported by Michael Biggs <gnulib@doubleplum.net>.
60126
60127 2008-02-01  Bruno Haible  <bruno@clisp.org>
60128
60129         * users.txt: Add gnuit.
60130
60131 2008-01-31  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/md4.c (set_uint32): Mark as inline.
60134         * lib/md5.c (set_uint32): Likewise.
60135         * lib/sha1.c (set_uint32): Likewise.
60136         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60137         * m4/md5.m4 (gl_MD5): Likewise.
60138         * m4/sha1.m4 (gl_SHA1): Likewise.
60139
60140 2008-01-31  Jim Meyering  <meyering@redhat.com>
60141
60142         Use "sizeof VAR", rather than a literal "4".
60143         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60144         * lib/md4.c (md4_read_ctx): Likewise.
60145         * lib/sha1.c (sha1_read_ctx): Likewise.
60146
60147 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60148
60149         * tests/test-sha1.c: New file, based on test-md5.c.
60150
60151         * modules/crypto/sha1-tests: New file.
60152
60153 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60154
60155         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60156
60157 2008-01-31  Jim Meyering  <meyering@redhat.com>
60158
60159         Prefer "sizeof v" over the equivalent "4".
60160         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60161         * lib/md5.c (set_uint32): Likewise.
60162         * lib/sha1.c (set_uint32): Likewise.
60163
60164 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60165
60166         * lib/sha1.c (set_uint32): Mark function as static.
60167
60168 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60169
60170         md2: clarify comments to say that alignment is not required.
60171         * lib/md2.h: Remove warning about alignment in comment.
60172         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60173         never been required.
60174
60175 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60176
60177         md4: adapt alignment constraint fix from sha1.
60178         * lib/md4.c (set_uint32): New function, from sha1.c
60179         (md4_read_ctx): Use it.
60180         (md4_finish_ctx): Doc fix.
60181         * lib/md4.h: Doc fix.
60182
60183 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60184
60185         md5: adapt alignment constraint fix from sha1.
60186         * lib/md5.c (set_uint32): New function, from sha1.c
60187         (md5_read_ctx): Use it.
60188         (md5_finish_ctx): Doc fix.
60189         * lib/md5.h: Doc fix.
60190
60191 2008-01-30  Peter Palfrader  <weasel@debian.org>
60192
60193         sha1: remove the result buffer alignment constraint
60194         * lib/sha1.c (set_uint32): New function.
60195         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60196         constraint.
60197         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60198         * lib/sha1.h: Likewise.
60199
60200 2008-01-30  Andreas Schwab  <schwab@suse.de>
60201             Bruno Haible  <bruno@clisp.org>
60202
60203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60204         correct definition of LDBL_MIN_EXP.
60205
60206 2008-01-30  Karl Berry  <karl@gnu.org>
60207
60208         * config/srclist-update: try to preserve x bit on updates.
60209         * config/srclistvars.sh: update for karl.
60210
60211 2008-01-29  Jim Meyering  <meyering@redhat.com>
60212
60213         vasnprintf.c: Avoid warning about unused label
60214         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60215         "overflow" label definition and associated code with the
60216         same cpp condition that guards the sole use of that label.
60217
60218 2008-01-26  Bruno Haible  <bruno@clisp.org>
60219
60220         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60221         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60222         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60223         * lib/isnanl-nolibm.h (isnanl): Likewise.
60224         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60225
60226 2008-01-26  Bruno Haible  <bruno@clisp.org>
60227
60228         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60229         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60230
60231 2008-01-26  Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60234         GCC >= 4.0 built-in.
60235         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60236
60237 2008-01-26  Bruno Haible  <bruno@clisp.org>
60238
60239         Rename isnan, applicable to 'double' only, to isnand.
60240         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60241         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60242         (configure.ac): Update.
60243         (Include): Replace "isnan.h" with "isnand.h".
60244         * m4/isnand.m4: Renamed from m4/isnan.m4.
60245         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60246         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60247         instead of isnan.c.
60248         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60249         instead of HAVE_ISNAN_IN_LIBC.
60250         (isnand): Renamed from isnan.
60251         * lib/isnand.c: New file.
60252         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60253         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60254         (Makefile.am): Update.
60255         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60256         Include isnand.h instead of isnan.h.
60257         (main): Test isnand instead of isnan.
60258         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60259         isnan-nolibm.
60260         * modules/frexp (Depends-on): Likewise.
60261         * modules/frexp-tests (Depends-on): Likewise.
60262         * modules/frexp-nolibm (Depends-on): Likewise.
60263         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60264         * modules/isfinite (Depends-on): Likewise.
60265         * modules/round-tests (Depends-on): Likewise.
60266         * modules/signbit (Depends-on): Likewise.
60267         * modules/signbit-tests (Depends-on): Likewise.
60268         * modules/snprintf-posix (Depends-on): Likewise.
60269         * modules/sprintf-posix (Depends-on): Likewise.
60270         * modules/trunc-tests (Depends-on): Likewise.
60271         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60273         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60276         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60278         * modules/vasnprintf-posix (Depends-on): Likewise.
60279         * modules/vasprintf-posix (Depends-on): Likewise.
60280         * modules/vfprintf-posix (Depends-on): Likewise.
60281         * modules/vsnprintf-posix (Depends-on): Likewise.
60282         * modules/vsprintf-posix (Depends-on): Likewise.
60283         * lib/frexp.c: Include isnand.h instead of isnan.h.
60284         (ISNAN): Set to isnand instead of isnan.
60285         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60286         (gl_isfinited): Use isnand instead of isnan.
60287         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60288         (gl_signbitd): Use isnand instead of isnan.
60289         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60290         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60291         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60292         (main): Use isnand instead of isnan.
60293         * tests/test-round1.c: Include isnand.h.
60294         (main): Use isnand instead of isnan.
60295         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60296         (ISNAN): Set to isnand instead of isnan.
60297         * tests/test-trunc1.c: Include isnand.h.
60298         (main): Use isnand instead of isnan.
60299         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60300         (equal): Use isnand instead of isnan.
60301         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60302         isnand-nolibm.
60303         * NEWS: Mention the change.
60304
60305 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60306             Bruno Haible  <bruno@clisp.org>
60307
60308         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60309         the GCC builtins for signbits are present and set
60310         REPLACE_SIGNBIT_USING_GCC if so.
60311         * lib/math.in.h (signbit): Define using GCC builtins if
60312         REPLACE_SIGNBIT_USING_GCC is set.
60313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60314         REPLACE_SIGNBIT_USING_GCC.
60315         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60316
60317 2008-01-25  Jim Meyering  <meyering@redhat.com>
60318
60319         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60320         * lib/poll.c: Include <config.h>, not "config.h".
60321         * tests/test-getaddrinfo.c: Likewise.
60322
60323 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60324
60325         * modules/sockets-tests: New file.
60326
60327 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60328
60329         * modules/sockets: New module, can be used to call WSA_Startup and
60330         WSA_Cleanup when needed.
60331
60332         * lib/sockets.h, lib/sockets.c: New files.
60333
60334         * m4/sockets.m4: New file.
60335
60336         * tests/test-sockets.c: New file.
60337
60338 2008-01-19  Bruno Haible  <bruno@clisp.org>
60339
60340         * doc/posix-headers: Renamed from doc/headers.
60341         * doc/posix-functions: Renamed from doc/functions.
60342         * doc/gnulib.texi: Update.
60343
60344 2008-01-19  Bruno Haible  <bruno@clisp.org>
60345
60346         * doc/glibc-functions/strcasestr.texi: Include contents of
60347         doc/functions/strcasestr.texi, fixing the list of platforms.
60348         * doc/functions/strcasestr.texi: Remove file.
60349
60350 2008-01-19  Bruno Haible  <bruno@clisp.org>
60351
60352         * doc/glibc-functions/memmem.texi: Include contents of
60353         doc/functions/memmem.texi.
60354         * doc/functions/memmem.texi: Remove file.
60355
60356 2008-01-18  Bruno Haible  <bruno@clisp.org>
60357
60358         * doc/glibc-functions/*.texi: New files.
60359         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60360         to use the new files.
60361
60362 2008-01-17  Bruno Haible  <bruno@clisp.org>
60363
60364         * tests/test-gethostname.c (main): Fix printf statement.
60365
60366 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60367
60368         * modules/gethostname-tests: New file.
60369
60370         * tests/test-gethostname.c: New file.
60371
60372 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60373
60374         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60375         used by the UNAME case.  Reported by Bruno Haible
60376         <bruno@clisp.org>.
60377
60378 2008-01-17  Eric Blake  <ebb9@byu.net>
60379
60380         Convert c-strcasestr to be more efficient.
60381         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60382         (Depends-on): Add c-strcase, remove malloca, strnlen.
60383         * tests/test-c-strcasestr.c (main): Enhance test.
60384         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60385
60386 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60387
60388         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60389         Use it in creating po/Makevars.
60390
60391 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60392
60393         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60394         Applications that requires it should initialize libgcrypt
60395         manually.
60396
60397 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60398
60399         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60400
60401 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         Fix problem with getdate on mingw32 reported by Simon Josefsson
60404         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60405         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60406         tzname", when deciding whether to declare tzname.
60407         * lib/strftime.c (tzname): Likewise.
60408
60409 2008-01-15  Bruno Haible  <bruno@clisp.org>
60410
60411         Work around a MacOS X 10.5 bug in frexpl().
60412         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60413         * doc/functions/frexpl.texi: Document the bug.
60414         Reported by Elias Pipping <pipping@gentoo.org>.
60415
60416 2008-01-14  Eric Blake  <ebb9@byu.net>
60417
60418         Touch up previous patch.
60419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60420         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60421
60422         Convert strcasestr module to use Two-Way algorithm.
60423         * modules/strcasestr-simple: New module, based on the old
60424         strcasestr, but with Two-Way rather than KMP.
60425         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60426         * lib/string.in.h (rpl_strcasestr): Declare.
60427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60428         performance.
60429         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60430         * modules/string (Makefile.am): Support strcasestr.
60431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60432         * modules/strcasestr-tests (Depends-on): Check for alarm.
60433         * tests/test-strcasestr.c: Augment test.
60434         * lib/str-two-way.h: Clean up stray macro.
60435         * NEWS: Document new module.
60436         * MODULES.html.sh (string handling): Likewise.
60437         * doc/functions/strcasestr.texi: New file.
60438         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60439         here, since it is not a POSIX function.
60440
60441 2008-01-14  Colin Watson  <cjwatson@debian.org>
60442             Bruno Haible  <bruno@clisp.org>
60443
60444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60445         works fine; if not, set REPLACE_STRSIGNAL.
60446         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60448         REPLACE_STRSIGNAL.
60449         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60450         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60451         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60452
60453 2008-01-14  Bruno Haible  <bruno@clisp.org>
60454
60455         * modules/strsignal (Include): Change to <string.h>.
60456
60457 2008-01-14  Colin Watson  <cjwatson@debian.org>
60458
60459         * modules/argp (Notice): Add a notice recommending to change
60460         XGETTEXT_OPTIONS.
60461         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60462
60463 2008-01-13  Colin Watson  <cjwatson@debian.org>
60464
60465         * modules/strsignal-tests: New file.
60466         * tests/test-strsignal.c: New file.
60467
60468         * lib/strsignal.c: New file, from glibc with modifications.
60469         * lib/siglist.h: New file, from glibc with modifications.
60470         * lib/string.in.h (strsignal): New declaration.
60471         * m4/strsignal.m4: New file.
60472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60473         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60474         * modules/strsignal: New file.
60475         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60476         HAVE_DECL_STRSIGNAL.
60477
60478 2008-01-13  Bruno Haible  <bruno@clisp.org>
60479
60480         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60481         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60482         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60484
60485 2008-01-13  Bruno Haible  <bruno@clisp.org>
60486
60487         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60488         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60489         * lib/argp.h (__attribute__): Likewise.
60490         * lib/c-stack.c (__attribute__): Likewise.
60491         * lib/error.h (__attribute__): Likewise.
60492         * lib/fts.c (__attribute__): Likewise.
60493         * lib/openat.h (__attribute__): Likewise.
60494         * lib/stdio.in.h (__attribute__): Likewise.
60495         * lib/string.in.h (__attribute__): Likewise.
60496         * lib/utimens.c (__attribute__): Likewise.
60497         * lib/vasnprintf.h (__attribute__): Likewise.
60498         * lib/xalloc.h (__attribute__): Likewise.
60499         * lib/xprintf.h (__attribute__): Likewise.
60500         * lib/xstrtol.h (__attribute__): Likewise.
60501         * lib/xvasprintf.h (__attribute__): Likewise.
60502
60503 2008-01-12  Bruno Haible  <bruno@clisp.org>
60504
60505         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60506         * doc/glibc-headers/a.out.texi: New file.
60507         * doc/glibc-headers/aliases.texi: New file.
60508         * doc/glibc-headers/alloca.texi: New file.
60509         * doc/glibc-headers/ar.texi: New file.
60510         * doc/glibc-headers/argp.texi: New file.
60511         * doc/glibc-headers/argz.texi: New file.
60512         * doc/glibc-headers/byteswap.texi: New file.
60513         * doc/glibc-headers/crypt.texi: New file.
60514         * doc/glibc-headers/endian.texi: New file.
60515         * doc/glibc-headers/envz.texi: New file.
60516         * doc/glibc-headers/err.texi: New file.
60517         * doc/glibc-headers/error.texi: New file.
60518         * doc/glibc-headers/execinfo.texi: New file.
60519         * doc/glibc-headers/fpu_control.texi: New file.
60520         * doc/glibc-headers/fstab.texi: New file.
60521         * doc/glibc-headers/fts.texi: New file.
60522         * doc/glibc-headers/getopt.texi: New file.
60523         * doc/glibc-headers/ieee754.texi: New file.
60524         * doc/glibc-headers/ifaddrs.texi: New file.
60525         * doc/glibc-headers/libintl.texi: New file.
60526         * doc/glibc-headers/mcheck.texi: New file.
60527         * doc/glibc-headers/mntent.texi: New file.
60528         * doc/glibc-headers/obstack.texi: New file.
60529         * doc/glibc-headers/paths.texi: New file.
60530         * doc/glibc-headers/printf.texi: New file.
60531         * doc/glibc-headers/pty.texi: New file.
60532         * doc/glibc-headers/resolv.texi: New file.
60533         * doc/glibc-headers/shadow.texi: New file.
60534         * doc/glibc-headers/sysexits.texi: New file.
60535         * doc/glibc-headers/ttyent.texi: New file.
60536
60537 2008-01-12  Jim Meyering  <meyering@redhat.com>
60538
60539         announce-gen: emit Gnulib's git-based version string.
60540         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60541         New option --gnulib-version=V, where V is expected to be
60542         the output of running git describe in the gnulib directory.
60543         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60544         not useful, and plan to stop publishing an xdelta file with each
60545         coreutils release.
60546
60547         * build-aux/announce-gen: Also check for lzma-compressed files.
60548
60549 2008-01-11  Bruno Haible  <bruno@clisp.org>
60550
60551         * tests/test-memmem.c (main): Increase maximum allowed time.
60552         * tests/test-strstr.c (main): Likewise.
60553
60554 2008-01-11  Bruno Haible  <bruno@clisp.org>
60555
60556         * doc/functions/memmem.texi: Add more precisions about platforms.
60557         * doc/functions/strstr.texi: Likewise.
60558
60559 2008-01-10  Eric Blake  <ebb9@byu.net>
60560
60561         * m4/strstr.m4: Delete cruft from copy-n-paste.
60562         Reported by Bruno Haible.
60563
60564 2008-01-10  Bruno Haible  <bruno@clisp.org>
60565
60566         Make c-strstr rely on strstr.
60567         * lib/c-strstr.c: Don't include str-kmp.h.
60568         (c_strstr): Define in terms of strstr.
60569         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60570         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60571
60572 2008-01-10  Bruno Haible  <bruno@clisp.org>
60573
60574         * doc/gnulib.texi (String Functions in C Locale): New section.
60575         * doc/c-ctype.texi: New file.
60576         * doc/c-strcase.texi: New file.
60577         * doc/c-strcaseeq.texi: New file.
60578         * doc/c-strcasestr.texi: New file.
60579         * doc/c-strstr.texi: New file.
60580         * doc/c-strtod.texi: New file.
60581         * doc/c-strtold.texi: New file.
60582
60583 2008-01-10  Eric Blake  <ebb9@byu.net>
60584
60585         * lib/relocatable.h: Fix a comment.
60586
60587 2008-01-10  Eric Blake  <ebb9@byu.net>
60588
60589         Share two-way algorithm.
60590         * lib/str-two-way.h: New file, merged from...
60591         * lib/memmem.c: ...here...
60592         * lib/strstr.c: ...and here.
60593         * modules/memmem (Files): Use it.
60594         * modules/strstr (Files): Likewise.
60595
60596         Avoid quadratic strstr implementations.
60597         * lib/strstr.c: New file.
60598         * m4/strstr.m4: Likewise.
60599         * modules/strstr: Likewise.
60600         * modules/strstr-tests: Likewise.
60601         * tests/test-strstr.c: Likewise.
60602         * lib/string.in.h (rpl_strstr): Declare.
60603         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60605         * modules/string (Makefile.am): Likewise.
60606         * MODULES.html.sh (string handling): Mention new module.
60607         * doc/functions/strstr.texi (strstr): Document the bug.
60608
60609 2008-01-10  Bruno Haible  <bruno@clisp.org>
60610
60611         * lib/relocatable.h (relocate): State whether result is freshly
60612         allocated or not.
60613         * lib/relocatable.c (relocate): Return a freshly allocated string
60614         instead of a pointer to a privately held string.
60615         Reported by Sylvain Beucler <beuc@gnu.org>.
60616
60617 2008-01-10  Colin Watson  <cjwatson@debian.org>
60618
60619         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60620         s/S_ISNLK/S_ISLNK/.
60621
60622 2008-01-09  Bruno Haible  <bruno@clisp.org>
60623
60624         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60625         and other files.
60626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60627         if it's only a guess.
60628         * modules/memmem: Simplify by depending on memmem-simple.
60629
60630 2008-01-09  Bruno Haible  <bruno@clisp.org>
60631
60632         Work around OpenBSD 4.0 tdelete() bug.
60633         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60634         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60635         macros and don't redefine the enum values.
60636         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60637         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60638         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60639
60640 2008-01-09  Bruno Haible  <bruno@clisp.org>
60641
60642         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60643         (main): Don't perform the tests if setlocale did not install a UTF-8
60644         locale. Needed on OpenBSD 4.0.
60645         * modules/wcwidth-tests (Depends-on): Add localcharset.
60646
60647 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60650         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60651         * NEWS: announce this.
60652         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60653
60654 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60655         and Eric Blake  <ebb9@byu.net>
60656
60657         Add memmem-simple module.
60658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60659         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60660         * modules/memmem-simple: New file.
60661         * modules/memmem (Description): Tweak.
60662         * MODULES.html.sh (string handling): Mention new module.
60663         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60664         addressed by memmem-simple.
60665         * NEWS: Document the difference.
60666
60667 2008-01-09  Eric Blake  <ebb9@byu.net>
60668
60669         Give gcc some memmem optimization hints.
60670         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60671         (strcasestr): Declare as pure.
60672         * modules/memmem (Maintainer): Claim my implementation.
60673
60674 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60675
60676         Support AIX 6.1 and higher.
60677         * build-aux/config.libpath: Likewise.
60678         * build-aux/config.rpath: Likewise.
60679
60680 2008-01-08  Jim Meyering  <meyering@redhat.com>
60681             Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60684         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60685         Reported by Peter Fales in
60686         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60687
60688 2008-01-08  Bruno Haible  <bruno@clisp.org>
60689
60690         * modules/unictype/category-of (Depends-on): Add
60691         unictype/category-none.
60692         * modules/unictype/category-and-tests (Depends-on): Add
60693         unictype/category-{L,N,Lu,Nd}.
60694         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60695         * modules/unictype/category-or-tests (Depends-on): Add
60696         unictype/category-{L,N}.
60697         * modules/unictype/category-name-tests (Depends-on): Add
60698         unictype/category-{Z,Nl}.
60699         Reported by Simon Josefsson.
60700
60701 2008-01-08  Bruno Haible  <bruno@clisp.org>
60702
60703         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60704         convention better.
60705         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60706         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60707         Reported by Peter Miller <millerp@canb.auug.org.au>.
60708
60709 2008-01-08  Eric Blake  <ebb9@byu.net>
60710
60711         Rewrite memmem to guarantee linear complexity without malloc.
60712         * lib/memmem.c (memmem): Use Two-Way rather than
60713         Knuth-Morris-Pratt, to allow O(1) space usage.
60714         (critical_factorization, two_way_short_needle)
60715         (two_way_long_needle): New functions.
60716         (knuth_morris_pratt): Delete.
60717         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60718         Add stdint.
60719         * tests/test-memmem.c (main): Add tests for periodic needle and
60720         sublinear performance.
60721         * doc/functions/memmem.texi (memmem): Document other deficiencies
60722         in cygwin and older glibc.
60723
60724 2008-01-08  Bruno Haible  <bruno@clisp.org>
60725
60726         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60727         augmentation.
60728
60729 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60730
60731         Add a configure time option: --disable-acl.
60732         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60733         AC_ARG_ENABLE(acl).
60734
60735 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60736
60737         * tests/test-localename.c: Don't include obsolete "setenv.h".
60738
60739         * modules/localename-tests (Depends-on): Need unsetenv.
60740
60741 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60742
60743         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60744
60745 2008-01-06  Colin Watson  <cjwatson@debian.org>
60746
60747         * users.txt: Add man-db.
60748
60749 2008-01-07  Bruno Haible  <bruno@clisp.org>
60750
60751         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60752         previous section name.
60753
60754 2008-01-07  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/progname.c (set_program_name): Don't strip off a leading
60757         "lt-" prefix outside a .libs directory.
60758         Suggested by Paul Eggert.
60759
60760 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60761             Bruno Haible  <bruno@clisp.org>
60762
60763         Improve memory cleanup in 'relocatable' module.
60764         * lib/relocatable.h (compute_curr_prefix): Change return type to
60765         'char *'.
60766         * lib/relocatable.c (compute_curr_prefix): Change return type to
60767         'char *'. Free curr_installdir after use.
60768         (relocate): Free curr_prefix_better after use.
60769         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60770
60771 2008-01-01  Bruno Haible  <bruno@clisp.org>
60772
60773         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60774         failure on older glibc systems.
60775         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60776
60777 2008-01-05  Eric Blake  <ebb9@byu.net>
60778
60779         Avoid quadratic system memmem.
60780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60781         Reported by Ralf Wildenhues.
60782
60783         Fix memmem test for mingw.
60784         * modules/memmem-tests (configure.ac): Check for alarm.
60785         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60786         it.
60787         * doc/functions/memmem.texi: New file.
60788         * doc/gnulib.texi (Function Substitutes): Add memmem.
60789         Reported by Bruno Haible.
60790
60791 2008-01-04  Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60794         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60795         gl_HEADER_STRING_H_DEFAULTS.
60796
60797 2008-01-04  Eric Blake  <ebb9@byu.net>
60798
60799         Shorten duration of memmem test.
60800         * tests/test-memmem.c (main): Use alarm to declare failure if test
60801         is taking too long.
60802         Reported by Ralf Wildenhues.
60803
60804 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60805
60806         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60807         string, needed by strerror.
60808
60809 2008-01-03  Colin Watson  <cjwatson@debian.org>
60810             Bruno Haible  <bruno@clisp.org>
60811
60812         * doc/gnulib-tool.texi (Localization): New section.
60813
60814 2008-01-02  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60817         variables to 'unsigned char *' type.
60818         Reported by Paul Eggert.
60819
60820 2008-01-02  Jim Meyering  <jim@meyering.net>
60821
60822         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60823
60824 2007-12-31  Jim Meyering  <jim@meyering.net>
60825
60826         Avoid use of private FTS type name.
60827         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60828
60829 2007-12-30  Karl Berry  <karl@gnu.org>
60830
60831         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60832         work around defect in Texinfo and/or the standalone Info browser.
60833
60834 2007-12-30  Bruno Haible  <bruno@clisp.org>
60835
60836         Unify 5 copies of the KMP code.
60837         * lib/str-kmp.h: New file.
60838         * lib/c-strcasestr.c: Include str-kmp.h.
60839         (knuth_morris_pratt): Remove function.
60840         (c_strcasestr): Update.
60841         * lib/c-strstr.c: Include str-kmp.h.
60842         (knuth_morris_pratt): Remove function.
60843         (c_strcasestr): Update.
60844         * lib/mbscasestr.c: Include str-kmp.h.
60845         (knuth_morris_pratt_unibyte): Remove function.
60846         * lib/mbsstr.c: Include str-kmp.h.
60847         (knuth_morris_pratt_unibyte): Remove function.
60848         * lib/strcasestr.c: Include str-kmp.h.
60849         (knuth_morris_pratt): Remove function.
60850         (strcasestr): Update.
60851         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60852         * modules/c-strstr (Files): Likewise.
60853         * modules/mbscasestr (Files): Likewise.
60854         * modules/mbsstr (Files): Likewise.
60855         * modules/strcasestr (Files): Likewise.
60856         Suggested by Paul Eggert.
60857
60858 2007-12-30  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60861         defined.
60862
60863 2007-12-30  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/xmalloca.h: Include xalloc.h.
60866         (xnmalloca): New macro.
60867
60868 2007-12-30  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/malloca.h (nmalloca): New macro.
60871         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60872         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60873         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60874         knuth_morris_pratt_multibyte): Likewise.
60875         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60876         knuth_morris_pratt_multibyte): Likewise.
60877         * lib/memmem.c (knuth_morris_pratt): Likewise.
60878         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60879
60880 2007-12-25  Bruno Haible  <bruno@clisp.org>
60881
60882         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60883         * lib/glob.c: Don't include openat.h.
60884         (link_exists2_p): Add back the code that deals with the
60885         !GLOB_ALTDIRFUNC case.
60886         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60887         let it do the filename concatenation.
60888         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60889         * modules/glob (Depends-on): Remove openat.
60890
60891 2007-12-31  Bruno Haible  <bruno@clisp.org>
60892
60893         * modules/dirfd (License): Change to LGPLv2+.
60894         Approved by Jim Meyering.
60895
60896 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60899         when multiplying M by sizeof (size_t).
60900
60901 2007-12-10  Martin Lambers  <marlam@marlam.de>
60902
60903         Override getpagesize on mingw.
60904         * lib/getpagesize.c: New file.
60905         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60906         * modules/getpagesize (Files): Add lib/getpagesize.c.
60907         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60909         REPLACE_GETPAGESIZE.
60910         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60911
60912 2007-12-25  Bruno Haible  <bruno@clisp.org>
60913
60914         * modules/localcharset (Notice): New field.
60915         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60916         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60917
60918 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60919             Bruno Haible  <bruno@clisp.org>
60920
60921         Avoid using the syntax symbol() in formatted documentation.
60922         * MODULES.html.sh (func_module): When replacing symbol() with a
60923         hyperlink, remove the parentheses. Show an error if some remain.
60924         Recognize and render the '...' syntax.
60925         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60926         Rework. Add paragraph about GCC's inlining.
60927         * doc/alloca.texi: Likewise.
60928         * doc/error.texi: Remove parentheses from symbol reference.
60929         * doc/gnulib-intro.texi: Likewise.
60930         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60931         * modules/fnmatch (Description): Reword to say "the ... function".
60932         * modules/full-read (Description): Likewise.
60933         * modules/full-write (Description): Likewise.
60934         * modules/safe-read (Description): Likewise.
60935         * modules/safe-write (Description): Likewise.
60936         * modules/strchrnul (Description): Likewise.
60937         * modules/trim (Description): Likewise.
60938         * modules/error (Description): Remove parentheses from symbol
60939         references.
60940         * modules/verror (Description): Likewise.
60941         Reported by Karl Berry.
60942
60943 2007-12-25  Bruno Haible  <bruno@clisp.org>
60944
60945         Fixup after 2007-10-16 commit.
60946         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60947
60948 2007-12-24  Bruno Haible  <bruno@clisp.org>
60949
60950         Make --enable-relocatable work with DESTDIR.
60951         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60952         to compute installdir from destprog.
60953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60954         also set the RELOC_DESTDIR variable.
60955         Reported by Левашев Иван <octagram@bluebottle.com>.
60956
60957 2007-12-24  Bruno Haible  <bruno@clisp.org>
60958
60959         Fix link error due to xalloc_die().
60960         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60961         of xreadlink.
60962         * lib/relocwrapper.c: Update comments.
60963         * build-aux/install-reloc: Remove xreadlink.c from file list.
60964         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60965         xreadlink.c.
60966         Reported by Левашев Иван <octagram@bluebottle.com>.
60967
60968 2007-12-24  Bruno Haible  <bruno@clisp.org>
60969
60970         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60971         * lib/setenv.h: Remove file.
60972         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60973         lib/setenv.h.
60974         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60975         (Depends-on): Add stdlib.
60976         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60977         gl_FUNC_UNSETENV.
60978         (Include): Replace setenv.h with <stdlib.h>.
60979         * modules/unsetenv: New file.
60980         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60981         * lib/unsetenv.c: Include <stdlib.h> first.
60982         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60983         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60984         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60985         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60986         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60987         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60989         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60990         * doc/functions/unsetenv.texi: Update.
60991         * modules/xsetenv (Depends-on): Add unsetenv.
60992         * modules/getdate (Depends-on): Likewise.
60993         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60994         * lib/xsetenv.c: Don't include setenv.h.
60995         * lib/getdate.y: Likewise.
60996         * lib/relocwrapper.c: Likewise.
60997         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60998         (Depends-on): Add stdlib.
60999         * NEWS: Mention the changes.
61000         Reported by Левашев Иван <octagram@bluebottle.com>.
61001
61002 2007-12-23  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61005         indentation.
61006
61007 2007-12-23  Bruno Haible  <bruno@clisp.org>
61008
61009         * lib/c-strcasestr.c: Add more comments.
61010         * lib/c-strstr.c: Likewise.
61011         * lib/mbscasestr.c: Likewise.
61012         * lib/mbsstr.c: Likewise.
61013         * lib/strcasestr.c: Likewise.
61014         * lib/memmem.c: Likewise.
61015
61016 2007-12-23  Bruno Haible  <bruno@clisp.org>
61017
61018         * tests/test-memmem.c: Include <string.h> first.
61019
61020 2007-12-22  Bruno Haible  <bruno@clisp.org>
61021
61022         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61023         the contents of $testsbase.
61024         Reported by Ralf Wildenhues.
61025
61026 2007-12-22  Bruno Haible  <bruno@clisp.org>
61027
61028         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61029         two variables local_ldadd_before, local_ldadd_last.
61030
61031 2007-12-20  Eric Blake  <ebb9@byu.net>
61032
61033         Work around circular library issue when cross-compiling.
61034         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61035         that progname.o does not need to pull in rpl_memcmp.
61036
61037 2007-12-19  Eric Blake  <ebb9@byu.net>
61038
61039         Fix memmem to avoid O(n^2) worst-case complexity.
61040         * lib/memmem.c (knuth_morris_pratt): New function.
61041         (memmem): Use it if first few naive iterations fail.
61042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61043         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61044         * modules/memchr (License): Likewise.
61045         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61046         malloca.
61047         * tests/test-memmem.c: Rewrite, borrowing ideas from
61048         test-mbsstr1.c; the old version wouldn't even compile!
61049         * modules/memmem-tests: New file.
61050         * lib/string.in.h (rpl_memmem): Add declaration.
61051         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61053         REPLACE_MEMMEM.
61054
61055 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61056
61057         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61058         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61059         before any system include files, and undef after them all.  This
61060         should fix a problem on VMS reported by John E. Malmberg in
61061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61062
61063 2007-12-17  Eric Blake  <ebb9@byu.net>
61064
61065         Revert addition of verify, for BSD/OS.
61066         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61067         can't handle large files, for the sake of obsolete platforms.
61068         * modules/fseeko (Depends-on): Remove verify.
61069         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61070         * doc/functions/ftello.texi (ftello): Likewise.
61071         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61072         Reported by Larry Jones.
61073
61074 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61075
61076         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61077         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61078
61079 2007-12-17  Jim Meyering  <meyering@redhat.com>
61080
61081         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61082         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61083         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61084         * modules/getcwd (Depends-on): Add openat.
61085         Reported by Petr Salinger.
61086
61087 2007-12-17  Bruno Haible  <bruno@clisp.org>
61088
61089         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61090         avoid a segmentation fault of the configure test on x86_64 systems.
61091
61092 2007-12-15  Jim Meyering  <meyering@redhat.com>
61093
61094         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61095
61096 2007-12-13  Eric Blake  <ebb9@byu.net>
61097
61098         Another fseek test.
61099         * tests/test-fseek.c (main): Also test ungetc handling.
61100         * tests/test-fseeko.c (main): Likewise.
61101         * modules/fseeko (Depends-on): Add verify.
61102         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61103         large.
61104         Reported by Larry Jones.
61105
61106         Fix fseeko on mingw.
61107         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61108         seek.
61109
61110         Beef up fseek tests.
61111         * tests/test-fseek.c (main): Also test eof handling.
61112         * tests/test-fseeko.c (main): Likewise.
61113         Reported by Larry Jones.
61114
61115 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61116
61117         Fix fseeko on BSD-based platforms.
61118         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61119         successful seek.
61120
61121 2007-12-12  Eric Blake  <ebb9@byu.net>
61122
61123         Allow circular dependency of separate libtests.a
61124         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61125         when use_libtests.
61126
61127 2007-12-11  Eric Blake  <ebb9@byu.net>
61128
61129         Fix bug with -0.0L in previous patch.
61130         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61131         * tests/test-isnan.c (main): Also test on zeroes.
61132         * tests/test-isnanf.c (main): Likewise.
61133         * tests/test-isnanl.h (main): Likewise.
61134
61135         Detect pseudo-denormals on x86 even when cross-compiling.
61136         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61137         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61138         invalid bit patterns that happen to satisfy ==.
61139
61140         Avoid link failures with separate libtests.a.
61141         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61142         last, to satisfy circular dependencies.
61143
61144 2007-12-11  Eric Blake  <ebb9@byu.net>
61145         and Bruno Haible  <bruno@clisp.org>
61146
61147         Fix OpenBSD 4.0 <float.h> handling of long double.
61148         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61149         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61150         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61151
61152 2007-12-11  Jim Meyering  <meyering@redhat.com>
61153
61154         * users.txt: Add libvirt.
61155
61156         Support versions of autoconf prior to 2.59c.
61157         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61158         if it is not already defined.
61159
61160 2007-12-09  Bruno Haible  <bruno@clisp.org>
61161
61162         Let 'gnulib-tool --import' collect sources needed for the tests in
61163         tests/ rather than in lib/.
61164         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61165         argument. If true, add rules to generate libtests.a, and put libtests.a
61166         into $(LDADD). Consider source files in subdirectories and set
61167         uses_subdirs.
61168         (func_emit_initmacro_start, func_emit_initmacro_end,
61169         func_emit_initmacro_done): Pass all arguments explicitly.
61170         (func_import): Determine two module lists main_modules,
61171         testsrelated_modules. Determine use_libtests. Determine two variables
61172         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61173         instead of just sed_transform_lib_file. Determine two variables
61174         main_files and testsrelated_files. Compute 'files' as the union of
61175         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61176         func_add_or_update. In the generated gnulib-comp.m4, collect the
61177         object files for tests/ in different variables than those for lib/.
61178         Substitute LIBTESTS_LIBDEPS.
61179         (func_create_testdir): Combine the uses_subdirs results from
61180         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61181
61182 2007-12-09  Bruno Haible  <bruno@clisp.org>
61183
61184         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61185         the build-aux directory.
61186
61187 2007-12-09  Bruno Haible  <bruno@clisp.org>
61188
61189         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61190         introduced on 2006-09-09.
61191
61192 2007-12-07  Jim Meyering  <meyering@redhat.com>
61193
61194         Let these macros work also with autoconf-2.59.
61195         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61196         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61198
61199 2007-12-06  Jim Meyering  <meyering@redhat.com>
61200
61201         Avoid a configure-time syntax error in gl_FUNC_ACL.
61202         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61203         function in each branch, before testing the cache variable.
61204
61205 2007-12-04  Eric Blake  <ebb9@byu.net>
61206
61207         Make scripts executable.
61208         * build-aux/config.guess: Add execute permissions.
61209         * build-aux/config.sub: Likewise.
61210         * build-aux/gendocs.sh: Likewise.
61211
61212         Fix frexp on mingw.
61213         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61214         cross-compiling.
61215         * doc/functions/frexp.texi (frexp): Document the bug.
61216
61217         Make cygwin fseeko check more reliable.
61218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61219         version numbers, rather than unrelated feature check.
61220         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61221         * doc/functions/ftello.texi (ftello): Likewise.
61222         Reported by Bruno Haible.
61223
61224         * m4/strerror.m4: Bump version number.
61225
61226 2007-12-03  Bruno Haible  <bruno@clisp.org>
61227
61228         * doc/functions/mprotect.texi: Mention the mingw problem.
61229
61230 2007-12-03  Eric Blake  <ebb9@byu.net>
61231
61232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61233         REPLACE_STRERROR is initialized before this macro.
61234
61235 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61238         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61239         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61240         put -lsec in even for programs other than 'ls'.  This fixes a problem
61241         for gettext reported by Bruno Haible in
61242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61243         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61244         Add support for Solaris 10.  This isn't efficient, but should get the
61245         job done for now.
61246
61247 2007-12-03  James Youngman  <jay@gnu.org>
61248
61249         * doc/regexprops-generic.texi: change "an close-group" to "a
61250         close-group" and "illegal" to "not allowed".
61251
61252 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61253
61254         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61255         pr_byname.h. Needed for the rare case when the maintainer has done
61256         "make maintainer-clean" in the source directory and then attempts a
61257         build outside the source directory.
61258         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61259         scripts_byname.h.
61260
61261 2007-12-02  Martin Lambers <marlam@marlam.de>
61262             Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/getpagesize.h: Remove file.
61265         * lib/unistd.in.h: Include declaration of getpagesize here.
61266         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61267         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61268         HAVE_SYS_PARAM_H.
61269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61270         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61271         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61272         (Depends-on): Add unistd.
61273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61274         (Include): Use <unistd.h> instead of getpagesize.h.
61275         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61276         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61277         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61278         gl_GETPAGESIZE invocation, already handled by module dependency.
61279         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61280
61281 2007-12-02  Bruno Haible  <bruno@clisp.org>
61282
61283         * modules/strings-tests: New file.
61284         * tests/test-strings.c: New file.
61285
61286         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61287         * lib/strings.in.h: New file.
61288         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61289         * m4/strings_h.m4: New file.
61290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61291         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61292         * modules/strings: New file.
61293         * modules/string (Makefile.am): Update.
61294         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61295         Reported by Karl Berry.
61296
61297 2007-12-01  Eric Blake  <ebb9@byu.net>
61298
61299         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61300         accommodate fix in cygwin 1.5.25.
61301
61302 2007-12-01  Jim Meyering  <meyering@redhat.com>
61303
61304         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61305         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61306         that would inhibit utf8-optimization of a regexp containing line-
61307         or buffer-anchors, e.g., `^', `$'.
61308
61309 2007-11-30  Bruno Haible  <bruno@clisp.org>
61310
61311         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61312         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61313         glthread_recursive_lock_init.
61314         * lib/lock.c (glthread_recursive_lock_init)
61315         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61316         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61317
61318 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         New function qset_acl, like set_acl but with syscall semantics.
61321         * lib/acl.h (qset_acl): New decl.
61322         * lib/acl.c (qset_acl): New function.
61323         (set_acl): Use new function.  Use more-consistent diagnostics.
61324
61325 2007-11-28  Jim Meyering  <meyering@redhat.com>
61326
61327         * modules/physmem (License): Change from GPL to LGPLv2+.
61328
61329 2007-11-26  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61332         'long double' type has excess precision.
61333         Reported by Jim Meyering in
61334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61335
61336 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61337
61338         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61339         Sync from <http://gnu.org/licenses>.
61340         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61341         with license text from same location.
61342         * doc/maintain.texi, doc/standards.texi:  Sync from
61343         <http://savannah.gnu.org/projects/gnustandards>.
61344
61345 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
61346         and Jim Meyering  <meyering@redhat.com>
61347
61348         Adjust getdate' grammar to accept a slightly more regular language.
61349         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61350         Before, the former was rejected.
61351         * lib/getdate.y (digits_to_date_time): New function, factored
61352         out of ...
61353         (number): ...here.  Just call digits_to_date_time.
61354         (hybrid): New non-terminal to handle an <unsigned number,
61355         signed relative offset> sequence consistently.
61356
61357 2007-11-18  Jim Meyering  <meyering@redhat.com>
61358
61359         Pull my changes from coreutils:
61360         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61361         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61362         use of $gnulib_tool_option_extras, so that it's separated from the
61363         preceding argument.
61364
61365         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61366         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61367         parent destination directories before copying a file into place.
61368
61369 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61370
61371         bootstrap: work also with 4-argument variant of AC_INIT
61372         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61373
61374 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         Port test-getaddrinfo to Solaris.
61377         Problem reported by Bruno Haible in
61378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61379         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61380         explanation of setting 'hints'.
61381         Don't reject an implementation merely because it returns EAI_SERVICE.
61382         (EAI_SERVICE): Define to 0 if not defined.
61383
61384 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         The license of gnu-make and posix-shell is now "GPLed build tool".
61387         * modules/gnu-make (License): Likewise.
61388         * modules/posix-shell (License): Likewise.
61389
61390         New module posix-shell, for determining a POSIX shell
61391         or perhaps something that is close enough to a POSIX shell.
61392         * m4/posix-shell.m4: New file.
61393         * modules/posix-shell: New file.
61394
61395         * MODULES.html.sh: Mention new module.
61396
61397         New module gnu-make, for determining whether we're using GNU Make.
61398         * m4/gnu-make.m4: New file.
61399         * modules/gnu-make: New file.
61400         * MODULES.html.sh: Mention new module.
61401
61402 2007-11-14  Jim Meyering  <meyering@redhat.com>
61403
61404         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61405         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61406         use this macro to create a function _definition_.
61407         Remove useless "#undef ARGMATCH_DIE".
61408
61409 2007-11-14  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/config.charset: Update for OpenBSD 4.1.
61412         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61413
61414 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         Document 64-bit #if problems in stdint.texi.
61417         * doc/headers/stdint.texi (stdint.h): Mention problems with
61418         64-bit-#if, and how to work around them.
61419
61420         Don't insist on 'long long int' support in the preprocessor.  It
61421         breaks too many things.  For example, PRIdMAX still uses a 'long
61422         long int' format with the latest Sun compiler, even though
61423         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61424         preprocessor problem.  This causes the latest coreutils to dump
61425         core on Solaris 10 sparc with the Sun C compiler.
61426         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61427         the troublesome expressions at configure-time, not at #if-time.
61428         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61429         preprocessor.
61430         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61431         compile-time C checks, done at 'configure'-time.
61432         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61433         * modules/inttypes (Makefile): Substitute the new symbols that
61434         gl_INTTYPES_H now generates.
61435         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61436
61437 2007-11-12  Bruno Haible  <bruno@clisp.org>
61438
61439         Tests for Unicode character classification functions.
61440
61441         * modules/unictype/bidicategory-byname-tests: New file.
61442         * modules/unictype/bidicategory-name-tests: New file.
61443         * modules/unictype/bidicategory-of-tests: New file.
61444         * modules/unictype/bidicategory-test-tests: New file.
61445         * modules/unictype/block-list-tests: New file.
61446         * modules/unictype/block-of-tests: New file.
61447         * modules/unictype/block-test-tests: New file.
61448         * modules/unictype/category-C-tests: New file.
61449         * modules/unictype/category-Cc-tests: New file.
61450         * modules/unictype/category-Cf-tests: New file.
61451         * modules/unictype/category-Cn-tests: New file.
61452         * modules/unictype/category-Co-tests: New file.
61453         * modules/unictype/category-Cs-tests: New file.
61454         * modules/unictype/category-L-tests: New file.
61455         * modules/unictype/category-Ll-tests: New file.
61456         * modules/unictype/category-Lm-tests: New file.
61457         * modules/unictype/category-Lo-tests: New file.
61458         * modules/unictype/category-Lt-tests: New file.
61459         * modules/unictype/category-Lu-tests: New file.
61460         * modules/unictype/category-M-tests: New file.
61461         * modules/unictype/category-Mc-tests: New file.
61462         * modules/unictype/category-Me-tests: New file.
61463         * modules/unictype/category-Mn-tests: New file.
61464         * modules/unictype/category-N-tests: New file.
61465         * modules/unictype/category-Nd-tests: New file.
61466         * modules/unictype/category-Nl-tests: New file.
61467         * modules/unictype/category-No-tests: New file.
61468         * modules/unictype/category-P-tests: New file.
61469         * modules/unictype/category-Pc-tests: New file.
61470         * modules/unictype/category-Pd-tests: New file.
61471         * modules/unictype/category-Pe-tests: New file.
61472         * modules/unictype/category-Pf-tests: New file.
61473         * modules/unictype/category-Pi-tests: New file.
61474         * modules/unictype/category-Po-tests: New file.
61475         * modules/unictype/category-Ps-tests: New file.
61476         * modules/unictype/category-S-tests: New file.
61477         * modules/unictype/category-Sc-tests: New file.
61478         * modules/unictype/category-Sk-tests: New file.
61479         * modules/unictype/category-Sm-tests: New file.
61480         * modules/unictype/category-So-tests: New file.
61481         * modules/unictype/category-Z-tests: New file.
61482         * modules/unictype/category-Zl-tests: New file.
61483         * modules/unictype/category-Zp-tests: New file.
61484         * modules/unictype/category-Zs-tests: New file.
61485         * modules/unictype/category-and-not-tests: New file.
61486         * modules/unictype/category-and-tests: New file.
61487         * modules/unictype/category-byname-tests: New file.
61488         * modules/unictype/category-name-tests: New file.
61489         * modules/unictype/category-none-tests: New file.
61490         * modules/unictype/category-of-tests: New file.
61491         * modules/unictype/category-or-tests: New file.
61492         * modules/unictype/category-test-withtable-tests: New file.
61493         * modules/unictype/combining-class-tests: New file.
61494         * modules/unictype/ctype-alnum-tests: New file.
61495         * modules/unictype/ctype-alpha-tests: New file.
61496         * modules/unictype/ctype-blank-tests: New file.
61497         * modules/unictype/ctype-cntrl-tests: New file.
61498         * modules/unictype/ctype-digit-tests: New file.
61499         * modules/unictype/ctype-graph-tests: New file.
61500         * modules/unictype/ctype-lower-tests: New file.
61501         * modules/unictype/ctype-print-tests: New file.
61502         * modules/unictype/ctype-punct-tests: New file.
61503         * modules/unictype/ctype-space-tests: New file.
61504         * modules/unictype/ctype-upper-tests: New file.
61505         * modules/unictype/ctype-xdigit-tests: New file.
61506         * modules/unictype/decimal-digit-tests: New file.
61507         * modules/unictype/digit-tests: New file.
61508         * modules/unictype/mirror-tests: New file.
61509         * modules/unictype/numeric-tests: New file.
61510         * modules/unictype/property-alphabetic-tests: New file.
61511         * modules/unictype/property-ascii-hex-digit-tests: New file.
61512         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61513         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61514         * modules/unictype/property-bidi-block-separator-tests: New file.
61515         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61516         * modules/unictype/property-bidi-common-separator-tests: New file.
61517         * modules/unictype/property-bidi-control-tests: New file.
61518         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61519         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61520         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61521         * modules/unictype/property-bidi-european-digit-tests: New file.
61522         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61523         * modules/unictype/property-bidi-left-to-right-tests: New file.
61524         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61525         * modules/unictype/property-bidi-other-neutral-tests: New file.
61526         * modules/unictype/property-bidi-pdf-tests: New file.
61527         * modules/unictype/property-bidi-segment-separator-tests: New file.
61528         * modules/unictype/property-bidi-whitespace-tests: New file.
61529         * modules/unictype/property-byname-tests: New file.
61530         * modules/unictype/property-combining-tests: New file.
61531         * modules/unictype/property-composite-tests: New file.
61532         * modules/unictype/property-currency-symbol-tests: New file.
61533         * modules/unictype/property-dash-tests: New file.
61534         * modules/unictype/property-decimal-digit-tests: New file.
61535         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61536         * modules/unictype/property-deprecated-tests: New file.
61537         * modules/unictype/property-diacritic-tests: New file.
61538         * modules/unictype/property-extender-tests: New file.
61539         * modules/unictype/property-format-control-tests: New file.
61540         * modules/unictype/property-grapheme-base-tests: New file.
61541         * modules/unictype/property-grapheme-extend-tests: New file.
61542         * modules/unictype/property-grapheme-link-tests: New file.
61543         * modules/unictype/property-hex-digit-tests: New file.
61544         * modules/unictype/property-hyphen-tests: New file.
61545         * modules/unictype/property-id-continue-tests: New file.
61546         * modules/unictype/property-id-start-tests: New file.
61547         * modules/unictype/property-ideographic-tests: New file.
61548         * modules/unictype/property-ids-binary-operator-tests: New file.
61549         * modules/unictype/property-ids-trinary-operator-tests: New file.
61550         * modules/unictype/property-ignorable-control-tests: New file.
61551         * modules/unictype/property-iso-control-tests: New file.
61552         * modules/unictype/property-join-control-tests: New file.
61553         * modules/unictype/property-left-of-pair-tests: New file.
61554         * modules/unictype/property-line-separator-tests: New file.
61555         * modules/unictype/property-logical-order-exception-tests: New file.
61556         * modules/unictype/property-lowercase-tests: New file.
61557         * modules/unictype/property-math-tests: New file.
61558         * modules/unictype/property-non-break-tests: New file.
61559         * modules/unictype/property-not-a-character-tests: New file.
61560         * modules/unictype/property-numeric-tests: New file.
61561         * modules/unictype/property-other-alphabetic-tests: New file.
61562         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61563         * modules/unictype/property-other-grapheme-extend-tests: New file.
61564         * modules/unictype/property-other-id-continue-tests: New file.
61565         * modules/unictype/property-other-id-start-tests: New file.
61566         * modules/unictype/property-other-lowercase-tests: New file.
61567         * modules/unictype/property-other-math-tests: New file.
61568         * modules/unictype/property-other-uppercase-tests: New file.
61569         * modules/unictype/property-paired-punctuation-tests: New file.
61570         * modules/unictype/property-paragraph-separator-tests: New file.
61571         * modules/unictype/property-pattern-syntax-tests: New file.
61572         * modules/unictype/property-pattern-white-space-tests: New file.
61573         * modules/unictype/property-private-use-tests: New file.
61574         * modules/unictype/property-punctuation-tests: New file.
61575         * modules/unictype/property-quotation-mark-tests: New file.
61576         * modules/unictype/property-radical-tests: New file.
61577         * modules/unictype/property-sentence-terminal-tests: New file.
61578         * modules/unictype/property-soft-dotted-tests: New file.
61579         * modules/unictype/property-space-tests: New file.
61580         * modules/unictype/property-terminal-punctuation-tests: New file.
61581         * modules/unictype/property-test-tests: New file.
61582         * modules/unictype/property-titlecase-tests: New file.
61583         * modules/unictype/property-unassigned-code-value-tests: New file.
61584         * modules/unictype/property-unified-ideograph-tests: New file.
61585         * modules/unictype/property-uppercase-tests: New file.
61586         * modules/unictype/property-variation-selector-tests: New file.
61587         * modules/unictype/property-white-space-tests: New file.
61588         * modules/unictype/property-xid-continue-tests: New file.
61589         * modules/unictype/property-xid-start-tests: New file.
61590         * modules/unictype/property-zero-width-tests: New file.
61591         * modules/unictype/scripts-tests: New file.
61592         * modules/unictype/syntax-c-ident-tests: New file.
61593         * modules/unictype/syntax-c-whitespace-tests: New file.
61594         * modules/unictype/syntax-java-ident-tests: New file.
61595         * modules/unictype/syntax-java-whitespace-tests: New file.
61596         * tests/unictype/test-bidi_byname.c: New file.
61597         * tests/unictype/test-bidi_name.c: New file.
61598         * tests/unictype/test-bidi_of.c: New file.
61599         * tests/unictype/test-bidi_test.c: New file.
61600         * tests/unictype/test-block_list.c: New file.
61601         * tests/unictype/test-block_of.c: New file.
61602         * tests/unictype/test-block_test.c: New file.
61603         * tests/unictype/test-categ_and.c: New file.
61604         * tests/unictype/test-categ_and_not.c: New file.
61605         * tests/unictype/test-categ_byname.c: New file.
61606         * tests/unictype/test-categ_name.c: New file.
61607         * tests/unictype/test-categ_none.c: New file.
61608         * tests/unictype/test-categ_of.c: New file.
61609         * tests/unictype/test-categ_or.c: New file.
61610         * tests/unictype/test-categ_test_withtable.c: New file.
61611         * tests/unictype/test-combining.c: New file.
61612         * tests/unictype/test-decdigit.c: New file.
61613         * tests/unictype/test-digit.c: New file.
61614         * tests/unictype/test-mirror.c: New file.
61615         * tests/unictype/test-numeric.c: New file.
61616         * tests/unictype/test-pr_byname.c: New file.
61617         * tests/unictype/test-pr_test.c: New file.
61618         * tests/unictype/test-predicate-part1.h: New file.
61619         * tests/unictype/test-predicate-part2.h: New file.
61620         * tests/unictype/test-scripts.c: New file.
61621         * tests/unictype/test-sy_c_ident.c: New file.
61622         * tests/unictype/test-sy_java_ident.c: New file.
61623
61624         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61625         for Unicode 5.0.0.
61626         * tests/unictype/test-categ_Cc.c: Likewise.
61627         * tests/unictype/test-categ_Cf.c: Likewise.
61628         * tests/unictype/test-categ_Cn.c: Likewise.
61629         * tests/unictype/test-categ_Co.c: Likewise.
61630         * tests/unictype/test-categ_Cs.c: Likewise.
61631         * tests/unictype/test-categ_L.c: Likewise.
61632         * tests/unictype/test-categ_Ll.c: Likewise.
61633         * tests/unictype/test-categ_Lm.c: Likewise.
61634         * tests/unictype/test-categ_Lo.c: Likewise.
61635         * tests/unictype/test-categ_Lt.c: Likewise.
61636         * tests/unictype/test-categ_Lu.c: Likewise.
61637         * tests/unictype/test-categ_M.c: Likewise.
61638         * tests/unictype/test-categ_Mc.c: Likewise.
61639         * tests/unictype/test-categ_Me.c: Likewise.
61640         * tests/unictype/test-categ_Mn.c: Likewise.
61641         * tests/unictype/test-categ_N.c: Likewise.
61642         * tests/unictype/test-categ_Nd.c: Likewise.
61643         * tests/unictype/test-categ_Nl.c: Likewise.
61644         * tests/unictype/test-categ_No.c: Likewise.
61645         * tests/unictype/test-categ_P.c: Likewise.
61646         * tests/unictype/test-categ_Pc.c: Likewise.
61647         * tests/unictype/test-categ_Pd.c: Likewise.
61648         * tests/unictype/test-categ_Pe.c: Likewise.
61649         * tests/unictype/test-categ_Pf.c: Likewise.
61650         * tests/unictype/test-categ_Pi.c: Likewise.
61651         * tests/unictype/test-categ_Po.c: Likewise.
61652         * tests/unictype/test-categ_Ps.c: Likewise.
61653         * tests/unictype/test-categ_S.c: Likewise.
61654         * tests/unictype/test-categ_Sc.c: Likewise.
61655         * tests/unictype/test-categ_Sk.c: Likewise.
61656         * tests/unictype/test-categ_Sm.c: Likewise.
61657         * tests/unictype/test-categ_So.c: Likewise.
61658         * tests/unictype/test-categ_Z.c: Likewise.
61659         * tests/unictype/test-categ_Zl.c: Likewise.
61660         * tests/unictype/test-categ_Zp.c: Likewise.
61661         * tests/unictype/test-categ_Zs.c: Likewise.
61662         * tests/unictype/test-ctype_alnum.c: Likewise.
61663         * tests/unictype/test-ctype_alpha.c: Likewise.
61664         * tests/unictype/test-ctype_blank.c: Likewise.
61665         * tests/unictype/test-ctype_cntrl.c: Likewise.
61666         * tests/unictype/test-ctype_digit.c: Likewise.
61667         * tests/unictype/test-ctype_graph.c: Likewise.
61668         * tests/unictype/test-ctype_lower.c: Likewise.
61669         * tests/unictype/test-ctype_print.c: Likewise.
61670         * tests/unictype/test-ctype_punct.c: Likewise.
61671         * tests/unictype/test-ctype_space.c: Likewise.
61672         * tests/unictype/test-ctype_upper.c: Likewise.
61673         * tests/unictype/test-ctype_xdigit.c: Likewise.
61674         * tests/unictype/test-decdigit.h: Likewise.
61675         * tests/unictype/test-digit.h: Likewise.
61676         * tests/unictype/test-numeric.h: Likewise.
61677         * tests/unictype/test-pr_alphabetic.c: Likewise.
61678         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61679         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61680         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61681         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61682         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61683         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61684         * tests/unictype/test-pr_bidi_control.c: Likewise.
61685         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61686         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61687         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61688         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61689         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61690         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61691         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61692         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61693         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61694         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61695         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61696         * tests/unictype/test-pr_combining.c: Likewise.
61697         * tests/unictype/test-pr_composite.c: Likewise.
61698         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61699         * tests/unictype/test-pr_dash.c: Likewise.
61700         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61701         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61702         * tests/unictype/test-pr_deprecated.c: Likewise.
61703         * tests/unictype/test-pr_diacritic.c: Likewise.
61704         * tests/unictype/test-pr_extender.c: Likewise.
61705         * tests/unictype/test-pr_format_control.c: Likewise.
61706         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61707         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61708         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61709         * tests/unictype/test-pr_hex_digit.c: Likewise.
61710         * tests/unictype/test-pr_hyphen.c: Likewise.
61711         * tests/unictype/test-pr_id_continue.c: Likewise.
61712         * tests/unictype/test-pr_id_start.c: Likewise.
61713         * tests/unictype/test-pr_ideographic.c: Likewise.
61714         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61715         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61716         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61717         * tests/unictype/test-pr_iso_control.c: Likewise.
61718         * tests/unictype/test-pr_join_control.c: Likewise.
61719         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61720         * tests/unictype/test-pr_line_separator.c: Likewise.
61721         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61722         * tests/unictype/test-pr_lowercase.c: Likewise.
61723         * tests/unictype/test-pr_math.c: Likewise.
61724         * tests/unictype/test-pr_non_break.c: Likewise.
61725         * tests/unictype/test-pr_not_a_character.c: Likewise.
61726         * tests/unictype/test-pr_numeric.c: Likewise.
61727         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61728         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61729         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61730         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61731         * tests/unictype/test-pr_other_id_start.c: Likewise.
61732         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61733         * tests/unictype/test-pr_other_math.c: Likewise.
61734         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61735         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61736         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61737         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61738         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61739         * tests/unictype/test-pr_private_use.c: Likewise.
61740         * tests/unictype/test-pr_punctuation.c: Likewise.
61741         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61742         * tests/unictype/test-pr_radical.c: Likewise.
61743         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61744         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61745         * tests/unictype/test-pr_space.c: Likewise.
61746         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61747         * tests/unictype/test-pr_titlecase.c: Likewise.
61748         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61749         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61750         * tests/unictype/test-pr_uppercase.c: Likewise.
61751         * tests/unictype/test-pr_variation_selector.c: Likewise.
61752         * tests/unictype/test-pr_white_space.c: Likewise.
61753         * tests/unictype/test-pr_xid_continue.c: Likewise.
61754         * tests/unictype/test-pr_xid_start.c: Likewise.
61755         * tests/unictype/test-pr_zero_width.c: Likewise.
61756         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61757         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61758
61759 2007-11-12  Bruno Haible  <bruno@clisp.org>
61760
61761         Unicode character classification functions.
61762         * lib/unictype.h: New file.
61763         * modules/unictype/base: New file.
61764         * modules/unictype/category-L: New file.
61765         * modules/unictype/category-Lu: New file.
61766         * modules/unictype/category-Ll: New file.
61767         * modules/unictype/category-Lt: New file.
61768         * modules/unictype/category-Lm: New file.
61769         * modules/unictype/category-Lo: New file.
61770         * modules/unictype/category-M: New file.
61771         * modules/unictype/category-Mn: New file.
61772         * modules/unictype/category-Mc: New file.
61773         * modules/unictype/category-Me: New file.
61774         * modules/unictype/category-N: New file.
61775         * modules/unictype/category-Nd: New file.
61776         * modules/unictype/category-Nl: New file.
61777         * modules/unictype/category-No: New file.
61778         * modules/unictype/category-P: New file.
61779         * modules/unictype/category-Pc: New file.
61780         * modules/unictype/category-Pd: New file.
61781         * modules/unictype/category-Ps: New file.
61782         * modules/unictype/category-Pe: New file.
61783         * modules/unictype/category-Pi: New file.
61784         * modules/unictype/category-Pf: New file.
61785         * modules/unictype/category-Po: New file.
61786         * modules/unictype/category-S: New file.
61787         * modules/unictype/category-Sm: New file.
61788         * modules/unictype/category-Sc: New file.
61789         * modules/unictype/category-Sk: New file.
61790         * modules/unictype/category-So: New file.
61791         * modules/unictype/category-Z: New file.
61792         * modules/unictype/category-Zs: New file.
61793         * modules/unictype/category-Zl: New file.
61794         * modules/unictype/category-Zp: New file.
61795         * modules/unictype/category-C: New file.
61796         * modules/unictype/category-Cc: New file.
61797         * modules/unictype/category-Cf: New file.
61798         * modules/unictype/category-Cs: New file.
61799         * modules/unictype/category-Co: New file.
61800         * modules/unictype/category-Cn: New file.
61801         * modules/unictype/category-or: New file.
61802         * modules/unictype/category-of: New file.
61803         * modules/unictype/category-test: New file.
61804         * modules/unictype/category-test-withtable: New file.
61805         * modules/unictype/category-byname: New file.
61806         * modules/unictype/category-none: New file.
61807         * modules/unictype/category-and: New file.
61808         * modules/unictype/category-and-not: New file.
61809         * modules/unictype/category-name: New file.
61810         * modules/unictype/combining-class: New file.
61811         * modules/unictype/category-all: New file.
61812         * modules/unictype/bidicategory-all: New file.
61813         * modules/unictype/bidicategory-byname: New file.
61814         * modules/unictype/bidicategory-name: New file.
61815         * modules/unictype/bidicategory-of: New file.
61816         * modules/unictype/bidicategory-test: New file.
61817         * modules/unictype/decimal-digit: New file.
61818         * modules/unictype/digit: New file.
61819         * modules/unictype/numeric: New file.
61820         * modules/unictype/mirror: New file.
61821         * modules/unictype/property-white-space: New file.
61822         * modules/unictype/property-alphabetic: New file.
61823         * modules/unictype/property-other-alphabetic: New file.
61824         * modules/unictype/property-not-a-character: New file.
61825         * modules/unictype/property-default-ignorable-code-point: New file.
61826         * modules/unictype/property-other-default-ignorable-code-point: New
61827         file.
61828         * modules/unictype/property-deprecated: New file.
61829         * modules/unictype/property-logical-order-exception: New file.
61830         * modules/unictype/property-variation-selector: New file.
61831         * modules/unictype/property-private-use: New file.
61832         * modules/unictype/property-unassigned-code-value: New file.
61833         * modules/unictype/property-uppercase: New file.
61834         * modules/unictype/property-other-uppercase: New file.
61835         * modules/unictype/property-lowercase: New file.
61836         * modules/unictype/property-other-lowercase: New file.
61837         * modules/unictype/property-titlecase: New file.
61838         * modules/unictype/property-soft-dotted: New file.
61839         * modules/unictype/property-id-start: New file.
61840         * modules/unictype/property-other-id-start: New file.
61841         * modules/unictype/property-id-continue: New file.
61842         * modules/unictype/property-other-id-continue: New file.
61843         * modules/unictype/property-xid-start: New file.
61844         * modules/unictype/property-xid-continue: New file.
61845         * modules/unictype/property-pattern-white-space: New file.
61846         * modules/unictype/property-pattern-syntax: New file.
61847         * modules/unictype/property-join-control: New file.
61848         * modules/unictype/property-grapheme-base: New file.
61849         * modules/unictype/property-grapheme-extend: New file.
61850         * modules/unictype/property-other-grapheme-extend: New file.
61851         * modules/unictype/property-grapheme-link: New file.
61852         * modules/unictype/property-bidi-control: New file.
61853         * modules/unictype/property-bidi-left-to-right: New file.
61854         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61855         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61856         * modules/unictype/property-bidi-european-digit: New file.
61857         * modules/unictype/property-bidi-eur-num-separator: New file.
61858         * modules/unictype/property-bidi-eur-num-terminator: New file.
61859         * modules/unictype/property-bidi-arabic-digit: New file.
61860         * modules/unictype/property-bidi-common-separator: New file.
61861         * modules/unictype/property-bidi-block-separator: New file.
61862         * modules/unictype/property-bidi-segment-separator: New file.
61863         * modules/unictype/property-bidi-whitespace: New file.
61864         * modules/unictype/property-bidi-non-spacing-mark: New file.
61865         * modules/unictype/property-bidi-boundary-neutral: New file.
61866         * modules/unictype/property-bidi-pdf: New file.
61867         * modules/unictype/property-bidi-embedding-or-override: New file.
61868         * modules/unictype/property-bidi-other-neutral: New file.
61869         * modules/unictype/property-hex-digit: New file.
61870         * modules/unictype/property-ascii-hex-digit: New file.
61871         * modules/unictype/property-ideographic: New file.
61872         * modules/unictype/property-unified-ideograph: New file.
61873         * modules/unictype/property-radical: New file.
61874         * modules/unictype/property-ids-binary-operator: New file.
61875         * modules/unictype/property-ids-trinary-operator: New file.
61876         * modules/unictype/property-zero-width: New file.
61877         * modules/unictype/property-space: New file.
61878         * modules/unictype/property-non-break: New file.
61879         * modules/unictype/property-iso-control: New file.
61880         * modules/unictype/property-format-control: New file.
61881         * modules/unictype/property-dash: New file.
61882         * modules/unictype/property-hyphen: New file.
61883         * modules/unictype/property-punctuation: New file.
61884         * modules/unictype/property-line-separator: New file.
61885         * modules/unictype/property-paragraph-separator: New file.
61886         * modules/unictype/property-quotation-mark: New file.
61887         * modules/unictype/property-sentence-terminal: New file.
61888         * modules/unictype/property-terminal-punctuation: New file.
61889         * modules/unictype/property-currency-symbol: New file.
61890         * modules/unictype/property-math: New file.
61891         * modules/unictype/property-other-math: New file.
61892         * modules/unictype/property-paired-punctuation: New file.
61893         * modules/unictype/property-left-of-pair: New file.
61894         * modules/unictype/property-combining: New file.
61895         * modules/unictype/property-composite: New file.
61896         * modules/unictype/property-decimal-digit: New file.
61897         * modules/unictype/property-numeric: New file.
61898         * modules/unictype/property-diacritic: New file.
61899         * modules/unictype/property-extender: New file.
61900         * modules/unictype/property-ignorable-control: New file.
61901         * modules/unictype/property-test: New file.
61902         * modules/unictype/property-byname: New file.
61903         * modules/unictype/property-all: New file.
61904         * modules/unictype/scripts: New file.
61905         * modules/unictype/scripts-all: New file.
61906         * modules/unictype/block-of: New file.
61907         * modules/unictype/block-test: New file.
61908         * modules/unictype/block-list: New file.
61909         * modules/unictype/block-all: New file.
61910         * modules/unictype/syntax-c-whitespace: New file.
61911         * modules/unictype/syntax-java-whitespace: New file.
61912         * modules/unictype/syntax-c-ident: New file.
61913         * modules/unictype/syntax-java-ident: New file.
61914         * modules/unictype/ctype-alnum: New file.
61915         * modules/unictype/ctype-alpha: New file.
61916         * modules/unictype/ctype-cntrl: New file.
61917         * modules/unictype/ctype-digit: New file.
61918         * modules/unictype/ctype-graph: New file.
61919         * modules/unictype/ctype-lower: New file.
61920         * modules/unictype/ctype-print: New file.
61921         * modules/unictype/ctype-punct: New file.
61922         * modules/unictype/ctype-space: New file.
61923         * modules/unictype/ctype-upper: New file.
61924         * modules/unictype/ctype-xdigit: New file.
61925         * modules/unictype/ctype-blank: New file.
61926         * lib/unictype/bidi_byname.c: New file.
61927         * lib/unictype/bidi_name.c: New file.
61928         * lib/unictype/bidi_of.c: New file.
61929         * lib/unictype/bidi_test.c: New file.
61930         * lib/unictype/bitmap.h: New file.
61931         * lib/unictype/block_test.c: New file.
61932         * lib/unictype/blocks.c: New file.
61933         * lib/unictype/categ_C.c: New file.
61934         * lib/unictype/categ_Cc.c: New file.
61935         * lib/unictype/categ_Cf.c: New file.
61936         * lib/unictype/categ_Cn.c: New file.
61937         * lib/unictype/categ_Co.c: New file.
61938         * lib/unictype/categ_Cs.c: New file.
61939         * lib/unictype/categ_L.c: New file.
61940         * lib/unictype/categ_Ll.c: New file.
61941         * lib/unictype/categ_Lm.c: New file.
61942         * lib/unictype/categ_Lo.c: New file.
61943         * lib/unictype/categ_Lt.c: New file.
61944         * lib/unictype/categ_Lu.c: New file.
61945         * lib/unictype/categ_M.c: New file.
61946         * lib/unictype/categ_Mc.c: New file.
61947         * lib/unictype/categ_Me.c: New file.
61948         * lib/unictype/categ_Mn.c: New file.
61949         * lib/unictype/categ_N.c: New file.
61950         * lib/unictype/categ_Nd.c: New file.
61951         * lib/unictype/categ_Nl.c: New file.
61952         * lib/unictype/categ_No.c: New file.
61953         * lib/unictype/categ_P.c: New file.
61954         * lib/unictype/categ_Pc.c: New file.
61955         * lib/unictype/categ_Pd.c: New file.
61956         * lib/unictype/categ_Pe.c: New file.
61957         * lib/unictype/categ_Pf.c: New file.
61958         * lib/unictype/categ_Pi.c: New file.
61959         * lib/unictype/categ_Po.c: New file.
61960         * lib/unictype/categ_Ps.c: New file.
61961         * lib/unictype/categ_S.c: New file.
61962         * lib/unictype/categ_Sc.c: New file.
61963         * lib/unictype/categ_Sk.c: New file.
61964         * lib/unictype/categ_Sm.c: New file.
61965         * lib/unictype/categ_So.c: New file.
61966         * lib/unictype/categ_Z.c: New file.
61967         * lib/unictype/categ_Zl.c: New file.
61968         * lib/unictype/categ_Zp.c: New file.
61969         * lib/unictype/categ_Zs.c: New file.
61970         * lib/unictype/categ_and.c: New file.
61971         * lib/unictype/categ_and_not.c: New file.
61972         * lib/unictype/categ_byname.c: New file.
61973         * lib/unictype/categ_name.c: New file.
61974         * lib/unictype/categ_none.c: New file.
61975         * lib/unictype/categ_of.c: New file.
61976         * lib/unictype/categ_or.c: New file.
61977         * lib/unictype/categ_test.c: New file.
61978         * lib/unictype/combining.c: New file.
61979         * lib/unictype/ctype_alnum.c: New file.
61980         * lib/unictype/ctype_alpha.c: New file.
61981         * lib/unictype/ctype_blank.c: New file.
61982         * lib/unictype/ctype_cntrl.c: New file.
61983         * lib/unictype/ctype_digit.c: New file.
61984         * lib/unictype/ctype_graph.c: New file.
61985         * lib/unictype/ctype_lower.c: New file.
61986         * lib/unictype/ctype_print.c: New file.
61987         * lib/unictype/ctype_punct.c: New file.
61988         * lib/unictype/ctype_space.c: New file.
61989         * lib/unictype/ctype_upper.c: New file.
61990         * lib/unictype/ctype_xdigit.c: New file.
61991         * lib/unictype/decdigit.c: New file.
61992         * lib/unictype/digit.c: New file.
61993         * lib/unictype/identsyntaxmap.h: New file.
61994         * lib/unictype/mirror.c: New file.
61995         * lib/unictype/numeric.c: New file.
61996         * lib/unictype/pr_alphabetic.c: New file.
61997         * lib/unictype/pr_ascii_hex_digit.c: New file.
61998         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61999         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62000         * lib/unictype/pr_bidi_block_separator.c: New file.
62001         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62002         * lib/unictype/pr_bidi_common_separator.c: New file.
62003         * lib/unictype/pr_bidi_control.c: New file.
62004         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62005         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62006         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62007         * lib/unictype/pr_bidi_european_digit.c: New file.
62008         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62009         * lib/unictype/pr_bidi_left_to_right.c: New file.
62010         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62011         * lib/unictype/pr_bidi_other_neutral.c: New file.
62012         * lib/unictype/pr_bidi_pdf.c: New file.
62013         * lib/unictype/pr_bidi_segment_separator.c: New file.
62014         * lib/unictype/pr_bidi_whitespace.c: New file.
62015         * lib/unictype/pr_byname.c: New file.
62016         * lib/unictype/pr_byname.gperf: New file.
62017         * lib/unictype/pr_combining.c: New file.
62018         * lib/unictype/pr_composite.c: New file.
62019         * lib/unictype/pr_currency_symbol.c: New file.
62020         * lib/unictype/pr_dash.c: New file.
62021         * lib/unictype/pr_decimal_digit.c: New file.
62022         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62023         * lib/unictype/pr_deprecated.c: New file.
62024         * lib/unictype/pr_diacritic.c: New file.
62025         * lib/unictype/pr_extender.c: New file.
62026         * lib/unictype/pr_format_control.c: New file.
62027         * lib/unictype/pr_grapheme_base.c: New file.
62028         * lib/unictype/pr_grapheme_extend.c: New file.
62029         * lib/unictype/pr_grapheme_link.c: New file.
62030         * lib/unictype/pr_hex_digit.c: New file.
62031         * lib/unictype/pr_hyphen.c: New file.
62032         * lib/unictype/pr_id_continue.c: New file.
62033         * lib/unictype/pr_id_start.c: New file.
62034         * lib/unictype/pr_ideographic.c: New file.
62035         * lib/unictype/pr_ids_binary_operator.c: New file.
62036         * lib/unictype/pr_ids_trinary_operator.c: New file.
62037         * lib/unictype/pr_ignorable_control.c: New file.
62038         * lib/unictype/pr_iso_control.c: New file.
62039         * lib/unictype/pr_join_control.c: New file.
62040         * lib/unictype/pr_left_of_pair.c: New file.
62041         * lib/unictype/pr_line_separator.c: New file.
62042         * lib/unictype/pr_logical_order_exception.c: New file.
62043         * lib/unictype/pr_lowercase.c: New file.
62044         * lib/unictype/pr_math.c: New file.
62045         * lib/unictype/pr_non_break.c: New file.
62046         * lib/unictype/pr_not_a_character.c: New file.
62047         * lib/unictype/pr_numeric.c: New file.
62048         * lib/unictype/pr_other_alphabetic.c: New file.
62049         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62050         * lib/unictype/pr_other_grapheme_extend.c: New file.
62051         * lib/unictype/pr_other_id_continue.c: New file.
62052         * lib/unictype/pr_other_id_start.c: New file.
62053         * lib/unictype/pr_other_lowercase.c: New file.
62054         * lib/unictype/pr_other_math.c: New file.
62055         * lib/unictype/pr_other_uppercase.c: New file.
62056         * lib/unictype/pr_paired_punctuation.c: New file.
62057         * lib/unictype/pr_paragraph_separator.c: New file.
62058         * lib/unictype/pr_pattern_syntax.c: New file.
62059         * lib/unictype/pr_pattern_white_space.c: New file.
62060         * lib/unictype/pr_private_use.c: New file.
62061         * lib/unictype/pr_punctuation.c: New file.
62062         * lib/unictype/pr_quotation_mark.c: New file.
62063         * lib/unictype/pr_radical.c: New file.
62064         * lib/unictype/pr_sentence_terminal.c: New file.
62065         * lib/unictype/pr_soft_dotted.c: New file.
62066         * lib/unictype/pr_space.c: New file.
62067         * lib/unictype/pr_terminal_punctuation.c: New file.
62068         * lib/unictype/pr_test.c: New file.
62069         * lib/unictype/pr_titlecase.c: New file.
62070         * lib/unictype/pr_unassigned_code_value.c: New file.
62071         * lib/unictype/pr_unified_ideograph.c: New file.
62072         * lib/unictype/pr_uppercase.c: New file.
62073         * lib/unictype/pr_variation_selector.c: New file.
62074         * lib/unictype/pr_white_space.c: New file.
62075         * lib/unictype/pr_xid_continue.c: New file.
62076         * lib/unictype/pr_xid_start.c: New file.
62077         * lib/unictype/pr_zero_width.c: New file.
62078         * lib/unictype/scripts.c: New file.
62079         * lib/unictype/sy_c_ident.c: New file.
62080         * lib/unictype/sy_c_whitespace.c: New file.
62081         * lib/unictype/sy_java_ident.c: New file.
62082         * lib/unictype/sy_java_whitespace.c: New file.
62083
62084         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62085         Unicode 5.0.0.
62086         * lib/unictype/blocks.h: Likewise.
62087         * lib/unictype/categ_C.h: Likewise.
62088         * lib/unictype/categ_Cc.h: Likewise.
62089         * lib/unictype/categ_Cf.h: Likewise.
62090         * lib/unictype/categ_Cn.h: Likewise.
62091         * lib/unictype/categ_Co.h: Likewise.
62092         * lib/unictype/categ_Cs.h: Likewise.
62093         * lib/unictype/categ_L.h: Likewise.
62094         * lib/unictype/categ_Ll.h: Likewise.
62095         * lib/unictype/categ_Lm.h: Likewise.
62096         * lib/unictype/categ_Lo.h: Likewise.
62097         * lib/unictype/categ_Lt.h: Likewise.
62098         * lib/unictype/categ_Lu.h: Likewise.
62099         * lib/unictype/categ_M.h: Likewise.
62100         * lib/unictype/categ_Mc.h: Likewise.
62101         * lib/unictype/categ_Me.h: Likewise.
62102         * lib/unictype/categ_Mn.h: Likewise.
62103         * lib/unictype/categ_N.h: Likewise.
62104         * lib/unictype/categ_Nd.h: Likewise.
62105         * lib/unictype/categ_Nl.h: Likewise.
62106         * lib/unictype/categ_No.h: Likewise.
62107         * lib/unictype/categ_P.h: Likewise.
62108         * lib/unictype/categ_Pc.h: Likewise.
62109         * lib/unictype/categ_Pd.h: Likewise.
62110         * lib/unictype/categ_Pe.h: Likewise.
62111         * lib/unictype/categ_Pf.h: Likewise.
62112         * lib/unictype/categ_Pi.h: Likewise.
62113         * lib/unictype/categ_Po.h: Likewise.
62114         * lib/unictype/categ_Ps.h: Likewise.
62115         * lib/unictype/categ_S.h: Likewise.
62116         * lib/unictype/categ_Sc.h: Likewise.
62117         * lib/unictype/categ_Sk.h: Likewise.
62118         * lib/unictype/categ_Sm.h: Likewise.
62119         * lib/unictype/categ_So.h: Likewise.
62120         * lib/unictype/categ_Z.h: Likewise.
62121         * lib/unictype/categ_Zl.h: Likewise.
62122         * lib/unictype/categ_Zp.h: Likewise.
62123         * lib/unictype/categ_Zs.h: Likewise.
62124         * lib/unictype/categ_of.h: Likewise.
62125         * lib/unictype/combining.h: Likewise.
62126         * lib/unictype/ctype_alnum.h: Likewise.
62127         * lib/unictype/ctype_alpha.h: Likewise.
62128         * lib/unictype/ctype_blank.h: Likewise.
62129         * lib/unictype/ctype_cntrl.h: Likewise.
62130         * lib/unictype/ctype_digit.h: Likewise.
62131         * lib/unictype/ctype_graph.h: Likewise.
62132         * lib/unictype/ctype_lower.h: Likewise.
62133         * lib/unictype/ctype_print.h: Likewise.
62134         * lib/unictype/ctype_punct.h: Likewise.
62135         * lib/unictype/ctype_space.h: Likewise.
62136         * lib/unictype/ctype_upper.h: Likewise.
62137         * lib/unictype/ctype_xdigit.h: Likewise.
62138         * lib/unictype/decdigit.h: Likewise.
62139         * lib/unictype/digit.h: Likewise.
62140         * lib/unictype/mirror.h: Likewise.
62141         * lib/unictype/numeric.h: Likewise.
62142         * lib/unictype/pr_alphabetic.h: Likewise.
62143         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62144         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62145         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62146         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62147         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62148         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62149         * lib/unictype/pr_bidi_control.h: Likewise.
62150         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62151         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62152         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62153         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62154         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62155         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62156         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62157         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62158         * lib/unictype/pr_bidi_pdf.h: Likewise.
62159         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62160         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62161         * lib/unictype/pr_combining.h: Likewise.
62162         * lib/unictype/pr_composite.h: Likewise.
62163         * lib/unictype/pr_currency_symbol.h: Likewise.
62164         * lib/unictype/pr_dash.h: Likewise.
62165         * lib/unictype/pr_decimal_digit.h: Likewise.
62166         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62167         * lib/unictype/pr_deprecated.h: Likewise.
62168         * lib/unictype/pr_diacritic.h: Likewise.
62169         * lib/unictype/pr_extender.h: Likewise.
62170         * lib/unictype/pr_format_control.h: Likewise.
62171         * lib/unictype/pr_grapheme_base.h: Likewise.
62172         * lib/unictype/pr_grapheme_extend.h: Likewise.
62173         * lib/unictype/pr_grapheme_link.h: Likewise.
62174         * lib/unictype/pr_hex_digit.h: Likewise.
62175         * lib/unictype/pr_hyphen.h: Likewise.
62176         * lib/unictype/pr_id_continue.h: Likewise.
62177         * lib/unictype/pr_id_start.h: Likewise.
62178         * lib/unictype/pr_ideographic.h: Likewise.
62179         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62180         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62181         * lib/unictype/pr_ignorable_control.h: Likewise.
62182         * lib/unictype/pr_iso_control.h: Likewise.
62183         * lib/unictype/pr_join_control.h: Likewise.
62184         * lib/unictype/pr_left_of_pair.h: Likewise.
62185         * lib/unictype/pr_line_separator.h: Likewise.
62186         * lib/unictype/pr_logical_order_exception.h: Likewise.
62187         * lib/unictype/pr_lowercase.h: Likewise.
62188         * lib/unictype/pr_math.h: Likewise.
62189         * lib/unictype/pr_non_break.h: Likewise.
62190         * lib/unictype/pr_not_a_character.h: Likewise.
62191         * lib/unictype/pr_numeric.h: Likewise.
62192         * lib/unictype/pr_other_alphabetic.h: Likewise.
62193         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62194         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62195         * lib/unictype/pr_other_id_continue.h: Likewise.
62196         * lib/unictype/pr_other_id_start.h: Likewise.
62197         * lib/unictype/pr_other_lowercase.h: Likewise.
62198         * lib/unictype/pr_other_math.h: Likewise.
62199         * lib/unictype/pr_other_uppercase.h: Likewise.
62200         * lib/unictype/pr_paired_punctuation.h: Likewise.
62201         * lib/unictype/pr_paragraph_separator.h: Likewise.
62202         * lib/unictype/pr_pattern_syntax.h: Likewise.
62203         * lib/unictype/pr_pattern_white_space.h: Likewise.
62204         * lib/unictype/pr_private_use.h: Likewise.
62205         * lib/unictype/pr_punctuation.h: Likewise.
62206         * lib/unictype/pr_quotation_mark.h: Likewise.
62207         * lib/unictype/pr_radical.h: Likewise.
62208         * lib/unictype/pr_sentence_terminal.h: Likewise.
62209         * lib/unictype/pr_soft_dotted.h: Likewise.
62210         * lib/unictype/pr_space.h: Likewise.
62211         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62212         * lib/unictype/pr_titlecase.h: Likewise.
62213         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62214         * lib/unictype/pr_unified_ideograph.h: Likewise.
62215         * lib/unictype/pr_uppercase.h: Likewise.
62216         * lib/unictype/pr_variation_selector.h: Likewise.
62217         * lib/unictype/pr_white_space.h: Likewise.
62218         * lib/unictype/pr_xid_continue.h: Likewise.
62219         * lib/unictype/pr_xid_start.h: Likewise.
62220         * lib/unictype/pr_zero_width.h: Likewise.
62221         * lib/unictype/scripts.h: Likewise.
62222         * lib/unictype/scripts_byname.gperf: Likewise.
62223         * lib/unictype/sy_c_ident.h: Likewise.
62224         * lib/unictype/sy_c_whitespace.h: Likewise.
62225         * lib/unictype/sy_java_ident.h: Likewise.
62226         * lib/unictype/sy_java_whitespace.h: Likewise.
62227
62228         * lib/unictype/Makefile: New file.
62229         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62230         glibc.
62231         * lib/unictype/3level.h: New file, copied from glibc.
62232         * lib/unictype/3levelbit.h: New file.
62233
62234 2007-11-11  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/gperf: New file.
62237         * modules/iconv_open (Depends-on): Add it.
62238         (Makefile.am): Remove the GPERF definition.
62239
62240 2007-11-11  Bruno Haible  <bruno@clisp.org>
62241
62242         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62243         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62244
62245 2007-11-11  Bruno Haible  <bruno@clisp.org>
62246
62247         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62248         (usage): Remove function.
62249
62250 2007-11-11  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62253         gl_FUNC_CEILF_LIBS.
62254         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62255         gl_FUNC_CEIL_LIBS.
62256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62257         gl_FUNC_CEILL_LIBS.
62258         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62259         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62260         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62261
62262 2007-11-11  Bruno Haible  <bruno@clisp.org>
62263
62264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62265         roundf were declared but do not exist on functions.
62266         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62267         roundl were declared but do not exist on functions.
62268         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62269         HAVE_FLOORL_AND_CEILL, respectively.
62270         Needed for Sun C on Solaris 10.
62271
62272 2007-11-11  Bruno Haible  <bruno@clisp.org>
62273
62274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62275         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62276         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62277         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62279         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62280         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62281         HAVE_DECL_ROUNDF.
62282         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62283         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62285         of HAVE_DECL_ROUND*.
62286         * modules/math (Makefile.am): Update.
62287
62288 2007-11-10  Bruno Haible  <bruno@clisp.org>
62289
62290         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62291         ptrdiff_t as m4/intl.m4.
62292
62293 2007-11-10  Jim Meyering  <meyering@redhat.com>
62294
62295         Avoid link failure for the argmatch test.
62296         * tests/test-argmatch.c (usage): Define function to avoid a link
62297         failure: argmatch_die requires a usage function.
62298
62299 2007-11-09  Bruno Haible  <bruno@clisp.org>
62300
62301         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62302         * doc/functions/vsnprintf.texi: Likewise.
62303         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62304         with a size argument < 2.
62305
62306 2007-11-09  Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62309         buffer. Fixes an inefficiency introduced on 2007-11-03.
62310
62311 2007-11-09  Bruno Haible  <bruno@clisp.org>
62312
62313         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62314         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62315
62316 2007-11-08  Jim Meyering  <meyering@redhat.com>
62317
62318         Change cache variable name prefix "jm_" to "gl_" everywhere.
62319         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62320         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62321         * m4/uptime.m4: s/gl_/jm_/
62322
62323 2007-11-07  Bruno Haible  <bruno@clisp.org>
62324
62325         Update to GNU gettext 0.17.
62326         * m4/intl.m4: Update to GNU gettext 0.17.
62327         * m4/po.m4: Likewise.
62328         * modules/gettext (Files): Remove m4/ulonglong.m4.
62329         (configure.ac): Require gettext infrastructure from version 0.17.
62330
62331 2007-11-06  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62334         symbolic values are not defined in a public header.
62335         * lib/freadable.c (freadable) [QNX]: Likewise.
62336         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62337         * lib/freading.c (freading) [QNX]: Likewise.
62338         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62339         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62340         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62341         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62342         Reported by Alain Magloire.
62343
62344         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62345
62346 2007-11-05  Bruno Haible  <bruno@clisp.org>
62347
62348         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62349         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62350         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62351         Reported by Eric Blake.
62352
62353 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62354             Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62357         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62358         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62359         (malloc): Undefine also before including <stdlib.h>.
62360         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62361         Needed on OSF/1 4.0.
62362
62363 2007-11-05  Jim Meyering  <meyering@redhat.com>
62364
62365         git-version-gen: sync from coreutils.
62366         * build-aux/git-version-gen: Add comments.
62367         Change the first '-' to '.' in the snapshot version string,
62368         e.g., 6.9-377-08144 -> 6.9.377-08144
62369         Remove first parameter.
62370         Don't declare a version "-dirty" merely because a time
62371         stamp has changed.
62372
62373 2007-11-04  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/lock.h: Protect all macro definitions containing an 'if'
62376         statement through a "do { ... } while (0)".
62377         * lib/tls.h: Likewise.
62378
62379 2007-11-04  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62382
62383 2007-11-04  Bruno Haible  <bruno@clisp.org>
62384
62385         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62386         * modules/fprintf-posix (Depends-on): Add nocrash.
62387         * modules/snprintf-posix (Depends-on): Likewise.
62388         * modules/sprintf-posix (Depends-on): Likewise.
62389         * modules/vasnprintf-posix (Depends-on): Likewise.
62390         * modules/vasprintf-posix (Depends-on): Likewise.
62391         * modules/vfprintf-posix (Depends-on): Likewise.
62392         * modules/vsnprintf-posix (Depends-on): Likewise.
62393         * modules/vsprintf-posix (Depends-on): Likewise.
62394         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62395         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62396         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62397         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62400         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62401
62402 2007-11-04  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/nocrash: New file.
62405         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62406         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62407
62408 2007-11-04  Bruno Haible  <bruno@clisp.org>
62409
62410         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62411         precision handling.
62412         * tests/test-vasprintf-posix.c (test_function): Likewise.
62413         * tests/test-snprintf-posix.h (test_function): Likewise.
62414         * tests/test-sprintf-posix.h (test_function): Likewise.
62415
62416         Fix *printf behaviour for large precisions on mingw and BeOS.
62417         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62418         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62420         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62422         gl_PRINTF_PRECISION and test its result. Invoke
62423         gl_PREREQ_VASNPRINTF_PRECISION.
62424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62431         * doc/functions/fprintf.texi: Update.
62432         * doc/functions/printf.texi: Update.
62433         * doc/functions/snprintf.texi: Update.
62434         * doc/functions/sprintf.texi: Update.
62435         * doc/functions/vfprintf.texi: Update.
62436         * doc/functions/vprintf.texi: Update.
62437         * doc/functions/vsnprintf.texi: Update.
62438         * doc/functions/vsprintf.texi: Update.
62439
62440 2007-11-04  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62443
62444 2007-11-04  Bruno Haible  <bruno@clisp.org>
62445
62446         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62447         Reported by Sylvain Beucler <beuc@gnu.org>.
62448
62449 2007-11-03  Bruno Haible  <bruno@clisp.org>
62450
62451         * tests/test-fprintf-posix2.sh: New file.
62452         * tests/test-fprintf-posix2.c: New file.
62453         * modules/fprintf-posix-tests (Files): Add them.
62454         (TESTS): Add test-fprintf-posix2.sh.
62455         (configure.ac): Check for getrlimit and setrlimit.
62456         (check_PROGRAMS): Add test-fprintf-posix2.
62457
62458         * tests/test-printf-posix2.sh: New file.
62459         * tests/test-printf-posix2.c: New file.
62460         * modules/printf-posix-tests (Files): Add them.
62461         (TESTS): Add test-printf-posix2.sh.
62462         (configure.ac): Check for getrlimit and setrlimit.
62463         (check_PROGRAMS): Add test-printf-posix2.
62464
62465         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62466         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62467         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62468         (decode_double): New function, copied from decode_long_double.
62469         (scale10_round_decimal_decoded): New function, extracted from
62470         scale10_round_decimal_long_double.
62471         (scale10_round_decimal_long_double): Use it.
62472         (scale10_round_decimal_double): New function.
62473         (floorlog10): New function.
62474         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62476         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62478         gl_PRINTF_ENOMEM and test its result. Invoke
62479         gl_PREREQ_VASNPRINTF_ENOMEM.
62480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62487         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62488         * modules/snprintf-posix (Depends-on): Likewise.
62489         * modules/sprintf-posix (Depends-on): Likewise.
62490         * modules/vasnprintf-posix (Depends-on): Likewise.
62491         * modules/vasprintf-posix (Depends-on): Likewise.
62492         * modules/vfprintf-posix (Depends-on): Likewise.
62493         * modules/vsnprintf-posix (Depends-on): Likewise.
62494         * modules/vsprintf-posix (Depends-on): Likewise.
62495         * doc/functions/fprintf.texi: Update.
62496         * doc/functions/printf.texi: Update.
62497         * doc/functions/snprintf.texi: Update.
62498         * doc/functions/sprintf.texi: Update.
62499         * doc/functions/vfprintf.texi: Update.
62500         * doc/functions/vprintf.texi: Update.
62501         * doc/functions/vsnprintf.texi: Update.
62502         * doc/functions/vsprintf.texi: Update.
62503
62504 2007-11-03  Bruno Haible  <bruno@clisp.org>
62505
62506         * modules/frexp-nolibm-tests: New file.
62507
62508         * modules/frexp-nolibm: New file.
62509         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62510
62511 2007-11-03  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62514         value is C99 compliant.
62515         Needed for OSF/1 5.1.
62516
62517 2007-11-03  Bruno Haible  <bruno@clisp.org>
62518
62519         Fix out-of-memory handling of vasnprintf.
62520         * lib/printf-parse.c: Include <errno.h>.
62521         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62522         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62523         is already set.
62524
62525 2007-11-02  Eric Blake  <ebb9@byu.net>
62526
62527         Fix tests on cygwin.
62528         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62529
62530 2007-11-01  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62533         warning.
62534         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62535         needed for POSIX compatibility.
62536
62537 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62538
62539         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62540         for compatibility with GNU.
62541
62542 2007-11-01  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62545         (putenv): Renamed from rpl_putenv. Change argument type from
62546         'const char *' to 'char *'.
62547         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62548         of defining putenv in config.h, just set REPLACE_PUTENV.
62549         * modules/putenv (Depends-on): Add stdlib.
62550         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62551         (Include): Use <stdlib.h>.
62552         * lib/stdlib.in.h (putenv): New declaration.
62553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62554         REPLACE_PUTENV.
62555         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62556         REPLACE_PUTENV.
62557         Needed for MacOS X 10.5.0.
62558         Reported by Peter O'Gorman <peter@pogma.com>.
62559
62560 2007-11-01  Jim Meyering  <meyering@redhat.com>
62561
62562         Treat an empty date string exactly like "0".
62563         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62564         if the remaining date string (to be parsed) is empty, use "0".
62565         Reported by Mischa Molhoek and discussed in this thread:
62566         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62567
62568 2007-10-31  Bruno Haible  <bruno@clisp.org>
62569
62570         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62571         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62572         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62573         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62574         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62575         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62576
62577 2007-10-31  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62580         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62581         (AC_TYPE_LONG_LONG_INT): Use it.
62582         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62583         it as well.
62584         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62585         to m4/longlong.m4.
62586         * modules/stdint (Files): Remove m4/ulonglong.m4.
62587         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62588         m4/ulonglong.m4.
62589         * modules/strtoumax (Files): Likewise.
62590
62591 2007-10-30  Bruno Haible  <bruno@clisp.org>
62592
62593         * modules/xvasprintf-posix: New file.
62594         Suggested by Eric Blake.
62595
62596 2007-10-30  Bruno Haible  <bruno@clisp.org>
62597
62598         * modules/xprintf-posix-tests: New file.
62599         * tests/test-xprintf-posix.sh: New file.
62600         * tests/test-xprintf-posix.c: New file.
62601         * tests/test-xfprintf-posix.c: New file.
62602
62603         * modules/xprintf-posix: New file.
62604
62605 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62606
62607         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62608         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62609         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62610
62611 2007-10-29  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62614         contain the special marker '_cv_'.
62615         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62616         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62617         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62619         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62620         Reported by Ralf Wildenhues.
62621
62622 2007-10-29  Bruno Haible  <bruno@clisp.org>
62623
62624         * gnulib-tool (func_import): When --lgpl is not specified, set
62625         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62626         GPLv3.
62627         Reported by Simon Josefsson.
62628
62629 2007-10-28  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62632         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62633         HAVE_DECL_ISFINITE.
62634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62635         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62636         HAVE_DECL_ISFINITE.
62637
62638 2007-10-28  Bruno Haible  <bruno@clisp.org>
62639
62640         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62641         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62642
62643 2007-10-28  Bruno Haible  <bruno@clisp.org>
62644
62645         Fix link errors with Sun C 5.0 on Solaris 10.
62646         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62647         function is declared but not present in the compiler's libm.
62648         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62649         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62650         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62651         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62652         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62653         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62654         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62656         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62657         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62658         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62659         HAVE_DECL_FLOORL.
62660
62661 2007-10-28  Bruno Haible  <bruno@clisp.org>
62662
62663         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62664         gl_FUNC_FLOORL. Cache the result.
62665         (gl_FUNC_FLOORL): Use it.
62666         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62667         gl_FUNC_CEILL. Cache the result.
62668         (gl_FUNC_CEILL): Use it.
62669
62670         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62671         gl_FUNC_FLOOR. Cache the result.
62672         (gl_FUNC_FLOOR): Use it.
62673         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62674         gl_FUNC_CEIL. Cache the result.
62675         (gl_FUNC_CEIL): Use it.
62676
62677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62678         gl_FUNC_FLOORF. Cache the result.
62679         (gl_FUNC_FLOORF): Use it.
62680         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62681         gl_FUNC_CEILF. Cache the result.
62682         (gl_FUNC_CEILF): Use it.
62683
62684 2007-10-28  Bruno Haible  <bruno@clisp.org>
62685
62686         * gnulib-tool: Allow specifying the LGPL version number through
62687         --lgpl=2 or --lgpl=3.
62688         (func_usage): Document --lgpl with argument.
62689         Handle --lgpl=... arguments.
62690         (func_import): Recognize also gl_LGPL calls with an argument. When
62691         --lgpl=2 is used and the module's license is just LGPL, report an
62692         error. Set sed_transform_lib_file according to the lgpl variable. In
62693         the generated files, use --lgpl or gl_LGPL invocations with argument,
62694         if necessary.
62695         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62696         an LGPv2+ license.
62697         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62698         gl_LGPL macro.
62699
62700 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62701             Bruno Haible  <bruno@clisp.org>
62702
62703         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62704         (u16_uctomb_aux): Likewise.
62705         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62706         !HAVE_INLINE.
62707         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62708
62709 2007-10-28  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62712         Invoke AM_GETTEXT_OPTION if it exists.
62713         * modules/vasprintf: Likewise.
62714         * modules/verror: Likewise.
62715         * modules/xprintf: Likewise.
62716         * modules/xvasprintf: Likewise.
62717
62718 2007-10-27  Ben Pfaff  <blp@gnu.org>
62719
62720         * lib/math.in.h: Define isfinite macro and prototypes for
62721         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62722         implementations.
62723         * m4/math_h.m4: New substitutions for isfinite module.
62724         * lib/isfinite.c: New file.
62725         * m4/isfinite.m4: New file.
62726         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62727         * modules/isfinite: New file.
62728         * modules/isfinite-tests: New file.
62729         * tests/tests-isfinite.c: New file.
62730         * doc/functions/isfinite.texi: Mention isfinite module.
62731         * MODULES.html.sh: Mention new module.
62732
62733 2007-10-27  Ben Pfaff  <blp@gnu.org>
62734
62735         Ralf Wildenhues reported that Tru64 4.0D declares the round
62736         functions but does not have definitions.
62737         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62738         cannot be found in any library, set the output variable to
62739         "missing" instead of "".
62740         * m4/round.m4: Also use our substitute if we cannot find round in
62741         any library, even if it is declared.
62742         * m4/roundf.m4: Likewise for roundf.
62743         * m4/roundl.m4: Likewise for roundl.
62744         * lib/math.in.h: Undefine roundf, round, roundl before defining
62745         their replacements, to allow for hypothetical systems where these
62746         may be defined as macros but not available in libraries.
62747
62748 2007-10-27  Bruno Haible  <bruno@clisp.org>
62749
62750         * doc/gnulib.texi: Invoke @firstparagraphindent.
62751         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62752         changes in gnulib.
62753         (Source changes): New section.
62754
62755 2007-10-26  Bruno Haible  <bruno@clisp.org>
62756
62757         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62758         borrowed from autoconf.
62759
62760 2007-10-26  Bruno Haible  <bruno@clisp.org>
62761
62762         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62763         strerror returned the empty string. Needed on HP-UX 11.00.
62764
62765 2007-10-24  Micah Cowan  <micah@cowan.name>
62766
62767         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62768         * build-aux/bootstrap: Remove support for now-unnecessary option,
62769         --cvs-user, and envvars CVS_USER, CVS_RSH.
62770
62771 2007-10-24  Jim Meyering  <meyering@redhat.com>
62772
62773         Avoid diagnostics from sha1sum when there is no cached checksum.
62774         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62775         if the po.s1 file hasn't been created yet.
62776
62777         * build-aux/bootstrap: Sync from coreutils:
62778         2007-10-24  Jim Meyering  <meyering@redhat.com>
62779         Get gnulib from the git repository, not from an obsolete cvs one.
62780         * build-aux/bootstrap: Suggestion from Micah Cowan.
62781         2007-10-04  Jim Meyering  <jim@meyering.net>
62782         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62783         (update_po_files): Work also when there are no .po files in po/.
62784
62785 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         * README: Append ".git" to git and cg examples.
62788         Problem reported by Benoit Sigoure.
62789
62790 2007-10-23  Micah Cowan  <micah@cowan.name>
62791
62792         * users.txt: Add wget.
62793
62794 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62795
62796         Fix linking of some unistdio tests on FreeBSD.
62797         * modules/unistdio/u16-vsnprintf-tests
62798         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62799         * modules/unistdio/u16-vsprintf-tests
62800         (test_u16_vsnprintf1_LDADD): Likewise.
62801         * modules/unistdio/u32-vsnprintf-tests
62802         (test_u32_vsnprintf1_LDADD): Likewise.
62803         * modules/unistdio/u32-vsprintf-tests
62804         (test_u32_vsprintf1_LDADD): Likewise.
62805         * modules/unistdio/u8-vsnprintf-tests
62806         (test_u8_vsnprintf1_LDADD): Likewise.
62807         * modules/unistdio/u8-vsprintf-tests
62808         (test_u8_vsprintf1_LDADD): Likewise.
62809         * modules/unistdio/ulc-vsnprintf-tests
62810         (test_ulc_vsnprintf1_LDADD): Likewise.
62811         * modules/unistdio/ulc-vsprintf-tests
62812         (test_ulc_vsprintf1_LDADD): Likewise.
62813
62814         Fix linking of some uniconv tests on FreeBSD.
62815         * modules/uniconv/u16-conv-from-enc-tests
62816         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62817         * modules/uniconv/u16-conv-to-enc-tests
62818         (test_u16_conv_to_enc_LDADD): Likewise.
62819         * modules/uniconv/u16-strconv-from-enc-tests
62820         (test_u16_strconv_from_enc_LDADD): Likewise.
62821         * modules/uniconv/u16-strconv-to-enc-tests
62822         (test_u16_strconv_to_enc_LDADD): Likewise.
62823         * modules/uniconv/u32-conv-from-enc-tests
62824         (test_u32_conv_from_enc_LDADD): Likewise.
62825         * modules/uniconv/u32-conv-to-enc-tests
62826         (test_u32_conv_to_enc_LDADD): Likewise.
62827         * modules/uniconv/u32-strconv-from-enc-tests
62828         (test_u32_strconv_from_enc_LDADD): Likewise.
62829         * modules/uniconv/u32-strconv-to-enc-tests
62830         (test_u32_strconv_to_enc_LDADD): Likewise.
62831         * modules/uniconv/u8-conv-from-enc-tests
62832         (test_u8_conv_from_enc_LDADD): Likewise.
62833         * modules/uniconv/u8-conv-to-enc-tests
62834         (test_u8_conv_to_enc_LDADD): Likewise.
62835         * modules/uniconv/u8-strconv-from-enc-tests
62836         (test_u8_strconv_from_enc_LDADD): Likewise.
62837         * modules/uniconv/u8-strconv-to-enc-tests
62838         (test_u8_strconv_to_enc_LDADD): Likewise.
62839
62840 2007-10-22  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62843         size.
62844
62845 2007-10-22  Eric Blake  <ebb9@byu.net>
62846
62847         Tweak x*printf documentation.
62848         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62849         variable name and comments.
62850         Suggested by Bruno Haible.
62851
62852 2007-10-22  Bruno Haible  <bruno@clisp.org>
62853
62854         * lib/acl.c (copy_acl): Fix file name in comment.
62855
62856 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         Fix Tru64 problem with stdbool.h.
62859         * lib/stdbool.in.h (false, true):
62860         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62861         Don't declare as an enum in this situation; it runs afoul of Tru64.
62862         Problem reported by Steven M. Schweda in
62863         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62864
62865 2007-10-22  Eric Blake  <ebb9@byu.net>
62866
62867         Also wrap vf?printf.
62868         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62869         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62870         (xvprintf, xvfprintf): New functions.
62871
62872 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62873
62874         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62875         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62876
62877         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62878         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62879
62880 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62881
62882         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62883         by Bruno Haible.
62884
62885 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62886
62887         * lib/getloadavg.c
62888         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62889         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62890
62891         * tests/test-i-ring.c: Work for C89.
62892
62893 2007-10-22  Bruno Haible  <bruno@clisp.org>
62894
62895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62896         -1u, in preprocessor expression, so that we don't test for the bug
62897         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62899
62900 2007-10-22  Eric Blake  <ebb9@byu.net>
62901
62902         * tests/test-yesno.sh: Silence stderr during test.
62903
62904 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62905
62906         * modules/crypto/gc-camellia: New file.
62907
62908         * m4/gc-camellia.m4: New file.
62909
62910         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62911
62912         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62913
62914 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62915
62916         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62917         --help to stdout.  Reported by sms@antinode.org (Steven
62918         M. Schweda).
62919
62920 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62921
62922         * users.txt: Fix link to libksba.
62923
62924 2007-10-21  Ben Pfaff  <blp@gnu.org>
62925
62926         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62927         round.c roundf implementation that depends on floorf and ceilf to
62928         be tested unconditionally.
62929
62930 2007-10-21  Ben Pfaff  <blp@gnu.org>
62931
62932         * m4/check-libm-func.m4: Removed.
62933         * m4/check-math-lib.m4: New file.
62934         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62935         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62936         definition and lack of AC_LIBOBJ([roundf]).
62937         * m4/roundl.m4: Ditto, and similarly for roundl.
62938         * modules/round: Reference new m4 file.
62939         * modules/roundf: Ditto.
62940         * modules/roundl: Ditto.
62941         * tests/test-round2.c (main): Use ROUND instead of round.
62942         Bug report from Bruno Haible.
62943
62944 2007-10-21  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62947         context.
62948
62949 2007-10-21  Bruno Haible  <bruno@clisp.org>
62950
62951         * tests/test-wcwidth.c (main): Allow negative result for some control
62952         characters.
62953
62954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62955         Needed on OSF/1 5.1.
62956
62957 2007-10-21  Bruno Haible  <bruno@clisp.org>
62958
62959         * tests/test-floorf1.c: Include isnanf.h.
62960         (main): Use isnanf() instead of isnan().
62961         * tests/test-ceilf1.c: Include isnanf.h.
62962         (main): Use isnanf() instead of isnan().
62963         * tests/test-truncf1.c: Include isnanf.h.
62964         (main): Use isnanf() instead of isnan().
62965         * tests/test-roundf1.c: Include isnanf.h.
62966         (main): Use isnanf() instead of isnan().
62967
62968 2007-10-21  Eric Blake  <ebb9@byu.net>
62969
62970         * users.txt: Update URL for m4.
62971
62972 2007-10-21  Bruno Haible  <bruno@clisp.org>
62973
62974         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62975
62976 2007-10-21  Bruno Haible  <bruno@clisp.org>
62977
62978         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62979         Git's management files if the CVS files are not present.
62980
62981 2007-10-20  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62984         gcc-3.4.x.
62985
62986 2007-10-20  Ben Pfaff  <blp@gnu.org>
62987
62988         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62989         implementations.
62990         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62991         * lib/round.c: New file.
62992         * lib/roundf.c: New file.
62993         * lib/roundl.c: New file.
62994         * m4/round.m4: New file.
62995         * m4/roundf.m4: New file.
62996         * m4/roundl.m4: New file.
62997         * m4/check-libm-func-m4: New file.
62998         * modules/math: Replace round, roundf, roundl related @VARS@ in
62999         math.in.h.
63000         * modules/round: New file.
63001         * modules/round-tests: New file.
63002         * modules/roundf: New file.
63003         * modules/roundf-tests: New file.
63004         * modules/roundl: New file.
63005         * modules/roundl-tests: New file.
63006         * tests/test-round1.c: New file.
63007         * tests/test-round2.c: New file.
63008         * tests/test-roundf1.c: New file.
63009         * tests/test-roundf2.c: New file.
63010         * tests/test-roundl.c: New file.
63011         * doc/functions/round.texi: Mention round module.
63012         * doc/functions/roundf.texi: Mention roundf module.
63013         * doc/functions/roundl.texi: Mention roundl module.
63014         * MODULES.html.sh: Mention new modules.
63015         Thanks to Bruno Haible for suggestions.
63016
63017 2007-10-20  Jim Meyering  <meyering@redhat.com>
63018
63019         * lib/xprintf.c: Include <config.h> unconditionally.
63020
63021         Change xprintf's license to GPL.
63022         * modules/xprintf (License): s/LGPL/GPL/, since this module
63023         depends on modules (exit and exitfail) which are GPL.
63024         Suggestion from Bruno Haible.
63025
63026         xprintf fixes.
63027         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63028         Use a clearer diagnostic.
63029         Patch from Bruno Haible.
63030
63031 2007-10-20  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63034         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63036
63037 2007-10-20  Bruno Haible  <bruno@clisp.org>
63038
63039         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63040         precision in the comparison result > x - 1 or similar.
63041         * tests/test-ceilf2.c (correct_result_p): Likewise.
63042         * tests/test-truncf2.c (correct_result_p): Likewise.
63043         * tests/test-trunc2.c (correct_result_p): Likewise.
63044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63045
63046 2007-10-20  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/ceil: New file.
63049         * m4/ceil.m4: New file.
63050         * doc/functions/ceil.texi: Mention the 'ceil' module.
63051
63052 2007-10-20  Bruno Haible  <bruno@clisp.org>
63053
63054         * modules/floor: New file.
63055         * m4/floor.m4: New file.
63056         * doc/functions/floor.texi: Mention the 'floor' module.
63057
63058 2007-10-20  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63061         of %a.
63062         * modules/floorf-tests (Depends-on): Likewise.
63063         * modules/truncf-tests (Depends-on): Likewise.
63064         * modules/trunc-tests (Depends-on): Likewise.
63065         Reported by Ben Pfaff.
63066
63067 2007-10-19  Jim Meyering  <meyering@redhat.com>
63068
63069         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63070         Don't bother testing specific errno values.  Just test ferror.
63071
63072         New module: xprintf
63073         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63074
63075 2007-10-19  Bruno Haible  <bruno@clisp.org>
63076
63077         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63078         syntax.
63079         * modules/javaexec (Makefile.am): Likewise.
63080         * modules/relocatable-prog (Makefile.am): Likewise.
63081         Suggested by Jim Meyering.
63082
63083 2007-10-18  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63086         Reported by Jim Meyering.
63087
63088 2007-10-18  Eric Blake  <ebb9@byu.net>
63089
63090         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63091
63092 2007-10-18  Bruno Haible  <bruno@clisp.org>
63093
63094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63095         the format string into writable memory. Needed in Fortify conditions.
63096
63097 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63098             Bruno Haible  <bruno@clisp.org>
63099
63100         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63101         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63102         * modules/trim (Depends-on): Add mbchar.
63103         (configure.ac): Add gl_FUNC_MBRTOWC.
63104         (Makefile.am): Augment lib_SOURCES.
63105
63106 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         Modify glob.c to use fstatat and dirfd, to simplify it.
63109         Suggested by Eric Blake.
63110         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63111         Don't include <stdbool.h>; not used.
63112         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63113         (link_exists_p): Simplify implementation, since we can now assume
63114         dirfd and fstatat.
63115         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63116
63117 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63118
63119         * gnulib-tool (func_get_dependencies): Fix sed script to
63120         match only tests.
63121
63122 2007-10-17  Bruno Haible  <bruno@clisp.org>
63123
63124         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63125         allow locale names without encoding suffix.
63126         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63127         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63128
63129 2007-10-16  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63132         * lib/getgroups.c (getgroups): Likewise.
63133         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63134
63135 2007-10-16  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63138         * modules/malloc-posix (License): Likewise.
63139         * modules/realloc-posix (License): Likewise.
63140         * modules/calloc-posix (License): Likewise.
63141         * modules/intprops (License): Change from GPL to LGPL, with
63142         Paul Eggert's approval.
63143
63144 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         Merge glibc changes into lib/glob.c.
63147
63148         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63149         2007-10-15 04:59:03 UTC.  Here are the changes:
63150
63151         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63152
63153         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63154
63155         * lib/glob.c: Add some branch prediction throughout.
63156
63157         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63158
63159         [BZ #5103]
63160         * lib/glob.c (glob): Recognize patterns starting \/.
63161
63162         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63163
63164         [BZ #3996]
63165         * lib/glob.c (attribute_hidden): Define if not defined.
63166         (glob): Unescape dirname, filename or username when needed and not
63167         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63168         is NULL.  Handle unescaped [ in pattern without closing ].
63169         Don't pass GLOB_CHECK down to recursive glob for directories.
63170         (__glob_pattern_type): New function.
63171         (__glob_pattern_p): Implement using __glob_pattern_type.
63172         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63173         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63174         Remove unreachable code.
63175
63176         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63177
63178         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63179         explain why there are no leaks.
63180
63181         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63182
63183         [BZ #3253]
63184         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63185         time, rather allocate increasingly bigger arrays of pointers, if
63186         possible with alloca, if too large with malloc.
63187
63188 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63191         Problem reported by H.Merijn Brand in
63192         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63193         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63194         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63195
63196 2007-10-15  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63199         with explicit rpl_ prefix.
63200         * lib/fopen.c (fopen): Likewise.
63201         * lib/freopen.c (freopen): Likewise.
63202         * lib/iconv.c (iconv): Likewise.
63203         * lib/iconv_close.c (iconv_close): Likewise.
63204
63205 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63206
63207         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63208
63209 2007-10-15  Bruno Haible  <bruno@clisp.org>
63210
63211         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63212         <stddef.h> instead of <stdlib.h> since we only need NULL.
63213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63214
63215 2007-10-15  Bruno Haible  <bruno@clisp.org>
63216
63217         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63218         Replace paragraph talking about LIBOBJS.
63219         Reported by Colin Watson <cjwatson@debian.org>.
63220
63221 2007-10-15  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63224         <stdlib.h> before using NULL.
63225
63226 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63227
63228         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63229         Reported by Albert Chin <china@thewrittenword.com>.
63230
63231 2007-10-14  Bruno Haible  <bruno@clisp.org>
63232
63233         * modules/iconv_open-utf-tests: New file.
63234         * tests/test-iconv-utf.c: New file.
63235
63236         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63237         * modules/iconv_open-utf: New file.
63238         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63239         (iconv, iconv_close): New declarations.
63240         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63241         be defined.
63242         (iconv_open): Add special handling of conversion between UTF-8 and
63243         UTF-{16,32}{BE,LE}.
63244         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63245         * lib/iconv_close.c: New file.
63246         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63247         gl_FUNC_ICONV_OPEN.
63248         (gl_FUNC_ICONV_OPEN): Use it.
63249         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63250         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63251         and REPLACE_ICONV_UTF.
63252         * modules/iconv_open (Depends-on): Add c-strcase.
63253         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63254         ICONV_CONST.
63255         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63256
63257 2007-10-13  Albert Chin  <china@thewrittenword.com>
63258             Bruno Haible  <bruno@clisp.org>
63259
63260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63261         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63262
63263 2007-10-13  Bruno Haible  <bruno@clisp.org>
63264
63265         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63266         defined, use the ISO C99 inline semantics.
63267         * lib/argp.h (ARGP_EI): Likewise.
63268
63269 2007-10-13  Bruno Haible  <bruno@clisp.org>
63270
63271         Handle 'inline' change in gcc 4.3.0.
63272         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63273         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63274         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63275         argp_fmtstream_point): Disable 'extern' declaration if the function
63276         definition is going to be provided inline.
63277         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63278         semantics, not the ISO C99 inline semantics.
63279         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63280         'extern' declaration if the function definition is going to be provided
63281         inline.
63282         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63283         the GNU C inline semantics, not the ISO C99 inline semantics. With
63284         GCC 4.2, avoid a warning.
63285
63286 2007-10-13  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/freading.h (freading): Enable the use of __freading for
63289         glibc >= 2.7.
63290         * lib/freading.c (freading): Likewise.
63291
63292 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63295         "warning: C99 inline functions are not supported; using GNU89".
63296
63297 2007-10-12  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63300         of 2.
63301         * tests/test-ceilf2.c: New file.
63302         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63303
63304         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63305         * modules/ceilf-tests: Update.
63306
63307 2007-10-12  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63310         of 2.
63311         * tests/test-floorf2.c: New file.
63312         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63313
63314         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63315         * modules/floorf-tests: Update.
63316
63317 2007-10-12  Bruno Haible  <bruno@clisp.org>
63318
63319         * tests/test-trunc2.c: New file.
63320         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63321
63322         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63323         * modules/trunc-tests: Update.
63324
63325 2007-10-12  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63328         of 2.
63329         * tests/test-truncf2.c: New file.
63330         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63331
63332         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63333         * modules/truncf-tests: Update.
63334
63335 2007-10-11  Eric Blake  <ebb9@byu.net>
63336
63337         Don't claim strerror is broken on Interix.
63338         * doc/functions/strerror.texi (strerror): Known broken systems are
63339         now Solaris 8, and not Interix.
63340         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63341         Interix on cross-compile.
63342         Reported by Martin Koeppe in
63343         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63344
63345 2007-10-11  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/i-ring-tests: New file.
63348         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63349         instead of assert.
63350
63351 2007-10-11  Bruno Haible  <bruno@clisp.org>
63352
63353         * modules/filenamecat-tests: New file.
63354         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63355         * lib/filenamecat.c: Remove test code.
63356
63357 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63358
63359         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63360
63361         * lib/strerror.c: Include <string.h> always, to test interface,
63362         and to remove the need for the dummy.
63363         Include intprops.h to compute width instead of doing it ourselves
63364         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63365         (strerror): Define it to return NULL if there's no system strerror.
63366         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63367         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63368         ancient pre-strerror Unix systems well any more.  Saying "unknown
63369         system error" is enough.
63370         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63371         simpler strerror.c implementation.
63372         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63373         Simplify the tests to reflect the simpler strerror implementation.
63374         * modules/strerror (Depends-on): Add intprops.
63375
63376 2007-10-09  Eric Blake  <ebb9@byu.net>
63377
63378         Silence test-fpending.
63379         * modules/fpending-tests (Files): Add wrapper script.
63380         * tests/test-fpending.sh: New file.
63381
63382 2007-10-09  Bruno Haible  <bruno@clisp.org>
63383
63384         * MODULES.html.sh (func_module): Don't create a hyperlink for
63385         function names like 'printf_frexp'.
63386         (Misc): Add crc, memxor.
63387         (Characteristics of floating types): New section.
63388         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63389         isnanf-nolibm, signbit, trunc, truncf, truncl.
63390         (Enhancements for ISO C 99 functions): New subsection Input/output.
63391         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63392         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63393         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63394         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63395         (Enhancements for POSIX:2001 functions): Add chdir-long.
63396         (File system functions): Add areadlink, chdir-safer, read-file.
63397         Remove cycle-check.
63398         (File system as inode set): New section.
63399         (Date and time): Add gethrxtime.
63400         (Multithreading): Add openmp.
63401         (Internationalization functions): Add localename.
63402         (Unicode string functions): Add unistr/u*-mbsnlen.
63403         (Support for maintaining and releasing projects): Add git-version-gen.
63404         (Lone files): Remove directories.
63405
63406 2007-10-08  Ben Pfaff  <blp@gnu.org>
63407
63408         * lib/xmalloca.h: Fix typo in comment.
63409
63410 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63411
63412         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63413         when avoiding problems with integer overflow.  Use a portable test
63414         instead.
63415
63416 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63417
63418         * modules/dummy (License): Change to LGPLv2+.
63419         * modules/float (License): Likewise
63420         * modules/realloc (License): Likewise
63421         * modules/stdlib (License): Likewise
63422
63423 2007-10-07  Bruno Haible  <bruno@clisp.org>
63424
63425         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63426         * floor.c (TWO_MANT_DIG): Likewise.
63427         * ceil.c (TWO_MANT_DIG): Likewise.
63428         Reported by Ben Pfaff.
63429
63430 2007-10-07  Bruno Haible  <bruno@clisp.org>
63431
63432         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63433         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63434         * lib/frexp.c (FUNC): Likewise.
63435         * lib/printf-frexp.h (printf_frexp): Likewise.
63436         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63437         * lib/printf-frexp.c (FUNC): Likewise.
63438         Suggested by Jim Meyering.
63439
63440 2007-10-07  Jim Meyering  <meyering@redhat.com>
63441
63442         Make xnanosleep's integer overflow test more robust.
63443         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63444         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63445
63446 2007-10-07  Bruno Haible  <bruno@clisp.org>
63447
63448         * NEWS: Mention the license change.
63449
63450         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63451         abbreviations in the modules files.
63452
63453         Change copyright notice from GPLv2+ to GPLv3+.
63454         * README: Change copyright notice.
63455         * MODULES.html.sh: Likewise.
63456         * build-aux/bootstrap.conf: Likewise.
63457         * build-aux/config.libpath: Likewise.
63458         * build-aux/csharpcomp.sh.in: Likewise.
63459         * build-aux/csharpexec.sh.in: Likewise.
63460         * build-aux/install-reloc: Likewise.
63461         * build-aux/javacomp.sh.in: Likewise.
63462         * build-aux/javaexec.sh.in: Likewise.
63463         * build-aux/ldd.sh.in: Likewise.
63464         * build-aux/reloc-ldflags: Likewise.
63465         * build-aux/relocatable.sh.in: Likewise.
63466         * build-aux/x-to-1.in: Likewise.
63467         * check-module: Likewise.
63468         * config/srclistvars.sh: Likewise.
63469         * gnulib-tool: Likewise.
63470         * lib/acl-internal.h: Likewise.
63471         * lib/acl.c: Likewise.
63472         * lib/acl.h: Likewise.
63473         * lib/acl_entries.c: Likewise.
63474         * lib/areadlink-with-size.c: Likewise.
63475         * lib/areadlink.c: Likewise.
63476         * lib/areadlink.h: Likewise.
63477         * lib/argmatch.c: Likewise.
63478         * lib/argmatch.h: Likewise.
63479         * lib/argp-ba.c: Likewise.
63480         * lib/argp-eexst.c: Likewise.
63481         * lib/argp-fmtstream.c: Likewise.
63482         * lib/argp-fmtstream.h: Likewise.
63483         * lib/argp-fs-xinl.c: Likewise.
63484         * lib/argp-help.c: Likewise.
63485         * lib/argp-namefrob.h: Likewise.
63486         * lib/argp-parse.c: Likewise.
63487         * lib/argp-pin.c: Likewise.
63488         * lib/argp-pv.c: Likewise.
63489         * lib/argp-pvh.c: Likewise.
63490         * lib/argp-xinl.c: Likewise.
63491         * lib/argp.h: Likewise.
63492         * lib/at-func.c: Likewise.
63493         * lib/atanl.c: Likewise.
63494         * lib/backupfile.c: Likewise.
63495         * lib/backupfile.h: Likewise.
63496         * lib/basename.c: Likewise.
63497         * lib/binary-io.h: Likewise.
63498         * lib/byteswap.in.h: Likewise.
63499         * lib/c-stack.c: Likewise.
63500         * lib/c-stack.h: Likewise.
63501         * lib/c-strcasestr.c: Likewise.
63502         * lib/c-strcasestr.h: Likewise.
63503         * lib/c-strstr.c: Likewise.
63504         * lib/c-strstr.h: Likewise.
63505         * lib/c-strtod.c: Likewise.
63506         * lib/calloc.c: Likewise.
63507         * lib/canon-host.c: Likewise.
63508         * lib/canon-host.h: Likewise.
63509         * lib/canonicalize-lgpl.c: Likewise.
63510         * lib/canonicalize.c: Likewise.
63511         * lib/canonicalize.h: Likewise.
63512         * lib/ceil.c: Likewise.
63513         * lib/ceilf.c: Likewise.
63514         * lib/ceill.c: Likewise.
63515         * lib/chdir-long.c: Likewise.
63516         * lib/chdir-long.h: Likewise.
63517         * lib/chdir-safer.c: Likewise.
63518         * lib/chdir-safer.h: Likewise.
63519         * lib/chown.c: Likewise.
63520         * lib/classpath.c: Likewise.
63521         * lib/classpath.h: Likewise.
63522         * lib/clean-temp.c: Likewise.
63523         * lib/clean-temp.h: Likewise.
63524         * lib/cloexec.c: Likewise.
63525         * lib/close-stream.c: Likewise.
63526         * lib/closein.c: Likewise.
63527         * lib/closein.h: Likewise.
63528         * lib/closeout.c: Likewise.
63529         * lib/closeout.h: Likewise.
63530         * lib/concat-filename.c: Likewise.
63531         * lib/copy-file.c: Likewise.
63532         * lib/copy-file.h: Likewise.
63533         * lib/count-one-bits.h: Likewise.
63534         * lib/crc.c: Likewise.
63535         * lib/crc.h: Likewise.
63536         * lib/creat-safer.c: Likewise.
63537         * lib/csharpcomp.c: Likewise.
63538         * lib/csharpcomp.h: Likewise.
63539         * lib/csharpexec.c: Likewise.
63540         * lib/csharpexec.h: Likewise.
63541         * lib/cycle-check.c: Likewise.
63542         * lib/cycle-check.h: Likewise.
63543         * lib/diacrit.c: Likewise.
63544         * lib/diacrit.h: Likewise.
63545         * lib/diffseq.h: Likewise.
63546         * lib/dirchownmod.c: Likewise.
63547         * lib/dirent.in.h: Likewise.
63548         * lib/dirfd.c: Likewise.
63549         * lib/dirfd.h: Likewise.
63550         * lib/dirname.c: Likewise.
63551         * lib/dirname.h: Likewise.
63552         * lib/dummy.c: Likewise.
63553         * lib/dup-safer.c: Likewise.
63554         * lib/dup2.c: Likewise.
63555         * lib/eealloc.h: Likewise.
63556         * lib/error.c: Likewise.
63557         * lib/error.h: Likewise.
63558         * lib/euidaccess.c: Likewise.
63559         * lib/exclude.c: Likewise.
63560         * lib/exclude.h: Likewise.
63561         * lib/execute.c: Likewise.
63562         * lib/execute.h: Likewise.
63563         * lib/exitfail.c: Likewise.
63564         * lib/exitfail.h: Likewise.
63565         * lib/expl.c: Likewise.
63566         * lib/fatal-signal.c: Likewise.
63567         * lib/fatal-signal.h: Likewise.
63568         * lib/fbufmode.c: Likewise.
63569         * lib/fbufmode.h: Likewise.
63570         * lib/fchdir.c: Likewise.
63571         * lib/fchmodat.c: Likewise.
63572         * lib/fchownat.c: Likewise.
63573         * lib/fcntl--.h: Likewise.
63574         * lib/fcntl-safer.h: Likewise.
63575         * lib/fcntl.in.h: Likewise.
63576         * lib/fd-safer.c: Likewise.
63577         * lib/fflush.c: Likewise.
63578         * lib/file-has-acl.c: Likewise.
63579         * lib/file-set.c: Likewise.
63580         * lib/file-type.c: Likewise.
63581         * lib/file-type.h: Likewise.
63582         * lib/fileblocks.c: Likewise.
63583         * lib/filemode.c: Likewise.
63584         * lib/filemode.h: Likewise.
63585         * lib/filename.h: Likewise.
63586         * lib/filenamecat.c: Likewise.
63587         * lib/filenamecat.h: Likewise.
63588         * lib/findprog.c: Likewise.
63589         * lib/findprog.h: Likewise.
63590         * lib/float.in.h: Likewise.
63591         * lib/floor.c: Likewise.
63592         * lib/floorf.c: Likewise.
63593         * lib/floorl.c: Likewise.
63594         * lib/fopen-safer.c: Likewise.
63595         * lib/fopen.c: Likewise.
63596         * lib/fpending.c: Likewise.
63597         * lib/fpending.h: Likewise.
63598         * lib/fprintf.c: Likewise.
63599         * lib/fprintftime.h: Likewise.
63600         * lib/fpucw.h: Likewise.
63601         * lib/fpurge.c: Likewise.
63602         * lib/fpurge.h: Likewise.
63603         * lib/freadable.c: Likewise.
63604         * lib/freadable.h: Likewise.
63605         * lib/freadahead.c: Likewise.
63606         * lib/freadahead.h: Likewise.
63607         * lib/freading.c: Likewise.
63608         * lib/freading.h: Likewise.
63609         * lib/free.c: Likewise.
63610         * lib/freopen.c: Likewise.
63611         * lib/frexp.c: Likewise.
63612         * lib/frexpl.c: Likewise.
63613         * lib/fseek.c: Likewise.
63614         * lib/fseterr.c: Likewise.
63615         * lib/fseterr.h: Likewise.
63616         * lib/fstatat.c: Likewise.
63617         * lib/fstrcmp.c: Likewise.
63618         * lib/fstrcmp.h: Likewise.
63619         * lib/fsusage.c: Likewise.
63620         * lib/fsusage.h: Likewise.
63621         * lib/ftell.c: Likewise.
63622         * lib/ftello.c: Likewise.
63623         * lib/fts-cycle.c: Likewise.
63624         * lib/fts.c: Likewise.
63625         * lib/fts_.h: Likewise.
63626         * lib/full-read.c: Likewise.
63627         * lib/full-read.h: Likewise.
63628         * lib/full-write.c: Likewise.
63629         * lib/full-write.h: Likewise.
63630         * lib/fwritable.c: Likewise.
63631         * lib/fwritable.h: Likewise.
63632         * lib/fwriteerror.c: Likewise.
63633         * lib/fwriteerror.h: Likewise.
63634         * lib/fwriting.c: Likewise.
63635         * lib/fwriting.h: Likewise.
63636         * lib/gcd.c: Likewise.
63637         * lib/gcd.h: Likewise.
63638         * lib/getcwd.c: Likewise.
63639         * lib/getdate.h: Likewise.
63640         * lib/getdate.y: Likewise.
63641         * lib/getdomainname.c: Likewise.
63642         * lib/getdomainname.h: Likewise.
63643         * lib/getgroups.c: Likewise.
63644         * lib/gethostname.c: Likewise.
63645         * lib/gethrxtime.c: Likewise.
63646         * lib/gethrxtime.h: Likewise.
63647         * lib/getloadavg.c: Likewise.
63648         * lib/getndelim2.c: Likewise.
63649         * lib/getndelim2.h: Likewise.
63650         * lib/getnline.c: Likewise.
63651         * lib/getnline.h: Likewise.
63652         * lib/getopt.c: Likewise.
63653         * lib/getopt.in.h: Likewise.
63654         * lib/getopt1.c: Likewise.
63655         * lib/getopt_int.h: Likewise.
63656         * lib/getpagesize.h: Likewise.
63657         * lib/getsubopt.c: Likewise.
63658         * lib/gettime.c: Likewise.
63659         * lib/getugroups.c: Likewise.
63660         * lib/getugroups.h: Likewise.
63661         * lib/getusershell.c: Likewise.
63662         * lib/gl_anyavltree_list1.h: Likewise.
63663         * lib/gl_anyavltree_list2.h: Likewise.
63664         * lib/gl_anyhash_list1.h: Likewise.
63665         * lib/gl_anyhash_list2.h: Likewise.
63666         * lib/gl_anylinked_list1.h: Likewise.
63667         * lib/gl_anylinked_list2.h: Likewise.
63668         * lib/gl_anyrbtree_list1.h: Likewise.
63669         * lib/gl_anyrbtree_list2.h: Likewise.
63670         * lib/gl_anytree_list1.h: Likewise.
63671         * lib/gl_anytree_list2.h: Likewise.
63672         * lib/gl_anytree_oset.h: Likewise.
63673         * lib/gl_anytreehash_list1.h: Likewise.
63674         * lib/gl_anytreehash_list2.h: Likewise.
63675         * lib/gl_array_list.c: Likewise.
63676         * lib/gl_array_list.h: Likewise.
63677         * lib/gl_array_oset.c: Likewise.
63678         * lib/gl_array_oset.h: Likewise.
63679         * lib/gl_avltree_list.c: Likewise.
63680         * lib/gl_avltree_list.h: Likewise.
63681         * lib/gl_avltree_oset.c: Likewise.
63682         * lib/gl_avltree_oset.h: Likewise.
63683         * lib/gl_avltreehash_list.c: Likewise.
63684         * lib/gl_avltreehash_list.h: Likewise.
63685         * lib/gl_carray_list.c: Likewise.
63686         * lib/gl_carray_list.h: Likewise.
63687         * lib/gl_linked_list.c: Likewise.
63688         * lib/gl_linked_list.h: Likewise.
63689         * lib/gl_linkedhash_list.c: Likewise.
63690         * lib/gl_linkedhash_list.h: Likewise.
63691         * lib/gl_list.c: Likewise.
63692         * lib/gl_list.h: Likewise.
63693         * lib/gl_oset.c: Likewise.
63694         * lib/gl_oset.h: Likewise.
63695         * lib/gl_rbtree_list.c: Likewise.
63696         * lib/gl_rbtree_list.h: Likewise.
63697         * lib/gl_rbtree_oset.c: Likewise.
63698         * lib/gl_rbtree_oset.h: Likewise.
63699         * lib/gl_rbtreehash_list.c: Likewise.
63700         * lib/gl_rbtreehash_list.h: Likewise.
63701         * lib/gl_sublist.c: Likewise.
63702         * lib/gl_sublist.h: Likewise.
63703         * lib/group-member.c: Likewise.
63704         * lib/group-member.h: Likewise.
63705         * lib/hard-locale.c: Likewise.
63706         * lib/hard-locale.h: Likewise.
63707         * lib/hash-pjw.c: Likewise.
63708         * lib/hash-pjw.h: Likewise.
63709         * lib/hash-triple.c: Likewise.
63710         * lib/hash.c: Likewise.
63711         * lib/hash.h: Likewise.
63712         * lib/human.c: Likewise.
63713         * lib/human.h: Likewise.
63714         * lib/i-ring.c: Likewise.
63715         * lib/i-ring.h: Likewise.
63716         * lib/idcache.c: Likewise.
63717         * lib/imaxabs.c: Likewise.
63718         * lib/imaxdiv.c: Likewise.
63719         * lib/inet_pton.c: Likewise.
63720         * lib/inet_pton.h: Likewise.
63721         * lib/intprops.h: Likewise.
63722         * lib/inttostr.c: Likewise.
63723         * lib/inttostr.h: Likewise.
63724         * lib/inttypes.in.h: Likewise.
63725         * lib/isapipe.c: Likewise.
63726         * lib/isdir.c: Likewise.
63727         * lib/isnan.c: Likewise.
63728         * lib/isnan.h: Likewise.
63729         * lib/isnanf.c: Likewise.
63730         * lib/isnanf.h: Likewise.
63731         * lib/isnanl-nolibm.h: Likewise.
63732         * lib/isnanl.c: Likewise.
63733         * lib/isnanl.h: Likewise.
63734         * lib/javacomp.c: Likewise.
63735         * lib/javacomp.h: Likewise.
63736         * lib/javaexec.c: Likewise.
63737         * lib/javaexec.h: Likewise.
63738         * lib/javaversion.c: Likewise.
63739         * lib/javaversion.h: Likewise.
63740         * lib/javaversion.java: Likewise.
63741         * lib/lbrkprop.h: Likewise.
63742         * lib/lchmod.h: Likewise.
63743         * lib/lchown.c: Likewise.
63744         * lib/ldexpl.c: Likewise.
63745         * lib/linebreak.c: Likewise.
63746         * lib/linebreak.h: Likewise.
63747         * lib/linebuffer.c: Likewise.
63748         * lib/linebuffer.h: Likewise.
63749         * lib/locale.in.h: Likewise.
63750         * lib/logl.c: Likewise.
63751         * lib/long-options.c: Likewise.
63752         * lib/long-options.h: Likewise.
63753         * lib/lstat.c: Likewise.
63754         * lib/lstat.h: Likewise.
63755         * lib/math.in.h: Likewise.
63756         * lib/mbchar.c: Likewise.
63757         * lib/mbchar.h: Likewise.
63758         * lib/mbfile.h: Likewise.
63759         * lib/mbiter.h: Likewise.
63760         * lib/mbscasecmp.c: Likewise.
63761         * lib/mbscasestr.c: Likewise.
63762         * lib/mbschr.c: Likewise.
63763         * lib/mbscspn.c: Likewise.
63764         * lib/mbslen.c: Likewise.
63765         * lib/mbsncasecmp.c: Likewise.
63766         * lib/mbsnlen.c: Likewise.
63767         * lib/mbspbrk.c: Likewise.
63768         * lib/mbspcasecmp.c: Likewise.
63769         * lib/mbsrchr.c: Likewise.
63770         * lib/mbssep.c: Likewise.
63771         * lib/mbsspn.c: Likewise.
63772         * lib/mbsstr.c: Likewise.
63773         * lib/mbstok_r.c: Likewise.
63774         * lib/mbswidth.c: Likewise.
63775         * lib/mbswidth.h: Likewise.
63776         * lib/mbuiter.h: Likewise.
63777         * lib/memcasecmp.c: Likewise.
63778         * lib/memcasecmp.h: Likewise.
63779         * lib/memchr.c: Likewise.
63780         * lib/memcmp.c: Likewise.
63781         * lib/memcoll.c: Likewise.
63782         * lib/memcoll.h: Likewise.
63783         * lib/memcpy.c: Likewise.
63784         * lib/memrchr.c: Likewise.
63785         * lib/mkancesdirs.c: Likewise.
63786         * lib/mkdir-p.c: Likewise.
63787         * lib/mkdir-p.h: Likewise.
63788         * lib/mkdir.c: Likewise.
63789         * lib/mkdirat.c: Likewise.
63790         * lib/mkdtemp.c: Likewise.
63791         * lib/mkstemp-safer.c: Likewise.
63792         * lib/mkstemp.c: Likewise.
63793         * lib/modechange.c: Likewise.
63794         * lib/modechange.h: Likewise.
63795         * lib/mountlist.c: Likewise.
63796         * lib/mountlist.h: Likewise.
63797         * lib/mpsort.c: Likewise.
63798         * lib/nanosleep.c: Likewise.
63799         * lib/obstack.c: Likewise.
63800         * lib/obstack.h: Likewise.
63801         * lib/open-safer.c: Likewise.
63802         * lib/open.c: Likewise.
63803         * lib/openat-die.c: Likewise.
63804         * lib/openat-priv.h: Likewise.
63805         * lib/openat-proc.c: Likewise.
63806         * lib/openat.c: Likewise.
63807         * lib/openat.h: Likewise.
63808         * lib/pagealign_alloc.c: Likewise.
63809         * lib/pagealign_alloc.h: Likewise.
63810         * lib/physmem.c: Likewise.
63811         * lib/physmem.h: Likewise.
63812         * lib/pipe-safer.c: Likewise.
63813         * lib/pipe.c: Likewise.
63814         * lib/pipe.h: Likewise.
63815         * lib/posixtm.c: Likewise.
63816         * lib/posixtm.h: Likewise.
63817         * lib/posixver.c: Likewise.
63818         * lib/printf-frexp.c: Likewise.
63819         * lib/printf-frexp.h: Likewise.
63820         * lib/printf-frexpl.c: Likewise.
63821         * lib/printf-frexpl.h: Likewise.
63822         * lib/printf.c: Likewise.
63823         * lib/progname.c: Likewise.
63824         * lib/progname.h: Likewise.
63825         * lib/progreloc.c: Likewise.
63826         * lib/putenv.c: Likewise.
63827         * lib/quote.c: Likewise.
63828         * lib/quote.h: Likewise.
63829         * lib/quotearg.c: Likewise.
63830         * lib/quotearg.h: Likewise.
63831         * lib/raise.c: Likewise.
63832         * lib/readline.c: Likewise.
63833         * lib/readline.h: Likewise.
63834         * lib/readlink.c: Likewise.
63835         * lib/readtokens.c: Likewise.
63836         * lib/readtokens.h: Likewise.
63837         * lib/readtokens0.c: Likewise.
63838         * lib/readtokens0.h: Likewise.
63839         * lib/readutmp.c: Likewise.
63840         * lib/readutmp.h: Likewise.
63841         * lib/realloc.c: Likewise.
63842         * lib/relocwrapper.c: Likewise.
63843         * lib/rename-dest-slash.c: Likewise.
63844         * lib/rename.c: Likewise.
63845         * lib/rmdir.c: Likewise.
63846         * lib/rpmatch.c: Likewise.
63847         * lib/safe-read.c: Likewise.
63848         * lib/safe-read.h: Likewise.
63849         * lib/safe-write.c: Likewise.
63850         * lib/safe-write.h: Likewise.
63851         * lib/same-inode.h: Likewise.
63852         * lib/same.c: Likewise.
63853         * lib/same.h: Likewise.
63854         * lib/save-cwd.c: Likewise.
63855         * lib/save-cwd.h: Likewise.
63856         * lib/savedir.c: Likewise.
63857         * lib/savedir.h: Likewise.
63858         * lib/savewd.c: Likewise.
63859         * lib/savewd.h: Likewise.
63860         * lib/search.in.h: Likewise.
63861         * lib/setenv.c: Likewise.
63862         * lib/setenv.h: Likewise.
63863         * lib/settime.c: Likewise.
63864         * lib/sh-quote.c: Likewise.
63865         * lib/sh-quote.h: Likewise.
63866         * lib/sig2str.c: Likewise.
63867         * lib/sig2str.h: Likewise.
63868         * lib/signal.in.h: Likewise.
63869         * lib/signbitd.c: Likewise.
63870         * lib/signbitf.c: Likewise.
63871         * lib/signbitl.c: Likewise.
63872         * lib/sigprocmask.c: Likewise.
63873         * lib/sincosl.c: Likewise.
63874         * lib/sleep.c: Likewise.
63875         * lib/sprintf.c: Likewise.
63876         * lib/sqrtl.c: Likewise.
63877         * lib/stat-time.h: Likewise.
63878         * lib/stdio--.h: Likewise.
63879         * lib/stdio-safer.h: Likewise.
63880         * lib/stdlib--.h: Likewise.
63881         * lib/stdlib-safer.h: Likewise.
63882         * lib/stdlib.in.h: Likewise.
63883         * lib/stpcpy.c: Likewise.
63884         * lib/stpncpy.c: Likewise.
63885         * lib/strchrnul.c: Likewise.
63886         * lib/strcspn.c: Likewise.
63887         * lib/strerror.c: Likewise.
63888         * lib/strftime.c: Likewise.
63889         * lib/strftime.h: Likewise.
63890         * lib/striconveh.c: Likewise.
63891         * lib/striconveh.h: Likewise.
63892         * lib/striconveha.c: Likewise.
63893         * lib/striconveha.h: Likewise.
63894         * lib/stripslash.c: Likewise.
63895         * lib/strnlen1.c: Likewise.
63896         * lib/strnlen1.h: Likewise.
63897         * lib/strtod.c: Likewise.
63898         * lib/strtoimax.c: Likewise.
63899         * lib/strtok_r.c: Likewise.
63900         * lib/strtol.c: Likewise.
63901         * lib/strtoll.c: Likewise.
63902         * lib/strtoul.c: Likewise.
63903         * lib/strtoull.c: Likewise.
63904         * lib/sysexits.in.h: Likewise.
63905         * lib/tempname.c: Likewise.
63906         * lib/tempname.h: Likewise.
63907         * lib/timespec.h: Likewise.
63908         * lib/tls.c: Likewise.
63909         * lib/tls.h: Likewise.
63910         * lib/tmpdir.c: Likewise.
63911         * lib/tmpdir.h: Likewise.
63912         * lib/tmpfile-safer.c: Likewise.
63913         * lib/tmpfile.c: Likewise.
63914         * lib/trigl.c: Likewise.
63915         * lib/trigl.h: Likewise.
63916         * lib/trim.c: Likewise.
63917         * lib/trim.h: Likewise.
63918         * lib/trunc.c: Likewise.
63919         * lib/truncf.c: Likewise.
63920         * lib/truncl.c: Likewise.
63921         * lib/tsearch.c: Likewise.
63922         * lib/unicodeio.c: Likewise.
63923         * lib/unicodeio.h: Likewise.
63924         * lib/unistd--.h: Likewise.
63925         * lib/unistd-safer.h: Likewise.
63926         * lib/unistdio/ulc-fprintf.c: Likewise.
63927         * lib/unistdio/ulc-vfprintf.c: Likewise.
63928         * lib/unlinkdir.c: Likewise.
63929         * lib/unlinkdir.h: Likewise.
63930         * lib/unlocked-io.h: Likewise.
63931         * lib/unsetenv.c: Likewise.
63932         * lib/userspec.c: Likewise.
63933         * lib/utime.c: Likewise.
63934         * lib/utimecmp.c: Likewise.
63935         * lib/utimecmp.h: Likewise.
63936         * lib/utimens.c: Likewise.
63937         * lib/verify.h: Likewise.
63938         * lib/verror.c: Likewise.
63939         * lib/verror.h: Likewise.
63940         * lib/version-etc-fsf.c: Likewise.
63941         * lib/version-etc.c: Likewise.
63942         * lib/version-etc.h: Likewise.
63943         * lib/vfprintf.c: Likewise.
63944         * lib/vprintf.c: Likewise.
63945         * lib/vsprintf.c: Likewise.
63946         * lib/w32spawn.h: Likewise.
63947         * lib/wait-process.c: Likewise.
63948         * lib/wait-process.h: Likewise.
63949         * lib/wcwidth.c: Likewise.
63950         * lib/write-any-file.c: Likewise.
63951         * lib/xalloc-die.c: Likewise.
63952         * lib/xalloc.h: Likewise.
63953         * lib/xasprintf.c: Likewise.
63954         * lib/xgetcwd.c: Likewise.
63955         * lib/xgetcwd.h: Likewise.
63956         * lib/xgetdomainname.c: Likewise.
63957         * lib/xgetdomainname.h: Likewise.
63958         * lib/xgethostname.c: Likewise.
63959         * lib/xmalloc.c: Likewise.
63960         * lib/xmalloca.c: Likewise.
63961         * lib/xmalloca.h: Likewise.
63962         * lib/xmemcoll.c: Likewise.
63963         * lib/xnanosleep.c: Likewise.
63964         * lib/xreadlink.c: Likewise.
63965         * lib/xreadlink.h: Likewise.
63966         * lib/xsetenv.c: Likewise.
63967         * lib/xsetenv.h: Likewise.
63968         * lib/xstriconv.c: Likewise.
63969         * lib/xstriconv.h: Likewise.
63970         * lib/xstrndup.c: Likewise.
63971         * lib/xstrndup.h: Likewise.
63972         * lib/xstrtod.c: Likewise.
63973         * lib/xstrtod.h: Likewise.
63974         * lib/xstrtol-error.c: Likewise.
63975         * lib/xstrtol.c: Likewise.
63976         * lib/xstrtol.h: Likewise.
63977         * lib/xtime.h: Likewise.
63978         * lib/xvasprintf.c: Likewise.
63979         * lib/xvasprintf.h: Likewise.
63980         * lib/yesno.c: Likewise.
63981         * lib/yesno.h: Likewise.
63982         * posix-modules: Likewise.
63983         * tests/test-alloca-opt.c: Likewise.
63984         * tests/test-arcfour.c: Likewise.
63985         * tests/test-arctwo.c: Likewise.
63986         * tests/test-argmatch.c: Likewise.
63987         * tests/test-argp-2.sh: Likewise.
63988         * tests/test-argp.c: Likewise.
63989         * tests/test-arpa_inet.c: Likewise.
63990         * tests/test-array_list.c: Likewise.
63991         * tests/test-array_oset.c: Likewise.
63992         * tests/test-atexit.c: Likewise.
63993         * tests/test-avltree_list.c: Likewise.
63994         * tests/test-avltree_oset.c: Likewise.
63995         * tests/test-avltreehash_list.c: Likewise.
63996         * tests/test-base64.c: Likewise.
63997         * tests/test-binary-io.c: Likewise.
63998         * tests/test-byteswap.c: Likewise.
63999         * tests/test-c-ctype.c: Likewise.
64000         * tests/test-c-strcasecmp.c: Likewise.
64001         * tests/test-c-strcasestr.c: Likewise.
64002         * tests/test-c-strncasecmp.c: Likewise.
64003         * tests/test-c-strstr.c: Likewise.
64004         * tests/test-canonicalize-lgpl.c: Likewise.
64005         * tests/test-canonicalize.c: Likewise.
64006         * tests/test-carray_list.c: Likewise.
64007         * tests/test-ceilf.c: Likewise.
64008         * tests/test-ceill.c: Likewise.
64009         * tests/test-count-one-bits.c: Likewise.
64010         * tests/test-crc.c: Likewise.
64011         * tests/test-dirname.c: Likewise.
64012         * tests/test-fbufmode.c: Likewise.
64013         * tests/test-fcntl.c: Likewise.
64014         * tests/test-fflush.c: Likewise.
64015         * tests/test-floorf.c: Likewise.
64016         * tests/test-floorl.c: Likewise.
64017         * tests/test-fopen.c: Likewise.
64018         * tests/test-fprintf-posix.c: Likewise.
64019         * tests/test-fprintf-posix.h: Likewise.
64020         * tests/test-fpurge.c: Likewise.
64021         * tests/test-freadable.c: Likewise.
64022         * tests/test-freadahead.c: Likewise.
64023         * tests/test-freading.c: Likewise.
64024         * tests/test-freopen.c: Likewise.
64025         * tests/test-frexp.c: Likewise.
64026         * tests/test-frexpl.c: Likewise.
64027         * tests/test-fseek.c: Likewise.
64028         * tests/test-fseeko.c: Likewise.
64029         * tests/test-fseterr.c: Likewise.
64030         * tests/test-fstrcmp.c: Likewise.
64031         * tests/test-ftell.c: Likewise.
64032         * tests/test-ftello.c: Likewise.
64033         * tests/test-fwritable.c: Likewise.
64034         * tests/test-fwriting.c: Likewise.
64035         * tests/test-getaddrinfo.c: Likewise.
64036         * tests/test-getpass.c: Likewise.
64037         * tests/test-gettimeofday.c: Likewise.
64038         * tests/test-hmac-md5.c: Likewise.
64039         * tests/test-hmac-sha1.c: Likewise.
64040         * tests/test-iconv.c: Likewise.
64041         * tests/test-iconvme.c: Likewise.
64042         * tests/test-inttypes.c: Likewise.
64043         * tests/test-isnan.c: Likewise.
64044         * tests/test-isnanf.c: Likewise.
64045         * tests/test-isnanl-nolibm.c: Likewise.
64046         * tests/test-isnanl.c: Likewise.
64047         * tests/test-isnanl.h: Likewise.
64048         * tests/test-ldexpl.c: Likewise.
64049         * tests/test-linked_list.c: Likewise.
64050         * tests/test-linkedhash_list.c: Likewise.
64051         * tests/test-locale.c: Likewise.
64052         * tests/test-localename.c: Likewise.
64053         * tests/test-lock.c: Likewise.
64054         * tests/test-lseek.c: Likewise.
64055         * tests/test-malloca.c: Likewise.
64056         * tests/test-math.c: Likewise.
64057         * tests/test-mbscasecmp.c: Likewise.
64058         * tests/test-mbscasestr1.c: Likewise.
64059         * tests/test-mbscasestr2.c: Likewise.
64060         * tests/test-mbscasestr3.c: Likewise.
64061         * tests/test-mbscasestr4.c: Likewise.
64062         * tests/test-mbschr.c: Likewise.
64063         * tests/test-mbscspn.c: Likewise.
64064         * tests/test-mbsncasecmp.c: Likewise.
64065         * tests/test-mbspbrk.c: Likewise.
64066         * tests/test-mbspcasecmp.c: Likewise.
64067         * tests/test-mbsrchr.c: Likewise.
64068         * tests/test-mbsspn.c: Likewise.
64069         * tests/test-mbsstr1.c: Likewise.
64070         * tests/test-mbsstr2.c: Likewise.
64071         * tests/test-mbsstr3.c: Likewise.
64072         * tests/test-md5.c: Likewise.
64073         * tests/test-memmem.c: Likewise.
64074         * tests/test-netinet_in.c: Likewise.
64075         * tests/test-open.c: Likewise.
64076         * tests/test-printf-frexp.c: Likewise.
64077         * tests/test-printf-frexpl.c: Likewise.
64078         * tests/test-printf-posix.c: Likewise.
64079         * tests/test-printf-posix.h: Likewise.
64080         * tests/test-rbtree_list.c: Likewise.
64081         * tests/test-rbtree_oset.c: Likewise.
64082         * tests/test-rbtreehash_list.c: Likewise.
64083         * tests/test-read-file.c: Likewise.
64084         * tests/test-rijndael.c: Likewise.
64085         * tests/test-search.c: Likewise.
64086         * tests/test-signbit.c: Likewise.
64087         * tests/test-sleep.c: Likewise.
64088         * tests/test-snprintf-posix.c: Likewise.
64089         * tests/test-snprintf-posix.h: Likewise.
64090         * tests/test-snprintf.c: Likewise.
64091         * tests/test-sprintf-posix.c: Likewise.
64092         * tests/test-sprintf-posix.h: Likewise.
64093         * tests/test-stat-time.c: Likewise.
64094         * tests/test-stdbool.c: Likewise.
64095         * tests/test-stdint.c: Likewise.
64096         * tests/test-stdio.c: Likewise.
64097         * tests/test-stdlib.c: Likewise.
64098         * tests/test-stpncpy.c: Likewise.
64099         * tests/test-strcasestr.c: Likewise.
64100         * tests/test-striconv.c: Likewise.
64101         * tests/test-striconveh.c: Likewise.
64102         * tests/test-striconveha.c: Likewise.
64103         * tests/test-string.c: Likewise.
64104         * tests/test-sys_select.c: Likewise.
64105         * tests/test-sys_socket.c: Likewise.
64106         * tests/test-sys_stat.c: Likewise.
64107         * tests/test-sys_time.c: Likewise.
64108         * tests/test-sysexits.c: Likewise.
64109         * tests/test-time.c: Likewise.
64110         * tests/test-tls.c: Likewise.
64111         * tests/test-trunc.c: Likewise.
64112         * tests/test-truncf.c: Likewise.
64113         * tests/test-truncl.c: Likewise.
64114         * tests/test-unistd.c: Likewise.
64115         * tests/test-vasnprintf-posix.c: Likewise.
64116         * tests/test-vasnprintf-posix2.c: Likewise.
64117         * tests/test-vasnprintf.c: Likewise.
64118         * tests/test-vasprintf-posix.c: Likewise.
64119         * tests/test-vasprintf.c: Likewise.
64120         * tests/test-verify.c: Likewise.
64121         * tests/test-vfprintf-posix.c: Likewise.
64122         * tests/test-vprintf-posix.c: Likewise.
64123         * tests/test-vsnprintf-posix.c: Likewise.
64124         * tests/test-vsnprintf.c: Likewise.
64125         * tests/test-vsprintf-posix.c: Likewise.
64126         * tests/test-wchar.c: Likewise.
64127         * tests/test-wctype.c: Likewise.
64128         * tests/test-wcwidth.c: Likewise.
64129         * tests/test-xstrtol.c: Likewise.
64130         * tests/test-xvasprintf.c: Likewise.
64131         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64132         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64133         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64134         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64135         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64136         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64137         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64138         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64139         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64140         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64141         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64142         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64143         * tests/uniname/test-uninames.c: Likewise.
64144         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64145         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64146         * tests/unistdio/test-u16-printf1.h: Likewise.
64147         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64148         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64149         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64150         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64151         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64152         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64153         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64154         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64155         * tests/unistdio/test-u32-printf1.h: Likewise.
64156         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64157         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64158         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64159         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64160         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64161         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64162         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64163         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64164         * tests/unistdio/test-u8-printf1.h: Likewise.
64165         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64166         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64167         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64168         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64169         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64170         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64171         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64172         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64173         * tests/unistdio/test-ulc-printf1.h: Likewise.
64174         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64175         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64176         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64177         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64178         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64179         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64180         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64181         * tests/uniwidth/test-u16-width.c: Likewise.
64182         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64183         * tests/uniwidth/test-u32-width.c: Likewise.
64184         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64185         * tests/uniwidth/test-u8-width.c: Likewise.
64186         * tests/uniwidth/test-uc_width.c: Likewise.
64187         * config/srclist-update: Likewise.
64188         (fixlicense): Update to GPLv3+.
64189
64190         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64191         * tests/test-tsearch.c: Change copyright notice.
64192
64193         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64194         * lib/c-strcaseeq.h: Change copyright notice.
64195         * lib/streq.h: Likewise.
64196         * lib/uniconv.h: Likewise.
64197         * lib/uniconv/u-conv-from-enc.h: Likewise.
64198         * lib/uniconv/u-conv-to-enc.h: Likewise.
64199         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64200         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64201         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64202         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64203         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64204         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64205         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64206         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64207         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64208         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64209         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64210         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64211         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64212         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64213         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64214         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64215         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64216         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64217         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64218         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64219         * lib/uniname.h: Likewise.
64220         * lib/uniname/uniname.c: Likewise.
64221         * lib/unistdio.h: Likewise.
64222         * lib/unistdio/u-asnprintf.h: Likewise.
64223         * lib/unistdio/u-asprintf.h: Likewise.
64224         * lib/unistdio/u-printf-args.c: Likewise.
64225         * lib/unistdio/u-printf-args.h: Likewise.
64226         * lib/unistdio/u-printf-parse.h: Likewise.
64227         * lib/unistdio/u-snprintf.h: Likewise.
64228         * lib/unistdio/u-sprintf.h: Likewise.
64229         * lib/unistdio/u-vasprintf.h: Likewise.
64230         * lib/unistdio/u-vsnprintf.h: Likewise.
64231         * lib/unistdio/u-vsprintf.h: Likewise.
64232         * lib/unistdio/u16-asnprintf.c: Likewise.
64233         * lib/unistdio/u16-asprintf.c: Likewise.
64234         * lib/unistdio/u16-printf-parse.c: Likewise.
64235         * lib/unistdio/u16-snprintf.c: Likewise.
64236         * lib/unistdio/u16-sprintf.c: Likewise.
64237         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64238         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64239         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64240         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64241         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64242         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64243         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64244         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64245         * lib/unistdio/u16-vasnprintf.c: Likewise.
64246         * lib/unistdio/u16-vasprintf.c: Likewise.
64247         * lib/unistdio/u16-vsnprintf.c: Likewise.
64248         * lib/unistdio/u16-vsprintf.c: Likewise.
64249         * lib/unistdio/u32-asnprintf.c: Likewise.
64250         * lib/unistdio/u32-asprintf.c: Likewise.
64251         * lib/unistdio/u32-printf-parse.c: Likewise.
64252         * lib/unistdio/u32-snprintf.c: Likewise.
64253         * lib/unistdio/u32-sprintf.c: Likewise.
64254         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64255         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64256         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64257         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64258         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64259         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64260         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64261         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64262         * lib/unistdio/u32-vasnprintf.c: Likewise.
64263         * lib/unistdio/u32-vasprintf.c: Likewise.
64264         * lib/unistdio/u32-vsnprintf.c: Likewise.
64265         * lib/unistdio/u32-vsprintf.c: Likewise.
64266         * lib/unistdio/u8-asnprintf.c: Likewise.
64267         * lib/unistdio/u8-asprintf.c: Likewise.
64268         * lib/unistdio/u8-printf-parse.c: Likewise.
64269         * lib/unistdio/u8-snprintf.c: Likewise.
64270         * lib/unistdio/u8-sprintf.c: Likewise.
64271         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64272         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64273         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64274         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64275         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64276         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64277         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64278         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64279         * lib/unistdio/u8-vasnprintf.c: Likewise.
64280         * lib/unistdio/u8-vasprintf.c: Likewise.
64281         * lib/unistdio/u8-vsnprintf.c: Likewise.
64282         * lib/unistdio/u8-vsprintf.c: Likewise.
64283         * lib/unistdio/ulc-asnprintf.c: Likewise.
64284         * lib/unistdio/ulc-asprintf.c: Likewise.
64285         * lib/unistdio/ulc-printf-parse.c: Likewise.
64286         * lib/unistdio/ulc-snprintf.c: Likewise.
64287         * lib/unistdio/ulc-sprintf.c: Likewise.
64288         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64289         * lib/unistdio/ulc-vasprintf.c: Likewise.
64290         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64291         * lib/unistdio/ulc-vsprintf.c: Likewise.
64292         * lib/unistr.h: Likewise.
64293         * lib/unistr/u-cpy-alloc.h: Likewise.
64294         * lib/unistr/u-cpy.h: Likewise.
64295         * lib/unistr/u-endswith.h: Likewise.
64296         * lib/unistr/u-move.h: Likewise.
64297         * lib/unistr/u-set.h: Likewise.
64298         * lib/unistr/u-startswith.h: Likewise.
64299         * lib/unistr/u-stpcpy.h: Likewise.
64300         * lib/unistr/u-stpncpy.h: Likewise.
64301         * lib/unistr/u-strcat.h: Likewise.
64302         * lib/unistr/u-strcpy.h: Likewise.
64303         * lib/unistr/u-strcspn.h: Likewise.
64304         * lib/unistr/u-strdup.h: Likewise.
64305         * lib/unistr/u-strlen.h: Likewise.
64306         * lib/unistr/u-strncat.h: Likewise.
64307         * lib/unistr/u-strncpy.h: Likewise.
64308         * lib/unistr/u-strnlen.h: Likewise.
64309         * lib/unistr/u-strpbrk.h: Likewise.
64310         * lib/unistr/u-strspn.h: Likewise.
64311         * lib/unistr/u-strstr.h: Likewise.
64312         * lib/unistr/u-strtok.h: Likewise.
64313         * lib/unistr/u16-check.c: Likewise.
64314         * lib/unistr/u16-chr.c: Likewise.
64315         * lib/unistr/u16-cmp.c: Likewise.
64316         * lib/unistr/u16-cpy-alloc.c: Likewise.
64317         * lib/unistr/u16-cpy.c: Likewise.
64318         * lib/unistr/u16-endswith.c: Likewise.
64319         * lib/unistr/u16-mblen.c: Likewise.
64320         * lib/unistr/u16-mbsnlen.c: Likewise.
64321         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64322         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64323         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64324         * lib/unistr/u16-mbtouc.c: Likewise.
64325         * lib/unistr/u16-mbtoucr.c: Likewise.
64326         * lib/unistr/u16-move.c: Likewise.
64327         * lib/unistr/u16-next.c: Likewise.
64328         * lib/unistr/u16-prev.c: Likewise.
64329         * lib/unistr/u16-set.c: Likewise.
64330         * lib/unistr/u16-startswith.c: Likewise.
64331         * lib/unistr/u16-stpcpy.c: Likewise.
64332         * lib/unistr/u16-stpncpy.c: Likewise.
64333         * lib/unistr/u16-strcat.c: Likewise.
64334         * lib/unistr/u16-strchr.c: Likewise.
64335         * lib/unistr/u16-strcmp.c: Likewise.
64336         * lib/unistr/u16-strcpy.c: Likewise.
64337         * lib/unistr/u16-strcspn.c: Likewise.
64338         * lib/unistr/u16-strdup.c: Likewise.
64339         * lib/unistr/u16-strlen.c: Likewise.
64340         * lib/unistr/u16-strmblen.c: Likewise.
64341         * lib/unistr/u16-strmbtouc.c: Likewise.
64342         * lib/unistr/u16-strncat.c: Likewise.
64343         * lib/unistr/u16-strncmp.c: Likewise.
64344         * lib/unistr/u16-strncpy.c: Likewise.
64345         * lib/unistr/u16-strnlen.c: Likewise.
64346         * lib/unistr/u16-strpbrk.c: Likewise.
64347         * lib/unistr/u16-strrchr.c: Likewise.
64348         * lib/unistr/u16-strspn.c: Likewise.
64349         * lib/unistr/u16-strstr.c: Likewise.
64350         * lib/unistr/u16-strtok.c: Likewise.
64351         * lib/unistr/u16-to-u32.c: Likewise.
64352         * lib/unistr/u16-to-u8.c: Likewise.
64353         * lib/unistr/u16-uctomb-aux.c: Likewise.
64354         * lib/unistr/u16-uctomb.c: Likewise.
64355         * lib/unistr/u32-check.c: Likewise.
64356         * lib/unistr/u32-chr.c: Likewise.
64357         * lib/unistr/u32-cmp.c: Likewise.
64358         * lib/unistr/u32-cpy-alloc.c: Likewise.
64359         * lib/unistr/u32-cpy.c: Likewise.
64360         * lib/unistr/u32-endswith.c: Likewise.
64361         * lib/unistr/u32-mblen.c: Likewise.
64362         * lib/unistr/u32-mbsnlen.c: Likewise.
64363         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64364         * lib/unistr/u32-mbtouc.c: Likewise.
64365         * lib/unistr/u32-mbtoucr.c: Likewise.
64366         * lib/unistr/u32-move.c: Likewise.
64367         * lib/unistr/u32-next.c: Likewise.
64368         * lib/unistr/u32-prev.c: Likewise.
64369         * lib/unistr/u32-set.c: Likewise.
64370         * lib/unistr/u32-startswith.c: Likewise.
64371         * lib/unistr/u32-stpcpy.c: Likewise.
64372         * lib/unistr/u32-stpncpy.c: Likewise.
64373         * lib/unistr/u32-strcat.c: Likewise.
64374         * lib/unistr/u32-strchr.c: Likewise.
64375         * lib/unistr/u32-strcmp.c: Likewise.
64376         * lib/unistr/u32-strcpy.c: Likewise.
64377         * lib/unistr/u32-strcspn.c: Likewise.
64378         * lib/unistr/u32-strdup.c: Likewise.
64379         * lib/unistr/u32-strlen.c: Likewise.
64380         * lib/unistr/u32-strmblen.c: Likewise.
64381         * lib/unistr/u32-strmbtouc.c: Likewise.
64382         * lib/unistr/u32-strncat.c: Likewise.
64383         * lib/unistr/u32-strncmp.c: Likewise.
64384         * lib/unistr/u32-strncpy.c: Likewise.
64385         * lib/unistr/u32-strnlen.c: Likewise.
64386         * lib/unistr/u32-strpbrk.c: Likewise.
64387         * lib/unistr/u32-strrchr.c: Likewise.
64388         * lib/unistr/u32-strspn.c: Likewise.
64389         * lib/unistr/u32-strstr.c: Likewise.
64390         * lib/unistr/u32-strtok.c: Likewise.
64391         * lib/unistr/u32-to-u16.c: Likewise.
64392         * lib/unistr/u32-to-u8.c: Likewise.
64393         * lib/unistr/u32-uctomb.c: Likewise.
64394         * lib/unistr/u8-check.c: Likewise.
64395         * lib/unistr/u8-chr.c: Likewise.
64396         * lib/unistr/u8-cmp.c: Likewise.
64397         * lib/unistr/u8-cpy-alloc.c: Likewise.
64398         * lib/unistr/u8-cpy.c: Likewise.
64399         * lib/unistr/u8-endswith.c: Likewise.
64400         * lib/unistr/u8-mblen.c: Likewise.
64401         * lib/unistr/u8-mbsnlen.c: Likewise.
64402         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64404         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64405         * lib/unistr/u8-mbtouc.c: Likewise.
64406         * lib/unistr/u8-mbtoucr.c: Likewise.
64407         * lib/unistr/u8-move.c: Likewise.
64408         * lib/unistr/u8-next.c: Likewise.
64409         * lib/unistr/u8-prev.c: Likewise.
64410         * lib/unistr/u8-set.c: Likewise.
64411         * lib/unistr/u8-startswith.c: Likewise.
64412         * lib/unistr/u8-stpcpy.c: Likewise.
64413         * lib/unistr/u8-stpncpy.c: Likewise.
64414         * lib/unistr/u8-strcat.c: Likewise.
64415         * lib/unistr/u8-strchr.c: Likewise.
64416         * lib/unistr/u8-strcmp.c: Likewise.
64417         * lib/unistr/u8-strcpy.c: Likewise.
64418         * lib/unistr/u8-strcspn.c: Likewise.
64419         * lib/unistr/u8-strdup.c: Likewise.
64420         * lib/unistr/u8-strlen.c: Likewise.
64421         * lib/unistr/u8-strmblen.c: Likewise.
64422         * lib/unistr/u8-strmbtouc.c: Likewise.
64423         * lib/unistr/u8-strncat.c: Likewise.
64424         * lib/unistr/u8-strncmp.c: Likewise.
64425         * lib/unistr/u8-strncpy.c: Likewise.
64426         * lib/unistr/u8-strnlen.c: Likewise.
64427         * lib/unistr/u8-strpbrk.c: Likewise.
64428         * lib/unistr/u8-strrchr.c: Likewise.
64429         * lib/unistr/u8-strspn.c: Likewise.
64430         * lib/unistr/u8-strstr.c: Likewise.
64431         * lib/unistr/u8-strtok.c: Likewise.
64432         * lib/unistr/u8-to-u16.c: Likewise.
64433         * lib/unistr/u8-to-u32.c: Likewise.
64434         * lib/unistr/u8-uctomb-aux.c: Likewise.
64435         * lib/unistr/u8-uctomb.c: Likewise.
64436         * lib/unitypes.h: Likewise.
64437         * lib/uniwidth.h: Likewise.
64438         * lib/uniwidth/cjk.h: Likewise.
64439         * lib/uniwidth/u16-strwidth.c: Likewise.
64440         * lib/uniwidth/u16-width.c: Likewise.
64441         * lib/uniwidth/u32-strwidth.c: Likewise.
64442         * lib/uniwidth/u32-width.c: Likewise.
64443         * lib/uniwidth/u8-strwidth.c: Likewise.
64444         * lib/uniwidth/u8-width.c: Likewise.
64445         * lib/uniwidth/width.c: Likewise.
64446
64447 2007-10-07  Bruno Haible  <bruno@clisp.org>
64448
64449         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64450         The file is still under LGPL (see modules/inttypes).
64451
64452 2007-10-06  Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/trunc (Dependencies): Add 'extensions'.
64455         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64456         Reported by Ben Pfaff <blp@gnu.org>.
64457
64458 2007-10-06  Bruno Haible  <bruno@clisp.org>
64459
64460         * modules/freopen-tests: New file.
64461         * tests/test-freopen.c: New file.
64462
64463         * modules/fopen-tests: New file.
64464         * tests/test-fopen.c: New file.
64465
64466         * modules/fopen: New file.
64467         * lib/fopen.c: New file.
64468         * m4/fopen.m4: New file.
64469         * modules/freopen: New file.
64470         * lib/freopen.c: New file.
64471         * m4/freopen.m4: New file.
64472         * lib/stdio.in.h (fopen, freopen): New declarations.
64473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64474         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64475         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64476         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64477         * doc/functions/fopen.texi: Mention the 'fopen' module.
64478         * doc/functions/freopen.texi: Mention the 'freopen' module.
64479
64480 2007-10-06  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/open-tests: New file.
64483         * tests/test-open.c: New file.
64484
64485         * modules/open: New file.
64486         * lib/open.c: New file.
64487         * m4/open.m4: New file.
64488         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64489         lib/open.c does.
64490         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64491         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64492         macros.
64493         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64494         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64495         REPLACE_OPEN.
64496         * doc/functions/open.texi: Mention the 'open' module.
64497
64498 2007-10-04  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/ceill-tests: New file.
64501         * tests/test-ceill.c: New file.
64502
64503         * modules/ceill: New file.
64504         * lib/ceill.c: Replace entire file.
64505         * m4/ceill.m4: New file.
64506         * lib/math.in.h (ceill): Replace declaration.
64507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64508         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64509         * doc/functions/ceill.texi: Mention the 'ceill' module.
64510         * modules/mathl (Files): Remove lib/ceill.c.
64511         (Depends-on): Add ceill.
64512
64513 2007-10-04  Bruno Haible  <bruno@clisp.org>
64514
64515         * modules/ceilf-tests: New file.
64516         * tests/test-ceilf.c: New file.
64517
64518         * modules/ceilf: New file.
64519         * lib/ceil.c: New file.
64520         * lib/ceilf.c: New file.
64521         * m4/ceilf.m4: New file.
64522         * lib/math.in.h (ceilf): New declaration.
64523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64524         HAVE_DECL_CEILF.
64525         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64526         HAVE_DECL_CEILF.
64527         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64528
64529 2007-10-04  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/floorl-tests: New file.
64532         * tests/test-floorl.c: New file.
64533
64534         * modules/floorl: New file.
64535         * lib/floorl.c: Replace entire file.
64536         * m4/floorl.m4: New file.
64537         * lib/math.in.h (floorl): Replace declaration.
64538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64539         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64540         * doc/functions/floorl.texi: Mention the 'floorl' module.
64541         * modules/mathl (Files): Remove lib/floorl.c.
64542         (Depends-on): Add floorl.
64543
64544 2007-10-04  Bruno Haible  <bruno@clisp.org>
64545
64546         * modules/floorf-tests: New file.
64547         * tests/test-floorf.c: New file.
64548
64549         * modules/floorf: New file.
64550         * lib/floor.c: New file.
64551         * lib/floorf.c: New file.
64552         * m4/floorf.m4: New file.
64553         * lib/math.in.h (floorf): New declaration.
64554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64555         HAVE_DECL_FLOORF.
64556         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64557         HAVE_DECL_FLOORF.
64558         * doc/functions/floorf.texi: Mention the 'floorf' module.
64559
64560 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64561             Bruno Haible  <bruno@clisp.org>
64562
64563         Advertise for the Git server instead of the CVS server.
64564         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64565         repository instead of the CVS one.
64566         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64567         about all VCS systems generically.
64568         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64569
64570 2007-10-04  Bruno Haible  <bruno@clisp.org>
64571
64572         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64573         means.
64574         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64575
64576 2007-10-04  Bruno Haible  <bruno@clisp.org>
64577
64578         * modules/truncl-tests: New file.
64579         * tests/test-truncl.c: New file.
64580
64581         * modules/truncl: New file.
64582         * lib/truncl.c: New file.
64583         * m4/truncl.m4: New file.
64584         * lib/math.in.h (truncl): New declaration.
64585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64586         HAVE_DECL_TRUNCL.
64587         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64588         HAVE_DECL_TRUNCL.
64589         * doc/functions/truncl.texi: Mention the 'truncl' module.
64590
64591 2007-10-04  Bruno Haible  <bruno@clisp.org>
64592
64593         * modules/truncf-tests: New file.
64594         * tests/test-truncf.c: New file.
64595
64596         * modules/truncf: New file.
64597         * lib/trunc.c: Make paramerizable through USE_* macros.
64598         * lib/truncf.c: New file.
64599         * m4/truncf.m4: New file.
64600         * lib/math.in.h (truncf): New declaration.
64601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64602         HAVE_DECL_TRUNCF.
64603         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64604         HAVE_DECL_TRUNCF.
64605         * doc/functions/truncf.texi: Mention the 'truncf' module.
64606
64607 2007-10-03  Bruno Haible  <bruno@clisp.org>
64608
64609         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64610         augmentation also for tests modules.
64611         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64612         * modules/atexit-tests (Makefile.am): Likewise.
64613         * modules/binary-io-tests (Makefile.am): Likewise.
64614         * modules/c-strcase-tests (Makefile.am): Likewise.
64615         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64616         * modules/canonicalize-tests (Makefile.am): Likewise.
64617         * modules/closein-tests (Makefile.am): Likewise.
64618         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64619         * modules/freadahead-tests (Makefile.am): Likewise.
64620         * modules/fseek-tests (Makefile.am): Likewise.
64621         * modules/fseeko-tests (Makefile.am): Likewise.
64622         * modules/ftell-tests (Makefile.am): Likewise.
64623         * modules/ftello-tests (Makefile.am): Likewise.
64624         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64625         * modules/isnanl-tests (Makefile.am): Likewise.
64626         * modules/lseek-tests (Makefile.am): Likewise.
64627         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64628         * modules/mbscasestr-tests (Makefile.am): Likewise.
64629         * modules/mbschr-tests (Makefile.am): Likewise.
64630         * modules/mbscspn-tests (Makefile.am): Likewise.
64631         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64632         * modules/mbspbrk-tests (Makefile.am): Likewise.
64633         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64634         * modules/mbsrchr-tests (Makefile.am): Likewise.
64635         * modules/mbsspn-tests (Makefile.am): Likewise.
64636         * modules/mbsstr-tests (Makefile.am): Likewise.
64637         * modules/printf-posix-tests (Makefile.am): Likewise.
64638         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64639         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64640         * modules/tsearch-tests (Makefile.am): Likewise.
64641         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64642         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64643         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64644         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64645         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64646         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64647         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64648         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64649         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64650         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64651         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64652         * modules/xstrtol-tests (Makefile.am): Likewise.
64653         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64654         * modules/yesno-tests (Makefile.am): Likewise.
64655
64656 2007-10-03  Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/trunc-tests: New file.
64659         * tests/test-trunc.c: New file.
64660
64661         * modules/trunc: New file.
64662         * lib/trunc.c: New file.
64663         * m4/trunc.m4: New file.
64664         * lib/math.in.h (trunc): New declaration.
64665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64666         HAVE_DECL_TRUNC.
64667         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64668         HAVE_DECL_TRUNC.
64669         * doc/functions/trunc.texi: Mention the 'trunc' module.
64670
64671 2007-10-03  Bruno Haible  <bruno@clisp.org>
64672
64673         * tests/test-fpending.c: New file, mostly copied
64674         from coreutils/lib/t-fpending.c.
64675         * modules/fpending-tests: New file.
64676
64677 2007-10-03  Bruno Haible  <bruno@clisp.org>
64678
64679         Port the stdio extensions to QNX (untested).
64680         * lib/fseterr.c (fseterr): Add support for QNX.
64681         * lib/fbufmode.c (fbufmode): Likewise.
64682         * lib/freadable.c (freadable): Likewise.
64683         * lib/fwritable.c (fwritable): Likewise.
64684         * lib/freading.c (freading): Likewise.
64685         * lib/fwriting.c (fwriting): Likewise.
64686         * lib/freadahead.c (freadahed): Likewise.
64687         * lib/fpurge.c (fpurge): Likewise.
64688         * lib/fseeko.c (rpl_fseeko): Likewise.
64689
64690 2007-10-03  Bruno Haible  <bruno@clisp.org>
64691             Jim Meyering  <jim@meyering.net>
64692             Eric Blake  <ebb9@byu.net>
64693
64694         * doc/relocatable.texi: Use @command instead of @program.
64695
64696 2007-10-02  Jim Meyering  <jim@meyering.net>
64697
64698         Perform one more "_.h" -> ".in.h" substitution.
64699         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64700         instead of unistd_.h here, too.
64701
64702 2007-10-01  Bruno Haible  <bruno@clisp.org>
64703
64704         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64705         Needed for the alloca-opt module.
64706
64707 2007-09-30  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64710         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64711         alloca_.h.
64712         * lib/argz.in.h: Renamed from lib/argz_.h.
64713         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64714         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64715         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64716         byteswap_.h.
64717         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64718         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64719         dirent_.h.
64720         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64721         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64722         fcntl_.h.
64723         * lib/float.in.h: Renamed from lib/float_.h.
64724         * modules/float (Files, Makefile.am): Use float.in.h instead of
64725         float_.h.
64726         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64727         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64728         fnmatch_.h.
64729         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64730         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64731         getopt_.h.
64732         * lib/glob.in.h: Renamed from lib/glob_.h.
64733         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64734         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64735         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64736         iconv_.h.
64737         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64738         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64739         inttypes_.h.
64740         * lib/locale.in.h: Renamed from lib/locale_.h.
64741         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64742         locale_.h.
64743         * lib/math.in.h: Renamed from lib/math_.h.
64744         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64745         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64746         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64747         of netinet_in_.h. Add dependency.
64748         * lib/poll.in.h: Renamed from lib/poll_.h.
64749         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64750         * lib/search.in.h: Renamed from lib/search_.h.
64751         * modules/search (Files, Makefile.am): Use search.in.h instead of
64752         search_.h.
64753         * lib/signal.in.h: Renamed from lib/signal_.h.
64754         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64755         _signal.h.
64756         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64757         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64758         stdbool_.h.
64759         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64760         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64761         stdint_.h.
64762         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64763         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64764         stdio_.h.
64765         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64766         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64767         stdlib_.h.
64768         * lib/string.in.h: Renamed from lib/string_.h.
64769         * modules/string (Files, Makefile.am): Use string.in.h instead of
64770         string_.h.
64771         * doc/gnulib-tool.texi (Initial import): Update.
64772         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64773         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64774         of sys_select_.h. Add dependency.
64775         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64776         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64777         of sys_socket_.h.
64778         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64779         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64780         sys_stat_.h.
64781         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64782         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64783         sys_time_.h.
64784         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64785         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64786         sysexits_.h.
64787         * lib/time.in.h: Renamed from lib/time_.h.
64788         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64789         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64790         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64791         unistd_.h.
64792         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64793         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64794         wchar_.h.
64795         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64796         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64797         wctype_.h.
64798         * build-aux/bootstrap (slurp): Update.
64799         * lib/.cppi-disable: Update.
64800
64801 2007-09-30  Bruno Haible  <bruno@clisp.org>
64802
64803         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64804         Needed on BeOS.
64805
64806 2007-09-30  Bruno Haible  <bruno@clisp.org>
64807
64808         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64809
64810 2007-09-29  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64813
64814 2007-09-29  Bruno Haible  <bruno@clisp.org>
64815
64816         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64817         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64818         * build-aux/install-reloc: Compile also areadlink.c.
64819         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64820
64821 2007-09-29  Bruno Haible  <bruno@clisp.org>
64822
64823         * gnulib-tool (func_emit_initmacro_done): Indentation.
64824
64825 2007-09-29  Bruno Haible  <bruno@clisp.org>
64826
64827         * README: Add CVS checkout update instructions.
64828         Info from Bob Proulx <bob@proulx.com>.
64829
64830 2007-09-28  Eric Blake  <ebb9@byu.net>
64831
64832         Provide move-if-change.
64833         * build-aux/move-if-change: New file, based on best practice
64834         rather than any canonical upstream location.
64835
64836 2007-09-28  Jim Meyering  <jim@meyering.net>
64837
64838         Fix canonicalize loop-detection corner case.
64839         Do not attempt to stat the symlink values stored via seen_triple.
64840         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64841         on linux-2.6.18, (but not 2.6.22).
64842         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64843         triple_compare.  The former compares dev,ino,filename, while the latter
64844         would actually stat dirname(filename) when dev and ino were equal.
64845         * lib/hash-triple.c: Install <string.h>.
64846         (STREQ): Define.
64847         (triple_compare_ino_str): New function.
64848         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64849
64850 2007-09-28  Eric Blake  <ebb9@byu.net>
64851
64852         Enforce that AC_REPLACE_FUNCS files exist.
64853         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64854         override check for typos.
64855
64856         Fix test-closein on Solaris 10.
64857         * tests/test-closein.c (main): Don't assume stdin can be inherited
64858         closed on all systems.
64859         * tests/test-closein.sh: Likewise.
64860         Reported by Piotr Tarnowski.
64861
64862 2007-09-28  Jim Meyering  <jim@meyering.net>
64863
64864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64865
64866 2007-09-27  Jim Meyering  <jim@meyering.net>
64867
64868         canonicalize: Avoid a false-positive cycle failure.
64869         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64870         Sort.  Remove cycle-check.
64871         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64872         not cycle-check.h.
64873         (seen_triple): New function.
64874         (canonicalize_filename_mode): Use it instead of cycle-check.
64875         * tests/test-canonicalize.c: Add a test for this bug.
64876         * tests/test-canonicalize.sh: Set up and run the test.
64877
64878         New module, file-set, from coreutils.
64879         * modules/file-set: Define it.
64880         * lib/file-set.c, lib/file-set.h: Implement.
64881
64882         New module, hash-triple, from coreutils.
64883         * modules/hash-triple: Define it.
64884         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64885
64886 2007-09-25  Eric Blake  <ebb9@byu.net>
64887
64888         Fix strerror on Interix.
64889         * lib/string_.h (strerror): Declare replacement.
64890         * doc/functions/strerror.texi (strerror): Document the Interix
64891         shortcoming.
64892         * modules/string (Makefile.am): Support new hooks.
64893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64894         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64895         gl_FUNC_STRERROR_SEPARATE.
64896         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64897         * lib/strerror.c (rpl_strerror): Provide replacement.
64898         * modules/strerror (Depends-on): Add string.
64899         (configure.ac): Detect use of module.
64900         * tests/test-strerror.c: New file.
64901         * modules/strerror-tests: New test module.
64902         * modules/argp (Depends-on): Add strerror.
64903         * modules/error (Depends-on): Likewise.
64904         Reported by Martin Koeppe.
64905
64906 2007-09-24  Bruno Haible  <bruno@clisp.org>
64907
64908         * README: Update git instructions.
64909
64910 2007-09-24  Eric Blake  <ebb9@byu.net>
64911
64912         Revert fpending breakage from 2007-09-08.
64913         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64914         __fpending.c.
64915
64916 2007-09-24  Jim Meyering  <jim@meyering.net>
64917
64918         filenamecat.c: Add a test.
64919         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64920         showing how the function works when DIR is the empty string.
64921
64922 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64923
64924         * tests/test-canonicalize.sh: Turn on executable bit.
64925
64926 2007-09-19  Eric Blake  <ebb9@byu.net>
64927
64928         * README: Update CVS instructions.
64929
64930 2007-09-18  Bruno Haible  <bruno@clisp.org>
64931
64932         * modules/areadlink: New file.
64933         * lib/areadlink.h (areadlink): New declaration.
64934         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64935
64936 2007-09-17  Jim Meyering  <jim@meyering.net>
64937
64938         * lib/savewd.c (ESTALE) [!defined]: Define.
64939         Reported to be required on Interix by Martin Koeppe.
64940
64941 2007-09-17  Bruno Haible  <bruno@clisp.org>
64942
64943         * gnulib-tool (func_version): Use $version.
64944
64945 2007-09-16  Bruno Haible  <bruno@clisp.org>
64946
64947         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64948         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64949         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64950         Reported by Greg Schafer <gschafer@zip.com.au>.
64951
64952 2007-09-15  Bruno Haible  <bruno@clisp.org>
64953
64954         * gnulib-tool (sed): Try a little harder to make bash understand the
64955         alias.
64956         Reported by Bruce Korb <bruce.korb@gmail.com>.
64957
64958 2007-09-13  Eric Blake  <ebb9@byu.net>
64959
64960         * ChangeLog: Remove conflict markers.
64961
64962 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64963
64964         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64965         Reported by Bruno Haible <bruno@clisp.org>.
64966
64967 2007-09-12  Bruno Haible  <bruno@clisp.org>
64968
64969         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64970         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64971         is not defined.
64972
64973 2007-09-12  Eric Blake  <ebb9@byu.net>
64974
64975         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64977         Autoconf definition.
64978         * modules/euidaccess (Depends-on): Add extensions, for
64979         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64980         * modules/fnmatch (Depends-on): Likewise.
64981         * modules/getaddrinfo (Depends-on): Likewise.
64982         * modules/getdelim (Depends-on): Likewise.
64983         * modules/getline (Depends-on): Likewise.
64984         * modules/getsubopt (Depends-on): Likewise.
64985         * modules/gettext (Depends-on): Likewise.
64986         * modules/group-member (Depends-on): Likewise.
64987         * modules/mbchar (Depends-on): Likewise.
64988         * modules/memmem (Depends-on): Likewise.
64989         * modules/mempcpy (Depends-on): Likewise.
64990         * modules/memrchr (Depends-on): Likewise.
64991         * modules/pagealign_alloc (Depends-on): Likewise.
64992         * modules/readutmp (Depends-on): Likewise.
64993         * modules/stpcpy (Depends-on): Likewise.
64994         * modules/stpncpy (Depends-on): Likewise.
64995         * modules/strchrnul (Depends-on): Likewise.
64996         * modules/strndup (Depends-on): Likewise.
64997         * modules/strsep (Depends-on): Likewise.
64998         * modules/strverscmp (Depends-on): Likewise.
64999         * modules/vasprintf (Depends-on): Likewise.
65000         * modules/wcwidth (Depends-on): Likewise.
65001         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65002         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65003         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65006         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65007         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65008         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65009         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65010         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65015         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65016         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65017         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65018         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65020         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65021         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65023         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65024         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65025         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65027         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65028         so that lock.m4 can be used in gettext without extensions module.
65029
65030 2007-09-11  Bruno Haible  <bruno@clisp.org>
65031
65032         * m4/isc-posix.m4: Remove file.
65033         Suggested by Eric Blake.
65034
65035 2007-09-11  Eric Blake  <ebb9@byu.net>
65036
65037         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65038
65039 2007-09-10  Bruno Haible  <bruno@clisp.org>
65040
65041         * posix-modules: Fix typo in error message.
65042         Reported by Matt <mkraai@beckman.com>.
65043
65044 2007-09-09  Bruno Haible  <bruno@clisp.org>
65045
65046         * doc/functions/getdelim.texi: Update list of platforms lacking the
65047         function.
65048         * doc/functions/getline.texi: Likewise.
65049
65050 2007-09-09  Jim Meyering  <jim@meyering.net>
65051
65052         * lib/hash.c (hash_initialize): Detect calloc failure.
65053         Reported by Bruno Haible.
65054
65055 2007-09-09  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65058         malloc or realloc fails.
65059
65060 2007-09-09  Bruno Haible  <bruno@clisp.org>
65061
65062         * modules/getcwd (Depends-on): Add malloc-posix.
65063         * modules/glob (Depends-on): Likewise.
65064         * modules/putenv (Depends-on): Likewise.
65065         * modules/strdup (Depends-on): Likewise.
65066         * modules/getdelim (Depends-on): Add realloc-posix.
65067         * modules/read-file (Depends-on): Likewise.
65068
65069 2007-09-09  Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65072         (gl_FUNC_MALLOC_POSIX): Require it.
65073         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65074         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65075         * modules/realloc (Files): Add m4/malloc.m4.
65076         * modules/calloc (Files): Likewise.
65077
65078 2007-09-09  Bruno Haible  <bruno@clisp.org>
65079
65080         * modules/malloc-posix: New file.
65081         * modules/malloc (Depends-on): Add malloc-posix.
65082         * lib/malloc.c: Include errno.h.
65083         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65084         and a POSIX-compatible malloc into a single function. Set ENOMEM
65085         when returning NULL.
65086         * m4/malloc.m4: New file.
65087         * doc/functions/malloc.texi: Mention the malloc-posix module.
65088         * lib/stdlib_.h (malloc): New declaration.
65089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65090         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65091         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65092         and HAVE_MALLOC_POSIX.
65093
65094 2007-09-09  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/realloc-posix: New file.
65097         * modules/realloc (Depends-on): Add realloc-posix.
65098         * lib/realloc.c: Include errno.h.
65099         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65100         and a POSIX-compatible realloc into a single function. Set ENOMEM
65101         when returning NULL.
65102         * m4/realloc.m4: New file.
65103         * doc/functions/realloc.texi: Mention the realloc-posix module.
65104         * lib/stdlib_.h (realloc): New declaration.
65105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65106         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65107         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65108         and HAVE_REALLOC_POSIX.
65109
65110 2007-09-09  Bruno Haible  <bruno@clisp.org>
65111
65112         * modules/calloc-posix: New file.
65113         * modules/calloc (Depends-on): Add calloc-posix.
65114         * lib/calloc.c: Include errno.h.
65115         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65116         and a POSIX-compatible calloc into a single function. Set ENOMEM
65117         when returning NULL.
65118         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65119         * doc/functions/calloc.texi: Mention the calloc-posix module.
65120         * lib/stdlib_.h (calloc): New declaration.
65121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65122         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65123         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65124         and HAVE_CALLOC_POSIX.
65125
65126 2007-09-09  Bruno Haible  <bruno@clisp.org>
65127
65128         Allow for modules to show an arbitrary notice.
65129         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65130         * gnulib-tool: New option --extract-notice.
65131         (func_usage): Document it.
65132         (sed_extract_prog): Update.
65133         (func_get_notice): New function.
65134         (func_modules_notice): New function.
65135         (func_import, func_create_testdir): Invoke it.
65136         Suggested by Jim Meyering.
65137
65138 2007-09-09  Bruno Haible  <bruno@clisp.org>
65139
65140         * gnulib-tool: New options --verbose, --quiet.
65141         (func_usage): Document them.
65142         (verbose): New variable.
65143         (func_execute_command): New function.
65144         (func_import): Don't show the module list and the file list if
65145         $verbose < 0.
65146         (func_create_testdir): Likewise. Use func_execute_command.
65147         (func_create_megatestdir): Use func_execute_command.
65148
65149 2007-09-08  Bruno Haible  <bruno@clisp.org>
65150
65151         * gnulib-tool (func_import): Prefer rsync over wget when available,
65152         for fetching the PO files.
65153
65154 2007-09-08  Bruno Haible  <bruno@clisp.org>
65155
65156         * posix-modules: New file. Portions copied from gnulib-tool.
65157         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65158
65159 2007-09-08  Jim Meyering  <jim@meyering.net>
65160
65161         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65162         * lib/fpending.h: Rename from __fpending.h.
65163         * lib/fpending.c: Rename from __fpending.c.
65164         Include "fpending.h", not "__fpending.h".
65165         * lib/__fpending.h, lib/__fpending.c: Remove files.
65166         * modules/fpending (Files): Reflect new file names.
65167         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65168
65169 2007-09-08  Bruno Haible  <bruno@clisp.org>
65170
65171         * m4/inttypes-h.m4: Remove stub file.
65172
65173 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65174
65175         * doc/headers/stdint.texi: Discuss #include_next issue.
65176
65177 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65180
65181 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65182
65183         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65184         in variable name.
65185
65186 2007-09-03  Jim Meyering  <jim@meyering.net>
65187
65188         New module: git-version-gen.
65189         * modules/git-version-gen: New file.
65190
65191         Import changes from coreutils for bootstrap script.
65192
65193         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65194
65195         bootstrap: uses rsync to download the .po files
65196         * build-aux/bootstrap (po_download_command_format): New global.
65197         (download_po_files): Use rsync.
65198         (update_po_files): Don't remove .po files after download,
65199         so future rsync runs can take advantage of the copies.
65200
65201         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65202
65203         Solve the unnecessary-.po-file-regeneration problem once and for all.
65204         * build-aux/bootstrap (download_po_files): New function, renamed from
65205         get_translations.  Now, downloads, but doesn't update LINGUAS.
65206         (update_po_files): New function.
65207
65208         bootstrap: Ignore more.
65209         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65210         uniwidth to e.g., lib/.gitignore.
65211         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65212
65213         * build-aux/bootstrap: New setting: vc_ignore.
65214         (insert_sorted_if_absent): Create $file if absent.
65215         Adapt to new, possibly empty, list: $vc_ignore.
65216
65217         bootstrap: generate more ignorable names
65218         * build-aux/bootstrap (slurp): When generating ignorable names,
65219         also map .sin to .sed, .gperf to .c, and .y to .c.
65220
65221 2007-09-03  Jim Meyering  <jim@meyering.net>
65222
65223         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65224         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65225
65226 2007-09-02  Bruno Haible  <bruno@clisp.org>
65227
65228         Fix mis-recognition of 'mcs' on QNX 6.
65229         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65230         output contains the string "Mono".
65231         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65232         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65233
65234 2007-09-01  Bruno Haible  <bruno@clisp.org>
65235
65236         Fix collision between uniwidth/* and linebreak modules.
65237         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65238         u32_width): Remove declarations.
65239         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65240         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65241         streq3, streq2, streq1, streq0): Remove functions.
65242         (STREQ): Remove macro.
65243         (is_cjk_encoding): Remove function.
65244         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65245         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65246         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65247         * NEWS: Document the change.
65248
65249 2007-09-01  Bruno Haible  <bruno@clisp.org>
65250
65251         * lib/streq.h: Add double-inclusion guard.
65252
65253 2007-09-01  Karl Berry  <karl@gnu.org>
65254
65255         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65256
65257 2007-08-28  Jim Meyering  <jim@meyering.net>
65258
65259         Rename mreadlink_with_size to areadlink_with_size.
65260         * NEWS: Document the change.
65261         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65262         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65263         * lib/mreadlink.h: Rename this to...
65264         * lib/areadlink.h: ...this.
65265         * modules/mreadlink-with-size: Rename this to...
65266         * modules/areadlink-with-size: ...this.
65267         * lib/canonicalize.c: Reflect the renaming.
65268         * modules/canonicalize: Likewise.
65269
65270 2007-08-26  Bruno Haible  <bruno@clisp.org>
65271
65272         * gnulib-tool (func_import): When deciding which files to remove,
65273         consider also dangling symbolic links.
65274         Reported by Eric Blake.
65275
65276 2007-08-26  Bruno Haible  <bruno@clisp.org>
65277
65278         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65279
65280 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65281
65282         * lib/readline.c: Don't include getline.h, the prototype is now
65283         found in stdio.h.
65284
65285 2007-08-23  Jim Meyering  <jim@meyering.net>
65286
65287         Getdelim touchup.
65288         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65289         around the funlockfile call, since funlockfile never sets errno.
65290         Don't set errno upon failed realloc.
65291
65292 2007-08-22  Eric Blake  <ebb9@byu.net>
65293
65294         Getline touchups.
65295         * lib/getdelim.c (getdelim): Revert regression that required *n to
65296         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65297         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65298         getdelim, rather than whether implementation is missing.
65299         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65300         * lib/stdio_.h (getline): Also declare if replacement is
65301         required.
65302         * doc/functions/getdelim.texi: New file.
65303         * doc/functions/getline.texi: Likewise.
65304         * doc/gnulib.texi (Function Substitutes): Add new files.
65305         Reported by Bruno Haible.
65306
65307 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65308
65309         * users.txt: Add Guile.
65310
65311 2007-08-22  Eric Blake  <ebb9@byu.net>
65312
65313         * tests/test-getdelim.c (main): Use remove, not unlink.
65314         * tests/test-getline.c (main): Likewise.
65315
65316         Move getline and getdelim into stdio.h, per POSIX 200x.
65317         * modules/getline (Files): Remove getline.h.
65318         (Depends-on): Add stdio.
65319         (configure.ac): Add module indicator.
65320         * modules/getdelim (Files): Remove getdelim.h.
65321         (Depends-on): Add stdio.
65322         (configure.ac): Add module indicator.
65323         * modules/stdio (Makefile.am): Work with new indicators.
65324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65325         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65326         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65327         * lib/getdelim.h: Delete.
65328         * lib/getline.h: Delete.
65329         * lib/stdio_.h (getdelim, getline): Declare.
65330         * modules/getdelim-tests: New module.
65331         * modules/getline-tests: Likewise.
65332         * tests/test-getdelim.c: New file.
65333         * tests/test-getline.c: Likewise.
65334         * NEWS: Document the change.
65335         * lib/getline.c: Update choice of header.
65336         * lib/csharpcomp.c: Likewise.
65337         * lib/getpass.c: Likewise.
65338         * lib/javacomp.c: Likewise.
65339         * lib/javaversion.c: Likewise.
65340         * lib/yesno.c: Likewise.
65341         * lib/getdelim.c: Likewise.
65342         (getdelim): Set errno on failure, and avoid memory leak.
65343
65344 2007-08-19  Bruno Haible  <bruno@clisp.org>
65345
65346         * modules/closein (Depends-on): Add freadahead.
65347         * lib/closein.c: Include freadahead.h.
65348         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65349         is zero.
65350
65351 2007-08-19  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/freadahead-tests: New file.
65354         * tests/test-freadahead.sh: New file.
65355         * tests/test-freadahead.c: New file.
65356
65357         * modules/freadahead: New file.
65358         * lib/freadahead.h: New file.
65359         * lib/freadahead.c: New file.
65360         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65361         fbufmode, fpurge, freadable, fwritable.
65362
65363 2007-08-19  Eric Blake  <ebb9@byu.net>
65364
65365         Test yesno in combination with closein.
65366         * lib/yesno.c (yesno): Document use of stdin.
65367         * modules/yesno-tests (Files): New module.
65368         * tests/test-yesno.c (main): New file.
65369         * tests/test-yesno.sh: Likewise.
65370
65371 2007-08-19  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65374         * lib/fseeko.c (rpl_fseeko): Likewise.
65375         * lib/fseterr.c (fseterr): Likewise.
65376
65377 2007-08-19  Bruno Haible  <bruno@clisp.org>
65378
65379         * tests/test-lseek.c (main): Disable a test for BeOS.
65380         * doc/functions/lseek.texi: Document the BeOS bug.
65381
65382 2007-08-19  Bruno Haible  <bruno@clisp.org>
65383             Eric Blake  <ebb9@byu.net>
65384
65385         * lib/lseek.c: Include <sys/stat.h>.
65386         (rpl_lseek): Add workaround code also for Unix platforms.
65387         Needed for BeOS.
65388         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65389         * doc/functions/lseek.texi: Document BeOS definiency.
65390
65391 2007-08-18  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/fstrcmp-tests: New file.
65394         * tests/test-fstrcmp.c: New file.
65395
65396 2007-08-18  Bruno Haible  <bruno@clisp.org>
65397
65398         * modules/fstrcmp: New file, from GNU gettext with modifications.
65399         * lib/fstrcmp.h: New file, from GNU gettext.
65400         * lib/fstrcmp.c: New file, from GNU gettext.
65401         * MODULES.html.sh (String handling): Add fstrcmp.
65402
65403 2007-08-18  Bruno Haible  <bruno@clisp.org>
65404
65405         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65406         'bool'.
65407         (diag, compareseq): Remove const from the ctxt argument.
65408         (USE_HEURISTIC): Undefine at the end.
65409
65410 2007-08-18  Jim Meyering  <jim@meyering.net>
65411
65412         New file: lib/idcache.h
65413         * NEWS: Mention the addition.
65414         * modules/idcache (Files): Add lib/idcache.h
65415         * lib/idcache.c: Include "idcache.h".
65416         Don't include <sys/types.h>.
65417         Add a FIXME comment.
65418         Move file-scoped "static" declarations to the top.
65419         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65420
65421 2007-08-17  Bruno Haible  <bruno@clisp.org>
65422         and Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * MODULES.html.sh: Add diffseq.
65425         * modules/diffseq: New file.
65426         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65427         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65428
65429 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         Import changes from coreutils for bootstrap script.
65432
65433         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65434
65435         * build-aux/bootstrap (slurp): Work even in environments where
65436         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65437         current code does not slurp files whose names start with ".", and
65438         this looks like it might be a troublesome area.
65439
65440         2007-07-11  Jim Meyering  <jim@meyering.net>
65441
65442         If there's a GPL vN copyright comment, require that N == 3.
65443
65444         2007-07-08  Jim Meyering  <jim@meyering.net>
65445
65446         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65447         * build-aux/bootstrap (mam_template): Move definition out of loop.
65448
65449         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65450
65451         * build-aux/bootstrap (symlink_to_dir): Rename function from
65452         symlink_to_gnulib.  Add a directory parameter.  Update all
65453         callers.
65454         (cp_mark_as_generated): Also check for -- and link to -- files in
65455         gl/.
65456
65457         2007-07-08  Jim Meyering  <jim@meyering.net>
65458
65459         Adapt to deeper hierarchy in gnulib.
65460         * build-aux/bootstrap (symlink_to_dir): If the destination
65461         directory doesn't exist, create it. This is required at least for
65462         "lib/uniwidth/cjk.h".
65463
65464         2007-05-15  Jim Meyering  <jim@meyering.net>
65465
65466         * build-aux/bootstrap: Now that generated Makefile.am files
65467         are no longer under version control, they must be created at
65468         bootstrap time.
65469
65470 2007-08-14  Ben Pfaff  <blp@gnu.org>
65471
65472         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65473
65474 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65477         given the changes below.
65478         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65479         even on hosts that have padding bits beyond the supported 64.
65480
65481 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65484         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65485         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65486         depends on it.
65487         (xstrtol_error): Remove.
65488         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65489         but with a different signature.
65490         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65491         * lib/xstrtol-error.c: Include exitfail.h.
65492         (xstrtol_fatal): New function, with a different signature from the
65493         old xstrtol_error, so that the caller need not worry about passing
65494         in an exit status, or about storage management of the option argument.
65495         (xstrtol_error): Now a static function.  Redo signature to
65496         implement xstrtol_fatal.  Output the correct number of hyphens in
65497         front of the option so that the caller need not worry about
65498         storage management.
65499         (N_): New macro.
65500         (_): Remove; not used now.
65501         * modules/xstrtol: Depend on getopt.
65502         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65503         of old STRTOL_FATAL_ERROR macro.
65504         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65505         of test program.
65506         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65507         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65508
65509 2007-08-08  Eric Blake  <ebb9@byu.net>
65510
65511         * lib/xstrtol-error.c: Add missing include.
65512
65513         Move xstrtol messages into gnulib domain, when --pobase is used.
65514         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65515         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65516         * modules/xstrtol (Files): Distribute new file.
65517         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65518         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65519         * tests/test-xstrtol.c: ...into new file.
65520         * tests/test-xstrtoul.c: Also test xstrtoul.
65521         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65522         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65523         * tests/test-xstrtol.sh: Drive the tests.
65524         * tests/test-xstrtoimax.sh: Likewise.
65525         * tests/test-xstrtoumax.sh: Likewise.
65526         * modules/xstrtol-tests: New module.
65527         * modules/xstrtoimax-tests: Likewise.
65528         * modules/xstrtoumax-tests: Likewise.
65529
65530 2007-08-08  Jim Meyering  <jim@meyering.net>
65531
65532         New function: mfile_name_concat.
65533         * lib/filenamecat.c (mfile_name_concat): New function, just like
65534         file_name_concat, but return NULL upon failure rather than exiting
65535         with a diagnostic.
65536         * lib/filenamecat.h: Declare it.
65537
65538 2007-08-07  Bruno Haible  <bruno@clisp.org>
65539
65540         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65541         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65542         warning from gcc.
65543         Reported by Eric Blake.
65544
65545 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65546
65547         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65548         * modules/crypto/arcfour (License): Likewise.
65549         * modules/crypto/des-tests (License): Likewise.
65550         * modules/crypto/gc-arctwo-tests (License): Likewise.
65551         * modules/crypto/gc-des-tests (License): Likewise.
65552         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65553         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65554         * modules/crypto/gc-md2-tests (License): Likewise.
65555         * modules/crypto/gc-md4-tests (License): Likewise.
65556         * modules/crypto/gc-md5-tests (License): Likewise.
65557         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65558         * modules/crypto/gc-rijndael-tests (License): Likewise.
65559         * modules/crypto/gc-sha1-tests (License): Likewise.
65560         * modules/crypto/gc-tests (License): Likewise.
65561         * modules/crypto/hmac-md5 (License): Likewise.
65562         * modules/crypto/hmac-sha1 (License): Likewise.
65563         * modules/crypto/md2-tests (License): Likewise.
65564         * modules/crypto/md4-tests (License): Likewise.
65565         * modules/crypto/md5 (License): Likewise.
65566         * modules/crypto/rijndael (License): Likewise.
65567         * modules/crypto/sha1 (License): Likewise.
65568         * modules/memxor (License): Likewise.
65569
65570 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65571         and Bruno Haible  <bruno@clisp.org>
65572
65573         * NEWS: Describe interface changes to human, xstrtol.
65574         * lib/human.h: Include <xstrtol.h>.
65575         (human_options): Return enum strtol_error, not int.  Remove
65576         bool arg; take int * instead.
65577         * lib/human.c: Don't include "gettext.h".
65578         (_): Remove; no longer used.
65579         Don't include <xstrtol.h>, since human.h does it.
65580         (human_options): Adjust to abovementioned interface changes.
65581         Do not report error to stderr; that's now the caller's
65582         responsibility.
65583         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65584         interface change.
65585         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65586         Str, Argument_type_string.  All uses changed.  Put " argument"
65587         in diagnostics to make them clearer.  Change wording of suffix
65588         message for clarity.
65589         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65590         Argument_type_string.
65591         (STRTOL_FATAL_WARN): Remove; no longer used.
65592         * modules/human (Depends-on): Remove gettext-h.
65593
65594 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65595
65596         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65597
65598 2007-07-31  Bruno Haible  <bruno@clisp.org>
65599
65600         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65601         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65602         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65603
65604 2007-07-31  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65607         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65608
65609 2007-07-30  Bruno Haible  <bruno@clisp.org>
65610
65611         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65612         * modules/c-ctype (License): Likewise.
65613         * modules/c-strcase (License): Likewise.
65614         * modules/check-version (License): Likewise.
65615         * modules/iconv (License): Likewise.
65616         * modules/iconv_open (License): Likewise.
65617         * modules/read-file (License): Likewise.
65618         * modules/striconv (License): Likewise.
65619         * modules/strverscmp (License): Likewise.
65620         * modules/vasprintf (License): Likewise.
65621         * modules/crypto/des (License): Likewise.
65622         * modules/crypto/gc (License): Likewise.
65623         * modules/crypto/gc-arcfour (License): Likewise.
65624         * modules/crypto/gc-arctwo (License): Likewise.
65625         * modules/crypto/gc-des (License): Likewise.
65626         * modules/crypto/gc-hmac-md5 (License): Likewise.
65627         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65628         * modules/crypto/gc-md2 (License): Likewise.
65629         * modules/crypto/gc-md4 (License): Likewise.
65630         * modules/crypto/gc-md5 (License): Likewise.
65631         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65632         * modules/crypto/gc-random (License): Likewise.
65633         * modules/crypto/gc-rijndael (License): Likewise.
65634         * modules/crypto/gc-sha1 (License): Likewise.
65635         * modules/crypto/md2 (License): Likewise.
65636         * modules/crypto/md4 (License): Likewise.
65637
65638 2007-07-30  Jim Meyering  <jim@meyering.net>
65639
65640         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65641         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65642         it has valid stat data.  This bug would cause du not to count the
65643         sizes of inaccessible directories.
65644         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65645         in <http://bugzilla.redhat.com/250077>.
65646
65647 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65648             Bruno Haible  <bruno@clisp.org>
65649
65650         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65651         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65652         #include_next, gives a diagnostic about it, but reports no error in
65653         the exit code.
65654         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65655
65656 2007-07-24  Ben Pfaff  <blp@gnu.org>
65657
65658         Improve name: "count-one-bits" is better than "popcount".
65659         * MODULES.html.sh: Update name.
65660         * lib/popcount.h: Renamed lib/count-one-bits.h.
65661         (popcount): Renamed count_one_bits.
65662         (popcountl): Renamed count_one_bits_l.
65663         (popcountll): Renamed count_one_bits_ll.
65664         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65665         * modules/popcount: Renamed module/count-one-bits.
65666         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65667         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65668
65669 2007-07-23  Ben Pfaff  <blp@gnu.org>
65670
65671         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65672         better code generation, and add U to large constants to avoid
65673         warnings, in non-GCC case.
65674         Suggested by Bruno Haible.
65675
65676 2007-07-23  Ben Pfaff  <blp@gnu.org>
65677
65678         * lib/popcount.h: Use verify_true instead of if...abort.
65679         * modules/popcount: Depend on verify module.
65680         Suggested by Jim Meyering.
65681
65682 2007-07-23  Bruno Haible  <bruno@clisp.org>
65683
65684         * gnulib-tool (func_import): Create a .cvsignore file also when the
65685         directory is not yet in CVS but the toplevel directory is. When
65686         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65687         Reported by Karl Berry.
65688
65689 2007-07-22  Ben Pfaff  <blp@gnu.org>
65690
65691         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65692         case.
65693         Suggested by Eric Blake.
65694
65695 2007-07-22  Ben Pfaff  <blp@gnu.org>
65696
65697         New module: popcount.
65698         * MODULES.html.sh: Add popcount.
65699         * modules/popcount: New file.
65700         * modules/popcount-tests: New file.
65701         * tests/test-popcount.c: New file.
65702         * lib/popcount.h: New file.
65703         * m4/popcount.m4: New file.
65704
65705 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * build-aux/announce-gen: Update to GPLv3.
65708
65709         * build-aux/config.guess: Update from config.
65710
65711 2007-07-21  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65714         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65715
65716 2007-07-20  Jim Meyering  <jim@meyering.net>
65717
65718         * check-module: Diagnose a self-dependency.
65719
65720 2007-07-19  Bruno Haible  <bruno@clisp.org>
65721
65722         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65723         empty.
65724         Reported by Eric Blake.
65725
65726 2007-07-18  Bruno Haible  <bruno@clisp.org>
65727
65728         * gnulib-tool: New options --po-base, --po-domain.
65729         (func_usage): Document them.
65730         (pobase, po_domain): New variables.
65731         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65732         DEFAULT_TEXT_DOMAIN.
65733         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65734         (func_import): Consider pobase and po_domain. Create a po/ directory.
65735         (func_create_testdir): Set pobase and po_domain to empty.
65736         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65737         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65738
65739 2007-07-18  Bruno Haible  <bruno@clisp.org>
65740
65741         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65742         EXTRA_DIST augmentation for files in build-aux/.
65743
65744 2007-07-16  Bruno Haible  <bruno@clisp.org>
65745
65746         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65747         * modules/getdelim (License): Likewise.
65748
65749 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65750
65751         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65752         * modules/d-type (License): Likewise.
65753         * modules/extensions (License): Likewise.
65754         * modules/fnmatch (License): Likewise.
65755         * modules/fseeko (License): Likewise.
65756         * modules/getaddrinfo (License): Likewise.
65757         * modules/getline (License): Likewise.
65758         * modules/getlogin_r (License): Likewise.
65759         * modules/getpass (License): Likewise.
65760         * modules/gettimeofday (License): Likewise.
65761         * modules/glob (License): Likewise.
65762         * modules/inet_ntop (License): Likewise.
65763         * modules/malloc (License): Likewise.
65764         * modules/malloca (License): Likewise.
65765         * modules/memmem (License): Likewise.
65766         * modules/mempcpy (License): Likewise.
65767         * modules/memset (License): Likewise.
65768         * modules/minmax (License): Likewise.
65769         * modules/mktime (License): Likewise.
65770         * modules/netinet_in (License): Likewise.
65771         * modules/pathmax (License): Likewise.
65772         * modules/poll (License): Likewise.
65773         * modules/regex (License): Likewise.
65774         * modules/snprintf (License): Likewise.
65775         * modules/stdbool (License): Likewise.
65776         * modules/stdint (License): Likewise.
65777         * modules/stdio (License): Likewise.
65778         * modules/strcase (License): Likewise.
65779         * modules/strcasestr (License): Likewise.
65780         * modules/strdup (License): Likewise.
65781         * modules/string (License): Likewise.
65782         * modules/strndup (License): Likewise.
65783         * modules/strnlen (License): Likewise.
65784         * modules/strpbrk (License): Likewise.
65785         * modules/strptime (License): Likewise.
65786         * modules/strsep (License): Likewise.
65787         * modules/sys_select (License): Likewise.
65788         * modules/sys_socket (License): Likewise.
65789         * modules/sys_stat (License): Likewise.
65790         * modules/sys_time (License): Likewise.
65791         * modules/time (License): Likewise.
65792         * modules/time_r (License): Likewise.
65793         * modules/timegm (License): Likewise.
65794         * modules/unistd (License): Likewise.
65795         * modules/vsnprintf (License): Likewise.
65796         * modules/wctype (License): Likewise.
65797
65798 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65799
65800         * modules/argz (License): LGPLv2+.
65801
65802 2007-07-15  Karl Berry  <karl@gnu.org>
65803
65804         * doc/gnulib.texi: revise node structure per new fdl.texi.
65805
65806 2007-07-14  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65809         the output file.
65810         * lib/uniname/uninames.h: Regenerated.
65811
65812 2007-07-14  Karl Berry  <karl@gnu.org>
65813
65814         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65815         omitting sectioning and index commands.
65816
65817 2007-07-13  Bruno Haible  <bruno@clisp.org>
65818
65819         New gnulib-tool option --more-symlinks.
65820         * gnulib-tool (func_usage): Document --more-symlinks.
65821         (do_copyrights): New variable.
65822         Recognize option --more-symlinks.
65823         (func_import): Don't add a copyright notice transform to
65824         sed_transform_lib_file if do_copyrights is empty.
65825
65826 2007-07-13  Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/vasnprintf.c (decimal_point_char): Define also if
65829         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65830         && !NEED_PRINTF_DIRECTIVE_A.
65831         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65832         Gary V. Vaughan <gary@gnu.org>.
65833
65834 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         * lib/inttypes_.h: Undo previous change, since it was fixed
65837         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65838
65839 2007-07-13  Bruno Haible  <bruno@clisp.org>
65840
65841         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65842         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65843
65844 2007-07-13  Jim Meyering  <jim@meyering.net>
65845
65846         df: Don't fail for Tru64's "file-on-file mount".
65847         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65848         so we fall through and use statfs instead.  Details here:
65849         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65850         Reported by Albert Chin.
65851
65852 2007-07-13  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65855         * modules/configmake (License): Likewise.
65856         * modules/gettext (License): Likewise.
65857         * modules/gettext-h (License): Likewise.
65858         * modules/include_next (License): Likewise.
65859         * modules/link-warning (License): Likewise.
65860         * modules/localcharset (License): Likewise.
65861         * modules/localename (License): Likewise.
65862         * modules/lock (License): Likewise.
65863         * modules/relocatable-lib-lgpl (License): Likewise.
65864         * modules/size_max (License): Likewise.
65865         * modules/vasnprintf (License): Likewise.
65866         * modules/wchar (License): Likewise.
65867         * modules/xsize (License): Likewise.
65868
65869 2007-07-13  Bruno Haible  <bruno@clisp.org>
65870
65871         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65872         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65873
65874 2007-07-12  Bruno Haible  <bruno@clisp.org>
65875
65876         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65877         in the modules files.
65878
65879 2007-07-11  Karl Berry  <karl@gnu.org>
65880
65881         * MODULES.html.sh (func_module): use
65882          sed -e '\|^'"${includefile}"'$|d'
65883          instead of /.../d, to avoid errors on $includefile's containing /.
65884
65885 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65886
65887         * gnulib-tool (func_import): Avoid duplication of --avoid
65888         statements
65889         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65890         names to `_' in variable names.
65891
65892 2007-07-10  Eric Blake  <ebb9@byu.net>
65893
65894         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65895         * NEWS: Document this change.
65896
65897 2007-07-08  Bruno Haible  <bruno@clisp.org>
65898
65899         Update to Unicode 5.0.
65900         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65901         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65902         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65903         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65904         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65905         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65906         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65907         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65908         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65909         U+10A3F, U+1D242..U+1D244.
65910         (nonspacing_table_ind): Update.
65911         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65912         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65913
65914 2007-07-08  Bruno Haible  <bruno@clisp.org>
65915
65916         Update to Unicode 5.0.
65917         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65918         code transform. Extend the name index field of unicode_name_to_code and
65919         unicode_code_to_name from 16 to 24 bits.
65920         * lib/uniname/uniname.c (unicode_character_name,
65921         unicode_name_character): Add the range 0x12xxx to the code transform.
65922         * lib/uniname/uninames.h: Regenerated.
65923         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65924
65925 2007-07-07  Bruno Haible  <bruno@clisp.org>
65926
65927         * modules/wcwidth-tests: New file.
65928         * tests/test-wcwidth.c: New file.
65929
65930         Work around MacOS X wcwidth() bug.
65931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65932         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65933         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65934         original wcwidth in non-UTF-8 locales.
65935         * modules/wcwidth (Depends-on): Add localcharset, streq,
65936         uniwidth/width.
65937         * doc/functions/wcwidth.texi: Update.
65938
65939 2007-07-07  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65942         (wcwidth): New declaration.
65943         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65944         macros.
65945         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65946         here. Prepare for creating <wchar.h> unconditionally.
65947         * modules/wchar (Depends-on): Add link-warning.
65948         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65949         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65950         * lib/wcwidth.h: Remove file.
65951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65952         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65953         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65954         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65955         (Include): Replace wcwidth.h with <wchar.h>.
65956         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65957         * lib/mbchar.h: Don't include wcwidth.h.
65958         * lib/mbswidth.c: Likewise.
65959         * NEWS: Mention the change.
65960
65961 2007-07-07  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65964         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65965         definition with an external declaration.
65966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65967         defined as a function. Remove AC_C_INLINE requirement.
65968         * modules/wcwidth (Files): Add lib/wcwidth.c.
65969         (Makefile.am): Remove redundant statement.
65970
65971 2007-07-07  Bruno Haible  <bruno@clisp.org>
65972
65973         * MODULES.html.sh (Unicode string functions): Add the new modules.
65974
65975         * tests/uniwidth/test-u32-strwidth.c: New file.
65976         * modules/uniwidth/u32-strwidth-tests: New file.
65977
65978         * lib/uniwidth/u32-strwidth.c: New file.
65979         * modules/uniwidth/u32-strwidth: New file.
65980
65981         * tests/uniwidth/test-u16-strwidth.c: New file.
65982         * modules/uniwidth/u16-strwidth-tests: New file.
65983
65984         * lib/uniwidth/u16-strwidth.c: New file.
65985         * modules/uniwidth/u16-strwidth: New file.
65986
65987         * tests/uniwidth/test-u8-strwidth.c: New file.
65988         * modules/uniwidth/u8-strwidth-tests: New file.
65989
65990         * lib/uniwidth/u8-strwidth.c: New file.
65991         * modules/uniwidth/u8-strwidth: New file.
65992
65993         * tests/uniwidth/test-u32-width.c: New file.
65994         * modules/uniwidth/u32-width-tests: New file.
65995
65996         * lib/uniwidth/u32-width.c: New file.
65997         * modules/uniwidth/u32-width: New file.
65998
65999         * tests/uniwidth/test-u16-width.c: New file.
66000         * modules/uniwidth/u16-width-tests: New file.
66001
66002         * lib/uniwidth/u16-width.c: New file.
66003         * modules/uniwidth/u16-width: New file.
66004
66005         * tests/uniwidth/test-u8-width.c: New file.
66006         * modules/uniwidth/u8-width-tests: New file.
66007
66008         * lib/uniwidth/u8-width.c: New file.
66009         * modules/uniwidth/u8-width: New file.
66010
66011         * tests/uniwidth/test-uc_width.c: New file.
66012         * modules/uniwidth/width-tests: New file.
66013
66014         * lib/uniwidth/width.c: New file, from GNU libiconv.
66015         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66016         * modules/uniwidth/width: New file.
66017
66018         * lib/uniwidth.h: New file, from GNU libiconv.
66019         * modules/uniwidth/base: New file.
66020
66021 2007-07-07  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/uniname.h: New file, from GNU gettext.
66024         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66025         * lib/uniname/uninames.h: New file, from GNU gettext.
66026         * lib/uniname/uniname.c: New file, from GNU gettext.
66027         * tests/uniname/test-uninames.sh: New file.
66028         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66029         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66030         * modules/uniname/base: New file.
66031         * modules/uniname/uniname: New file.
66032         * modules/uniname/uniname-tests: New file.
66033         * MODULES.html.sh (Unicode string functions): Add the new modules.
66034
66035 2007-07-06  Bruno Haible  <bruno@clisp.org>
66036
66037         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66038
66039 2007-07-06  Bruno Haible  <bruno@clisp.org>
66040
66041         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66042         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66043         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66044         include <sys/time.h>.
66045         Reported by Eric Blake.
66046
66047 2007-07-06  Eric Blake  <ebb9@byu.net>
66048
66049         Fix testing canonicalize on cygwin.
66050         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66051         Revert patch from 2007-06-19.
66052         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66053         canonicalize module is also in use.
66054         * tests/test-canonicalize.c: New file.
66055         * tests/test-canonicalize.sh: Likewise.
66056         * modules/canonicalize-tests: Likewise.
66057
66058 2007-07-06  Jim Meyering  <jim@meyering.net>
66059
66060         * lib/getugroups.c (getugroups): Detect getgrent failure.
66061         Adjust comment to reflect reality: this function may return -1.
66062
66063 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66064
66065         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66066         the new TP address.
66067         (usage): Fix typo
66068         (gnulib_mk): New variable.
66069
66070 2007-07-05  Jim Meyering  <jim@meyering.net>
66071
66072         Don't let endgrent clobber errno, no matter how improbable.
66073         * lib/getugroups.c (getugroups): Save and restore errno around
66074         endgrent call.
66075
66076         Close the group DB even when failing with 2^31 or more members.
66077         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66078
66079 2007-07-04  Jim Meyering  <jim@meyering.net>
66080
66081         * lib/getugroups.h: New file.
66082         * lib/getugroups.c: Include "getugroups.h".
66083         Remove uses of "register" keyword.
66084         Move local variable, "cp", down into scope where used.
66085         Give "username" parameter the "const" attribute.
66086         * modules/getugroups (Files): Add lib/getugroups.h
66087
66088 2007-07-04  Karl Berry  <karl@gnu.org>
66089
66090         * MODULES.html.sh (func_all_modules): Complete rename of
66091         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66092
66093 2007-07-02  Bruno Haible  <bruno@clisp.org>
66094
66095         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66096         mode, when inttypes.h comes from gnulib.
66097         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66098
66099 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66100
66101         * NEWS: Mention lgpl module name change.
66102
66103         * modules/lgpl-2.1: Renamed from lgpl.
66104
66105         * NEWS: Mention gpl module name change.
66106
66107         * modules/gpl-3.0: New file, based on gpl-2.0.
66108
66109         * modules/gpl-2.0: Renamed from gpl.
66110
66111         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66112         doc/gpl-2.0.texi.
66113
66114 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66117         #define __STDC_LIMIT_MACROS temporarily while including
66118         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66119         Problem reported by Joel E. Denny in
66120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66121
66122 2007-07-01  Bruno Haible  <bruno@clisp.org>
66123
66124         * lib/unistdio.h: New file.
66125         * lib/unistdio/u-asnprintf.h: New file.
66126         * lib/unistdio/u-asprintf.h: New file.
66127         * lib/unistdio/u-printf-args.c: New file.
66128         * lib/unistdio/u-printf-args.h: New file.
66129         * lib/unistdio/u-printf-parse.h: New file.
66130         * lib/unistdio/u-snprintf.h: New file.
66131         * lib/unistdio/u-sprintf.h: New file.
66132         * lib/unistdio/u-vasprintf.h: New file.
66133         * lib/unistdio/u-vsnprintf.h: New file.
66134         * lib/unistdio/u-vsprintf.h: New file.
66135         * lib/unistdio/ulc-asnprintf.c: New file.
66136         * lib/unistdio/ulc-asprintf.c: New file.
66137         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66138         * lib/unistdio/ulc-printf-parse.c: New file.
66139         * lib/unistdio/ulc-snprintf.c: New file.
66140         * lib/unistdio/ulc-sprintf.c: New file.
66141         * lib/unistdio/ulc-vasnprintf.c: New file.
66142         * lib/unistdio/ulc-vasprintf.c: New file.
66143         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66144         * lib/unistdio/ulc-vsnprintf.c: New file.
66145         * lib/unistdio/ulc-vsprintf.c: New file.
66146         * lib/unistdio/u8-asnprintf.c: New file.
66147         * lib/unistdio/u8-asprintf.c: New file.
66148         * lib/unistdio/u8-printf-parse.c: New file.
66149         * lib/unistdio/u8-snprintf.c: New file.
66150         * lib/unistdio/u8-sprintf.c: New file.
66151         * lib/unistdio/u8-vasnprintf.c: New file.
66152         * lib/unistdio/u8-vasprintf.c: New file.
66153         * lib/unistdio/u8-vsnprintf.c: New file.
66154         * lib/unistdio/u8-vsprintf.c: New file.
66155         * lib/unistdio/u8-u8-asnprintf.c: New file.
66156         * lib/unistdio/u8-u8-asprintf.c: New file.
66157         * lib/unistdio/u8-u8-snprintf.c: New file.
66158         * lib/unistdio/u8-u8-sprintf.c: New file.
66159         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66160         * lib/unistdio/u8-u8-vasprintf.c: New file.
66161         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66162         * lib/unistdio/u8-u8-vsprintf.c: New file.
66163         * lib/unistdio/u16-asnprintf.c: New file.
66164         * lib/unistdio/u16-asprintf.c: New file.
66165         * lib/unistdio/u16-printf-parse.c: New file.
66166         * lib/unistdio/u16-snprintf.c: New file.
66167         * lib/unistdio/u16-sprintf.c: New file.
66168         * lib/unistdio/u16-vasnprintf.c: New file.
66169         * lib/unistdio/u16-vasprintf.c: New file.
66170         * lib/unistdio/u16-vsnprintf.c: New file.
66171         * lib/unistdio/u16-vsprintf.c: New file.
66172         * lib/unistdio/u16-u16-asnprintf.c: New file.
66173         * lib/unistdio/u16-u16-asprintf.c: New file.
66174         * lib/unistdio/u16-u16-snprintf.c: New file.
66175         * lib/unistdio/u16-u16-sprintf.c: New file.
66176         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66177         * lib/unistdio/u16-u16-vasprintf.c: New file.
66178         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66179         * lib/unistdio/u16-u16-vsprintf.c: New file.
66180         * lib/unistdio/u32-asnprintf.c: New file.
66181         * lib/unistdio/u32-asprintf.c: New file.
66182         * lib/unistdio/u32-printf-parse.c: New file.
66183         * lib/unistdio/u32-snprintf.c: New file.
66184         * lib/unistdio/u32-sprintf.c: New file.
66185         * lib/unistdio/u32-vasnprintf.c: New file.
66186         * lib/unistdio/u32-vasprintf.c: New file.
66187         * lib/unistdio/u32-vsnprintf.c: New file.
66188         * lib/unistdio/u32-vsprintf.c: New file.
66189         * lib/unistdio/u32-u32-asnprintf.c: New file.
66190         * lib/unistdio/u32-u32-asprintf.c: New file.
66191         * lib/unistdio/u32-u32-snprintf.c: New file.
66192         * lib/unistdio/u32-u32-sprintf.c: New file.
66193         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66194         * lib/unistdio/u32-u32-vasprintf.c: New file.
66195         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66196         * lib/unistdio/u32-u32-vsprintf.c: New file.
66197         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66198         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66199         * tests/unistdio/test-ulc-printf1.h: New file.
66200         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66201         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66202         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66203         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66204         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66205         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66206         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66207         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66208         * tests/unistdio/test-u8-asnprintf1.c: New file.
66209         * tests/unistdio/test-u8-asnprintf1.h: New file.
66210         * tests/unistdio/test-u8-printf1.h: New file.
66211         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66212         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66213         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66214         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66215         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66216         * tests/unistdio/test-u8-vasprintf1.c: New file.
66217         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66218         * tests/unistdio/test-u8-vsprintf1.c: New file.
66219         * tests/unistdio/test-u16-asnprintf1.c: New file.
66220         * tests/unistdio/test-u16-asnprintf1.h: New file.
66221         * tests/unistdio/test-u16-printf1.h: New file.
66222         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66223         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66224         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66225         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66226         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66227         * tests/unistdio/test-u16-vasprintf1.c: New file.
66228         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66229         * tests/unistdio/test-u16-vsprintf1.c: New file.
66230         * tests/unistdio/test-u32-asnprintf1.c: New file.
66231         * tests/unistdio/test-u32-asnprintf1.h: New file.
66232         * tests/unistdio/test-u32-printf1.h: New file.
66233         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66234         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66235         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66236         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66237         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66238         * tests/unistdio/test-u32-vasprintf1.c: New file.
66239         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66240         * tests/unistdio/test-u32-vsprintf1.c: New file.
66241         * modules/unistdio/base: New file.
66242         * modules/unistdio/u-printf-args: New file.
66243         * modules/unistdio/ulc-asnprintf: New file.
66244         * modules/unistdio/ulc-asprintf: New file.
66245         * modules/unistdio/ulc-fprintf: New file.
66246         * modules/unistdio/ulc-printf-parse: New file.
66247         * modules/unistdio/ulc-snprintf: New file.
66248         * modules/unistdio/ulc-sprintf: New file.
66249         * modules/unistdio/ulc-vasnprintf: New file.
66250         * modules/unistdio/ulc-vasprintf: New file.
66251         * modules/unistdio/ulc-vfprintf: New file.
66252         * modules/unistdio/ulc-vsnprintf: New file.
66253         * modules/unistdio/ulc-vsprintf: New file.
66254         * modules/unistdio/u8-asnprintf: New file.
66255         * modules/unistdio/u8-asprintf: New file.
66256         * modules/unistdio/u8-printf-parse: New file.
66257         * modules/unistdio/u8-snprintf: New file.
66258         * modules/unistdio/u8-sprintf: New file.
66259         * modules/unistdio/u8-vasnprintf: New file.
66260         * modules/unistdio/u8-vasprintf: New file.
66261         * modules/unistdio/u8-vsnprintf: New file.
66262         * modules/unistdio/u8-vsprintf: New file.
66263         * modules/unistdio/u8-u8-asnprintf: New file.
66264         * modules/unistdio/u8-u8-asprintf: New file.
66265         * modules/unistdio/u8-u8-snprintf: New file.
66266         * modules/unistdio/u8-u8-sprintf: New file.
66267         * modules/unistdio/u8-u8-vasnprintf: New file.
66268         * modules/unistdio/u8-u8-vasprintf: New file.
66269         * modules/unistdio/u8-u8-vsnprintf: New file.
66270         * modules/unistdio/u8-u8-vsprintf: New file.
66271         * modules/unistdio/u16-asnprintf: New file.
66272         * modules/unistdio/u16-asprintf: New file.
66273         * modules/unistdio/u16-printf-parse: New file.
66274         * modules/unistdio/u16-snprintf: New file.
66275         * modules/unistdio/u16-sprintf: New file.
66276         * modules/unistdio/u16-vasnprintf: New file.
66277         * modules/unistdio/u16-vasprintf: New file.
66278         * modules/unistdio/u16-vsnprintf: New file.
66279         * modules/unistdio/u16-vsprintf: New file.
66280         * modules/unistdio/u16-u16-asnprintf: New file.
66281         * modules/unistdio/u16-u16-asprintf: New file.
66282         * modules/unistdio/u16-u16-snprintf: New file.
66283         * modules/unistdio/u16-u16-sprintf: New file.
66284         * modules/unistdio/u16-u16-vasnprintf: New file.
66285         * modules/unistdio/u16-u16-vasprintf: New file.
66286         * modules/unistdio/u16-u16-vsnprintf: New file.
66287         * modules/unistdio/u16-u16-vsprintf: New file.
66288         * modules/unistdio/u32-asnprintf: New file.
66289         * modules/unistdio/u32-asprintf: New file.
66290         * modules/unistdio/u32-printf-parse: New file.
66291         * modules/unistdio/u32-snprintf: New file.
66292         * modules/unistdio/u32-sprintf: New file.
66293         * modules/unistdio/u32-vasnprintf: New file.
66294         * modules/unistdio/u32-vasprintf: New file.
66295         * modules/unistdio/u32-vsnprintf: New file.
66296         * modules/unistdio/u32-vsprintf: New file.
66297         * modules/unistdio/u32-u32-asnprintf: New file.
66298         * modules/unistdio/u32-u32-asprintf: New file.
66299         * modules/unistdio/u32-u32-snprintf: New file.
66300         * modules/unistdio/u32-u32-sprintf: New file.
66301         * modules/unistdio/u32-u32-vasnprintf: New file.
66302         * modules/unistdio/u32-u32-vasprintf: New file.
66303         * modules/unistdio/u32-u32-vsnprintf: New file.
66304         * modules/unistdio/u32-u32-vsprintf: New file.
66305         * modules/unistdio/ulc-asnprintf-tests: New file.
66306         * modules/unistdio/ulc-vasnprintf-tests: New file.
66307         * modules/unistdio/ulc-vasprintf-tests: New file.
66308         * modules/unistdio/ulc-vsnprintf-tests: New file.
66309         * modules/unistdio/ulc-vsprintf-tests: New file.
66310         * modules/unistdio/u8-asnprintf-tests: New file.
66311         * modules/unistdio/u8-vasnprintf-tests: New file.
66312         * modules/unistdio/u8-vasprintf-tests: New file.
66313         * modules/unistdio/u8-vsnprintf-tests: New file.
66314         * modules/unistdio/u8-vsprintf-tests: New file.
66315         * modules/unistdio/u16-asnprintf-tests: New file.
66316         * modules/unistdio/u16-vasnprintf-tests: New file.
66317         * modules/unistdio/u16-vasprintf-tests: New file.
66318         * modules/unistdio/u16-vsnprintf-tests: New file.
66319         * modules/unistdio/u16-vsprintf-tests: New file.
66320         * modules/unistdio/u32-asnprintf-tests: New file.
66321         * modules/unistdio/u32-vasnprintf-tests: New file.
66322         * modules/unistdio/u32-vasprintf-tests: New file.
66323         * modules/unistdio/u32-vsnprintf-tests: New file.
66324         * modules/unistdio/u32-vsprintf-tests: New file.
66325         * MODULES.html.sh (Unicode string functions): Add the new modules.
66326
66327 2007-07-01  Bruno Haible  <bruno@clisp.org>
66328
66329         * lib/sprintf.c (sprintf): Limit the available length estimation,
66330         to avoid address wraparound.
66331         * lib/vsprintf.c (vsprintf): Likewise.
66332         * modules/sprintf-posix (Dependencies): Add stdint.
66333         * modules/vsprintf-posix (Dependencies): Likewise.
66334
66335 2007-07-01  Bruno Haible  <bruno@clisp.org>
66336
66337         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66338         Windows PATH as well. Conservative double-quoting. Comments.
66339
66340 2007-07-01  Bruno Haible  <bruno@clisp.org>
66341             Eric Blake  <ebb9@byu.net>
66342             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66343
66344         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66345         empty components in $PATH, denoting '.'.
66346
66347 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66348
66349         * gnulib-tool: Fix indentation.
66350         (func_create_megatestdir): Likewise.
66351         Report by Bruno Haible.
66352
66353 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66354
66355         Sync from Automake.
66356         * build-aux/gnupload: Fix shell portability issues with for loops.
66357         Report by Karl Berry.
66358
66359 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66360
66361         * build-aux/maint.mk (POURL): Use translationproject.org.
66362
66363 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66364             Bruno Haible  <bruno@clisp.org>
66365
66366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66367         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66368         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66369         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66370         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66371
66372 2007-06-27  Bruno Haible  <bruno@clisp.org>
66373
66374         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66375         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66376
66377 2007-06-26  Karl Berry  <karl@gnu.org>
66378
66379         * MODULES.html.sh: remove xreadlink-with-size.
66380
66381 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66384         method that I hope also handles the double-include problem noted
66385         by Bruno Haible in
66386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66387
66388 2007-06-23  Bruno Haible  <bruno@clisp.org>
66389
66390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66391         Don't let the 'mostlyclean' target fail if the last subdirectory could
66392         not be removed.
66393         Reported by Karl Berry.
66394
66395 2007-06-23  Bruno Haible  <bruno@clisp.org>
66396
66397         * gnulib-tool (echo): Add a speedier workaround for ksh.
66398         * tests/test-echo.sh: Likewise.
66399
66400 2007-06-23  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66403         * tests/test-echo.sh: Likewise.
66404
66405 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66406
66407         * gnulib-tool (IFS): Initialize early, so we don't set it to
66408         empty later.
66409         (self_abspathname): Rewrite algorithm to set it, reindent.
66410         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66411         (func_create_megatestdir): Merge some sed scripts.
66412
66413 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66416         exposed by Sun Studio 11 cc on Solaris 8.
66417
66418 2007-06-22  Bruno Haible  <bruno@clisp.org>
66419
66420         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66421         backslashes.
66422         * tests/test-echo.sh: New file.
66423
66424 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66425
66426         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66427         simplify `sed_replace_build_aux' scripts, they are portable but
66428         echoing them with `echo' is not.
66429         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66430
66431 2007-06-21  Karl Berry  <karl@gnu.org>
66432
66433         * config/srclist.txt: guess we can't handle the licenses via
66434         srclist at the moment.
66435
66436 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * MODULES.html.sh: Add include_next.
66439         * modules/include_next: New file.
66440
66441 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66444         INCLUDE_NEXT.
66445         (gl_CHECK_NEXT_HEADERS): New macro.
66446         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66447         the obsolescent gl_ABSOLUTE_HEADER.
66448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66449         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66450         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66451         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66452         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66453         * m4/math_h.m4 (gl_MATH_H): Likewise.
66454         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66455         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66456         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66457         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66458         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66459         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66460         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66464         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66465         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66466         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66469         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66470         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66471         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66472         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66473         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66474         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66475         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66476         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66477         * lib/float_.h: Likewise.
66478         * lib/inttypes_.h: Likewise.
66479         * lib/math_.h: Likewise.
66480         * lib/search_.h: Likewise.
66481         * lib/signal_.h: Likewise.
66482         * lib/stdint_.h: Likewise.
66483         * lib/stdio_.h: Likewise.
66484         * lib/stdlib_.h: Likewise.
66485         * lib/string_.h: Likewise.
66486         * lib/sys_stat_.h: Likewise.
66487         * lib/sys_time_.h: Likewise.
66488         * lib/time_.h: Likewise.
66489         * lib/unistd_.h: Likewise.
66490         * lib/wchar_.h: Likewise.
66491         * lib/wctype_.h: Likewise.
66492         * lib/dirent_.h: Likewise.
66493         * lib/iconv_.h: Likewise.
66494         * lib/locale_.h: Likewise.
66495         * lib/netinet_in_.h: Likewise.
66496         * lib/sys_select_.h: Likewise.
66497         * lib/sys_socket_.h: Likewise.
66498         * lib/sysexits_.h: Likewise.
66499         * modules/fcntl (Depends-on): Depend on include_next, not
66500         absolute_header.
66501         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66502         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66503         * modules/fchdir: Likewise.
66504         * modules/float: Likewise.
66505         * modules/iconv_open: Likewise.
66506         * modules/inttypes: Likewise.
66507         * modules/locale: Likewise.
66508         * modules/math: Likewise.
66509         * modules/netinet_in: Likewise.
66510         * modules/search: Likewise.
66511         * modules/signal: Likewise.
66512         * modules/stdint: Likewise.
66513         * modules/stdio: Likewise.
66514         * modules/stdlib: Likewise.
66515         * modules/string: Likewise.
66516         * modules/sys_select: Likewise.
66517         * modules/sys_socket: Likewise.
66518         * modules/sys_stat: Likewise.
66519         * modules/sys_time: Likewise.
66520         * modules/sysexits: Likewise.
66521         * modules/time: Likewise.
66522         * modules/unistd: Likewise.
66523         * modules/wchar: Likewise.
66524         * modules/wctype: Likewise.
66525         * modules/sys_stat: Change maintainer to "all".
66526         * modules/unistd: Likewise.
66527
66528 2007-06-20  Karl Berry  <karl@gnu.org>
66529
66530         * config/srclist.txt: track www changes in license files.
66531
66532 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66533
66534         * build-aux/bootstrap: Remove stray dot.
66535         Make sure build_aux settings are honored when linking
66536         gnulib_extra_files.
66537
66538 2007-06-19  Eric Blake  <ebb9@byu.net>
66539
66540         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66541         Allow compilation on cygwin.
66542
66543 2007-06-19  Jim Meyering  <jim@meyering.net>
66544
66545         xreadlink-with-size: Remove module.  No longer used.
66546         Ex-callers now use xreadlink or mreadlink-with-size.
66547         * modules/xreadlink-with-size: Remove module.
66548         * lib/xreadlink-with-size.c: Remove file.
66549         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66550         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66551         just before the function definition *is* accurate.
66552
66553         Eliminate one way canonicalize_filename_mode could exit.
66554         * lib/canonicalize.c (canonicalize_filename_mode):
66555         Use mreadlink_with_size, not xreadlink_with_size.
66556
66557 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66558
66559         Detect porting problems to FreeBSD/arm, which has time_t wider than
66560         long int.  Original problem reported for GNU diff by Xin Li in
66561         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66562         * modules/getdate (Depends-on): Add intprops, verify.
66563         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66564         is an integer type no wider than long int.
66565
66566 2007-06-18  Jim Meyering  <jim@meyering.net>
66567
66568         New module: mreadlink-with-size.
66569         * MODULES.html.sh: Add mreadlink-with-size.
66570         * modules/mreadlink-with-size: New module
66571         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66572         not xreadlink-with-size.
66573         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66574
66575 2007-06-16  Bruno Haible  <bruno@clisp.org>
66576
66577         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66578         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66579         Reported by Gary V. Vaughan <gary@gnu.org>.
66580
66581 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66582
66583         Revamp lchown so that it lives in unistd.h where it belongs.
66584         * lib/lchown.h: Remove.
66585         * lib/dirchownmod.c: Don't include lib/lchown.h.
66586         * lib/fchownat.c: Likewise.
66587         * lib/openat.c: Likewise.
66588         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66589         does not follow symlinks.
66590         (EOPNOTSUPP): Define if not defined.
66591         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66592         is defined to 0.
66593         (lchown): New decl.
66594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66595         Do not check for lchown decl.
66596         Set REPLACE_LCHOWN.
66597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66598         REPLACE_LCHOWN.
66599         * modules/chown: Make it clear it follows symlinks.
66600         * modules/lchown: Make it clear it doesn't follow symlinks.
66601         (Files): Remove lib/lchown.h
66602         (Depends-on): Add unistd.
66603         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66604         (Include): Include <unistd.h>, not "lchown.h".
66605         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66606         REPLACE_LCHOWN.
66607
66608 2007-06-15  Jim Meyering  <jim@meyering.net>
66609
66610         Change license (GPL to LGPL) of fsusage and dependents.
66611         * modules/fsusage (License): Change to LGPL.
66612         * modules/full-read (License): Likewise.
66613         * modules/full-write (License): Likewise.
66614         * modules/safe-read (License): Likewise.
66615         * modules/safe-write (License): Likewise.
66616
66617 2007-06-14  Ben Pfaff  <blp@gnu.org>
66618
66619         Missing part of allocsa -> malloca transition.
66620         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66621         gl_MALLOCA.
66622
66623 2007-06-12  Bruno Haible  <bruno@clisp.org>
66624
66625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66626         to ia64, x86_64, i386.
66627         Reported by Eric Blake.
66628
66629 2007-06-12  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66632         cross-compiling to x86_64.
66633
66634 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66637         glitch reported by Ralf Wildenhues in
66638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66639
66640         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66641         Vin Shelton.
66642
66643 2007-06-11  Bruno Haible  <bruno@clisp.org>
66644
66645         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66646         replacement string.
66647         Reported by Eric Blake.
66648
66649 2007-06-10  Bruno Haible  <bruno@clisp.org>
66650
66651         Prepare vasnprintf code for use with Unicode strings.
66652         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66653         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66654         TYPE_U32_STRING.
66655         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66656         a_u32_string variants.
66657         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66658         * lib/printf-args.c: Don't include config.h and the specification
66659         header if PRINTF_FETCHARGS is already defined.
66660         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66661         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66662         TYPE_U16_STRING, TYPE_U32_STRING.
66663         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66664         u16_directive, u16_directives, u32_directive, u32_directives): New
66665         types.
66666         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66667         New declarations.
66668         * lib/printf-parse.c: Don't include config.h and the specification
66669         header if PRINTF_PARSE is already defined. Eliminate the set of
66670         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66671         them now. Include c-ctype.h.
66672         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66673         directive and CHAR_T_ONLY_ASCII.
66674         * lib/vasnprintf.c: Don't include config.h and the specification header
66675         if VASNPRINTF is already defined.
66676         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66677         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66678         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66679         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66680         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66681         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66682         code accordingly.
66683         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66684         pad_ourselves also in this case, with the 'c' and 's' directives, and
66685         with a different notion of "width".
66686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66687
66688 2007-06-10  Bruno Haible  <bruno@clisp.org>
66689
66690         * modules/unistr/u32-mbsnlen: New file.
66691         * lib/unistr/u32-mbsnlen.c: New file.
66692
66693         * modules/unistr/u16-mbsnlen: New file.
66694         * lib/unistr/u16-mbsnlen.c: New file.
66695
66696         * modules/unistr/u8-mbsnlen: New file.
66697         * lib/unistr/u8-mbsnlen.c: New file.
66698
66699         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66700         declarations.
66701
66702 2007-06-10  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/string_.h (mbsnlen): New declaration.
66705         * lib/mbsnlen.c: New file.
66706         * m4/mbsnlen.m4: New file.
66707         * modules/mbsnlen: New file.
66708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66709         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66710         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66711
66712 2007-06-10  Bruno Haible  <bruno@clisp.org>
66713
66714         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66715
66716 2007-06-10  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66719         * lib/mbuiter.h: Likewise.
66720
66721 2007-06-10  Bruno Haible  <bruno@clisp.org>
66722
66723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66724         declaration.
66725
66726 2007-06-10  Karl Berry  <karl@gnu.org>
66727
66728         * config/srclist.txt: remove gettext entries, Bruno prefers
66729         to update individually.
66730
66731 2007-06-10  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66734         'maxlen'. Ensure only length + width bytes are allocated, not
66735         length + 1 + width.
66736
66737 2007-06-09  Bruno Haible  <bruno@clisp.org>
66738
66739         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66740         (CHAR_T): Remove macro.
66741         (VASNPRINTF): Update.
66742
66743 2007-06-09  Bruno Haible  <bruno@clisp.org>
66744
66745         * MODULES.html.sh (Unicode string functions): Add the new modules.
66746
66747         * modules/uniconv/u32-conv-to-enc: New file.
66748         * lib/uniconv/u32-conv-to-enc.c: New file.
66749         * modules/uniconv/u32-conv-to-enc-tests: New file.
66750         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66751
66752         * modules/uniconv/u16-conv-to-enc: New file.
66753         * lib/uniconv/u16-conv-to-enc.c: New file.
66754         * lib/uniconv/u-conv-to-enc.h: New file.
66755         * modules/uniconv/u16-conv-to-enc-tests: New file.
66756         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66757
66758         * modules/uniconv/u8-conv-to-enc: New file.
66759         * lib/uniconv/u8-conv-to-enc.c: New file.
66760         * modules/uniconv/u8-conv-to-enc-tests: New file.
66761         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66762
66763         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66764         u32_conv_to_encoding): New declarations.
66765
66766 2007-06-09  Bruno Haible  <bruno@clisp.org>
66767
66768         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66769
66770 2007-06-09  Bruno Haible  <bruno@clisp.org>
66771
66772         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66773         * modules/malloca: Renamed from modules/allocsa, updated.
66774         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66775         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66776         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66777         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66778         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66779         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66780         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66781         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66782         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66783         * modules/c-strcasestr (Depends-on): Update.
66784         * lib/c-strcasestr.c: Update.
66785         * modules/c-strstr (Depends-on): Update.
66786         * lib/c-strstr.c: Update.
66787         * modules/canonicalize-lgpl (Depends-on): Update.
66788         * lib/canonicalize-lgpl.c: Update.
66789         * modules/clean-temp (Depends-on): Update.
66790         * lib/clean-temp.c: Update.
66791         * modules/csharpcomp (Depends-on): Update.
66792         * lib/csharpcomp.c: Update.
66793         * modules/csharpexec (Depends-on): Update.
66794         * lib/csharpexec.c: Update.
66795         * modules/javacomp (Depends-on): Update.
66796         * lib/javacomp.c: Update.
66797         * modules/javaexec (Depends-on): Update.
66798         * lib/javaexec.c: Update.
66799         * modules/mbscasestr (Depends-on): Update.
66800         * lib/mbscasestr.c: Update.
66801         * modules/mbsstr (Depends-on): Update.
66802         * lib/mbsstr.c: Update.
66803         * modules/setenv (Depends-on): Update.
66804         * lib/setenv.c: Update.
66805         * modules/strcasestr (Depends-on): Update.
66806         * lib/strcasestr.c: Update.
66807         * modules/striconveha (Depends-on): Update.
66808         * lib/striconveha.c: Update.
66809         * modules/relocatable-prog-wrapper (Files): Update.
66810         * lib/relocwrapper.c: Update.
66811         * build-aux/install-reloc: Update.
66812         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66813
66814 2007-06-08  Bruno Haible  <bruno@clisp.org>
66815
66816         Port to uClibc.
66817         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66818         * lib/fpurge.c (fpurge): Likewise.
66819         * lib/freading.c (freading): Likewise.
66820         * lib/fseeko.c (rpl_fseeko): Likewise.
66821         * lib/fseterr.c (fseterr): Likewise.
66822         * lib/fwriting.c (fwriting): Likewise.
66823         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66824
66825 2007-06-08  Bruno Haible  <bruno@clisp.org>
66826
66827         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66828         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66829         * modules/gettext (Files): Add m4/intlmacosx.m4.
66830
66831 2007-06-07  Bruno Haible  <bruno@clisp.org>
66832
66833         * modules/localename-tests: New file.
66834         * tests/test-localename.c: New file.
66835
66836         New module 'localename'.
66837         * lib/localename.h: New file.
66838         * lib/localename.c: New file, from GNU gettext.
66839         * m4/localename.m4: New file.
66840         * modules/localename: New file.
66841
66842 2007-06-07  Bruno Haible  <bruno@clisp.org>
66843
66844         Work around the lack of <wchar.h> on some builds of uClibc.
66845         * doc/headers/wchar.texi: Update.
66846         * lib/wchar_.h: Include <wchar.h> only if it exists.
66847         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66848         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66849         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66850         doesn't exist.
66851         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66852         * modules/mbfile (Depends-on): Add wchar.
66853         * modules/mbiter (Depends-on): Likewise.
66854         * modules/mbuiter (Depends-on): Likewise.
66855         Reported by Simon Josefsson.
66856
66857 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         Work around problem reported by Steven M. Schweda in
66860         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66861         Tru64 5.1B with the Compaq compiler environment installed declares
66862         an 'isblank' function but does not define it in the C library.
66863         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66864         * lib/regex_internal.h (isblank): Likewise.
66865         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66866         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66867
66868 2007-06-05  Bruno Haible  <bruno@clisp.org>
66869
66870         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66871         ia64.
66872         * modules/printf-safe: New file.
66873         * modules/fprintf-posix (Depends-on): Add printf-safe.
66874         * modules/printf-posix (Depends-on): Likewise.
66875         * modules/snprintf-posix (Depends-on): Likewise.
66876         * modules/sprintf-posix (Depends-on): Likewise.
66877         * modules/vasnprintf-posix (Depends-on): Likewise.
66878         * modules/vasprintf-posix (Depends-on): Likewise.
66879         * modules/vfprintf-posix (Depends-on): Likewise.
66880         * modules/vprintf-posix (Depends-on): Likewise.
66881         * modules/vsnprintf-posix (Depends-on): Likewise.
66882         * modules/vsprintf-posix (Depends-on): Likewise.
66883         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66884         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66885         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66886         "no" on i386, x86_64, ia64.
66887         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66888         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66889         on i386, x86_64, ia64.
66890         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66891         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66892         on i386, x86_64, ia64.
66893         * tests/test-vasnprintf-posix.c: Include float.h.
66894         (LDBL80_WORDS): New macro.
66895         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66896         on i386, x86_64, ia64.
66897         * tests/test-vasprintf-posix.c: Include float.h.
66898         (LDBL80_WORDS): New macro.
66899         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66900         on i386, x86_64, ia64.
66901         * tests/test-snprintf-posix.c: Include float.h.
66902         * tests/test-sprintf-posix.c: Likewise.
66903         * tests/test-vsnprintf-posix.c: Likewise.
66904         * tests/test-vsprintf-posix.c: Likewise.
66905
66906 2007-06-05  Bruno Haible  <bruno@clisp.org>
66907
66908         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66909         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66910         non-IEEE numbers on i386, x86_64, ia64.
66911         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66912         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66913         * tests/test-isnanl.h: Include float.h.
66914         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66915
66916 2007-06-05  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66919         also the %a / %A. Handle the %a / %A code before this extra handling.
66920
66921 2007-06-05  Bruno Haible  <bruno@clisp.org>
66922
66923         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66924         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66925
66926 2007-06-05  Bruno Haible  <bruno@clisp.org>
66927
66928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66929         typo in variable name.
66930
66931 2007-06-05  Eric Blake  <ebb9@byu.net>
66932
66933         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66934         Reported by Simon Josefsson.
66935
66936 2007-06-04  Bruno Haible  <bruno@clisp.org>
66937
66938         Avoid test failures on some PowerPC platforms.
66939         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66940         Define differently for PowerPC.
66941         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66942         Reported by Gary V. Vaughan <gary@gnu.org>.
66943
66944 2007-06-02  Bruno Haible  <bruno@clisp.org>
66945
66946         Fix test-stdint failure on FreeBSD/ia64.
66947         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66948         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66949         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66950         * doc/headers/stdint.texi: Update.
66951
66952 2007-06-01  Bruno Haible  <bruno@clisp.org>
66953
66954         * tests/test-binary-io.c (main): Pass a third argument to open().
66955         Reported by Gary V. Vaughan <gary@gnu.org>.
66956
66957 2007-06-01  Bruno Haible  <bruno@clisp.org>
66958
66959         * doc/functions/frexpl.texi: Update for mingw.
66960
66961 2007-06-01  Bruno Haible  <bruno@clisp.org>
66962
66963         * tests/test-lseek.c (main): Disable test of errno for invalid third
66964         argument.
66965         * doc/functions/lseek.texi: Update.
66966         Reported by Gary V. Vaughan <gary@gnu.org>.
66967
66968 2007-05-28  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66971
66972 2007-05-31  Eric Blake  <ebb9@byu.net>
66973
66974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66975         cross compiling.
66976
66977 2007-05-30  Eric Blake  <ebb9@byu.net>
66978         and Bruno Haible  <bruno@clisp.org>
66979
66980         Work around mingw test failures exposed by m4-1.4.9b.
66981         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66982         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66983         moment.
66984
66985 2007-05-30  Bruno Haible  <bruno@clisp.org>
66986
66987         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66988         assuming that they are closed. Needed on HP-UX 11.
66989
66990 2007-05-29  Bruno Haible  <bruno@clisp.org>
66991
66992         Fix a problem with #include_next.
66993         * lib/dirent_.h: Split the double-inclusion guard.
66994         * lib/fcntl_.h: Likewise.
66995         * lib/float_.h: Likewise.
66996         * lib/iconv_.h: Likewise.
66997         * lib/inttypes_.h: Likewise.
66998         * lib/locale_.h: Likewise.
66999         * lib/math_.h: Likewise.
67000         * lib/netinet_in_.h: Likewise.
67001         * lib/search_.h: Likewise.
67002         * lib/signal_.h: Likewise.
67003         * lib/stdint_.h: Likewise.
67004         * lib/stdio_.h: Likewise.
67005         * lib/stdlib_.h: Likewise.
67006         * lib/string_.h: Likewise.
67007         * lib/sys_select_.h: Likewise.
67008         * lib/sys_socket_.h: Likewise.
67009         * lib/sys_stat_.h: Likewise.
67010         * lib/sys_time_.h: Likewise.
67011         * lib/sysexits_.h: Likewise.
67012         * lib/time_.h: Likewise.
67013         * lib/unistd_.h: Likewise.
67014         * lib/wchar_.h: Likewise.
67015         * lib/wctype_.h: Likewise.
67016
67017 2007-05-29  Bruno Haible  <bruno@clisp.org>
67018
67019         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67020         for the moment.
67021
67022 2007-05-29  Bruno Haible  <bruno@clisp.org>
67023
67024         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67025         invocation.
67026         Reported by Eric Blake.
67027
67028 2007-05-29  Bruno Haible  <bruno@clisp.org>
67029
67030         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67031         compiling case.
67032
67033 2007-05-29  Eric Blake  <ebb9@byu.net>
67034             Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67037         cross compiles.
67038
67039 2007-05-28  Eric Blake  <ebb9@byu.net>
67040
67041         * modules/closein-tests (test_closein_LDADD): Support test on
67042         cygwin with libtool.
67043
67044 2007-05-28  Bruno Haible  <bruno@clisp.org>
67045
67046         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67047         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67048         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67049         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67050         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67051         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67052         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67053         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67054         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67055
67056 2007-05-28  Eric Blake  <ebb9@byu.net>
67057
67058         Unconditionally include <config.h> in unit tests.
67059         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67060         * tests/test-allocsa.c, tests/test-arcfour.c,
67061         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67062         tests/test-array_list.c, tests/test-array_oset.c,
67063         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67064         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67065         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67066         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67067         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67068         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67069         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67070         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67071         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67072         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67073         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67074         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67075         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67076         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67077         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67078         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67079         test-md5.c, test-memmem.c, test-printf-posix.c,
67080         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67081         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67082         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67083         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67084         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67085         test-vasnprintf-posix2.c, test-vasnprintf.c,
67086         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67087         test-vfprintf-posix.c, test-vprintf-posix.c,
67088         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67089         test-xvasprintf.c: Likewise.
67090
67091 2007-05-28  Bruno Haible  <bruno@clisp.org>
67092
67093         * gnulib-tool (func_import): Remember the --with-tests command-line
67094         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67095         Reported by Eric Blake.
67096
67097 2007-05-28  Bruno Haible  <bruno@clisp.org>
67098
67099         * modules/ftell-tests: New file.
67100         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67101         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67102
67103         * lib/ftell.c: New file.
67104         * modules/ftell: New file.
67105         * m4/ftell.m4: New file.
67106         * doc/functions/ftell.texi: Update.
67107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67108         REPLACE_FTELL.
67109         * lib/stdio_.h (rpl_ftell): New declaration.
67110         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67111         REPLACE_FTELL.
67112
67113 2007-05-28  Eric Blake  <ebb9@byu.net>
67114
67115         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67116
67117 2007-05-28  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/fseek-tests: New file.
67120         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67121         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67122
67123         * lib/fseek.c: New file.
67124         * modules/fseek: New file.
67125         * m4/fseek.m4: New file.
67126         * doc/functions/fseek.texi: Update.
67127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67128         REPLACE_FSEEK.
67129         * lib/stdio_.h (rpl_fseek): New declaration.
67130         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67131         REPLACE_FSEEK.
67132
67133 2007-05-28  Bruno Haible  <bruno@clisp.org>
67134
67135         * lib/stdio_.h (fflush): More comments.
67136
67137 2007-05-28  Bruno Haible  <bruno@clisp.org>
67138
67139         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67140         runtime test.
67141
67142 2007-05-28  Eric Blake  <ebb9@byu.net>
67143
67144         Improve lseek module.
67145         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67146         * lib/unistd_.h (lseek): Scale back link warning message.
67147         * tests/test-lseek.c: Beef up test.
67148         * tests/test-lseek.sh: Exercise more facets of lseek.
67149         Reported by Bruno Haible.
67150
67151 2007-05-28  Bruno Haible  <bruno@clisp.org>
67152
67153         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67154         to define.
67155
67156 2007-05-27  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67159
67160 2007-05-27  Bruno Haible  <bruno@clisp.org>
67161
67162         * modules/openmp: New file.
67163         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67164         Noah Misch.
67165
67166 2007-05-26  Bruno Haible  <bruno@clisp.org>
67167
67168         * modules/chdir-long (Depends-on): Add fchdir.
67169         * modules/chdir-safer (Depends-on): Likewise.
67170         * modules/fts (Depends-on): Likewise.
67171         * modules/fts-lgpl (Depends-on): Likewise.
67172         * modules/openat (Depends-on): Likewise.
67173         * modules/savewd (Depends-on): Likewise.
67174
67175 2007-05-24  Eric Blake  <ebb9@byu.net>
67176
67177         Fix lseek on mingw.
67178         * modules/lseek: New module.
67179         * m4/lseek.m4: New file.
67180         * lib/lseek.c: New file.
67181         * modules/lseek-tests: New file.
67182         * tests/test-lseek.c: New file.
67183         * tests/test-lseek.sh: New file.
67184         * MODULES.html.sh: Document lseek module.
67185         * modules/fflush (Depends-on): Add lseek, fseeko.
67186         * modules/fseeko (Depends-on): Likewise.
67187         * modules/ftello (Depends-on): Likewise.
67188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67189         broken.
67190         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67191         broken.
67192         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67193         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67194         * lib/ftello.c (rpl_ftello): Likewise.
67195         * tests/test-fseeko.c (main): Test this.
67196         * tests/test-fseeko.sh: Likewise.
67197         * tests/test-ftello.c (main): Likewise.
67198         * tests/test-ftello.sh: Likewise.
67199         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67200         implies replacing fseek.
67201         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67202         HAVE_FTELLO.
67203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67204         * modules/unistd (Makefile.am): Likewise.
67205         * lib/unistd_.h (lseek): Declare a replacement.
67206         * doc/functions/lseek.texi (lseek): Document this fix.
67207         * doc/functions/fseek.texi (fseek): Likewise.
67208         * doc/functions/ftell.texi (ftell): Likewise.
67209
67210 2007-05-24  Bruno Haible  <bruno@clisp.org>
67211
67212         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67213         in the printed representation of a NaN.
67214         * tests/test-vasprintf-posix.c (test_function): Likewise.
67215         * tests/test-snprintf-posix.h (test_function): Likewise.
67216         * tests/test-sprintf-posix.h (test_function): Likewise.
67217         Reported by Eric Blake.
67218
67219 2007-05-23  Eric Blake  <ebb9@byu.net>
67220
67221         Fix fseeko/ftello on cygwin 1.5.24.
67222         * doc/functions/fseeko.texi (fseeko): Document the fix.
67223         * doc/functions/ftello.texi (ftello): Document the fix.
67224         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67225         * doc/functions/stdout.text (stdout): New file.
67226         * doc/functions/stderr.text (stderr): New file.
67227         * doc/gnulib.texi (Function Substitutes): Use new files.
67228         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67229         prior to 1.7.0.
67230         * tests/test-ftello.c (main): Likewise for ftello.
67231         * tests/test-fseeko.sh: New file.
67232         * tests/test-ftello.sh: New file.
67233         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67234         with seekable stdin.
67235         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67237         (gl_REPLACE_FSEEKO): New macro.
67238         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67239         * modules/fseeko (Files): Distribute fseeko.c.
67240         * modules/ftello (Files): Distribute ftello.c.
67241         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67242         mode.
67243         * lib/ftello.c (rpl_ftello): New file.
67244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67245         fseeko, ftello.
67246         (gl_STDIN_LARGE_OFFSET): New macro.
67247         * modules/stdio (Makefile.am): Perform the replacement.
67248         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67249
67250 2007-05-23  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67253         GNULIB_POSIXCHECK is defined.
67254
67255 2007-05-21  Bruno Haible  <bruno@clisp.org>
67256
67257         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67258         Check also the output for NaN arguments. When cross-compiling, guess
67259         no on IRIX.
67260         * lib/vasnprintf.c: Update comments.
67261         * tests/test-vasnprintf-posix.c (strisnan): New function.
67262         (test_function): Use it.
67263         * tests/test-vasprintf-posix.c (strisnan): New function.
67264         (test_function): Use it.
67265         * tests/test-snprintf-posix.h (strisnan): New function.
67266         (test_function): Use it.
67267         * tests/test-sprintf-posix.h (strisnan): New function.
67268         (test_function): Use it.
67269         Reported by Eric Blake.
67270
67271 2007-05-20  Bruno Haible  <bruno@clisp.org>
67272
67273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67274         numbers that fails on BeOS.
67275         * doc/functions/frexpl.texi: Update.
67276
67277 2007-05-20  Jim Meyering  <jim@meyering.net>
67278
67279         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67280         forced upon us by glibc-2.6.
67281
67282 2007-05-20  Bruno Haible  <bruno@clisp.org>
67283
67284         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67285         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67286         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67287         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67288         NEED_PRINTF_INFINITE.
67289         (is_infinitel): New function.
67290         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67292         gl_PREREQ_VASNPRINTF_INFINITE.
67293         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67295         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67296         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67297         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67298         gl_PREREQ_VASNPRINTF_INFINITE.
67299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67306         * doc/functions/fprintf.texi: Update.
67307         * doc/functions/printf.texi: Update.
67308         * doc/functions/snprintf.texi: Update.
67309         * doc/functions/sprintf.texi: Update.
67310         * doc/functions/vfprintf.texi: Update.
67311         * doc/functions/vprintf.texi: Update.
67312         * doc/functions/vsnprintf.texi: Update.
67313         * doc/functions/vsprintf.texi: Update.
67314
67315 2007-05-20  Bruno Haible  <bruno@clisp.org>
67316
67317         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67318         was not found in libc.
67319         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67320
67321 2007-05-20  Bruno Haible  <bruno@clisp.org>
67322
67323         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67324         printed as "-nan" instead of "nan".
67325         * tests/test-vasprintf-posix.c (test_function): Likewise.
67326         * tests/test-snprintf-posix.h (test_function): Likewise.
67327         * tests/test-sprintf-posix.h (test_function): Likewise.
67328         Needed for HP-UX 11.
67329
67330 2007-05-20  Jim Meyering  <jim@meyering.net>
67331
67332         Fix buggy test for the fchownat-deref bug.
67333         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67334         symlink required for the run-test.  Without it, this test would
67335         always declare that fchownat doesn't work, and client code would
67336         unnecessarily use the replacement function with fixed libc.
67337         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67338         Reported by Greg Schafer.
67339
67340 2007-05-19  Bruno Haible  <bruno@clisp.org>
67341
67342         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67343         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67344         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67345         Needed for IRIX 6.5 and Solaris 2.5.1.
67346
67347 2007-05-19  Bruno Haible  <bruno@clisp.org>
67348
67349         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67350         (test_function): Skip tests involving -0.0 on platforms where
67351         -0.0 = 0.0.
67352         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67353         (test_function): Skip tests involving -0.0 on platforms where
67354         -0.0 = 0.0.
67355         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67356         (test_function): Skip tests involving -0.0 on platforms where
67357         -0.0 = 0.0.
67358         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67359         (test_function): Skip tests involving -0.0 on platforms where
67360         -0.0 = 0.0.
67361         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67362         tests.
67363         * tests/test-printf-posix.h (test_function): Likewise.
67364         * tests/test-printf-posix.output: Remove all -0.0 related results.
67365         Needed for IRIX 6.5.
67366
67367 2007-05-19  Bruno Haible  <bruno@clisp.org>
67368
67369         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67370         printed as "nan0x7fffffff" instead of "nan".
67371         * tests/test-vasprintf-posix.c (test_function): Likewise.
67372         * tests/test-snprintf-posix.h (test_function): Likewise.
67373         * tests/test-sprintf-posix.h (test_function): Likewise.
67374         * tests/test-fprintf-posix.h (NaN): Remove macro.
67375         (test_function): Remove all NaN related tests.
67376         * tests/test-printf-posix.h (NaN): Remove macro.
67377         (test_function): Remove all NaN related tests.
67378         * tests/test-printf-posix.output: Remove all NaN related results.
67379         Needed for IRIX 6.5.
67380
67381 2007-05-19  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67385
67386 2007-05-19  Bruno Haible  <bruno@clisp.org>
67387
67388         * lib/float_.h: New file.
67389         * m4/float_h.m4: New file.
67390         * modules/float: New file.
67391         * modules/isnanl (Dependencies): Add float.
67392         * modules/isnanl-nolibm (Dependencies): Likewise.
67393         * modules/mathl (Dependencies): Likewise.
67394         * modules/printf-frexpl (Dependencies): Likewise.
67395         * modules/signbit (Dependencies): Likewise.
67396         * modules/vasnprintf (Dependencies): Likewise.
67397         * doc/headers/float.texi: Update.
67398
67399 2007-05-19  Jim Meyering  <jim@meyering.net>
67400
67401         * lib/utimens.c (gl_futimens): Rename from futimens,
67402         now that glibc-2.6 declares futimens.
67403         * lib/utimens.h: Likewise.
67404
67405 2007-05-19  Bruno Haible  <bruno@clisp.org>
67406
67407         Avoid test failures on mingw.
67408         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67409         * tests/test-printf-posix.sh: Likewise.
67410         * tests/test-vfprintf-posix.sh: Likewise.
67411         * tests/test-vprintf-posix.sh: Likewise.
67412
67413 2007-05-19  Bruno Haible  <bruno@clisp.org>
67414
67415         Fix *printf result for NaN, Inf, -0.0 on mingw.
67416         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67417         * lib/vasnprintf.c: Include math.h and isnan.h.
67418         (is_infinite_or_zero): New function.
67419         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67420         values in the %f, %F, %e, %E, %g, %G directives.
67421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67423         gl_PRINTF_INFINITE and test its result. Invoke
67424         gl_PREREQ_VASNPRINTF_INFINITE.
67425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67432         * doc/functions/fprintf.texi: Update.
67433         * doc/functions/printf.texi: Update.
67434         * doc/functions/snprintf.texi: Update.
67435         * doc/functions/sprintf.texi: Update.
67436         * doc/functions/vfprintf.texi: Update.
67437         * doc/functions/vprintf.texi: Update.
67438         * doc/functions/vsnprintf.texi: Update.
67439         * doc/functions/vsprintf.texi: Update.
67440
67441 2007-05-19  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67444         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67445         Instead of multiplying with 10^k, set extra_zeroes to k.
67446         (scale10_round_long_double): Remove function.
67447
67448 2007-05-18  Bruno Haible  <bruno@clisp.org>
67449
67450         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67451         introduced on 2007-05-06.
67452
67453 2007-05-18  Bruno Haible  <bruno@clisp.org>
67454
67455         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67456         %g directives.
67457         * tests/test-vasprintf-posix.c (test_function): Likewise.
67458         * tests/test-snprintf-posix.h (test_function): Likewise.
67459         * tests/test-sprintf-posix.h (test_function): Likewise.
67460
67461 2007-05-18  Bruno Haible  <bruno@clisp.org>
67462
67463         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67464         (strmatch): New function.
67465         (test_function): Test the %f directive on numbers of various exponents.
67466         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67467         (strmatch): New function.
67468         (test_function): Test the %f directive on numbers of various exponents.
67469         * tests/test-snprintf-posix.h (strmatch): New function.
67470         (test_function): Test the %f directive on numbers of various exponents.
67471         * tests/test-sprintf-posix.h (strmatch): New function.
67472         (test_function): Test the %f directive on numbers of various exponents.
67473         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67474         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67475         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67476         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67477
67478 2007-05-18  Bruno Haible  <bruno@clisp.org>
67479
67480         Add support for 'long double' number output.
67481         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67482         * lib/vasnprintf.c: Include math.h and float+.h.
67483         (mp_limb_t): New type.
67484         (GMP_LIMB_BITS): New macro.
67485         (mp_twolimb_t): New type.
67486         (GMP_TWOLIMB_BITS): New macro.
67487         (mpn_t): New type.
67488         (multiply, divide, convert_to_decimal, decode_long_double,
67489         scale10_round_long_double, scale10_round_decimal_long_double,
67490         floorlog10l): New functions.
67491         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67492         for the %f, %F, %e, %E, %g, %G directives.
67493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67495         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67496         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67504         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67505         * modules/snprintf-posix (Depends-on): Likewise.
67506         * modules/sprintf-posix (Depends-on): Likewise.
67507         * modules/vasnprintf-posix (Depends-on): Likewise.
67508         * modules/vasprintf-posix (Depends-on): Likewise.
67509         * modules/vfprintf-posix (Depends-on): Likewise.
67510         * modules/vsnprintf-posix (Depends-on): Likewise.
67511         * modules/vsprintf-posix (Depends-on): Likewise.
67512         * modules/vasnprintf (Files): Add lib/float+.h.
67513         * doc/functions/fprintf.texi: Update.
67514         * doc/functions/printf.texi: Update.
67515         * doc/functions/snprintf.texi: Update.
67516         * doc/functions/sprintf.texi: Update.
67517         * doc/functions/vfprintf.texi: Update.
67518         * doc/functions/vprintf.texi: Update.
67519         * doc/functions/vsnprintf.texi: Update.
67520         * doc/functions/vsprintf.texi: Update.
67521
67522 2007-05-18  Bruno Haible  <bruno@clisp.org>
67523
67524         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67525
67526 2007-05-18  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67529         for printing 64-bit integers. Needed for mingw.
67530
67531 2007-05-18  Bruno Haible  <bruno@clisp.org>
67532
67533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67534         gl_FUNC_FREXPL_WORKS.
67535         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67536
67537 2007-05-18  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/frexpl-nolibm-tests: New file.
67540
67541         * modules/frexpl-nolibm: New file.
67542         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67543
67544 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67547         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67548         GCC 4.2, which otherwise issues a lot of warnings.
67549         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67550         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67551         Likewise.
67552         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67553         * modules/iconv_open (iconv.h): Likewise.
67554         * modules/locale (locale.h): Likewise.
67555         * modules/netinet_in (netinet/in.h): Likewise.
67556         * modules/sys_select (sys_select.h): Likewise.
67557         * modules/sys_socket (sys/socket.h): Likewise.
67558         * modules/sys_stat (sys/stat.h): Likewise.
67559         * modules/sysexits (sysexits.h): Likewise.
67560         * modules/unistd (unistd.h): Likewise.
67561
67562 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67563
67564         * modules/closein-tests (Makefile.am): Distribute
67565         `test-closein.sh'.
67566
67567 2007-05-17  Bruno Haible  <bruno@clisp.org>
67568
67569         * tests/test-printf-posix.output: Renamed from
67570         tests/test-fprintf-posix.out.
67571         * modules/fprintf-posix-tests: Update.
67572         * modules/printf-posix-tests: Update.
67573         * modules/vfprintf-posix-tests: Update.
67574         * modules/vprintf-posix-tests: Update.
67575         * tests/test-fprintf-posix.sh: Update.
67576         * tests/test-printf-posix.sh: Update.
67577         * tests/test-vfprintf-posix.sh: Update.
67578         * tests/test-vprintf-posix.sh: Update.
67579         Reported by Ralf Wildenhues.
67580
67581 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67584         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67585         GCC 4.2, which otherwise issues a lot of warnings.
67586         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67587         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67588         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67589         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67590         it should no longer be needed.
67591         * lib/string_.h: Likewise.
67592         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67593         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67594         * modules/inttypes (inttypes.h): Likewise.
67595         * modules/math (math.h): Likewise.
67596         * modules/search (search.h): Likewise.
67597         * modules/signal (signal.h): Likewise.
67598         * modules/stdint (stdint.h): Likewise.
67599         * modules/stdio (stdio.h): Likewise.
67600         * modules/stdlib (stdlib.h): Likewise.
67601         * modules/string (string.h): Likewise.
67602         * modules/sys_time (sys/time.h): Likewise.
67603         * modules/time (time.h): Likewise.
67604         * modules/wchar (wchar.h): Likewise.
67605         * modules/wctype (wtype.h): Likewise.
67606
67607 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67608
67609         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67610
67611 2007-05-13  Bruno Haible  <bruno@clisp.org>
67612
67613         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67614         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67615         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67616         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67617         (gl_PREREQ_STRTOK_R): Don't require it here.
67618
67619 2007-05-13  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67622         when used in C++ mode.
67623
67624 2007-05-12  Bruno Haible  <bruno@clisp.org>
67625
67626         * lib/linebuffer.h: Tweak doc.
67627         * lib/linebuffer.c: Likewise.
67628
67629 2007-05-12  James Youngman  <jay@gnu.org>
67630
67631         * lib/linebuffer.c (readlinebuffer_delim): New function,
67632         like readlinebuffer, but use a caller-specified delimiter.
67633         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67634         as the delimiter.
67635         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67636
67637 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67638
67639         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67640         * modules/openat (Files): Remove openat-die.c.
67641         (Depends-on): Add openat-die.
67642         * modules/openat-die: New module.
67643
67644 2007-05-06  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67647         Update with info about Cygwin.
67648         * doc/functions/fprintf.texi: Update.
67649         * doc/functions/printf.texi: Update.
67650         * doc/functions/snprintf.texi: Update.
67651         * doc/functions/sprintf.texi: Update.
67652         * doc/functions/vfprintf.texi: Update.
67653         * doc/functions/vprintf.texi: Update.
67654         * doc/functions/vsnprintf.texi: Update.
67655         * doc/functions/vsprintf.texi: Update.
67656         Reported by Eric Blake.
67657
67658 2007-05-06  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67661         padding ourselves for the floating-point directives.
67662         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67665         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67666         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67674         * tests/test-snprintf-posix.h (test_function): Also check the width
67675         and some flags in the %f directive.
67676         * tests/test-sprintf-posix.h (test_function): Likewise.
67677         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67678         * tests/test-vasprintf-posix.c (test_function): Likewise.
67679         * doc/functions/fprintf.texi: Update.
67680         * doc/functions/printf.texi: Update.
67681         * doc/functions/snprintf.texi: Update.
67682         * doc/functions/sprintf.texi: Update.
67683         * doc/functions/vfprintf.texi: Update.
67684         * doc/functions/vprintf.texi: Update.
67685         * doc/functions/vsnprintf.texi: Update.
67686         * doc/functions/vsprintf.texi: Update.
67687
67688 2007-05-06  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67691         pass the ' flag character to sprintf or snprintf.
67692         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67695         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67696         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67704         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67705         flag.
67706         * tests/test-sprintf-posix.h (test_function): Likewise.
67707         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67708         * tests/test-vasprintf-posix.c (test_function): Likewise.
67709         * doc/functions/fprintf.texi: Update.
67710         * doc/functions/printf.texi: Update.
67711         * doc/functions/snprintf.texi: Update.
67712         * doc/functions/sprintf.texi: Update.
67713         * doc/functions/vfprintf.texi: Update.
67714         * doc/functions/vprintf.texi: Update.
67715         * doc/functions/vsnprintf.texi: Update.
67716         * doc/functions/vsprintf.texi: Update.
67717
67718 2007-05-01  Bruno Haible  <bruno@clisp.org>
67719
67720         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67721
67722 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67725         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67726
67727 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67728
67729         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67730         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67732
67733 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67734
67735         * lib/argp-help.c (struct hol_entry): New member `ord'.
67736         (HOL_ENTRY_PTRCMP): Use ord for comparison
67737         (hol_sort): Initialize ord.
67738
67739 2007-05-01  Bruno Haible  <bruno@clisp.org>
67740
67741         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67742         Reported by Eric Blake.
67743         * doc/gnulib.texi (Function Substitutes): Update.
67744
67745 2007-05-01  Bruno Haible  <bruno@clisp.org>
67746
67747         * doc/functions.texi: Remove file, now redundant through
67748         doc/functions/*.texi.
67749
67750 2007-05-01  Bruno Haible  <bruno@clisp.org>
67751
67752         * modules/argp (Depends-on): Add sleep.
67753
67754 2007-05-01  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/sleep-tests: New file.
67757         * tests/test-sleep.c: New file.
67758
67759         * modules/sleep: New file.
67760         * lib/sleep.c: New file.
67761         * m4/sleep.m4: New file.
67762         * lib/unistd_.h (sleep): New declaration.
67763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67764         HAVE_SLEEP.
67765         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67766         * doc/functions/sleep.texi: Document the sleep module.
67767
67768 2007-05-01  Bruno Haible  <bruno@clisp.org>
67769
67770         * lib/sigprocmask.h: Remove file.
67771         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67772         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67773         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67774         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67775         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67776         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67777         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67778         HAVE_SIGSET_T as a shell variable.
67779         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67780         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67781         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67782         (Depends-on): Add signal. Remove verify.
67783         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67784         (Include): Mention <signal.h> instead of sigprocmask.h.
67785         * NEWS: Mention the change.
67786         * lib/fatal-signal.c: Don't include sigprocmask.h.
67787
67788 2007-05-01  Bruno Haible  <bruno@clisp.org>
67789
67790         * modules/signal: New file.
67791         * lib/signal_.h: New file.
67792         * m4/signal_h.m4: New file.
67793
67794 2007-05-01  Bruno Haible  <bruno@clisp.org>
67795
67796         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67797         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67798         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67799         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67800
67801 2007-05-01  Bruno Haible  <bruno@clisp.org>
67802
67803         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67804         configure time.
67805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67806         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67807         * modules/sys_stat (Makefile.am): Substitute their values into
67808         sys/stat.h.
67809
67810 2007-05-01  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67813         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67814         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67815
67816 2007-05-01  Bruno Haible  <bruno@clisp.org>
67817
67818         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67819         'assert' module here.
67820
67821 2007-05-01  Bruno Haible  <bruno@clisp.org>
67822
67823         * doc/functions/*.texi: New files.
67824         * doc/functions/google-ranking.txt: New file.
67825         * doc/gnulib.texi (Function Substitutes): New chapter.
67826         (ctime, inet_ntoa): Remove sections.
67827         * doc/ctime.texi: Remove file.
67828         * doc/inet_ntoa.texi: Remove file.
67829         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67830         dependencies.
67831         (%.info): New rule, specifying a --reference-limit.
67832
67833 2007-05-01  Bruno Haible  <bruno@clisp.org>
67834
67835         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67836
67837 2007-05-01  Bruno Haible  <bruno@clisp.org>
67838
67839         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67840         the portability of 'mkdir' to mingw systems.
67841
67842 2007-05-01  Bruno Haible  <bruno@clisp.org>
67843
67844         * doc/headers/google-ranking.txt: New file.
67845
67846 2007-04-30  Eric Blake  <ebb9@byu.net>
67847
67848         Prefer fseeko to fseek.
67849         * modules/getpass (Depends-on): Add fseeko.
67850         * lib/getpass.c (getpass): Use fseeko, not fseek.
67851
67852 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67853
67854         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67855         assumes the sorting is stable, while most qsort implementations
67856         are not.  Use argument addresses to ensure they never compare as
67857         equal.
67858
67859         * tests/test-argp-2.sh (usage-indent test): Fix output
67860         (func_compare): Restore diff options
67861         * tests/test-argp.c: Restore #include "progname.h"
67862
67863 2007-04-29  Bruno Haible  <bruno@clisp.org>
67864
67865         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67867         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67868         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67869         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67870         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67871         (TESTS, check_PROGRAMS): Add test-snprintf.
67872         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67873         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67874         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67875         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67876         assertions that fail on HP-UX, OSF/1, or IRIX.
67877         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67878
67879 2007-04-29  Bruno Haible  <bruno@clisp.org>
67880
67881         * MODULES.html.sh (posix_functions): Remove 'contents'.
67882
67883 2007-04-29  Karl Berry  <karl@gnu.org>
67884
67885         * config/srclist.txt (gendocs_template_min): new entry.
67886
67887 2007-04-29  Bruno Haible  <bruno@clisp.org>
67888
67889         Work around fpurge bug on BSD systems.
67890         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67891         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67892         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67893         fpurge to rpl_fpurge if the system already has this function.
67894         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67895         the case where the system already has this function. Correct invariants
67896         on BSD systems.
67897         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67898         BSD systems.
67899
67900 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67901
67902         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67903         proposed by Sven Verdoolaege.
67904
67905         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67906         options.
67907         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67908         (usage and help tests): Update
67909
67910 2007-04-29  Bruno Haible  <bruno@clisp.org>
67911
67912         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67913         Print more information in case of failure. Disable a test on BeOS.
67914
67915 2007-04-29  Bruno Haible  <bruno@clisp.org>
67916
67917         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67918         This helps debugging on systems on which no gdb is available.
67919
67920 2007-04-29  Bruno Haible  <bruno@clisp.org>
67921
67922         * lib/freading.h: Improve comments.
67923         * lib/fwriting.h: Likewise.
67924         * tests/test-freading.c (main): Don't check freading immediately after
67925         repositioning. Needed for glibc.
67926
67927 2007-04-29  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/freading.c (freading): Trivial simplification.
67930
67931 2007-04-28  Bruno Haible  <bruno@clisp.org>
67932
67933         * tests/test-fwriting.c (main): Also test the interaction between
67934         fflush and fwriting.
67935         * modules/fwriting-tests (Depends-on): Add fflush.
67936
67937         * tests/test-freading.c (main): Also test the interaction between
67938         fflush and freading.
67939         * modules/freading-tests (Depends-on): Add fflush.
67940
67941 2007-04-28  Bruno Haible  <bruno@clisp.org>
67942
67943         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67944         fseeko and ftello.
67945         Suggested by Eric Blake.
67946
67947 2007-04-28  Jim Meyering  <jim@meyering.net>
67948
67949         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67950         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67951         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67952
67953 2007-04-27  Eric Blake  <ebb9@byu.net>
67954
67955         * doc/headers/assert.texi (assert.h): Document assert module use.
67956
67957 2007-04-27  Bruno Haible  <bruno@clisp.org>
67958
67959         * doc/headers/*.texi: New files.
67960         * doc/gnulib.texi (Header File Substitutes): New chapter.
67961         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67962         dependencies.
67963         (standards.info ,standards.html, standards.dvi): Update dependencies.
67964         (mostlyclean, clean): New targets.
67965
67966 2007-04-27  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67969         * modules/sysexits (Files, Makefile.am): Update.
67970
67971         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67972         * modules/sys_socket (Files, Makefile.am): Update.
67973
67974         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67975         * modules/sys_stat (Files, Makefile.am): Update.
67976
67977 2007-04-27  Eric Blake  <ebb9@byu.net>
67978
67979         * lib/freading.h: Improve comments.
67980         * lib/fwriting.h: Likewise.
67981         * lib/fflush.c: Likewise.
67982
67983         Fix closein for mingw.
67984         * modules/closein-tests: Add tests for closein.
67985         * tests/test-closein.c: New file.
67986         * tests/test-closein.sh: Likewise.
67987         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67988         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67989
67990 2007-04-27  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67993         version is < 6.
67994         * lib/math_.h [__DECC]: Likewise.
67995         * lib/stdio_.h [__DECC]: Likewise.
67996         * lib/stdlib_.h [__DECC]: Likewise.
67997         * lib/string_.h [__DECC]: Likewise.
67998         * lib/time_.h [__DECC]: Likewise.
67999         * lib/wchar_.h [__DECC]: Likewise.
68000         * lib/wctype_.h [__DECC]: Likewise.
68001
68002 2007-04-27  Bruno Haible  <bruno@clisp.org>
68003
68004         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68005
68006 2007-04-27  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/fflush.c: Add comments.
68009         * modules/fpurge-tests (Depends-on): Add fflush.
68010         * modules/freadable-tests (Depends-on): Likewise.
68011         * modules/fwritable-tests (Depends-on): Likewise.
68012
68013 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68014
68015         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68016         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68017         Report by Bruno Haible <bruno@clisp.org>.
68018
68019 2007-04-26  Eric Blake  <ebb9@byu.net>
68020
68021         Fix fflush on mingw.
68022         * modules/fflush (Depends-on): Add freading.
68023         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68024         but unread data.
68025
68026 2007-04-26  Eric Blake  <ebb9@byu.net>
68027         and Bruno Haible  <bruno@clisp.org>
68028
68029         Implement freading and fwriting.
68030         * lib/freading.c: New file.
68031         * lib/freading.h: Likewise.
68032         * m4/freading.m4: Likewise.
68033         * modules/freading: Likewise.
68034         * modules/freading-tests: Likewise.
68035         * tests/test-freading.c: Likewise.
68036         * lib/fwriting.c: New file.
68037         * lib/fwriting.h: Likewise.
68038         * m4/fwriting.m4: Likewise.
68039         * modules/fwriting: Likewise.
68040         * modules/fwriting-tests: Likewise.
68041         * tests/test-fwriting.c: Likewise.
68042         * MODULES.html.sh (File stream based Input/Output): Mention them.
68043
68044 2007-04-26  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68047         'long' when we assume it.
68048         Suggested by Eric Blake.
68049
68050 2007-04-26  Bruno Haible  <bruno@clisp.org>
68051
68052         Ensure fseeko, ftello are declared on glibc systems.
68053         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68054         * modules/fseeko (configure.ac-early): Likewise.
68055         * modules/ftello (configure.ac-early): Likewise.
68056         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68057         AC_FUNC_FSEEKO for this.
68058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68059         (gl_CHECK_FSEEKO): Remove macro.
68060
68061 2007-04-26  Bruno Haible  <bruno@clisp.org>
68062
68063         * tests/test-fflush.c (main): Also check the ftell result after
68064         fflush and fseek/fseeko.
68065         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68066         file descriptor position cache in the stream.
68067         * lib/fseeko.c (rpl_fseeko): Likewise.
68068
68069 2007-04-26  Bruno Haible  <bruno@clisp.org>
68070
68071         * modules/fflush-tests (Depends-on): Add fseeko.
68072
68073 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68074             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68075
68076         * lib/argz_.h: ensure error_t definition is obtained in same
68077         mechanism system argz.h would have.
68078         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68079         argz facilities are known bad.  Err on the side of caution if
68080         cross-compiling.
68081
68082 2007-04-25  Eric Blake  <ebb9@byu.net>
68083
68084         * lib/fpurge.c (includes): Use stdlib.h for free.
68085         * tests/test-fflush.c (main): Also test fflush-fseeko.
68086
68087 2007-04-25  Bruno Haible  <bruno@clisp.org>
68088
68089         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68090         * lib/fseeko.c: New file.
68091         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68092         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68093         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68094         gl_FUNC_FSEEKO.
68095         (gl_FUNC_FSEEKO): Invoke it.
68096         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68097         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68098         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68099
68100 2007-04-25  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/fflush (Depends-on): Add ftello.
68103
68104 2007-04-25  Bruno Haible  <bruno@clisp.org>
68105
68106         * modules/ftello-tests: New file.
68107         * tests/test-ftello.c: New file.
68108
68109         * modules/ftello: New file.
68110         * m4/ftello.m4: New file.
68111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68112         HAVE_FTELLO.
68113         * lib/stdio_.h (ftello): New declaration.
68114         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68115         HAVE_FTELLO.
68116
68117 2007-04-25  Bruno Haible  <bruno@clisp.org>
68118
68119         * modules/fseeko-tests: New file.
68120         * tests/test-fseeko.c: New file.
68121
68122         * modules/fseeko: New file.
68123         * m4/fseeko.m4: New file.
68124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68125         HAVE_FSEEKO.
68126         * lib/stdio_.h (fseeko): New declaration.
68127         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68128         HAVE_FSEEKO.
68129
68130 2007-04-25  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68133
68134 2007-04-25  Bruno Haible  <bruno@clisp.org>
68135
68136         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68137         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68138         * tests/test-unistd.c: Likewise.
68139         * tests/test-fcntl.c: Likewise.
68140
68141 2007-04-23  Eric Blake  <ebb9@byu.net>
68142
68143         * lib/fflush.c: Fix missing include.
68144         Reported by Bruno Haible.
68145
68146 2007-04-23  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68149         Reported by Eric Blake.
68150
68151 2007-04-23  Bruno Haible  <bruno@clisp.org>
68152
68153         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68154
68155 2007-04-23  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68158
68159 2007-04-23  Bruno Haible  <bruno@clisp.org>
68160
68161         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68162         Needed on HP-UX 11.
68163
68164 2007-04-16  Eric Blake  <ebb9@byu.net>
68165
68166         Make fflush rely on fpurge.
68167         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68168         open coding all variants.
68169         * modules/fflush (Depends-on): Add fpurge and unistd.
68170         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68171         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68172
68173         Fix --with-tests compilation on cygwin.
68174         * modules/argmatch-tests (Makefile.am): List gnulib library first
68175         in LDADD.
68176         * modules/argp-tests (Makefile.am): Likewise.
68177         * modules/array-list-tests (Makefile.am): Likewise.
68178         * modules/array-oset-tests (Makefile.am): Likewise.
68179         * modules/avltree-list-tests (Makefile.am): Likewise.
68180         * modules/avltree-oset-tests (Makefile.am): Likewise.
68181         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68182         * modules/carray-list-tests (Makefile.am): Likewise.
68183         * modules/dirname-tests (Makefile.am): Likewise.
68184         * modules/frexp-tests (Makefile.am): Likewise.
68185         * modules/isnanl-tests (Makefile.am): Likewise.
68186         * modules/linked-list-tests (Makefile.am): Likewise.
68187         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68188         * modules/lock-tests (Makefile.am): Likewise.
68189         * modules/rbtree-list-tests (Makefile.am): Likewise.
68190         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68191         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68192         * modules/tls-tests (Makefile.am): Likewise.
68193         * modules/tsearch-tests (Makefile.am): Likewise.
68194         * modules/xvasprintf-tests (Makefile.am): Likewise.
68195
68196         Fix fpurge for cygwin.
68197         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68198         value.
68199         * modules/fpurge-tests (Depends-on): Clean up trash.
68200
68201 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68202
68203         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68204
68205         * m4/autobuild.m4: Re-indent.
68206
68207 2007-04-13  Bruno Haible  <bruno@clisp.org>
68208
68209         * modules/fpurge-tests: New file.
68210         * tests/test-fpurge.c: New file.
68211
68212         * modules/fpurge: New file.
68213         * lib/fpurge.h: New file.
68214         * lib/fpurge.c: New file.
68215         * m4/fpurge.m4: New file.
68216
68217 2007-04-13  Bruno Haible  <bruno@clisp.org>
68218
68219         * modules/fbufmode-tests: New file.
68220         * tests/test-fbufmode.c: New file.
68221
68222         * modules/fbufmode: New file.
68223         * lib/fbufmode.h: New file.
68224         * lib/fbufmode.c: New file.
68225         * m4/fbufmode.m4: New file.
68226
68227 2007-04-13  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/fwritable-tests: New file.
68230         * tests/test-fwritable.c: New file.
68231
68232         * modules/fwritable: New file.
68233         * lib/fwritable.h: New file.
68234         * lib/fwritable.c: New file.
68235         * m4/fwritable.m4: New file.
68236
68237 2007-04-13  Bruno Haible  <bruno@clisp.org>
68238
68239         * modules/freadable-tests: New file.
68240         * tests/test-freadable.c: New file.
68241
68242         * modules/freadable: New file.
68243         * lib/freadable.h: New file.
68244         * lib/freadable.c: New file.
68245         * m4/freadable.m4: New file.
68246
68247 2007-04-13  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68250         MOSTLYCLEANFILES.
68251
68252 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68255         gzip bootstrap.conf to avoid dragging in i18n machinery.
68256         (gnulib_tool_option): Use it.
68257
68258 2007-04-13  Bruno Haible  <bruno@clisp.org>
68259
68260         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68261         %F directives.
68262         * tests/test-vasprintf-posix.c (test_function): Likewise.
68263         * tests/test-snprintf-posix.h (test_function): Likewise.
68264         * tests/test-sprintf-posix.h (test_function): Likewise.
68265         * tests/test-fprintf-posix.h (test_function): Likewise.
68266         * tests/test-printf-posix.h (test_function): Likewise.
68267         * tests/test-fprintf-posix.out: Likewise.
68268
68269 2007-04-13  Bruno Haible  <bruno@clisp.org>
68270
68271         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68272         * modules/tls-tests (configure.ac): Likewise.
68273         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68274
68275 2007-04-13  Bruno Haible  <bruno@clisp.org>
68276
68277         * lib/tls.c (glthread_tls_get): Fix return type.
68278         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68279
68280 2007-04-12  Eric Blake  <ebb9@byu.net>
68281
68282         * modules/gettime (Depends-on): Remove gettime.
68283         Reported by Dmitry V. Levin.
68284
68285 2007-04-12  Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/fflush (Include): Mention <stdio.h>.
68288         * modules/strtoimax (Include): Mention <inttypes.h>.
68289         * modules/strtoumax (Include): Likewise.
68290
68291 2007-04-12  Eric Blake  <ebb9@byu.net>
68292
68293         * .cvsignore: New file.
68294         * .gitignore: Likewise.
68295
68296 2007-04-12  Bruno Haible  <bruno@clisp.org>
68297
68298         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68299         not before, since $(LDADD) often contains libgnu.a.
68300         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68301         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68302         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68303         Needed on Cygwin.
68304
68305 2007-04-12  Eric Blake  <ebb9@byu.net>
68306
68307         Work around glibc's failure to flush stdin on fclose.
68308         * lib/closein.c (close_stdin): Flush stdin before closing.
68309
68310         Work around glibc's failure to reset seekable stdin on exit.
68311         * modules/closein: New module.
68312         * lib/closein.c: New file.
68313         * lib/closein.h: Likewise.
68314         * m4/closein.m4: Likewise.
68315         * MODULES.html.sh (File stream based Input/Output): Document it.
68316
68317 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68318
68319         * gnulib-tool: Rename generated 'autobuild' script to
68320         'do-autobuild' in --create-megatestdir output.
68321
68322         * doc/gnulib.texi (Build robot for gnulib): Fix.
68323
68324 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68325
68326         * modules/sysexits (Depends-on): Add absolute-header.
68327
68328 2007-04-12  Eric Blake  <ebb9@byu.net>
68329
68330         No need to preserve errno on success.
68331         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68332         Reported by Bruno Haible.
68333
68334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68335
68336         * MODULES.html.sh (Support for maintaining and releasing
68337         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68338
68339 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68340
68341         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68342
68343 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68344
68345         * modules/autobuild: New module.
68346
68347         * m4/autobuild.m4: New file.
68348
68349 2007-04-11  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68352         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68379         Reported by Eric Blake.
68380
68381 2007-04-11  Bruno Haible  <bruno@clisp.org>
68382
68383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68384
68385 2007-04-10  Bruno Haible  <bruno@clisp.org>
68386
68387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68388         for NaN and Infinity. Needed on FreeBSD 6.1.
68389         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68390         regarding results for "%010a" of Infinity and NaN.
68391         * tests/test-vasprintf-posix.c (test_function): Likewise.
68392         * tests/test-snprintf-posix.h (test_function): Likewise.
68393         * tests/test-sprintf-posix.h (test_function): Likewise.
68394         * tests/test-fprintf-posix.h (test_function): Likewise.
68395         * tests/test-printf-posix.h (test_function): Likewise.
68396         * tests/test-fprintf-posix.out: Likewise.
68397
68398 2007-04-10  Bruno Haible  <bruno@clisp.org>
68399
68400         * modules/locale-tests: New file.
68401         * tests/test-locale.c: New file.
68402
68403         * modules/locale: New file.
68404         * lib/locale_.h: New file.
68405         * m4/locale_h.m4: New file.
68406
68407 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68408             Bruno Haible  <bruno@clisp.org>
68409
68410         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68411         be determined, test for availability of the copysignf, copysign,
68412         copysignl functions.
68413         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68414         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68415         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68416
68417 2007-04-09  Eric Blake  <ebb9@byu.net>
68418
68419         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68420         * modules/stdio (Makefile.am): Support fflush.
68421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68422         * modules/fflush: New file.
68423         * lib/fflush.c: Likewise.
68424         * m4/fflush.m4: Likewise.
68425         * modules/fflush-tests: New test.
68426         * tests/test-fflush.c: Likewise.
68427         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68428
68429 2007-04-06  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68432         (VASNPRINTF): Use signbit for faster determination whether to print a
68433         minus sign.
68434         * modules/vasnprintf (Files): Remove lib/float+.h.
68435         * modules/fprintf-posix (Depends-on): Add signbit.
68436         * modules/snprintf-posix (Depends-on): Likewise.
68437         * modules/sprintf-posix (Depends-on): Likewise.
68438         * modules/vasnprintf-posix (Depends-on): Likewise.
68439         * modules/vasprintf-posix (Depends-on): Likewise.
68440         * modules/vfprintf-posix (Depends-on): Likewise.
68441         * modules/vsnprintf-posix (Depends-on): Likewise.
68442         * modules/vsprintf-posix (Depends-on): Likewise.
68443
68444 2007-04-06  Bruno Haible  <bruno@clisp.org>
68445
68446         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68447         * tests/test-frexpl.c (main): Likewise.
68448         * tests/test-ldexpl.c (main): Likewise.
68449         * modules/frexp-tests (Depends-on): Add signbit.
68450         * modules/frexpl-tests (Depdends-on): Likewise.
68451         * modules/ldexpl-tests (Depdends-on): Likewise.
68452
68453 2007-04-06  Bruno Haible  <bruno@clisp.org>
68454
68455         * modules/signbit-tests: New file.
68456         * tests/test-signbit.c: New file.
68457
68458         * modules/signbit: New file.
68459         * lib/signbitf.c: New file.
68460         * lib/signbitd.c: New file.
68461         * lib/signbitl.c: New file.
68462         * m4/signbit.m4: New file.
68463         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68464         (signbit): New macro.
68465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68466         REPLACE_SIGNBIT.
68467         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68468         REPLACE_FREXPL into math.h.
68469
68470 2007-04-06  Bruno Haible  <bruno@clisp.org>
68471
68472         * modules/isnanf-nolibm-tests: New file.
68473         * tests/test-isnanf.c: New file.
68474
68475         * modules/isnanf-nolibm: New file.
68476         * lib/isnanf.h: New file.
68477         * lib/isnanf.c: New file.
68478         * lib/isnan.c: Consider the USE_FLOAT macro.
68479         * m4/isnanf.m4: New file.
68480
68481 2007-04-06  Bruno Haible  <bruno@clisp.org>
68482
68483         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68484         (Link): New section.
68485
68486         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68487
68488 2007-04-06  Bruno Haible  <bruno@clisp.org>
68489
68490         Assume the 'long double' type.
68491         * m4/longdouble.m4: Remove file.
68492         * config/srclist.txt: Don't mention longdouble.m4.
68493         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68494         * lib/float+.h: Likewise.
68495         * lib/frexp.c: Likewise.
68496         * lib/printf-args.h: Likewise.
68497         * lib/printf-args.c: Likewise.
68498         * lib/printf-frexp.c: Likewise.
68499         * lib/printf-parse.c: Likewise.
68500         * lib/vasnprintf.c: Likewise.
68501         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68502         * m4/intl.m4: Likewise.
68503         * m4/isnanl.m4: Likewise.
68504         * m4/printf.m4: Likewise.
68505         * m4/printf-frexpl.m4: Likewise.
68506         * m4/vasnprintf.m4: Likewise.
68507         * modules/allocsa (Files): Remove m4/longdouble.m4.
68508         * modules/gettext (Files): Likewise.
68509         * modules/relocatable-prog-wrapper (Files): Likewise.
68510         * modules/vasnprintf (Files): Likewise.
68511         * modules/isnanl (Files): Likewise.
68512         (Include): Simplify.
68513         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68514         (Include): Simplify.
68515         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68516         (Include): Simplify.
68517         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68518         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68519         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68520         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68521         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68522         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68523         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68524         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68525         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68526         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68527         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68528         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68529         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68530         * tests/test-isnanl.c: Likewise.
68531         * tests/test-snprintf-posix.h: Likewise.
68532         * tests/test-sprintf-posix.h: Likewise.
68533         * tests/test-vasnprintf-posix.c: Likewise.
68534         * tests/test-vasnprintf-posix2.c: Likewise.
68535         * tests/test-vasprintf-posix.c: Likewise.
68536
68537 2007-04-06  Bruno Haible  <bruno@clisp.org>
68538
68539         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68540         * lib/math_.h [__DECC]: Include the overridden include file through
68541         #include_next, outside the double-inclusion guard.
68542         * lib/stdio_.h [__DECC]: Likewise.
68543         * lib/stdlib_.h [__DECC]: Likewise.
68544         * lib/string_.h [__DECC]: Likewise.
68545         * lib/time_.h [__DECC]: Likewise.
68546         * lib/wchar_.h [__DECC]: Likewise.
68547         * lib/wctype_.h [__DECC]: Likewise.
68548         * lib/inttypes_.h [__DECC]: Likewise.
68549         Reported by Albert Chin <china@thewrittenword.com> in
68550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68551
68552 2007-04-04  Eric Blake  <ebb9@byu.net>
68553
68554         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68555         1.5.x.
68556
68557 2007-04-04  Bruno Haible  <bruno@clisp.org>
68558
68559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68560         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68561
68562 2007-04-04  Bruno Haible  <bruno@clisp.org>
68563
68564         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68565         results for "%010a" of Infinity and NaN.
68566         * tests/test-vasprintf-posix.c (test_function): Likewise.
68567         * tests/test-snprintf-posix.h (test_function): Likewise.
68568         * tests/test-sprintf-posix.h (test_function): Likewise.
68569         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68570         * tests/test-printf-posix.h (test_function): Likewise.
68571         * tests/test-fprintf-posix.out: Update.
68572         Needed for FreeBSD 6.1.
68573
68574 2007-04-04  Bruno Haible  <bruno@clisp.org>
68575
68576         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68577         directly used by the gnulib modules nor by gnulib-tool.
68578
68579 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68580
68581         * DEPENDENCIES: Give overall description of version dependency
68582         desirability.  Use more-typical names for apps.
68583         Add shell, coreutils, diffutils, grep, tar, gzip.
68584
68585 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68586
68587         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68588
68589 2007-04-04  Karl Berry  <karl@gnu.org>
68590
68591         * MODULES.html.sh (func_module): missing '.
68592
68593 2007-04-03  Bruno Haible  <bruno@clisp.org>
68594
68595         * modules/argmatch-tests (Makefile.am): New variable
68596         test_argmatch_LDADD.
68597         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68598         * modules/array-list-tests (Makefile.am): New variable
68599         test_array_list_LDADD.
68600         * modules/array-oset-tests (Makefile.am): New variable
68601         test_array_oset_LDADD.
68602         * modules/avltree-list-tests (Makefile.am): New variable
68603         test_avltree_list_LDADD.
68604         * modules/avltree-oset-tests (Makefile.am): New variable
68605         test_avltree_oset_LDADD.
68606         * modules/avltreehash-list-tests (Makefile.am): New variable
68607         test_avltreehash_list_LDADD.
68608         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68609         test_canonicalize_lgpl_LDADD.
68610         * modules/carray-list-tests (Makefile.am): New variable
68611         test_carray_list_LDADD.
68612         * modules/dirname-tests (Makefile.am): New variable
68613         test_dirname_LDADD.
68614         * modules/linked-list-tests (Makefile.am): New variable
68615         test_linked_list_LDADD.
68616         * modules/linkedhash-list-tests (Makefile.am): New variable
68617         test_linkedhash_list_LDADD.
68618         * modules/rbtree-list-tests (Makefile.am): New variable
68619         test_rbtree_list_LDADD.
68620         * modules/rbtree-oset-tests (Makefile.am): New variable
68621         test_rbtree_oset_LDADD.
68622         * modules/rbtreehash-list-tests (Makefile.am): New variable
68623         test_rbtreehash_list_LDADD.
68624         * modules/xvasprintf-tests (Makefile.am): New variable
68625         test_xvasprintf_LDADD.
68626         Reported by Eric Blake.
68627
68628 2007-04-03  Eric Blake  <ebb9@byu.net>
68629
68630         * DEPENDENCIES: Weaken m4 requirements.
68631
68632 2007-04-03  Bruno Haible  <bruno@clisp.org>
68633
68634         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68635         * modules/isnanl-tests (configure.ac): Likewise.
68636
68637 2007-04-03  Ben Pfaff  <blp@gnu.org>
68638
68639         * modules/iconv_open: Add $(srcdir)/ to source directory
68640         references in Makefile fragments that call gperf, to fix VPATH
68641         builds.
68642
68643 2007-04-03  Bruno Haible  <bruno@clisp.org>
68644
68645         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68646         * lib/ldexpl.c: Undo last change.
68647
68648 2007-04-03  Bruno Haible  <bruno@clisp.org>
68649
68650         * modules/printf-frexpl (Depends-on): Undo last change.
68651         (Files): Add m4/ldexpl.m4.
68652
68653 2007-04-03  Bruno Haible  <bruno@clisp.org>
68654
68655         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68656         * modules/isnanl (Link): New section.
68657
68658         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68659         * modules/frexp (Link): New section.
68660
68661         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68662         * modules/frexpl (Link): New section.
68663
68664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68665         * modules/ldexpl (Link): New section.
68666
68667 2007-04-03  Bruno Haible  <bruno@clisp.org>
68668
68669         * modules/TEMPLATE-EXTENDED: New file.
68670         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68671
68672 2007-04-03  Bruno Haible  <bruno@clisp.org>
68673
68674         * DEPENDENCIES: New file.
68675         Suggested by Simon Josefsson.
68676
68677 2007-04-03  Bruno Haible  <bruno@clisp.org>
68678
68679         * doc/gnulib.texi: Escape @.
68680
68681 2007-04-03  James Youngman  <jay@gnu.org>
68682         and Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68685         birthtime on all systems that have birthtime, not just those which
68686         use st_birthtimensec rather than st_birthtim.  Putting zero in
68687         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68688         that the birth time is not available for files on an NFS mount.
68689
68690 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68691
68692         * modules/memxor: Move back from crypto/, suggested by Bruno.
68693         * modules/crypto/hmac-sha1: Fix memxor dependency.
68694
68695         * modules/crypto/gc: Moved from ../.
68696
68697 2007-04-02  Eric Blake  <ebb9@byu.net>
68698
68699         * lib/ldexpl.c (includes): Avoid libm.
68700
68701         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68702
68703 2007-04-02  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68706         on IRIX.
68707
68708 2007-04-02  Bruno Haible  <bruno@clisp.org>
68709
68710         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68711         x86 or x86_64 platforms running MacOS X.
68712         Reported by Ryan Schmidt <@ryandesign.com>.
68713
68714 2007-04-02  Bruno Haible  <bruno@clisp.org>
68715
68716         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68717         i386.
68718
68719 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68720
68721         * modules/crypto/arcfour: Moved from ../.
68722         * modules/crypto/arcfour-tests: Moved from ../.
68723         * modules/crypto/arctwo: Moved from ../.
68724         * modules/crypto/arctwo-tests: Moved from ../.
68725         * modules/crypto/des: Moved from ../.
68726         * modules/crypto/des-tests: Moved from ../.
68727         * modules/crypto/gc-arcfour: Moved from ../.
68728         * modules/crypto/gc-arcfour-tests: Moved from ../.
68729         * modules/crypto/gc-arctwo: Moved from ../.
68730         * modules/crypto/gc-arctwo-tests: Moved from ../.
68731         * modules/crypto/gc-des: Moved from ../.
68732         * modules/crypto/gc-des-tests: Moved from ../.
68733         * modules/crypto/gc-hmac-md5: Moved from ../.
68734         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68735         * modules/crypto/gc-hmac-sha1: Moved from ../.
68736         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68737         * modules/crypto/gc-md2: Moved from ../.
68738         * modules/crypto/gc-md2-tests: Moved from ../.
68739         * modules/crypto/gc-md4: Moved from ../.
68740         * modules/crypto/gc-md4-tests: Moved from ../.
68741         * modules/crypto/gc-md5: Moved from ../.
68742         * modules/crypto/gc-md5-tests: Moved from ../.
68743         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68744         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68745         * modules/crypto/gc-random: Moved from ../.
68746         * modules/crypto/gc-rijndael: Moved from ../.
68747         * modules/crypto/gc-rijndael-tests: Moved from ../.
68748         * modules/crypto/gc-sha1: Moved from ../.
68749         * modules/crypto/gc-sha1-tests: Moved from ../.
68750         * modules/crypto/gc-tests: Moved from ../.
68751         * modules/crypto/hmac-md5: Moved from ../.
68752         * modules/crypto/hmac-md5-tests: Moved from ../.
68753         * modules/crypto/hmac-sha1: Moved from ../.
68754         * modules/crypto/hmac-sha1-tests: Moved from ../.
68755         * modules/crypto/md2: Moved from ../.
68756         * modules/crypto/md2-tests: Moved from ../.
68757         * modules/crypto/md4: Moved from ../.
68758         * modules/crypto/md4-tests: Moved from ../.
68759         * modules/crypto/md5: Moved from ../.
68760         * modules/crypto/md5-tests: Moved from ../.
68761         * modules/crypto/memxor: Moved from ../.
68762         * modules/crypto/rijndael: Moved from ../.
68763         * modules/crypto/rijndael-tests: Moved from ../.
68764         * modules/crypto/sha1: Moved from ../.
68765
68766 2007-03-30  James Youngman  <jay@gnu.org>
68767
68768         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68769         rename() to change the ctime of a file (because ctime is unaffected
68770         by rename on jfs2 on AIX 5.1).
68771         (main): Start by doing cleanup, in case a previous run failed leaving
68772         test files behind.
68773
68774 2007-03-31  Bruno Haible  <bruno@clisp.org>
68775
68776         Support old proprietary implementations of iconv.
68777         * modules/iconv_open: New file.
68778         * lib/iconv_.h: New file.
68779         * m4/iconv_h.m4: New file.
68780         * lib/iconv_open.c: New file.
68781         * lib/iconv_open-aix.gperf: New file.
68782         * lib/iconv_open-hpux.gperf: New file.
68783         * lib/iconv_open-irix.gperf: New file.
68784         * lib/iconv_open-osf.gperf: New file.
68785         * m4/iconv_open.m4: New file.
68786         * modules/linebreak (Depends-on): Add iconv_open.
68787         * modules/striconv (Depends-on): Likewise.
68788         * modules/striconveh (Depends-on): Likewise.
68789         * modules/unicodeio (Depends-on): Likewise.
68790         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68791         (iconv_t)(-1).
68792         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68793         conversion if cd is (iconv_t)(-1).
68794         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68795         is not possible.
68796
68797 2007-03-31  Bruno Haible  <bruno@clisp.org>
68798
68799         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68800         work on Solaris either. Protect also second use of "autodetect_jp".
68801
68802 2007-03-31  Bruno Haible  <bruno@clisp.org>
68803
68804         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68805         the function is not present.
68806
68807 2007-03-31  Bruno Haible  <bruno@clisp.org>
68808
68809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68810         the function is not present.
68811
68812 2007-03-31  Bruno Haible  <bruno@clisp.org>
68813
68814         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68815         a bug in HP-UX iconv_open().
68816
68817 2007-03-31  Bruno Haible  <bruno@clisp.org>
68818
68819         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68820         (Mathematics <math.h>): New section, add fpieee.
68821         (Input/output <stdio.h>): Add fseterr.
68822         (Mathematics <math.h>): New section, add printf-frexp.
68823         (Container data structures): Add sublist.
68824         (Core language properties): Add fpucw, inline.
68825         (Functions for greatest-width integer types <inttypes.h>): Add
68826         imaxabs, imaxdiv, inttypes.
68827         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68828         isnanl-nolibm, ldexp.
68829         (Mathematics <math.h>): New section, add printf-frexpl.
68830         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68831         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68832         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68833         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68834         (Unicode string functions): Add unistr/u*-mbtoucr.
68835         (Java): Add javacomp-script, javaexec-script.
68836         (C#): Add csharpcomp-script, csharpexec-script.
68837         (Support for building libraries and executables): Add havelib,
68838         relocatable-*.
68839         (Support for maintaining and releasing projects): Renamed from
68840         'Support for maintaining and release projects'. Add announce-gen.
68841
68842 2007-03-31  Bruno Haible  <bruno@clisp.org>
68843
68844         * README: Talk primarily about git.
68845         (git and CVS): Renamed from CVS.
68846         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68847         gnulib is available through git.
68848         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68849
68850 2007-03-30  Bruno Haible  <bruno@clisp.org>
68851
68852         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68853         * lib/poll_.h: Likewise.
68854         * lib/stat_.h: Likewise.
68855         * lib/sys_time_.h: Likewise.
68856         * lib/sysexit_.h: Likewise.
68857         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68858         * lib/stdbool_.h: Likewise.
68859         * lib/byteswap_.h: Add double-inclusion guard.
68860
68861 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68862
68863         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68864
68865 2007-03-30  Karl Berry  <karl@gnu.org>
68866
68867         * config/srclist-update: double space after USA in the license
68868         substitution, since that's how it's usually (?) written.
68869
68870 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68873         reported by Bruno Haible.
68874
68875 2007-03-29  Bruno Haible  <bruno@clisp.org>
68876
68877         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68878         a bug in AIX iconv().
68879
68880 2007-03-29  Bruno Haible  <bruno@clisp.org>
68881
68882         * modules/ldexpl-tests: New file.
68883         * tests/test-ldexpl.c: New file.
68884
68885 2007-03-29  Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/ldexpl.c: Include fpucw.h.
68888         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68889         multiplication.
68890         * modules/ldexpl (Depends-on): Add fpucw.
68891
68892 2007-03-29  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/ldexpl: New file.
68895         * m4/ldexpl.m4: New file.
68896         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68897         set.
68898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68899         REPLACE_LDEXPL.
68900         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68901         REPLACE_LDEXPL.
68902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68903         gl_FUNC_LDEXPL_WORKS.
68904         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68905         * modules/mathl (Files): Remove lib/ldexpl.c.
68906         (Depends-on): Add ldexpl.
68907
68908 2007-03-29  Bruno Haible  <bruno@clisp.org>
68909
68910         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68911
68912 2007-03-29  Bruno Haible  <bruno@clisp.org>
68913
68914         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68915         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68916         and possibly also HP-UX.
68917         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68918         work on AIX, IRIX, HP-UX, OSF/1.
68919         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68920         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68921         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68922         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68923         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68924         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68925
68926 2007-03-29  Bruno Haible  <bruno@clisp.org>
68927
68928         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68929
68930 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68933         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68934
68935 2007-03-29  Eric Blake  <ebb9@byu.net>
68936
68937         * lib/acl-internal.h: Remove redundant include.
68938         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68939         Cygwin when a file is locked.
68940
68941 2007-03-29  Bruno Haible  <bruno@clisp.org>
68942
68943         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68944         file.
68945         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68946
68947 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68950         try to remove a parent directory if the child couldn't be removed
68951         (except for the first rmdir, which could fail because the child
68952         doesn't exist).  Problem reported by Jeff Blaine in
68953         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68954
68955 2007-03-28  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/striconveh.c (utf8conv_carefully): New function.
68958         (mem_cd_iconveh_internal): Invoke it.
68959
68960 2007-03-28  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68963         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68964         input.
68965         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68966         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68967         unistr/u8-uctomb.
68968
68969 2007-03-28  Bruno Haible  <bruno@clisp.org>
68970
68971         * modules/unistr/u8-mbtoucr: New file.
68972         * lib/unistr/u8-mbtoucr.c: New file.
68973         * modules/unistr/u16-mbtoucr: New file.
68974         * lib/unistr/u16-mbtoucr.c: New file.
68975         * modules/unistr/u16-mbtoucr: New file.
68976         * lib/unistr/u16-mbtoucr.c: New file.
68977         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68978
68979 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68980             Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68983         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68984         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68985
68986         * m4/stdio_h.m4: Add stubs for vasprintf too.
68987
68988         * modules/stdio: Support vasprintf in sed command.
68989
68990         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68991         vasprintf.h.  Add stdio module indicator.
68992
68993         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68994         vasprintf.h.
68995
68996         * lib/vasprintf.h: File removed.
68997
68998         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68999         * lib/vasprintf.c: Ditto.
69000         * lib/xvasprintf.c: Ditto.
69001         * tests/test-vasprintf-posix.c: Ditto.
69002         * tests/test-vasprintf.c: Ditto.
69003
69004 2007-03-27  Bruno Haible  <bruno@clisp.org>
69005
69006         Make vasnprintf multithread-safe.
69007         * lib/vasnprintf.c (decimal_point_char): New function.
69008         (VASNPRINTF): Use it.
69009         Suggested by Simon Josefsson.
69010
69011 2007-03-27  Eric Blake  <ebb9@byu.net>
69012
69013         Support sub-second birthtime on cygwin.
69014         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69015         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69016         (get_stat_birthtime): Also work with st_birthtim.
69017
69018 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69021         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69022         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69023         (get_stat_birthtime_ns): Simplify compile-time tests.
69024         (get_stat_birthtime): Change the API to look like
69025         get_stat_mtime etc., except return a negative tv_nsec on error.
69026         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69027         Don't check for "spare" fields.
69028         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69029         or for struct stat.st_birthtime, as these tests aren't used.
69030         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69031
69032 2007-03-27  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/stat-time.h: Include <sys/stat.h>.
69035
69036 2007-03-27  James Youngman  <jay@gnu.org>
69037
69038         * lib/stat-time.h (get_stat_birthtime): New function for
69039           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69040         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69041           and its variants.
69042         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69043         * modules/stat-time-test: New file.
69044         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69045
69046 2007-03-26  Bruno Haible  <bruno@clisp.org>
69047
69048         Better support of signalling NaNs.
69049         * lib/atanl.c: Include isnanl.h.
69050         (atanl): Perform test for NaN at the beginning of the function and
69051         through a call to isnanl.
69052         * lib/cosl.c: Include isnanl.h.
69053         (cosl): Perform test for NaN at the beginning of the function and
69054         through a call to isnanl.
69055         * lib/ldexpl.c: Include isnanl.h.
69056         (ldexpl): Perform test for NaN through a call to isnanl.
69057         * lib/logl.c: Include isnanl.h.
69058         (logl): Perform test for NaN at the beginning of the function and
69059         through a call to isnanl.
69060         * lib/sinl.c: Include isnanl.h.
69061         (sinl): Perform test for NaN at the beginning of the function and
69062         through a call to isnanl.
69063         * lib/sqrtl.c: Include isnanl.h.
69064         (sqrtl): Perform test for NaN at the beginning of the function and
69065         through a call to isnanl.
69066         * lib/tanl.c: Include isnanl.h.
69067         (tanl): Perform test for NaN at the beginning of the function and
69068         through a call to isnanl.
69069         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69070         * modules/mathl (Depends-on): Add isnanl.
69071
69072 2007-03-26  Eric Blake  <ebb9@byu.net>
69073
69074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69075         regression in logic sense of previous patch.
69076
69077 2007-03-26  Bruno Haible  <bruno@clisp.org>
69078
69079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69080         unportable shell command "if ! ...".
69081         Reported by Ralf Wildenhues.
69082
69083 2007-03-25  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69086         <sysexits.h> file, and only add EX_CONFIG.
69087         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69088         absolute file name and whether it is sufficient. Substitute also
69089         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69090         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69091         ABSOLUTE_SYSEXITS_H into sysexits.h.
69092
69093 2007-03-25  Bruno Haible  <bruno@clisp.org>
69094
69095         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69096         hints is NULL.
69097
69098 2007-03-25  Bruno Haible  <bruno@clisp.org>
69099
69100         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69101         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69102
69103 2007-03-25  Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/vasnprintf.c: Include langinfo.h.
69106         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69107         multithread-safe.
69108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69117         Reported by Simon Josefsson.
69118
69119 2007-03-25  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69122         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69123         * modules/vasnprintf (Depends-on): Add stdint.
69124
69125 2007-03-25  Bruno Haible  <bruno@clisp.org>
69126
69127         * modules/fpieee: New file.
69128         * m4/fpieee.m4: New file.
69129         * modules/isnan-nolibm (Depends-on): Add fpieee.
69130         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69131         * modules/isnanl (Depends-on): Add fpieee.
69132
69133 2007-03-25  Bruno Haible  <bruno@clisp.org>
69134
69135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69136
69137 2007-03-25  Bruno Haible  <bruno@clisp.org>
69138
69139         Avoid test failures on IRIX 6.5.
69140         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69141         (main): Use it.
69142         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69143         macros.
69144         (main): Use them.
69145
69146 2007-03-25  Bruno Haible  <bruno@clisp.org>
69147
69148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69149         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69150         exists but doesn't work.
69151         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69152         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69154         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69155         math.h.
69156
69157 2007-03-25  Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69160         returns inf. Needed on IRIX 6.5.
69161
69162 2007-03-25  Bruno Haible  <bruno@clisp.org>
69163
69164         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69165         (main): Use isnanl instead of x != x idiom.
69166         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69167
69168         * tests/test-frexp.c: Include isnan.h.
69169         (main): Use isnan instead of x != x idiom.
69170         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69171
69172 2007-03-25  Bruno Haible  <bruno@clisp.org>
69173
69174         * tests/test-frexp.c (NaN): New function/macro.
69175         (main): Use it instead of 0.0 / 0.0.
69176         * tests/test-isnan.c (NaN): New function/macro.
69177         (main): Use it instead of 0.0 / 0.0.
69178         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69179         (test_function): Use it instead of 0.0 / 0.0.
69180         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69181         (test_function): Use it instead of 0.0 / 0.0.
69182         * tests/test-snprintf-posix.h (NaN): New function/macro.
69183         (test_function): Use it instead of 0.0 / 0.0.
69184         * tests/test-sprintf-posix.h (NaN): New function/macro.
69185         (test_function): Use it instead of 0.0 / 0.0.
69186         * tests/test-fprintf-posix.h (NaN): New function/macro.
69187         (test_function): Use it instead of 0.0 / 0.0.
69188         * tests/test-printf-posix.h (NaN): New function/macro.
69189         (test_function): Use it instead of 0.0 / 0.0.
69190
69191         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69192
69193 2007-03-25  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69196
69197 2007-03-25  Bruno Haible  <bruno@clisp.org>
69198
69199         * lib/regexec.c (merge_state_with_log): Make static.
69200
69201 2007-03-25  Bruno Haible  <bruno@clisp.org>
69202
69203         * lib/trigl.c (kernel_rem_pio2): Make static.
69204
69205 2007-03-25  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/sincosl.c (sincosl_table): Make static.
69208
69209 2007-03-25  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69212         if the compiler does not support C99.
69213
69214 2007-03-25  Bruno Haible  <bruno@clisp.org>
69215
69216         * modules/time (Makefile.am): Ensure all rule action lines start with a
69217         tab.
69218
69219 2007-03-24  Bruno Haible  <bruno@clisp.org>
69220
69221         * modules/tsearch-tests: New file.
69222         * tests/test-tsearch.sh: New file.
69223         * tests/test-tsearch.c: New file, mostly copied from glibc.
69224
69225         * modules/search-tests: New file.
69226         * tests/test-search.c: New file.
69227
69228         * modules/search: New file.
69229         * lib/search_.h: New file, incorporating lib/tsearch.h.
69230         * m4/search_h.m4: New file.
69231         * lib/tsearch.h: Remove file.
69232         * lib/tsearch.c: Include search.h instead of tsearch.h.
69233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69234         HAVE_TSEARCH.
69235         * modules/tsearch (Files): Remove lib/tsearch.h.
69236         (Depends-on): Add search.
69237         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69238         (Include): Change tsearch.h into search.h.
69239
69240 2007-03-24  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/fpucw: New file.
69243         * lib/fpucw.h: New file.
69244         * lib/frexp.c: Include fpucw.h.
69245         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69246         (FUNC): Use them.
69247         * lib/printf-frexp.c: Include fpucw.h.
69248         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69249         (FUNC): Use them.
69250         * lib/vasnprintf.c: Include fpucw.h.
69251         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69252         'long double' calculations.
69253         * tests/test-frexpl.c: Include fpucw.h.
69254         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69255         * tests/test-printf-frexpl.c: Include fpucw.h.
69256         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69257         * modules/frexpl (Depends-on): Add fpucw.
69258         * modules/printf-frexpl (Depends-on): Likewise.
69259         * modules/fprintf-posix (Depends-on): Likewise.
69260         * modules/snprintf-posix (Depends-on): Likewise.
69261         * modules/sprintf-posix (Depends-on): Likewise.
69262         * modules/vasnprintf-posix (Depends-on): Likewise.
69263         * modules/vasprintf-posix (Depends-on): Likewise.
69264         * modules/vfprintf-posix (Depends-on): Likewise.
69265         * modules/vsnprintf-posix (Depends-on): Likewise.
69266         * modules/vsprintf-posix (Depends-on): Likewise.
69267         * modules/frexpl-tests (Depends-on): Likewise.
69268         * modules/printf-frexpl-tests (Depends-on): Likewise.
69269
69270 2007-03-24  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/float+.h: New file.
69273         * lib/isnan.c: Include float+.h.
69274         (SIZE): New macro.
69275         (FUNC): Compare only SIZE bytes of the value.
69276         * lib/vasnprintf.c: Include float+.h.
69277         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69278         SIZEOF_LDBL or SIZEOF_DBL bytes.
69279         * modules/isnan-nolibm (Files): Add lib/float+.h.
69280         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69281         * modules/isnanl (Files): Add lib/float+.h.
69282         * modules/vasnprintf (Files): Add lib/float+.h.
69283
69284 2007-03-24  Bruno Haible  <bruno@clisp.org>
69285
69286         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69287         include isnanl-nolibm.h.
69288
69289 2007-03-24  Bruno Haible  <bruno@clisp.org>
69290
69291         * tests/test-read-file.c (main): Don't produce spurious output for
69292         expected situations. Make the test fail if it encountered unexpected
69293         results.
69294
69295 2007-03-24  Bruno Haible  <bruno@clisp.org>
69296
69297         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69298         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69299
69300 2007-03-24  Bruno Haible  <bruno@clisp.org>
69301
69302         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69303
69304 2007-03-24  Bruno Haible  <bruno@clisp.org>
69305
69306         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69307         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69308
69309         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69310         * modules/utf8-ucs4: Turn into a symbolic link to module
69311         unistr/u8-mbtouc.
69312
69313         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69314         utf8-ucs4-unsafe.
69315         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69316         unistr/u8-mbtouc-unsafe.
69317
69318         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69319         * modules/utf16-ucs4: Turn into a symbolic link to module
69320         unistr/u16-mbtouc.
69321
69322         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69323         utf16-ucs4-unsafe.
69324         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69325         unistr/u16-mbtouc-unsafe.
69326
69327         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69328         * modules/ucs4-utf8: Turn into a symbolic link to module
69329         unistr/u8-ubtomb.
69330
69331         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69332         * modules/ucs4-utf16: Turn into a symbolic link to module
69333         unistr/u16-ubtomb.
69334
69335 2007-03-24  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69338         Enable the function only if HAVE_INLINE.
69339         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69340         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69341         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69342         Enable the function only if HAVE_INLINE.
69343         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69344         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69345         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69346         Enable the function only if HAVE_INLINE.
69347         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69348         Enable the function only if HAVE_INLINE.
69349         * modules/utf8-ucs4: Update.
69350         * modules/utf8-ucs4-unsafe: Update.
69351         * modules/utf16-ucs4: Update.
69352         * modules/utf16-ucs4-unsafe: Update.
69353         * modules/ucs4-utf8: Update.
69354         * modules/ucs4-utf16: Update.
69355
69356 2007-03-24  Bruno Haible  <bruno@clisp.org>
69357
69358         * lib/utf8-ucs4.h: Remove file.
69359         * lib/utf8-ucs4-unsafe.h: Remove file.
69360         * lib/utf16-ucs4.h: Remove file.
69361         * lib/utf16-ucs4-unsafe.h: Remove file.
69362         * lib/ucs4-utf8.h: Remove file.
69363         * lib/ucs4-utf16.h: Remove file.
69364         * lib/unistr.h: Include their previous contents.
69365         * m4/utf-ucs4.m4: Remove file.
69366         * m4/ucs4-utf.m4: Remove file.
69367         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69368         (Depends-on): Add unistr/base.
69369         (configure.ac): Remove gl_UTF_UCS4.
69370         (Makefile.am): Update.
69371         (Include): Change to unistr.h.
69372         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69373         (Depends-on): Add unistr/base.
69374         (configure.ac): Remove gl_UTF_UCS4.
69375         (Makefile.am): Update.
69376         (Include): Change to unistr.h.
69377         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69378         (Depends-on): Add unistr/base.
69379         (configure.ac): Remove gl_UTF_UCS4.
69380         (Makefile.am): Update.
69381         (Include): Change to unistr.h.
69382         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69383         (Depends-on): Add unistr/base.
69384         (configure.ac): Remove gl_UTF_UCS4.
69385         (Makefile.am): Update.
69386         (Include): Change to unistr.h.
69387         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69388         (Depends-on): Add unistr/base.
69389         (configure.ac): Remove gl_UCS4_UTF.
69390         (Makefile.am): Update.
69391         (Include): Change to unistr.h.
69392         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69393         (Depends-on): Add unistr/base.
69394         (configure.ac): Remove gl_UCS4_UTF.
69395         (Makefile.am): Update.
69396         (Include): Change to unistr.h.
69397         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69398         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69399         utf8-ucs4-unsafe.h.
69400         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69401         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69402         utf16-ucs4-unsafe.h.
69403         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69404         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69405         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69406         * lib/unistr/u8-strchr.c: Likewise.
69407         * lib/unistr/u8-strrchr.c: Likewise.
69408         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69409         * lib/unistr/u16-strchr.c: Likewise.
69410         * lib/unistr/u16-strrchr.c: Likewise.
69411         * lib/striconveh.c: Update.
69412         * lib/linebreak.c: Update.
69413
69414 2007-03-24  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69417         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69418
69419 2007-03-22  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69422
69423 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * MODULES.html.sh (File system functions): New module write-any-file.
69426         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69427         * m4/write-any-file.m4: New files.
69428
69429 2007-03-23  Eric Blake  <ebb9@byu.net>
69430
69431         * gnulib-tool: Rearrange space-tab sequences, since some editors
69432         like to eat them.
69433
69434 2007-03-23  Eric Blake  <ebb9@byu.net>
69435
69436         * lib/version-etc.c (version_etc_va): Update license wording to
69437         be more concise.  Recommended by Richard Stallman.
69438
69439 2007-03-22  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/poll.c (MSG_PEEK): New fallback definition.
69442
69443 2007-03-22  Bruno Haible  <bruno@clisp.org>
69444
69445         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69446         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69447         (main): Update.
69448         Fixes a compilation error on BeOS.
69449
69450 2007-03-22  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/frexpl-tests: New file.
69453         * tests/test-frexpl.c: New file.
69454
69455         * modules/frexpl: New file.
69456         * m4/frexpl.m4: New file.
69457         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69458         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69460         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69461         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69462         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69463
69464 2007-03-22  Bruno Haible  <bruno@clisp.org>
69465
69466         * lib/frexpl.c: Share code with lib/frexp.c.
69467         * modules/mathl (Files): Add lib/frexp.c.
69468         (Depends-on): Add isnanl-nolibm.
69469
69470 2007-03-22  Bruno Haible  <bruno@clisp.org>
69471
69472         * modules/printf-frexp (Files): Add m4/frexp.m4.
69473         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69474         only if the found frexp function actually works.
69475
69476 2007-03-22  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/frexp.c: Remove older implementation that uses divisions.
69479
69480 2007-03-21  Bruno Haible  <bruno@clisp.org>
69481
69482         * modules/frexp-tests: New file.
69483         * tests/test-frexp.c: New file.
69484
69485         * modules/frexp: New file.
69486         * lib/frexp.c: New file.
69487         * m4/frexp.m4: New file.
69488         * lib/math_.h (frexp): New declaration.
69489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69490         REPLACE_FREXP.
69491         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69492
69493 2007-03-21  Bruno Haible  <bruno@clisp.org>
69494
69495         * modules/isnanl-tests: New file.
69496         * tests/test-isnanl.c: New file.
69497
69498         * modules/isnanl: New file.
69499         * lib/isnanl.h: New file.
69500         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69501         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69502         gl_FUNC_ISNANL_WORKS.
69503         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69504         New macros.
69505
69506 2007-03-21  Bruno Haible  <bruno@clisp.org>
69507
69508         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69509         lib/isnanl.h.
69510         (Include): Update.
69511         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69512         * lib/vasnprintf.c: Update.
69513         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69514         tests/test-isnanl.h, remove tests/test-isnanl.c.
69515         (Makefile.am): Update.
69516         * tests/test-isnanl-nolibm.c: New file.
69517         * tests/test-isnanl.h: New file.
69518         * tests/test-isnanl.c: Remove file.
69519
69520 2007-03-21  Jim Meyering  <jim@meyering.net>
69521
69522         When trying to open ".", treat ESTALE like EACCES.
69523         * lib/savewd.c (savewd_save): Resort to forking not just upon
69524         failure with EACCES, but also when errno is ESTALE.
69525
69526 2007-03-20  Bruno Haible  <bruno@clisp.org>
69527
69528         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69529         Needed on AIX 5.1. Reported by Matthew Woehlke.
69530
69531 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         Suggestions by Bruno Haible:
69534         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69535         our own.
69536         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69537         * modules/acl (Depends-on): Add gettext.
69538
69539 2007-03-19  Bruno Haible  <bruno@clisp.org>
69540
69541         * modules/iconvme: Remove file.
69542         * lib/iconvme.h: Remove file.
69543         * lib/iconvme.c: Remove file.
69544         * m4/iconvme.m4: Remove file.
69545
69546 2007-03-19  Bruno Haible  <bruno@clisp.org>
69547
69548         * doc/relocatable-maint.texi: Break long shell script line.
69549         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69550
69551 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69554         handle file_has_acl.
69555         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69556         * lib/acl.c: Move header inclusions and related macro defns into
69557         lib/acl-internal.h.
69558         (S_ISLNK): Remove defn, since that's now done for us.
69559         (file_has_acl): Move to lib/file-has-acl.c.
69560         Call acl_trivial if available.  This is the crucial part of the fix.
69561         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69562         shared within the library.  Rewrite a bit, partly to make it compatible
69563         with the GNU coding style.
69564         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69565         Remove unnecessary double-quotes.
69566         Don't test for acl_to_text; the build will catch that.
69567         Replace acl_entries if it doesn't exist and it is needed.
69568         Check for -lsec and acl_trivial (as used on Solaris 10).
69569         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69570         lib/file-has-acl.c.
69571         (Depends-on): Add sys_stat, for S_ISLNK.
69572
69573 2007-03-19  Ben Pfaff  <blp@gnu.org>
69574
69575         * doc/gnulib.texi: Fix typos.
69576         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69577
69578 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69581         If size is zero here, buf must be zero.
69582
69583 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69584
69585         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69586         <bruno@clisp.org>.
69587
69588 2007-03-18  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69591         Suggested by Eric Blake.
69592
69593 2007-03-18  Ben Pfaff  <blp@gnu.org>
69594
69595         * doc/relocatable.texi: Recommend using as prefix a directory
69596         that does not exist and will never be created.  Based on
69597         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69598         and others.
69599
69600 2007-03-17  Bruno Haible  <bruno@clisp.org>
69601
69602         * lib/fchownat.c: Include lchown.h.
69603
69604 2007-03-17  Bruno Haible  <bruno@clisp.org>
69605
69606         Fix endless loop when the given allocated size was > INT_MAX.
69607         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69608         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69609         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69610         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69611         * lib/sprintf.c (sprintf): Likewise.
69612
69613 2007-03-17  Bruno Haible  <bruno@clisp.org>
69614
69615         * tests/test-argp-2.sh (func_compare): Output a context diff.
69616
69617 2007-03-17  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69620         locale's decimal-point character.
69621
69622 2007-03-17  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69625         before comparing it. Needed because on some platforms (e.g. x86) a
69626         'long double' occupies less bytes than sizeof (long double).
69627
69628 2007-03-17  Bruno Haible  <bruno@clisp.org>
69629
69630         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69631         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69632         * tests/test-getaddrinfo.c (simple): Likewise.
69633         * tests/test-read-file.c (main): Likewise.
69634
69635 2007-03-17  Bruno Haible  <bruno@clisp.org>
69636
69637         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69638
69639 2007-03-17  Bruno Haible  <bruno@clisp.org>
69640
69641         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69642         unused variable.
69643
69644 2007-03-17  Bruno Haible  <bruno@clisp.org>
69645
69646         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69647         * tests/test-c-strncasecmp.c: Likewise.
69648
69649 2007-03-17  Bruno Haible  <bruno@clisp.org>
69650
69651         * modules/stdlib (Depends-on): Add unistd.
69652         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69653         Needed for MacOS X 10.3.
69654
69655 2007-03-17  Bruno Haible  <bruno@clisp.org>
69656
69657         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69658
69659 2007-03-17  Bruno Haible  <bruno@clisp.org>
69660
69661         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69662
69663 2007-03-17  Bruno Haible  <bruno@clisp.org>
69664
69665         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69666         to reflect files copied from gnulib (with or without modifications).
69667         Suggested by Jim Meyering.
69668
69669 2007-03-17  Eric Blake  <ebb9@byu.net>
69670
69671         * NEWS: Document stdlib change from 2007-02-18.
69672
69673 2007-03-17  Jim Meyering  <jim@meyering.net>
69674
69675         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69676         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69677         someone uses a name containing shell meta-characters.
69678         Reported by Alfred M. Szmidt.
69679
69680         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69681
69682 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69683
69684         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69685         and copy gettext configuration files only if configure.ac contains
69686         a use of AM_GNU_GETTEXT_VERSION.
69687
69688 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69689
69690         * build-aux/bootstrap (gnulib_name): New variable.
69691         (gnulib_tool_options): Use it.
69692
69693 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69694
69695         * tests/test-des.c: Use new namespace.
69696
69697 2007-03-15  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69700         Reported by James Youngman <jay@gnu.org>.
69701
69702 2007-03-15  Bruno Haible  <bruno@clisp.org>
69703
69704         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69705         declared prototype. Needed with cc on OSF/1 5.1.
69706
69707 2007-03-15  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69710         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69711         (struct gl_list_implementation): Add dispose_fn argument to the
69712         'create_empty', 'create' methods.
69713         (struct gl_list_impl_base): Add field 'dispose_fn'.
69714         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69715         argument.
69716         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69717         dispose_fn argument.
69718         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69719         dispose_fn on the dropped values.
69720         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69721         dispose_fn argument.
69722         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69723         dropped values.
69724         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69725         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69726         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69727         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69728         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69729         argument.
69730         (gl_tree_list_free): Call dispose_fn on the dropped values.
69731         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69732         the dropped values.
69733         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69734         Add dispose_fn argument.
69735         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69736         Call dispose_fn on the dropped values.
69737         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69738         Add dispose_fn argument.
69739         (gl_sublist_create): Initialize the 'dispose_fn' field.
69740         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69741         * tests/test-array_list.c (main): Update.
69742         * tests/test-carray_list.c (main): Update.
69743         * tests/test-avltree_list.c (main): Update.
69744         * tests/test-rbtree_list.c (main): Update.
69745         * tests/test-avltreehash_list.c (main): Update.
69746         * tests/test-rbtreehash_list.c (main): Update.
69747         * tests/test-linked_list.c (main): Update.
69748         * tests/test-linkedhash_list.c (main): Update.
69749         * tests/test-array_oset.c (main): Update.
69750
69751 2007-03-15  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69754         (gl_oset_create_empty): Add dispose_fn argument.
69755         (struct gl_oset_implementation): Add dispose_fn argument to
69756         'create_empty' method.
69757         (struct gl_oset_impl_base): Add dispose_fn field.
69758         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69759         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69760         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69761         values.
69762         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69763         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69764         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69765         dropped value.
69766         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69767         dropped value.
69768         * tests/test-array_oset.c (main): Update.
69769         * tests/test-avltree_oset.c (main): Update.
69770         * tests/test-rbtree_oset.c (main): Update.
69771         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69772
69773 2007-03-13  Bruno Haible  <bruno@clisp.org>
69774
69775         * tests/test-stdbool.c (i): Update after last patch.
69776
69777 2007-03-12  Bruno Haible  <bruno@clisp.org>
69778
69779         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69780         the iswprint macro. Needed on Solaris 2.5.1.
69781
69782 2007-03-12  Bruno Haible  <bruno@clisp.org>
69783
69784         * tests/test-printf-frexp.c (main): Declare x as volatile.
69785
69786 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69787
69788         * doc/gnulib.texi (Build robot for gnulib): New section.
69789
69790 2007-03-12  Jim Meyering  <jim@meyering.net>
69791
69792         * build-aux/bootstrap: New file.
69793         * build-aux/bootstrap.conf: New file, from coreutils.
69794
69795 2007-03-11  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69798
69799 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69800
69801         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69802         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69803         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69804
69805 2007-03-11  Bruno Haible  <bruno@clisp.org>
69806
69807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69808         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69809
69810 2007-03-11  Bruno Haible  <bruno@clisp.org>
69811
69812         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69813         formula. Needed for SunPRO C 5.0.
69814
69815 2007-03-11  Bruno Haible  <bruno@clisp.org>
69816
69817         * modules/long-options (Depends-on): Add getopt.
69818
69819 2007-03-11  Bruno Haible  <bruno@clisp.org>
69820
69821         * modules/modechange (Depends-on): Add stdbool.
69822
69823 2007-03-11  Bruno Haible  <bruno@clisp.org>
69824
69825         * modules/i-ring (Depends-on): Add stdbool.
69826
69827 2007-03-11  Bruno Haible  <bruno@clisp.org>
69828
69829         * modules/gc-des (Depends-on): Add stdbool.
69830
69831 2007-03-11  Bruno Haible  <bruno@clisp.org>
69832
69833         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69834
69835 2007-03-11  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69838
69839 2007-03-11  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69842
69843 2007-03-11  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/vasnprintf.c (sprintf): Undefine.
69846
69847 2007-03-11  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69850         initializers in SunPRO C and Compaq C compilers.
69851
69852 2007-03-11  Bruno Haible  <bruno@clisp.org>
69853
69854         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69855         decrementing code ANSI C compliant.
69856
69857 2007-03-11  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69860         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69861
69862 2007-03-11  Bruno Haible  <bruno@clisp.org>
69863
69864         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69865         <stdbool.h> substitute doesn't pass.
69866
69867 2007-03-11  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69870
69871 2007-03-11  Bruno Haible  <bruno@clisp.org>
69872
69873         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69874         script, for submission to autobuild.josefsson.org.
69875
69876 2007-03-10  Bruno Haible  <bruno@clisp.org>
69877
69878         * modules/canonicalize-lgpl-tests: New file.
69879         * tests/test-canonicalize-lgpl.sh: New file.
69880         * tests/test-canonicalize-lgpl.c: New file.
69881
69882         * modules/c-strcase-tests: New file.
69883         * tests/test-c-strcase.sh: New file.
69884         * tests/test-c-strcasecmp.c: New file.
69885         * tests/test-c-strncasecmp.c: New file.
69886
69887         * modules/atexit-tests: New file.
69888         * tests/test-atexit.sh: New file.
69889         * tests/test-atexit.c: New file.
69890
69891 2007-03-10  Bruno Haible  <bruno@clisp.org>
69892
69893         * tests/test-binary-io.sh: Use temporary filenames that are not so
69894         likely to clash with those of other tests (in a parallel make).
69895         * tests/test-binary-io.c: Likewise.
69896
69897 2007-03-10  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69900         fallback; use #error instead.
69901         Suggested by Simon Josefsson.
69902
69903 2007-03-10  Bruno Haible  <bruno@clisp.org>
69904
69905         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69906         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69907         first and the last.
69908
69909 2007-03-10  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69912
69913 2007-03-10  Bruno Haible  <bruno@clisp.org>
69914
69915         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69916         "make distcheck".
69917         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69918         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69919         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69920
69921 2007-03-10  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69924         variable.
69925         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69926         variable.
69927
69928 2007-03-09  Eric Blake  <ebb9@byu.net>
69929         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69930
69931         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69932         types are not being provided by gnulib.
69933         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69934         types are supported.
69935
69936 2007-03-10  Bruno Haible  <bruno@clisp.org>
69937
69938         * lib/stdio_.h (__attribute__): New macro.
69939         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69940         vsprintf): Specify __attribute__ __format__ for GCC.
69941         Suggested by Eric Blake.
69942
69943 2007-03-09  Bruno Haible  <bruno@clisp.org>
69944
69945         * modules/printf-posix-tests: New file.
69946         * tests/test-printf-posix.sh: New file.
69947         * tests/test-printf-posix.c: New file.
69948
69949         * modules/printf-posix: New file.
69950         * lib/printf.c: New file.
69951         * m4/printf-posix-rpl.m4: New file.
69952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69953         REPLACE_PRINTF.
69954         * lib/stdio_.h (printf): New declaration.
69955         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69956         ____strfmon____): New macros.
69957         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69958         REPLACE_PRINTF.
69959
69960 2007-03-09  Bruno Haible  <bruno@clisp.org>
69961
69962         * tests/test-vasnprintf-posix2.sh: New file.
69963         * tests/test-vasnprintf-posix2.c: New file.
69964         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69965         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69966         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69967
69968         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69969         a locale dependent decimal point, rather than always '.'.
69970
69971 2007-03-09  Eric Blake  <ebb9@byu.net>
69972
69973         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69974         spite of platforms like Tandem/NSK that define it to -1.
69975
69976 2007-03-08  Bruno Haible  <bruno@clisp.org>
69977
69978         * modules/vprintf-posix-tests: New file.
69979         * tests/test-vprintf-posix.sh: New file.
69980         * tests/test-vprintf-posix.c: New file.
69981         * tests/test-printf-posix.h: New file.
69982
69983         * modules/vprintf-posix: New file.
69984         * lib/vprintf.c: New file.
69985         * m4/vprintf-posix.m4: New file.
69986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69987         REPLACE_VPRINTF.
69988         * lib/stdio_.h (vprintf): New declaration.
69989         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69990         REPLACE_VPRINTF.
69991
69992 2007-03-08  Bruno Haible  <bruno@clisp.org>
69993
69994         * modules/fprintf-posix-tests: New file.
69995         * tests/test-fprintf-posix.sh: New file.
69996         * tests/test-fprintf-posix.c: New file.
69997
69998         * modules/fprintf-posix: New file.
69999         * lib/fprintf.c: New file.
70000         * m4/fprintf-posix.m4: New file.
70001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70002         REPLACE_FPRINTF.
70003         * lib/stdio_.h (fprintf): New declaration.
70004         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70005         REPLACE_FPRINTF.
70006
70007 2007-03-08  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/vfprintf-posix-tests: New file.
70010         * tests/test-vfprintf-posix.sh: New file.
70011         * tests/test-vfprintf-posix.c: New file.
70012         * tests/test-fprintf-posix.h: New file.
70013         * tests/test-fprintf-posix.out: New file.
70014
70015         * modules/vfprintf-posix: New file.
70016         * lib/vfprintf.c: New file.
70017         * m4/vfprintf-posix.m4: New file.
70018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70019         REPLACE_VFPRINTF.
70020         * lib/stdio_.h (vfprintf): New declaration.
70021         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70022         REPLACE_VFPRINTF.
70023
70024 2007-03-08  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70027
70028 2007-03-08  Bruno Haible  <bruno@clisp.org>
70029
70030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70031         instead of 'expr' invocations.
70032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70037         Suggested by Paul Eggert.
70038
70039 2007-03-08  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/fseterr-tests: New file.
70042         * tests/test-fseterr.c: New file.
70043
70044         * modules/fseterr: New file.
70045         * lib/fseterr.h: New file.
70046         * lib/fseterr.c: New file.
70047
70048 2007-03-08  Bruno Haible  <bruno@clisp.org>
70049
70050         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70051         * lib/getopt_.h: Likewise.
70052         * lib/mbswidth.h: Likewise.
70053         * lib/setenv.h: Likewise.
70054         * lib/vasnprintf.h: Likewise.
70055         * lib/vasprintf.h: Likewise.
70056         * lib/verror.h: Likewise.
70057         * lib/xsetenv.h: Likewise.
70058         * lib/xvasprintf.h: Likewise.
70059
70060 2007-03-08  Jim Meyering  <jim@meyering.net>
70061
70062         * users.txt: Add parted.
70063
70064         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70065
70066 2007-03-07  Bruno Haible  <bruno@clisp.org>
70067
70068         * m4/printf.m4: Make the shell script snippets copy&pastable.
70069
70070 2007-03-02  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/netinet_in_.h: New file.
70073         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70074         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70075         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70076         (Depends-on): Add absolute-header.
70077         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70078         into netinet/in.h.
70079
70080 2007-03-03  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/sys_select_.h: New file.
70083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70084         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70085         * modules/sys_select (Files): Add lib/sys_select_.h.
70086         (Depends-on): Add absolute-header.
70087         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70088         into sys/select.h.
70089
70090 2007-03-02  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70093         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70094         values.
70095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70096         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70097         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70098         * modules/sys_socket (Depends-on): Add absolute-header.
70099         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70100         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70101         (Include): Remove requirement of inclusion of <sys/types.h>.
70102
70103 2007-03-02  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/byteswap_.h (bswap_32): Fix formula.
70106
70107 2007-03-06  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/sprintf-posix-tests: New file.
70110         * tests/test-sprintf-posix.c: New file.
70111
70112         * modules/sprintf-posix: New file.
70113         * lib/sprintf.c: New file.
70114         * m4/sprintf-posix.m4: New file.
70115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70116         REPLACE_SPRINTF.
70117         * lib/stdio_.h (sprintf): New declaration.
70118         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70119         REPLACE_SPRINTF.
70120
70121 2007-03-06  Bruno Haible  <bruno@clisp.org>
70122
70123         * modules/vsprintf-posix-tests: New file.
70124         * tests/test-vsprintf-posix.c: New file.
70125         * tests/test-sprintf-posix.h: New file.
70126
70127         * modules/vsprintf-posix: New file.
70128         * lib/vsprintf.c: New file.
70129         * m4/vsprintf-posix.m4: New file.
70130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70131         REPLACE_VSPRINTF.
70132         * lib/stdio_.h (vsprintf): New declaration.
70133         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70134         REPLACE_VSPRINTF.
70135
70136 2007-03-06  Bruno Haible  <bruno@clisp.org>
70137
70138         * modules/vsnprintf (Depend-on): Remove minmax.
70139
70140 2007-03-06  Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/snprintf-posix-tests: New file.
70143         * tests/test-snprintf-posix.c: New file.
70144
70145         * modules/snprintf-posix: New file.
70146         * m4/snprintf-posix.m4: New file.
70147         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70148         gl_FUNC_SNPRINTF.
70149         (gl_FUNC_SNPRINTF): Invoke it.
70150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70151         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70152         is set.
70153         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70154
70155 2007-03-06  Bruno Haible  <bruno@clisp.org>
70156
70157         * modules/vsnprintf-posix-tests: New file.
70158         * tests/test-vsnprintf-posix.c: New file.
70159         * tests/test-snprintf-posix.h: New file.
70160
70161         * modules/vsnprintf-posix: New file.
70162         * m4/vsnprintf-posix.m4: New file.
70163         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70164         gl_FUNC_VSNPRINTF.
70165         (gl_FUNC_VSNPRINTF): Invoke it.
70166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70167         * lib/stdio_.h (vsnprintf): Define as a replacement if
70168         REPLACE_VSNPRINTF is set.
70169         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70170
70171 2007-03-06  Bruno Haible  <bruno@clisp.org>
70172
70173         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70175
70176 2007-03-06  Bruno Haible  <bruno@clisp.org>
70177
70178         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70179         (asinl): Declare also if HAVE_DECL_ASINL is set.
70180         (atanl): Declare also if HAVE_DECL_ATANL is set.
70181         (ceill): Declare also if HAVE_DECL_CEILL is set.
70182         (cosl): Declare also if HAVE_DECL_COSL is set.
70183         (expl): Declare also if HAVE_DECL_EXPL is set.
70184         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70185         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70186         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70187         (logl): Declare also if HAVE_DECL_LOGL is set.
70188         (sinl): Declare also if HAVE_DECL_SINL is set.
70189         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70190         (tanl): Declare also if HAVE_DECL_TANL is set.
70191         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70193         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70194         declaration of frexpl, ldexpl.
70195         * modules/printf-frexpl (Depends-on): Add math.
70196         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70197
70198 2007-03-05  Bruno Haible  <bruno@clisp.org>
70199
70200         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70201         frexpl and ldexpl are declared.
70202         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70203
70204 2007-03-05  Bruno Haible  <bruno@clisp.org>
70205
70206         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70207         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70208
70209 2007-03-05  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/stdio_.h: Include <stddef.h>.
70212
70213 2007-03-05  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70216
70217 2007-03-05  Bruno Haible  <bruno@clisp.org>
70218
70219         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70220         NetBSD 4, from Ralf Wildenhues.
70221
70222 2007-03-04  Bruno Haible  <bruno@clisp.org>
70223
70224         * lib/vasprintf.h: Update #if logic for the case when the functions
70225         exist but are overridden.
70226
70227 2007-03-04  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70230         implementations: glibc-2.4 and MacOS X 10.3.
70231         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70232         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70233         * tests/test-vasprintf-posix.c (test_function): Likewise.
70234
70235 2007-03-04  Bruno Haible  <bruno@clisp.org>
70236
70237         * modules/vasprintf-posix-tests: New file.
70238         * tests/test-vasprintf-posix.c: New file.
70239
70240         * modules/vasprintf-posix: New file.
70241         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70242         defined.
70243         * m4/vasprintf-posix.m4: New file.
70244         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70245         gl_FUNC_VASPRINTF.
70246         (gl_FUNC_VASPRINTF): Invoke it.
70247         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70248         here.
70249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70250
70251 2007-03-04  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70254         REPLACE_GETTIMEOFDAY.
70255         * modules/sys_time (Makefile.am): Likewise.
70256         * m4/sys_time_h.m4: Likewise.
70257         * m4/gettimeofday.m4: Likewise.
70258
70259 2007-03-04  Bruno Haible  <bruno@clisp.org>
70260
70261         * modules/vasnprintf-posix-tests: New file.
70262         * tests/test-vasnprintf-posix.c: New file.
70263
70264         * modules/vasnprintf-posix: New file.
70265         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70266         printf-frexpl.h.
70267         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70268         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70269         REPLACE_VASNPRINTF is defined.
70270         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70271         gl_FUNC_VASNPRINTF.
70272         (gl_FUNC_VASNPRINTF): Invoke it.
70273         * m4/vasnprintf-posix.m4: New file.
70274         * m4/printf.m4: New file.
70275
70276 2007-03-04  Bruno Haible  <bruno@clisp.org>
70277
70278         Compile progreloc.c only if --enable-relocatable is specified.
70279         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70280         if --enable-relocatable was specified.
70281         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70282         lib_SOURCES.
70283
70284 2007-03-04  Jim Meyering  <jim@meyering.net>
70285
70286         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70287         Use it consistently, rather than enumerating errno constants.
70288
70289 2007-03-04  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/xvasprintf-tests: New file.
70292         * tests/test-xvasprintf.c: New file.
70293
70294         * modules/vasprintf-tests: New file.
70295         * tests/test-vasprintf.c: New file.
70296
70297         * modules/vasnprintf-tests: New file.
70298         * tests/test-vasnprintf.c: New file.
70299
70300         * modules/vsnprintf-tests: New file.
70301         * tests/test-vsnprintf.c: New file.
70302
70303         * modules/snprintf-tests: New file.
70304         * tests/test-snprintf.c: New file.
70305
70306 2007-03-04  Bruno Haible  <bruno@clisp.org>
70307
70308         Compile relocatable.c only if --enable-relocatable is specified.
70309         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70310         gl_RELOCATABLE_LIBRARY.
70311         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70312         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70313         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70314         gl_RELOCATABLE_LIBRARY.
70315         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70316         (Makefile.am): Remove lib_SOURCES.
70317         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70318         gl_RELOCATABLE_LIBRARY.
70319         (Makefile.am): Remove lib_SOURCES.
70320         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70321         always.
70322         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70323         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70324
70325 2007-03-04  Bruno Haible  <bruno@clisp.org>
70326
70327         * modules/argmatch-tests: New file.
70328         * tests/test-argmatch.c: New file.
70329
70330         * tests/test-allocsa.c (main): Halve the number of loop runs.
70331
70332         * modules/alloca-opt-tests: New file.
70333         * tests/test-alloca-opt.c: New file.
70334
70335 2007-03-04  Jim Meyering  <jim@meyering.net>
70336
70337         Work around difference between Linux ACLs and Solaris 10 ZFS.
70338         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70339         for EINVAL.
70340
70341 2007-03-03  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/relocatable-prog (Depends-on): Add back progreloc's
70344         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70345
70346 2007-03-03  Bruno Haible  <bruno@clisp.org>
70347
70348         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70349         * modules/relocatable-lib: New file.
70350
70351 2007-03-03  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/relocatable-prog: Renamed from modules/relocatable.
70354         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70355
70356 2007-03-03  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70359         m4/relocatable-lib.m4.
70360         (Depends-on): Remove 'relocatable'.
70361         (configure.ac): Add gl_RELOCATABLE_NOP.
70362
70363 2007-03-03  Bruno Haible  <bruno@clisp.org>
70364
70365         * modules/relocatable-prog-wrapper: New file.
70366         * modules/relocatable (Depends-on): Add it. Remove all other
70367         dependencies except progname.
70368         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70369
70370         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70371         (gl_FUNC_STRERROR): Nop.
70372         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70373
70374         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70375         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70376
70377         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70378         (gl_FUNC_READLINK): Update.
70379
70380         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70381
70382 2007-03-03  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70385         * modules/xreadlink (Depends-on): Add unistd.
70386         * modules/xreadlink-with-size (Depends-on): Likewise.
70387
70388 2007-03-03  Bruno Haible  <bruno@clisp.org>
70389
70390         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70391         extracted from gt_FUNC_SETENV.
70392         (gt_FUNC_SETENV): Remove macro.
70393         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70394         remove gt_FUNC_SETENV.
70395
70396 2007-03-03  Bruno Haible  <bruno@clisp.org>
70397
70398         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70399         ENABLE_RELOCATABLE here.
70400         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70401
70402 2007-03-03  Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70405         * tests/test-rbtreehash_list.c: Include progname.h.
70406         (main): Call set_program_name.
70407
70408         * modules/rbtree-oset-tests (Depends-on): Add progname.
70409         * tests/test-rbtree_oset.c: Include progname.h.
70410         (main): Call set_program_name.
70411
70412         * modules/rbtree-list-tests (Depends-on): Add progname.
70413         * tests/test-rbtree_list.c: Include progname.h.
70414         (main): Call set_program_name.
70415
70416         * modules/linked-list-tests (Depends-on): Add progname.
70417         * tests/test-linked_list.c: Include progname.h.
70418         (main): Call set_program_name.
70419
70420 2007-03-03  Bruno Haible  <bruno@clisp.org>
70421
70422         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70423         All uses of __restrict changed to _Restrict_.
70424         * lib/glob_.h (__restrict): Remove macro.
70425
70426 2007-03-02  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/gettext (configure.ac): Require gettext infrastructure
70429         from version 0.16.1.
70430
70431 2007-03-02  Bruno Haible  <bruno@clisp.org>
70432
70433         * modules/linkedhash-list-tests (Depends-on): Add progname.
70434         * tests/test-linkedhash_list.c: Include progname.h.
70435         (main): Call set_program_name.
70436
70437         * modules/carray-list-tests (Depends-on): Add progname.
70438         * tests/test-carray_list.c: Include progname.h.
70439         (main): Call set_program_name.
70440
70441         * modules/avltreehash-list-tests (Depends-on): Add progname.
70442         * tests/test-avltreehash_list.c: Include progname.h.
70443         (main): Call set_program_name.
70444
70445         * modules/avltree-oset-tests (Depends-on): Add progname.
70446         * tests/test-avltree_oset.c: Include progname.h.
70447         (main): Call set_program_name.
70448
70449         * modules/avltree-list-tests (Depends-on): Add progname.
70450         * tests/test-avltree_list.c: Include progname.h.
70451         (main): Call set_program_name.
70452
70453         * modules/array-oset-tests (Depends-on): Add progname.
70454         * tests/test-array_oset.c: Include progname.h.
70455         (main): Call set_program_name.
70456
70457         * modules/array-list-tests (Depends-on): Add progname.
70458         * tests/test-array_list.c: Include progname.h.
70459         (main): Call set_program_name.
70460
70461         * modules/argp-tests (Depends-on): Add progname.
70462         * tests/test-argp.c: Include argp.h first. Include progname.h.
70463         (main): Call set_program_name.
70464
70465 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * doc/gnulib-tool.texi (Initial import): Reword description of
70468         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70469         limited effect even if defined after the first system include.
70470
70471 2007-03-01  Bruno Haible  <bruno@clisp.org>
70472
70473         * build-aux/config.libpath: Update to libtool-1.5.22.
70474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70475
70476 2007-03-01  Bruno Haible  <bruno@clisp.org>
70477
70478         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70479         foo_CFLAGS.
70480         Reported by Ralf Wildenhues.
70481
70482 2007-03-01  Bruno Haible  <bruno@clisp.org>
70483
70484         * build-aux/install-reloc: Remove object files left over by some
70485         compilers.
70486         Reported by Ralf Wildenhues.
70487
70488 2007-03-01  Bruno Haible  <bruno@clisp.org>
70489
70490         * build-aux/install-reloc: Break long lines.
70491
70492 2007-03-01  Bruno Haible  <bruno@clisp.org>
70493
70494         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70495         Reported by Ralf Wildenhues.
70496
70497 2007-03-01  Bruno Haible  <bruno@clisp.org>
70498
70499         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70500         include ordering constraints.
70501
70502 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70506         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70507         as another example.
70508         * lib/time_.h: Fix misspelling.
70509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70510         Require gl_HEADER_TIME_H_DEFAULTS.
70511         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70512         * m4/time_r.m4 (gl_TIME_R): Likewise.
70513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70514
70515 2007-03-01  Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70518         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70519
70520 2007-03-01  Jim Meyering  <jim@meyering.net>
70521
70522         * modules/xreadlink (Maintainer): Add my name.
70523         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70524
70525 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70526             Bruno Haible  <bruno@clisp.org>
70527
70528         * build-aux/install-reloc: Compile also c-ctype.c.
70529         * build-aux/relocatable.sh.in: New file.
70530         * doc/relocatable.texi: New file.
70531         * doc/relocatable-maint.texi: New file.
70532         * doc/gnulib.texi: Include relocatable-maint.texi.
70533         * lib/progreloc.c: Include unistd.h unconditionally.
70534         * lib/relocwrapper.c: Include unistd.h unconditionally.
70535         Include c-ctype.h.
70536         (add_dotbin): Use c_tolower.
70537         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70538         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70539         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70540         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70541         to m4/relocatable-lib.m4.
70542         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70543         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70544         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70545         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70546         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70547         * modules/relocatable: New file.
70548         * modules/relocatable-lib: New file.
70549         * modules/relocatable-script: New file.
70550
70551 2007-02-28  Bruno Haible  <bruno@clisp.org>
70552
70553         Import --enable-relocatable infrastructure.
70554         * build-aux/config.libpath: New file, from GNU gettext.
70555         * build-aux/install-reloc: New file, from GNU gettext.
70556         * build-aux/reloc-ldflags: New file, from GNU gettext.
70557         * lib/relocatable.h: New file, from GNU gettext.
70558         * lib/relocatable.c: New file, from GNU gettext.
70559         * lib/relocwrapper.c: New file, from GNU gettext.
70560         * m4/relocatable.m4: New file, from GNU gettext.
70561
70562 2007-02-28  Bruno Haible  <bruno@clisp.org>
70563
70564         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70565
70566         * modules/xreadlink: New file, from GNU gettext with modifications.
70567         * lib/xreadlink.c: New file, from GNU gettext.
70568         * lib/xreadlink.h: Add comments.
70569         (xreadlink): New declaration.
70570
70571         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70572         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70573         lib/xreadlink-with-size.c.
70574         (configure.ac): Remove gl_XREADLINK invocation.
70575         (Makefile.am): Augment lib_SOURCES.
70576         * m4/xreadlink.m4: Remove file.
70577         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70578         (xreadlink_with_size): Renamed from xreadink.
70579         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70580         * modules/canonicalize (Depends-on): Replace xreadlink with
70581         xreadlink-with-size.
70582         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70583
70584 2007-02-25  Jim Meyering  <jim@meyering.net>
70585
70586         * build-aux/announce-gen: When complaining about excess arguments,
70587         list them.
70588
70589 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * README: Document signed integer overflow situation more
70592         accurately.
70593
70594 2007-02-25  Bruno Haible  <bruno@clisp.org>
70595
70596         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70597         'a' or 'A' conversion.
70598
70599 2007-02-25  Bruno Haible  <bruno@clisp.org>
70600
70601         * modules/filename: Renamed from modules/pathname.
70602         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70603         lib/concatpath.c with lib/concat-filename.c.
70604         (Makefile.am): Update.
70605         (Include): Replace pathname.h with filename.h.
70606         * lib/filename.h: Renamed from lib/pathname.h.
70607         (concatenated_filename): Renamed from concatenated_pathname.
70608         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70609         (concatenated_filename): Renamed from concatenated_pathname.
70610         * lib/findprog.c: Include filename.h instead of pathname.h.
70611         (find_in_path): Update.
70612         * lib/javacomp.c: Include filename.h instead of pathname.h.
70613         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70614         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70615         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70616         is_oldgcj_14_13_usable, is_javac_usable): Update.
70617         * lib/javaexec.c: Include filename.h instead of pathname.h.
70618         (execute_java_class): Update.
70619         * modules/findprog: Update.
70620         * modules/javacomp: Update.
70621         * modules/javaexec: Update.
70622         * MODULES.html.sh (File system functions): Add 'filename', remove
70623         'pathname'.
70624
70625 2007-02-25  Bruno Haible  <bruno@clisp.org>
70626
70627         * modules/printf-frexpl-tests: New file.
70628         * tests/test-printf-frexpl.c: New file.
70629
70630         * modules/printf-frexpl: New file.
70631         * lib/printf-frexpl.h: New file.
70632         * lib/printf-frexpl.c: New file.
70633         * m4/printf-frexpl.m4: New file.
70634
70635 2007-02-25  Bruno Haible  <bruno@clisp.org>
70636
70637         * modules/printf-frexp-tests: New file.
70638         * tests/test-printf-frexp.c: New file.
70639
70640         * modules/printf-frexp: New file.
70641         * lib/printf-frexp.h: New file.
70642         * lib/printf-frexp.c: New file.
70643         * m4/printf-frexp.m4: New file.
70644
70645 2007-02-25  Bruno Haible  <bruno@clisp.org>
70646
70647         Assume automake >= 1.10 for the tests.
70648         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70649         * modules/arctwo-tests: Likewise.
70650         * modules/argp-tests: Likewise.
70651         * modules/avltree-list-tests: Likewise.
70652         * modules/avltree-oset-tests: Likewise.
70653         * modules/avltreehash-list-tests: Likewise.
70654         * modules/carray-list-tests: Likewise.
70655         * modules/crc-tests: Likewise.
70656         * modules/des-tests: Likewise.
70657         * modules/gc-arcfour-tests: Likewise.
70658         * modules/gc-arctwo-tests: Likewise.
70659         * modules/gc-des-tests: Likewise.
70660         * modules/gc-hmac-md5-tests: Likewise.
70661         * modules/gc-hmac-sha1-tests: Likewise.
70662         * modules/gc-md2-tests: Likewise.
70663         * modules/gc-md4-tests: Likewise.
70664         * modules/gc-md5-tests: Likewise.
70665         * modules/gc-pbkdf2-sha1-tests: Likewise.
70666         * modules/gc-rijndael-tests: Likewise.
70667         * modules/gc-sha1-tests: Likewise.
70668         * modules/gc-tests: Likewise.
70669         * modules/getaddrinfo-tests: Likewise.
70670         * modules/hmac-md5-tests: Likewise.
70671         * modules/hmac-sha1-tests: Likewise.
70672         * modules/linked-list-tests: Likewise.
70673         * modules/linkedhash-list-tests: Likewise.
70674         * modules/lock-tests: Likewise.
70675         * modules/md2-tests: Likewise.
70676         * modules/md4-tests: Likewise.
70677         * modules/md5-tests: Likewise.
70678         * modules/rbtree-list-tests: Likewise.
70679         * modules/rbtree-oset-tests: Likewise.
70680         * modules/rbtreehash-list-tests: Likewise.
70681         * modules/read-file-tests: Likewise.
70682         * modules/rijndael-tests: Likewise.
70683         * modules/stdint-tests: Likewise.
70684         * modules/tls-tests: Likewise.
70685
70686 2007-02-24  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70689         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70690         function; instead check whether isnan with a double argument links.
70691         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70692         function; instead check whether isnan with a 'long double' argument
70693         links.
70694         Reported by Eric Blake <ebb9@byu.net>.
70695
70696 2007-02-24  Bruno Haible  <bruno@clisp.org>
70697
70698         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70699         defined.
70700         * lib/isnanl.c: Remove all code. Just include isnan.c.
70701         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70702
70703 2007-02-25  Jim Meyering  <jim@meyering.net>
70704
70705         Avoid conflicting types for 'unsetenv' on FreeBSD.
70706         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70707         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70708         in stdlib.h.
70709
70710 2007-02-24  Bruno Haible  <bruno@clisp.org>
70711
70712         * modules/isnanl-nolibm-tests: New file.
70713         * tests/test-isnanl.c: New file.
70714
70715         * modules/isnanl-nolibm: New file.
70716         * lib/isnanl.h: New file.
70717         * lib/isnanl.c: New file.
70718         * m4/isnanl.m4: New file.
70719
70720 2007-02-24  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/isnan-nolibm-tests: New file.
70723         * tests/test-isnan.c: New file.
70724
70725         * modules/isnan-nolibm: New file.
70726         * lib/isnan.h: New file.
70727         * lib/isnan.c: New file.
70728         * m4/isnan.m4: New file.
70729
70730 2007-02-24  Bruno Haible  <bruno@clisp.org>
70731
70732         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70733         assume that an exponent fits in 20 bits.
70734
70735 2007-02-24  Jim Meyering  <jim@meyering.net>
70736
70737         * m4/regex.m4: Update the description of the configure-time option,
70738         --without-included-regex, to state accurately what the defaults are,
70739         and perhaps to give people an idea why using this option is risky.
70740
70741 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70744         loops on small arguments.  This attempts to avoid the problem
70745         Bruno Haible reported for AIX 4.3.2 in
70746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70747
70748 2007-02-23  Bruno Haible  <bruno@clisp.org>
70749
70750         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70751         Needed for help2man.
70752
70753 2007-02-23  Karl Berry  <karl@gnu.org>
70754
70755         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70756         exists, foo.h should be cvs-ignored, not committed.
70757
70758 2007-02-23  Eric Blake  <ebb9@byu.net>
70759
70760         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70761         * lib/stat-time.h (includes): Likewise.
70762         * lib/utimecmp.c (includes): Likewise.
70763         * lib/utimens.h (includes): Likewise.
70764         * lib/getdate.y (includes): Also include "timespec.h" for use
70765         internal to the module.
70766         * modules/utimens (Depends-on): Revert yesterday's patch.
70767         * modules/nanosleep (Depends-on): Add missing dependency.
70768
70769 2007-02-22  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/glob.c: Don't include getlogin_r.h.
70772
70773 2007-02-22  Jim Meyering  <jim@meyering.net>
70774
70775         * modules/utimens (Depends-on): Add timespec, required for
70776         utimens.h's inclusion of timespec.h.
70777
70778 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70781         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70782         Schwab in
70783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70784         I'll try to think of a better way to fix the Solaris problem.
70785
70786         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70787         like glibc; on Solaris 10, it fails with errno == EINVAL.
70788         POSIX says the behavior is unspecified if the first argument is NULL,
70789         so play it safe and never pass NULL to the system getcwd.
70790
70791 2007-02-21  Jim Meyering  <jim@meyering.net>
70792
70793         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70794         of gettimeofday.  It would conflict with the one now always
70795         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70796         an IRIX 6.5 build failure.
70797
70798 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         Minor fixups to port to Solaris 10 with Sun C 5.8.
70801         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70802         * modules/getcwd (Depends-on): Add dirfd.
70803         * lib/putenv.c (putenv): #undef it.
70804         (rpl_putenv): New decl.
70805         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70806
70807 2007-02-20  Bruno Haible  <bruno@clisp.org>
70808
70809         * modules/stdio-tests: New file.
70810         * tests/test-stdio.c: New file.
70811
70812         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70813         (Depends-on): Add stdio.
70814         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70815         (Include): Use <stdio.h> instead of vsnprintf.h.
70816         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70817         HAVE_DECL_VSNPRINTF.
70818         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70819
70820         * modules/snprintf (Files): Remove lib/snprintf.h.
70821         (Depends-on): Add stdio.
70822         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70823         (Include): Use <stdio.h> instead of snprintf.h.
70824         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70825         HAVE_DECL_SNPRINTF.
70826         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70827         * lib/getaddrinfo.c: Likewise.
70828
70829         * modules/stdio: New file.
70830         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70831         * lib/snprintf.h: Remove file.
70832         * lib/vsnprintf.h: Remove file.
70833         * lib/.cppi-disable: Remove snprintf.h.
70834         * m4/stdio_h.m4: New file.
70835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70836
70837 2007-02-20  Jim Meyering  <jim@meyering.net>
70838
70839         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70840         used by e.g., mingw.  From Bruno Haible.
70841
70842 2007-02-19  Bruno Haible  <bruno@clisp.org>
70843
70844         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70845         warnings.
70846         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70847
70848 2007-02-19  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70851         from mingw users.
70852
70853 2007-02-19  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70856         warnings.
70857         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70858
70859 2007-02-19  Jim Meyering  <jim@meyering.net>
70860
70861         Don't use FD after a successful "fdopendir (fd)".
70862         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70863         Reset it by calling dirfd on the just-obtained DIR*.
70864
70865         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70866         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70867
70868 2007-02-18  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/readlink.c: Include <unistd.h>.
70871         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70872         HAVE_READLINK.
70873         * modules/readlink (Depends-on): Add unistd.
70874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70875         (Include): Add <unistd.h>.
70876
70877         * lib/getlogin_r.h: Remove file.
70878         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70879         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70880         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70881         HAVE_DECL_GETLOGIN_R.
70882         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70884         (Include): Use <unistd.h> instead of getlogin_r.h.
70885
70886         * lib/getcwd.h: Remove file.
70887         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70888         * lib/xgetcwd.c: Likewise.
70889         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70890         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70891         * modules/getcwd (Files): Remove lib/getcwd.h.
70892         (Depends-on): Add unistd.
70893         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70894         (Include): Use <unistd.h> instad of getcwd.h.
70895
70896         * lib/ftruncate.c: Include <unistd.h> first.
70897         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70898         Set HAVE_FTRUNCATE.
70899         * modules/ftruncate (Depends-on): Add unistd.
70900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70901
70902         * lib/fchdir.c: Include <unistd.h> first.
70903         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70905         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70906         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70907         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70908
70909         * lib/dup2.c: Include <unistd.h> first.
70910         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70911         HAVE_DUP2.
70912         * modules/dup2 (Depends-on): Add unistd.
70913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70914
70915         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70916         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70917         REPLACE_CHOWN. Don't define chown as a macro here.
70918         * modules/chown (Depends-on): Add unistd.
70919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70920
70921         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70922         Add definition for GL_LINK_WARNING.
70923         (chown, dup2): New declarations.
70924         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70925         link warning.
70926         (ftruncate): New declaration.
70927         (getcwd): New declaration, taken from old getcwd.h.
70928         (getlogin_r): New declaration, taken from old getlogin_r.h.
70929         (readlink): New declaration.
70930         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70931         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70932         (gl_PREREQ_UNISTD): Remove macro.
70933         (gl_UNISTD_MODULE_INDICATOR): New macro.
70934         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70935         many new variables. Don't set UNISTD_H.
70936         * modules/unistd (Description): Change.
70937         (Depends-on): Add link-warning.
70938         (configure.ac): Update.
70939         (Makefile.am): Create unistd.h always. Substitute many new variables
70940         into it.
70941
70942 2007-02-18  Bruno Haible  <bruno@clisp.org>
70943
70944         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70945         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70946         HAVE_GETSUBOPT.
70947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70948         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70949         * lib/getsubopt.h: Remove file.
70950         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70951         (Depends-on): Add stdlib.
70952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70953         (Includes): Use <stdlib.h> instead of getsubopt.h.
70954         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70955         Set HAVE_GETSUBOPT.
70956         * lib/getsubopt.c: Don't include getsubopt.h.
70957
70958 2007-02-18  Bruno Haible  <bruno@clisp.org>
70959
70960         * modules/fchdir (Depends-on): Add dup2.
70961
70962 2007-02-18  Bruno Haible  <bruno@clisp.org>
70963
70964         * lib/stdlib_.h: Handle glibc's special invocation convention
70965         specially.
70966
70967 2007-02-18  Bruno Haible  <bruno@clisp.org>
70968
70969         * modules/stdlib-tests: New file.
70970         * tests/test-stdlib.c: New file.
70971
70972         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70973         (Depends-on): Add stdlib.
70974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70975         (Includes): Use <stdlib.h> instead of mkstemp.h.
70976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70977         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70978         * lib/mkstemp.c: Don't include mkstemp.h.
70979         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70980         * lib/stdlib--.h: Don't include mkstemp.h.
70981
70982         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70983         (Depends-on): Add stdlib.
70984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70985         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70986         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70987         HAVE_MKDTEMP.
70988         * lib/mkdtemp.c: Don't include mkdtemp.h.
70989         * lib/clean-temp.c: Don't include mkdtemp.h.
70990
70991         * modules/exit (Files): Remove lib/exit.h.
70992         (Depends-on): Add stdlib.
70993         (Makefile.am): Remove lib_SOURCES.
70994         (Include): Use <stdlib.h> instead of exit.h.
70995         * lib/argmatch.c: Don't include exit.h.
70996         * lib/execute.c: Likewise.
70997         * lib/pagealign_alloc.c: Likewise.
70998         * lib/pipe.c: Likewise.
70999         * lib/wait-process.c: Likewise.
71000         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71001         * lib/exitfail.c: Likewise.
71002         * lib/savewd.c: Likewise.
71003         * lib/xsetenv.c: Likewise.
71004
71005         * modules/stdlib: New file.
71006         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71007         and extra comments about mkstemp().
71008         * lib/exit.h: Remove file.
71009         * lib/mkdtemp.h: Remove file.
71010         * lib/mkstemp.h: Remove file.
71011         * m4/stdlib_h.m4: New file.
71012         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71013
71014 2007-02-18  Bruno Haible  <bruno@clisp.org>
71015
71016         * modules/math-tests: New file.
71017         * tests/test-math.c: New file.
71018
71019         * modules/math: New file.
71020         * modules/mathl (Files): Remove lib/mathl.h.
71021         (Depends-on): Add math.
71022         (Makefile.am): Don't mention mathl.h.
71023         (Include): Use <math.h> instead of mathl.h.
71024         * lib/math_.h: New file.
71025         * lib/mathl.h: Remove file.
71026         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71027         mathl.h.
71028         * lib/asinl.c: Likewise.
71029         * lib/atanl.c: Likewise.
71030         * lib/ceill.c: Likewise.
71031         * lib/cosl.c: Likewise.
71032         * lib/expl.c: Likewise.
71033         * lib/floorl.c: Likewise.
71034         * lib/frexpl.c: Likewise.
71035         * lib/ldexpl.c: Likewise.
71036         * lib/logl.c: Likewise.
71037         * lib/sincosl.c: Likewise.
71038         * lib/sinl.c: Likewise.
71039         * lib/sqrtl.c: Likewise.
71040         * lib/tanl.c: Likewise.
71041         * lib/trigl.c: Likewise.
71042         * m4/math_h.m4: New file.
71043         * MODULES.html.sh (Mathematics): Add math.
71044
71045 2007-02-17  Bruno Haible  <bruno@clisp.org>
71046
71047         * modules/wctype-tests: New file.
71048         * tests/test-wctype.c: New file.
71049
71050         * modules/wchar-tests: New file.
71051         * tests/test-wchar.c: New file.
71052
71053         * modules/unistd-tests: New file.
71054         * tests/test-unistd.c: New file.
71055
71056         * modules/time-tests: New file.
71057         * tests/test-time.c: New file.
71058
71059         * modules/sysexits-tests: New file.
71060         * tests/test-sysexits.c: New file.
71061
71062         * modules/sys_time-tests: New file.
71063         * tests/test-sys_time.c: New file.
71064
71065         * modules/sys_stat-tests: New file.
71066         * tests/test-sys_stat.c: New file.
71067
71068         * modules/sys_socket-tests: New file.
71069         * tests/test-sys_socket.c: New file.
71070
71071         * modules/sys_select-tests: New file.
71072         * tests/test-sys_select.c: New file.
71073
71074         * modules/string-tests: New file.
71075         * tests/test-string.c: New file.
71076
71077         * modules/stdbool-tests: New file.
71078         * tests/test-stdbool.c: New file.
71079
71080         * modules/netinet_in-tests: New file.
71081         * tests/test-netinet_in.c: New file.
71082
71083         * modules/inttypes-tests: New file.
71084         * tests/test-inttypes.c: New file.
71085
71086         * modules/fcntl-tests: New file.
71087         * tests/test-fcntl.c: New file.
71088
71089         * modules/byteswap-tests: New file.
71090         * tests/test-byteswap.c: New file.
71091
71092         * modules/arpa_inet-tests: New file.
71093         * tests/test-arpa_inet.c: New file.
71094
71095 2007-02-17  Bruno Haible  <bruno@clisp.org>
71096
71097         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71098         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71099         if the corresponding module is not enabled. Emit link warnings if
71100         the function is used nevertheless.
71101         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71102         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71103         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71104         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71105         * modules/inttypes (Depends-on): Add link-warning.
71106         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71107         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71108         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71109         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71110         * modules/imaxdiv (configure.ac): Likewise.
71111         * modules/strtoimax (configure.ac): Likewise.
71112         * modules/strtoumax (configure.ac): Likewise.
71113
71114 2007-02-17  Bruno Haible  <bruno@clisp.org>
71115
71116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71117         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71119         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71120
71121 2007-02-17  Bruno Haible  <bruno@clisp.org>
71122
71123         * modules/link-warning: New file.
71124         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71125         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71126         * modules/string (Depends-on): Add link-warning.
71127         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71128         string.h.
71129         * MODULES.html.sh (Support for building libraries and executables): Add
71130         link-warning.
71131
71132 2007-02-17  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71135         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71136         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71137         long lines.
71138
71139 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71140             Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/tmpfile: New file.
71143         * lib/tmpfile.c: New file.
71144         * m4/tmpfile.m4: New file.
71145         * MODULES.html.sh (func_all_modules): New section "Input/output".
71146
71147 2007-02-15  Bruno Haible  <bruno@clisp.org>
71148
71149         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71150         (supports_delete_on_close): New function.
71151         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71152
71153 2007-02-14  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/mbspcasecmp-tests: New file.
71156         * tests/test-mbspcasecmp.sh: New file.
71157         * tests/test-mbspcasecmp.c: New file.
71158
71159         New module mbspcasecmp.
71160         * modules/mbspcasecmp: New file.
71161         * lib/mbspcasecmp.c: New file.
71162         * lib/string_.h (strncasecmp): Change warning message.
71163         (mbspcasecmp): New declaration.
71164         * m4/mbspcasecmp.m4: New file.
71165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71166         GNULIB_MBSPCASECMP.
71167         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71168         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71169
71170 2007-02-14  Bruno Haible  <bruno@clisp.org>
71171
71172         * modules/mbsncasecmp-tests: New file.
71173         * tests/test-mbsncasecmp.sh: New file.
71174         * tests/test-mbsncasecmp.c: New file.
71175
71176         New module mbsncasecmp.
71177         * modules/mbsncasecmp: New file.
71178         * lib/mbsncasecmp.c: New file.
71179         * lib/string_.h (mbsncasecmp): New declaration.
71180         * m4/mbsncasecmp.m4: New file.
71181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71182         GNULIB_MBSNCASECMP.
71183         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71184         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71185
71186 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71189         Verify that it doesn't overlap with our flags.
71190         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71191         do not have the desired effect in multibyte locales; instead, use
71192         mbscasecmp.
71193         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71194         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71195         we don't require GNU fnmatch ourselves (if our users require it, they
71196         should do so explicitly).
71197
71198         Fix regex code so it doesn't rely on strcasecmp.
71199         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71200         Otherwise, include gnulib's langinfo.h.
71201         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71202         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71203         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71204         * modules/regex (FILES): Remove m4/codeset.m4.
71205         (Depends-on): Add localcharset.  Remove strcase.
71206
71207 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71208
71209         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71211
71212 2007-02-13  Bruno Haible  <bruno@clisp.org>
71213
71214         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71216
71217 2007-02-12  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71220         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71221         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71222         time warning rather than a link error.
71223
71224 2007-02-12  Bruno Haible  <bruno@clisp.org>
71225
71226         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71229
71230 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71233         args, not 2.
71234
71235 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         New module 'time', so that apps can include <time.h> as per
71238         POSIX and GNU instead of separate include files like time_r.h
71239         and timegm.h.  This implementation tries out a simpler approach
71240         for replacing decls in standard include files (as compared to
71241         the string module), somewhat as an experiment.
71242
71243         * config/srclist.txt: Comment out mktime.c for now.
71244         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71245         since it doesn't apply any more.  Use generic wording instead.
71246         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71247         'time'.
71248         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71249         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71250         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71251         Don't include <sys/types.h>; no longer needed since we assume C89.
71252         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71253         * lib/strftime.c: Likewise.
71254         * lib/time_r.c: Likewise.
71255         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71256         * lib/nanosleep.c: Include <time.h> first, to check interface.
71257         * lib/strptime.c: Likewise.
71258         * lib/time_r.c: Likewise.
71259         * lib/timegm.c: Likewise.
71260         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71261         needed.
71262         * lib/timegm.c: Don't include timegm.h; no longer needed.
71263         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71264         time.h now handles any problems in that area.
71265         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71266         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71267         that time.h defines struct timespec.
71268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71269         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71270         handles that.
71271         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71272         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71273         needed.  Set REPLACE_LOCALTIME.
71274         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71275         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71276         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71277         nanosleep; time_h.m4 now does that.  Don't require
71278         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71279         module handles this now.
71280         * modules/getdate (Depends-on): Remove timespec.  Add time.
71281         * modules/nanosleep (Depends-on): Likewise.
71282         * modules/stat-time (Depends-on): Likewise.
71283         * modules/nanosleep (Include): Include time.h, not timespec.h.
71284         * modules/strptime (Files): Remove lib/strptime.h.
71285         (Depends-on): Add extensions, time.
71286         (Include): Include time.h, not strptime.h.
71287         * modules/time_r (Files): Remove lib/time_r.h.
71288         (Depends-on): Add time.
71289         (Include): Include time.h, not time_r.h.
71290         * modules/timegm: Likewise.
71291         * modules/timespec (Description): Now does timespec-related decls
71292         of our own, instead of struct timespec itself.
71293         (Depends-on): Add time; remove extensions.
71294         (Maintainer): Add self.
71295         * modules/utimecmp (Depends-on): Add time; remove timespec.
71296         * modules/utimens (Depends-on): Likewise.
71297         * modules/xnanosleep (Depends-on): Likewise.
71298
71299 2007-02-11  Bruno Haible  <bruno@clisp.org>
71300
71301         * lib/c-strstr.c: Include allocsa.h.
71302         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71303         * lib/c-strcasestr.c: Include allocsa.h.
71304         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71305         * lib/strcasestr.c: Include allocsa.h.
71306         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71307         * lib/mbsstr.c: Include allocsa.h.
71308         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71309         allocsa/freesa instead of malloc/free.
71310         * lib/mbscasestr.c: Include allocsa.h.
71311         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71312         allocsa/freesa instead of malloc/free.
71313         * modules/c-strstr (Depends-on): Add allocsa.
71314         * modules/c-strcasestr (Depends-on): Likewise.
71315         * modules/strcasestr (Depends-on): Likewise.
71316         * modules/mbsstr (Depends-on): Likewise.
71317         * modules/mbscasestr (Depends-on): Likewise.
71318
71319 2007-02-11  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71322
71323         * modules/mbsspn-tests: New file.
71324         * tests/test-mbsspn.sh: New file.
71325         * tests/test-mbsspn.c: New file.
71326
71327 2007-02-11  Bruno Haible  <bruno@clisp.org>
71328
71329         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71330
71331         * modules/mbspbrk-tests: New file.
71332         * tests/test-mbspbrk.sh: New file.
71333         * tests/test-mbspbrk.c: New file.
71334
71335 2007-02-11  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71338         unneeded cast.
71339
71340         * modules/mbscspn-tests: New file.
71341         * tests/test-mbscspn.sh: New file.
71342         * tests/test-mbscspn.c: New file.
71343
71344 2007-02-11  Bruno Haible  <bruno@clisp.org>
71345
71346         * modules/mbscasecmp-tests: New file.
71347         * tests/test-mbscasecmp.sh: New file.
71348         * tests/test-mbscasecmp.c: New file.
71349
71350 2007-02-11  Bruno Haible  <bruno@clisp.org>
71351
71352         Ensure O(n) worst-case complexity of mbscasestr.
71353         * lib/mbscasestr.c: Include stdbool.h.
71354         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71355         functions.
71356         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71357         the bookkeeping indicates that it's worth it.
71358         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71359
71360         * modules/mbscasestr-tests: New file.
71361         * tests/test-mbscasestr1.c: New file.
71362         * tests/test-mbscasestr2.sh: New file.
71363         * tests/test-mbscasestr2.c: New file.
71364         * tests/test-mbscasestr3.sh: New file.
71365         * tests/test-mbscasestr3.c: New file.
71366         * tests/test-mbscasestr4.sh: New file.
71367         * tests/test-mbscasestr4.c: New file.
71368         * m4/locale-tr.m4: New file.
71369
71370 2007-02-11  Bruno Haible  <bruno@clisp.org>
71371
71372         Ensure O(n) worst-case complexity of mbsstr.
71373         * lib/mbsstr.c: Include stdbool.h.
71374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71375         functions.
71376         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71377         bookkeeping indicates that it's worth it.
71378         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71379
71380         * modules/mbsstr-tests: New file.
71381         * tests/test-mbsstr1.c: New file.
71382         * tests/test-mbsstr2.sh: New file.
71383         * tests/test-mbsstr2.c: New file.
71384         * tests/test-mbsstr3.sh: New file.
71385         * tests/test-mbsstr3.c: New file.
71386         * m4/locale-fr.m4: New file.
71387
71388 2007-02-11  Bruno Haible  <bruno@clisp.org>
71389
71390         * lib/mbsrchr.c (mbsrchr): Fix bug.
71391
71392         * modules/mbsrchr-tests: New file.
71393         * tests/test-mbsrchr.sh: New file.
71394         * tests/test-mbsrchr.c: New file.
71395
71396 2007-02-11  Bruno Haible  <bruno@clisp.org>
71397
71398         * lib/mbschr.c (mbschr): Fix bug.
71399
71400         * modules/mbschr-tests: New file.
71401         * tests/test-mbschr.sh: New file.
71402         * tests/test-mbschr.c: New file.
71403         * m4/locale-zh.m4: New file.
71404
71405 2007-02-11  Bruno Haible  <bruno@clisp.org>
71406
71407         Support for copying multibyte string iterators.
71408         * lib/mbiter.h: Include <string.h>.
71409         (mbiter_multi_copy): New function.
71410         (mbi_copy): New macro.
71411         * lib/mbuiter.h: Include <string.h>.
71412         (mbuiter_multi_copy): New function.
71413         (mbui_copy): New macro.
71414
71415 2007-02-11  Bruno Haible  <bruno@clisp.org>
71416
71417         New module mbslen.
71418         * modules/mbslen: New file.
71419         * lib/mbslen.c: New file.
71420         * lib/string_.h (mbslen): New declaration.
71421         * m4/mbslen.m4: New file.
71422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71423         GNULIB_MBSLEN.
71424         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71425         * MODULES.html.sh (Internationalization functions): Add mbslen.
71426
71427 2007-02-11  Bruno Haible  <bruno@clisp.org>
71428
71429         Ensure O(n) worst-case complexity of strcasestr substitute.
71430         * lib/strcasestr.c: Include stdbool.h.
71431         (knuth_morris_pratt): New function.
71432         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71433         bookkeeping indicates that it's worth it.
71434         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71435
71436         * modules/strcasestr-tests: New file.
71437         * tests/test-strcasestr.c: New file.
71438
71439 2007-02-11  Bruno Haible  <bruno@clisp.org>
71440
71441         Ensure O(n) worst-case complexity of c_strcasestr.
71442         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71443         (knuth_morris_pratt): New function.
71444         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71445         the bookkeeping indicates that it's worth it.
71446         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71447
71448         * modules/c-strcasestr-tests: New file.
71449         * tests/test-c-strcasestr.c: New file.
71450
71451 2007-02-11  Bruno Haible  <bruno@clisp.org>
71452
71453         Ensure O(n) worst-case complexity of c_strstr.
71454         * lib/c-strstr.c: Include stdbool.h, string.h.
71455         (knuth_morris_pratt): New function.
71456         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71457         bookkeeping indicates that it's worth it.
71458         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71459
71460         * lib/c-strstr.c: Complete rewrite for maintainability.
71461
71462         * modules/c-strstr-tests: New file.
71463         * tests/test-c-strstr.c: New file.
71464
71465 2007-02-11  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71468         5.2.1 and earlier, whereby \055 was treated just like the range
71469         delimiter '-'.
71470         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71471
71472 2007-02-08  Bruno Haible  <bruno@clisp.org>
71473
71474         * modules/regex (Depends-on): Add stdbool.
71475         Reported by Dalibor Topic <robilad@kaffe.org>.
71476
71477 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71480         Prefer returning from main to exiting from it.
71481         Remove unnecessary parens after sizeof.
71482
71483 2007-02-05  Bruno Haible  <bruno@clisp.org>
71484
71485         New module mbssep.
71486         * modules/mbssep: New file.
71487         * lib/mbssep.c: New file.
71488         * lib/string_.h (strsep): Add a conditional link warning.
71489         (mbssep): New declaration.
71490         * m4/mbssep.m4: New file.
71491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71492         GNULIB_MBSSEP.
71493         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71494         * MODULES.html.sh (Internationalization functions): Add mbssep.
71495
71496 2007-02-05  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71499         Optimize search in case of 1 delimiter.
71500
71501 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71502
71503         * lib/acl.h: Include sys/types.h before sys/acl.h.
71504
71505 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71506
71507         Merge upstream fix for glibc bugzilla #3957:
71508
71509         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71510
71511         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71512         bit for RE_HAT_LISTS_NOT_NEWLINE.
71513         (build_charclass_op): Remove bogus comment.
71514
71515 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71516
71517         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71518
71519 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71522         * lib/memmem.c [!defined _LIBC]: Include config.h.
71523
71524 2007-02-04  Bruno Haible  <bruno@clisp.org>
71525
71526         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71527         warning message.
71528
71529 2007-02-04  Bruno Haible  <bruno@clisp.org>
71530
71531         New module mbstok_r.
71532         * modules/mbstok_r: New file.
71533         * lib/mbstok_r.c: New file.
71534         * lib/string_.h (strtok_r): Change argument names to match the
71535         comments. Add a conditional link warning.
71536         (mbstok_r): New declaration.
71537         * m4/mbstok_r.m4: New file.
71538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71539         GNULIB_MBSTOK_R.
71540         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71541         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71542
71543 2007-02-04  Bruno Haible  <bruno@clisp.org>
71544
71545         New module mbsspn.
71546         * modules/mbsspn: New file.
71547         * lib/mbsspn.c: New file.
71548         * lib/string_.h (strspn): Add a conditional link warning.
71549         (mbsspn): New declaration.
71550         * m4/mbsspn.m4: New file.
71551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71552         GNULIB_MBSSPN.
71553         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71554         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71555
71556 2007-02-04  Bruno Haible  <bruno@clisp.org>
71557
71558         New module mbspbrk.
71559         * modules/mbspbrk: New file.
71560         * lib/mbspbrk.c: New file.
71561         * lib/string_.h (strpbrk): Add a conditional link warning.
71562         (mbspbrk): New declaration.
71563         * m4/mbspbrk.m4: New file.
71564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71565         GNULIB_MBSPBRK.
71566         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71567         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71568
71569 2007-02-04  Bruno Haible  <bruno@clisp.org>
71570
71571         New module mbscspn.
71572         * modules/mbscspn: New file.
71573         * lib/mbscspn.c: New file.
71574         * lib/string_.h (strcspn): Add a conditional link warning.
71575         (mbscspn): New declaration.
71576         * m4/mbscspn.m4: New file.
71577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71578         GNULIB_MBSCSPN.
71579         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71580         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71581
71582 2007-02-04  Bruno Haible  <bruno@clisp.org>
71583
71584         New module mbscasestr, reduced goal of strcasestr.
71585         * modules/mbscasestr: New file.
71586         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71587         (mbscasestr): Renamed from strcasestr.
71588         * lib/strcasestr.c: Don't include mbuiter.h.
71589         (strcasestr): Remove support for multibyte locales.
71590         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71591         Change the conditional link warning.
71592         (mbscasestr): New declaration.
71593         * m4/mbscasestr.m4: New file.
71594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71595         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71596         REPLACE_STRCASESTR.
71597         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71599         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71600         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71601         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71602         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71603         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71604         (Depends-on): Remove mbuiter.
71605         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71606
71607 2007-02-04  Bruno Haible  <bruno@clisp.org>
71608
71609         Simplify handling of strncasecmp.
71610         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71611         the conditional link warning.
71612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71613         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71614         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71615         * modules/strcase (configure.ac): Don't invoke
71616         gl_STRING_MODULE_INDICATOR.
71617         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71618
71619 2007-02-04  Bruno Haible  <bruno@clisp.org>
71620
71621         New module mbscasecmp, reduced goal of strcasecmp.
71622         * modules/mbscasecmp: New file.
71623         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71624         (mbscasecmp): Renamed from strcasecmp.
71625         * lib/strcasecmp.c: Don't include mbuiter.h.
71626         (strcasecmp): Remove support for multibyte locales.
71627         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71628         Change the conditional link warning.
71629         (mbscasecmp): New declaration.
71630         * m4/mbscasecmp.m4: New file.
71631         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71632         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71633         REPLACE_STRCASECMP.
71634         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71636         GNULIB_MBSCASECMP.
71637         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71638         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71639         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71640         (Depends-on): Remove mbuiter.
71641         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71642
71643 2007-02-04  Bruno Haible  <bruno@clisp.org>
71644
71645         New module mbsstr. Remove module strstr.
71646         * modules/mbsstr: New file.
71647         * modules/strstr: Remove file.
71648         * lib/mbsstr.c: Renamed from lib/strstr.c.
71649         (mbsstr): Renamed from strstr.
71650         * lib/string_.h (strstr): Remove declaration. Change the conditional
71651         link warning.
71652         (mbsstr): New declaration.
71653         * m4/mbsstr.m4: New file.
71654         * m4/strstr.m4: Remove file.
71655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71656         REPLACE_STRSTR.
71657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71658         Don't initialize GNULIB_STRSTR.
71659         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71660         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71661         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71662         (Support for systems lacking ANSI C 89): Remove strstr.
71663
71664 2007-02-04  Bruno Haible  <bruno@clisp.org>
71665
71666         New module mbsrchr.
71667         * modules/mbsrchr: New file.
71668         * lib/mbsrchr.c: New file.
71669         * lib/string_.h (strrchr): Add a conditional link warning.
71670         (mbsrchr): New declaration.
71671         * m4/mbsrchr.m4: New file.
71672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71673         GNULIB_MBSRCHR.
71674         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71675         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71676
71677 2007-02-04  Bruno Haible  <bruno@clisp.org>
71678
71679         New module mbschr.
71680         * modules/mbschr: New file.
71681         * lib/mbschr.c: New file.
71682         * lib/string_.h (strchr): Add a conditional link warning.
71683         (mbschr): New declaration.
71684         * m4/mbschr.m4: New file.
71685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71686         GNULIB_MBSCHR.
71687         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71688         * MODULES.html.sh (Internationalization functions): Add mbschr.
71689
71690 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71693
71694         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71695
71696 2007-02-04  Bruno Haible  <bruno@clisp.org>
71697
71698         New module description section 'configure.ac-early'.
71699         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71700         (func_get_autoconf_early_snippet): New function.
71701         (func_import, func_create_testdir): Use it. Remove special cases for
71702         modules 'extensions' and 'lock'.
71703         * modules/extensions (configure.ac-early): Require
71704         gl_USE_SYSTEM_EXTENSIONS.
71705         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71706
71707 2007-02-04  Bruno Haible  <bruno@clisp.org>
71708
71709         Make use of gcj-4.3's -fsource and -ftarget option.
71710         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71711         and if so try the options -fsource and -ftarget.
71712         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71713         source_version, ftarget_option, target_version arguments.
71714         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71715         (is_envjavac_oldgcj_14_14_usable): Renamed from
71716         is_envjavac_gcj_14_14_usable.
71717         (is_envjavac_oldgcj_14_13_usable): Renamed from
71718         is_envjavac_gcj_14_13_usable.
71719         (is_gcj_present): Update.
71720         (is_gcj_43, is_gcj43_usable): New functions.
71721         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71722         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71723         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71724         try the options -fsource and -ftarget.
71725
71726 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71729         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71730         larger value.
71731
71732 2007-02-03  Jim Meyering  <jim@meyering.net>
71733
71734         Give tools a better chance to allocate space for very large buffers.
71735         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71736
71737         Make pwd and readlink work also when run with an unreadable parent dir
71738         on systems with openat support.
71739         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71740         provided getcwd function, even when we have openat support.
71741         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71742
71743 2007-02-02  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71746         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71747         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71748         portability problems if one of these functions is only used on specific
71749         platforms.
71750         Reported by Paul Eggert.
71751
71752 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71755         is causing more trouble than it's curing.
71756         * lib/regex_internal.h (__mempcpy): Remove.
71757         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71758         (and make the code a tad smaller to boot).
71759         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71760
71761 2007-02-02  Jim Meyering  <jim@meyering.net>
71762
71763         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71764         section, not in the Makefile.am: one.
71765
71766 2007-02-02  Eric Blake  <ebb9@byu.net>
71767
71768         * lib/strchrnul.c: Always include config.h first.
71769
71770         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71771         gnulib strstr is not necessary here.
71772
71773 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71774
71775         * m4/socklen.m4: Fix typo.
71776
71777 2007-02-02  Eric Blake  <ebb9@byu.net>
71778
71779         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71780         * modules/netinet_in (Makefile.am): Likewise.
71781
71782 2007-02-01  Bruno Haible  <bruno@clisp.org>
71783
71784         * lib/string_.h (GL_LINK_WARNING): New macro.
71785         (strcasecmp, strstr, strcasestr): If provided by the system,
71786         conditionally define as a macro that leads to a warning instead of to
71787         an error.
71788         (strncasecmp): Conditionally define as a macro that leads to a warning.
71789
71790 2007-02-01  Karl Berry  <karl@gnu.org>
71791
71792         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71793
71794 2007-02-01  Bruno Haible  <bruno@clisp.org>
71795
71796         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71797         renamings.
71798
71799 2007-02-01  Eric Blake  <ebb9@byu.net>
71800
71801         * modules/regex (Depends-on): Revert dependence on mempcpy.
71802         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71803         module's definition of mempcpy.
71804         Reported by Paul Eggert.
71805
71806 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71809         the symbol XYZ before redefining it.  This fixes a problem with
71810         programs that don't use XYZ, when compiled on systems that define
71811         XYZ to something else.
71812
71813 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71816         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71817         writeable to group or other and (2) is intended to have a special
71818         mode bit that is set or cleared.  In such a case, the directory
71819         should be neither group- nor other-writeable until the special
71820         mode bits are right.
71821
71822 2007-01-31  Eric Blake  <ebb9@byu.net>
71823
71824         * modules/mountlist (Depends-on): Add strstr.
71825
71826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71827         bug.
71828         * modules/string (Makefile.am): Remove redundant replacement.
71829         * modules/regex (Depends-on): Add mempcpy.
71830
71831 2007-01-31  Bruno Haible  <bruno@clisp.org>
71832
71833         New module description field 'Link'.
71834         * gnulib-tool (func_usage): Document --extract-link-directive.
71835         (sed_extract_prog): Recognize 'Link' directive.
71836         (func_get_link_directive): New function.
71837         (func_import): Show summary of link directives.
71838         Handle --extract-link-directive option.
71839         * modules/acl (Link): New section.
71840         * modules/clock-time (Link): New section.
71841         * modules/euidaccess (Link): New section.
71842         * modules/gettext (Link): New section.
71843         * modules/iconv (Link): New section.
71844         * modules/lock (Link): New section.
71845         * modules/nanosleep (Link): New section.
71846         * modules/readline (Link): New section.
71847
71848 2007-01-27  Bruno Haible  <bruno@clisp.org>
71849
71850         Enforce the use of gnulib modules for unportable <string.h> functions.
71851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71852         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71853         (gl_HEADER_STRING_H_BODY): Require it.
71854         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71855         the symbol XYZ to one that gives a link error.
71856         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71857         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71858         * modules/mempcpy (configure.ac): Likewise.
71859         * modules/memrchr (configure.ac): Likewise.
71860         * modules/stpcpy (configure.ac): Likewise.
71861         * modules/stpncpy (configure.ac): Likewise.
71862         * modules/strcase (configure.ac): Likewise.
71863         * modules/strcasestr (configure.ac): Likewise.
71864         * modules/strchrnul (configure.ac): Likewise.
71865         * modules/strdup (configure.ac): Likewise.
71866         * modules/strndup (configure.ac): Likewise.
71867         * modules/strnlen (configure.ac): Likewise.
71868         * modules/strpbrk (configure.ac): Likewise.
71869         * modules/strsep (configure.ac): Likewise.
71870         * modules/strstr (configure.ac): Likewise.
71871         * modules/strtok_r (configure.ac): Likewise.
71872
71873 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71874
71875         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71876
71877 2007-01-30  Jim Meyering  <jim@meyering.net>
71878
71879         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71880
71881 2007-01-29  Bruno Haible  <bruno@clisp.org>
71882
71883         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71884         * lib/execute.c: Likewise.
71885         * lib/pipe.c: Likewise.
71886         * lib/printf-args.h: Likewise.
71887         * lib/printf-args.c: Likewise.
71888         * lib/printf-parse.c: Likewise.
71889         * lib/vasnprintf.c: Likewise.
71890
71891 2007-01-29  Eric Blake  <ebb9@byu.net>
71892
71893         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71894         declaration.
71895
71896 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/strptime.h (strptime): Use 'restrict' for args where
71899         POSIX requires this.
71900         * lib/strptime.c (strptime): Likewise.
71901         Change license notice from LGPL to GPL, since gnulib-tool will
71902         change this as needed.
71903         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71904         defined.
71905         Include "strptime.h" first, to check interface.
71906         Do not #undef _LIBC and _NL_CURRENT.
71907         Do not include <stdlib.h>; no longer needed.
71908         Include "time_r.h" and declare ptime_locale_status
71909         only if _LIBC is not defined.
71910         (__P): Remove unused macro.
71911         (match_string): Bring back glibc version, but use it only if _LIBC
71912         is defined.
71913         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71914         Remove unnecessary assertion and abort() call.
71915         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71916         * m4/strptime.m4: Fix serial number comment.
71917         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71918         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71919         (Depends-on): Add time_r.
71920
71921 2007-01-29  Bruno Haible  <bruno@clisp.org>
71922
71923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71924         strptime.
71925         * modules/strptime (Depends-on): Add stdbool.
71926         * lib/strptime.h: Include <time.h> always. Add comments.
71927
71928 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71929
71930         * modules/strptime: New file.
71931         * lib/strptime.h: New file.
71932         * lib/strptime.c: New file.
71933         * m4/strptime.m4: New file.
71934
71935 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * MODULES.html.sh: New module mpsort.
71938         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71939
71940         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71941         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71943         All uses changed.
71944         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71945         All uses changed.
71946         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71947         to _Restrict_.
71948         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71949         the parameter matches the prototype.
71950
71951 2007-01-28  Jim Meyering  <jim@meyering.net>
71952
71953         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71954         sys/time.h here, reverting that part of the previous patch:
71955         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71956
71957 2007-01-28  Bruno Haible  <bruno@clisp.org>
71958
71959         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71960         value of $(SYS_TIME_H).
71961         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71962         remove it conditionally, too. [added by Jim Meyering]
71963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71965         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71966         GETTIMEOFDAY_REPLACEMENT to 1.
71967
71968 2007-01-28  Bruno Haible  <bruno@clisp.org>
71969
71970         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71971         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71973         Set UNISTD_H instead of UNISTD_H2.
71974         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71975
71976 2007-01-28  Bruno Haible  <bruno@clisp.org>
71977
71978         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71979         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71980
71981 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71982
71983         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71984         (func_create_testdir): Ensure C locale for `grep' and `tr'
71985         character ranges.
71986         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71987         ACLOCAL_AMFLAGS parsing state machine.
71988
71989 2007-01-27  Bruno Haible  <bruno@clisp.org>
71990
71991         * modules/unistr/base: Update.
71992
71993 2007-01-27  Bruno Haible  <bruno@clisp.org>
71994
71995         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71996         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71997         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71998         modules/unistr/u32-mbtouc.
71999         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72000         * lib/unistr.h: Update.
72001         * lib/linebreak.c: Update.
72002         * modules/unistr/u32-mbtouc: Renamed from
72003         modules/unistr/u32-mbtouc-safe.
72004         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72005         * lib/unistr.h: Update.
72006         * lib/unistr/u32-to-u8.c: Update.
72007         * lib/unistr/u32-to-u16.c: Update.
72008
72009 2007-01-27  Bruno Haible  <bruno@clisp.org>
72010
72011         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72012         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72013         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72014         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72015         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72016         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72017         modules/unistr/u16-mbtouc.
72018         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72019         * lib/unistr.h: Update.
72020         * lib/linebreak.c: Update.
72021         * modules/linebreak: Update.
72022         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72023         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72024         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72025         * modules/unistr/u16-mbtouc: Renamed from
72026         modules/unistr/u16-mbtouc-safe.
72027         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72028         * lib/unistr.h: Update.
72029         * lib/unistr/u16-to-u8.c: Update.
72030         * modules/unistr/u16-to-u8: Update.
72031         * lib/unistr/u16-to-u32.c: Update.
72032         * modules/unistr/u16-to-u32: Update.
72033
72034 2007-01-27  Bruno Haible  <bruno@clisp.org>
72035
72036         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72037         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72038         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72039         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72040         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72041         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72042         modules/unistr/u8-mbtouc.
72043         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72044         * lib/unistr.h: Update.
72045         * lib/striconveh.c: Update.
72046         * modules/striconveh: Update.
72047         * lib/linebreak.c: Update.
72048         * modules/linebreak: Update.
72049         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72050         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72051         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72052         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72053         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72054         * lib/unistr.h: Update.
72055         * lib/striconveh.c: Update.
72056         * modules/striconveh: Update.
72057         * lib/unistr/u8-to-u16.c: Update.
72058         * modules/unistr/u8-to-u16: Update.
72059         * lib/unistr/u8-to-u32.c: Update.
72060         * modules/unistr/u8-to-u32: Update.
72061
72062 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72063
72064         Sync from Libtool.
72065         * lib/argz.c: Do not include strings.h nor memory.h, include
72066         string.h unconditionally.  Patch by Simon Josefsson.
72067
72068 2007-01-27  Bruno Haible  <bruno@clisp.org>
72069
72070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72071         from gl_HEADER_STRING_H_BODY.
72072         (gl_HEADER_STRING_H_BODY): Require it.
72073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72078         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72080         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72081         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72084         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72085         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72086         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72087         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72088
72089 2007-01-27  Bruno Haible  <bruno@clisp.org>
72090
72091         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72092         check_PROGRAMS into noinst_PROGRAMS.
72093         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72094         check_PROGRAMS in this case.
72095         (func_import): Set for_test to false.
72096         (func_create_testdir): Set for_test to true.
72097
72098 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72099             Bruno Haible  <bruno@clisp.org>
72100
72101         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72102         (Depends-on): Add string.
72103         (Includes): Use <string.h> instead of strcasestr.h.
72104         * modules/string (Makefile.am): Also substitute the value of
72105         REPLACE_STRCASESTR.
72106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72107         assume strcasestr is declared in <string.h> not <strings.h>. Also
72108         set REPLACE_STRCASESTR.
72109         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72110         REPLACE_STRCASESTR.
72111         * lib/strcasestr.h: Remove file.
72112         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72113         * lib/string_.h (strcasestr): New declaration.
72114
72115 2007-01-27  Bruno Haible  <bruno@clisp.org>
72116
72117         * lib/string_.h: Use 'extern'.
72118
72119 2007-01-27  Jim Meyering  <jim@meyering.net>
72120
72121         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72122         of set-but-not-used local, "q".
72123
72124         * lib/mempcpy.c: Include <config.h> before <string.h>.
72125         This fixes a compilation error on HP-UX, due to the system's
72126         "restrict"-using mempcpy prototype.
72127
72128 2007-01-26  Bruno Haible  <bruno@clisp.org>
72129
72130         Small optimization.
72131         * lib/javacomp.c: Include c-strstr.h.
72132          (is_envjavac_gcj): Use c_strstr instead of strstr.
72133         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72134
72135 2007-01-26  Bruno Haible  <bruno@clisp.org>
72136
72137         * MODULES.html.sh (Unicode string functions): Add the new modules.
72138
72139         * modules/uniconv/u32-strconv-to-locale: New file.
72140         * lib/uniconv/u32-strconv-to-locale.c: New file.
72141
72142         * modules/uniconv/u16-strconv-to-locale: New file.
72143         * lib/uniconv/u16-strconv-to-locale.c: New file.
72144
72145         * modules/uniconv/u8-strconv-to-locale: New file.
72146         * lib/uniconv/u8-strconv-to-locale.c: New file.
72147
72148         * modules/uniconv/u32-strconv-from-locale: New file.
72149         * lib/uniconv/u32-strconv-from-locale.c: New file.
72150
72151         * modules/uniconv/u16-strconv-from-locale: New file.
72152         * lib/uniconv/u16-strconv-from-locale.c: New file.
72153
72154         * modules/uniconv/u8-strconv-from-locale: New file.
72155         * lib/uniconv/u8-strconv-from-locale.c: New file.
72156
72157         * modules/uniconv/u32-strconv-to-enc: New file.
72158         * lib/uniconv/u32-strconv-to-enc.c: New file.
72159         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72160         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72161
72162         * modules/uniconv/u16-strconv-to-enc: New file.
72163         * lib/uniconv/u16-strconv-to-enc.c: New file.
72164         * lib/uniconv/u-strconv-to-enc.h: New file.
72165         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72166         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72167
72168         * modules/uniconv/u8-strconv-to-enc: New file.
72169         * lib/uniconv/u8-strconv-to-enc.c: New file.
72170         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72171         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72172
72173         * modules/uniconv/u32-strconv-from-enc: New file.
72174         * lib/uniconv/u32-strconv-from-enc.c: New file.
72175         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72176         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72177
72178         * modules/uniconv/u16-strconv-from-enc: New file.
72179         * lib/uniconv/u16-strconv-from-enc.c: New file.
72180         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72181         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72182
72183         * modules/uniconv/u8-strconv-from-enc: New file.
72184         * lib/uniconv/u8-strconv-from-enc.c: New file.
72185         * lib/uniconv/u-strconv-from-enc.h: New file.
72186         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72187         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72188
72189         * modules/uniconv/u32-conv-from-enc: New file.
72190         * lib/uniconv/u32-conv-from-enc.c: New file.
72191         * modules/uniconv/u32-conv-from-enc-tests: New file.
72192         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72193
72194         * modules/uniconv/u16-conv-from-enc: New file.
72195         * lib/uniconv/u16-conv-from-enc.c: New file.
72196         * lib/uniconv/u-conv-from-enc.h: New file.
72197         * modules/uniconv/u16-conv-from-enc-tests: New file.
72198         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72199
72200         * modules/uniconv/u8-conv-from-enc: New file.
72201         * lib/uniconv/u8-conv-from-enc.c: New file.
72202         * modules/uniconv/u8-conv-from-enc-tests: New file.
72203         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72204
72205         * modules/uniconv/base: New file.
72206         * lib/uniconv.h: New file.
72207
72208 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * doc/gnulib-tool.texi (Initial import): Update to match current
72211         behavior with strdup module.
72212         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72213         * lib/memmem.h: Remove; all uses removed.  This is now done
72214         by <string.h>.
72215         * lib/mempcpy.h: Likewise.
72216         * lib/memrchr.h: Likewise.
72217         * lib/stpcpy.h: Likewise.
72218         * lib/stpncpy.h: Likewise.
72219         * lib/strcase.h: Likewise.
72220         * lib/strchrnul.h: Likewise.
72221         * lib/strdup.h: Likewise.
72222         * lib/strndup.h: Likewise.
72223         * lib/strnlen.h: Likewise.
72224         * lib/strpbrk.h: Likewise.
72225         * lib/strsep.h: Likewise.
72226         * lib/strstr.h: Likewise.
72227         * lib/strtok_r.h: Likewise.
72228         * lib/string_.h: New file.
72229         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72230         Rely on <string.h> instead.
72231         * lib/canon-host.c: Likewise.
72232         * lib/chdir-long.c: Likewise.
72233         * lib/concatpath.c: Likewise.
72234         * lib/exclude.c: Likewise.
72235         * lib/fchdir.c: Likewise.
72236         * lib/getaddrinfo.c: Likewise.
72237         * lib/getcwd.c: Likewise.
72238         * lib/getsubopt.c: Likewise.
72239         * lib/glob.c: Likewise.
72240         * lib/hard-locale.c: Likewise.
72241         * lib/iconvme.c: Likewise.
72242         * lib/javacomp.c: Likewise.
72243         * lib/mempcpy.c: Likewise.
72244         * lib/memrchr.c: Likewise.
72245         * lib/regex_internal.h: Likewise.
72246         * lib/stpncpy.c: Likewise.
72247         * lib/strcasecmp.c: Likewise.
72248         * lib/strchrnul.c: Likewise.
72249         * lib/strdup.c: Likewise.
72250         * lib/striconv.c: Likewise.
72251         * lib/striconveh.c: Likewise.
72252         * lib/striconveha.c: Likewise.
72253         * lib/strncasecmp.c: Likewise.
72254         * lib/strndup.c: Likewise.
72255         * lib/strnlen.c: Likewise.
72256         * lib/strsep.c: Likewise.
72257         * lib/strstr.c: Likewise.
72258         * lib/strtok_r.c: Likewise.
72259         * lib/userspec.c: Likewise.
72260         * lib/w32spawn.h: Likewise.
72261         * lib/xstrndup.c: Likewise.
72262         * lib/mountlist.c (strstr): Remove decl.
72263         * m4/string_h.m4: New file.
72264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72268         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72269         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72270         Set REPLACE_STRCASECMP if necessary.
72271         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72272         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72273         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72274         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72275         HAVE_DECL_STRDUP if necessary.
72276         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72277         since gl_FUNC_STRNDUP does that now.
72278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72279         Check for decl here...
72280         (gl_PREREQ_STRNLEN): ... not here.
72281         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72282         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72283         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72284         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72285         necessary.
72286         * modules/string: New file.
72287         * modules/memmem (Files): Remove special-purpose include file.
72288         (Depends-on): Add string.
72289         (Include): Include <string.h>, not the removed file.
72290         * modules/mempcpy: Likewise.
72291         * modules/memrchr: Likewise.
72292         * modules/stpcpy: Likewise.
72293         * modules/stpncpy: Likewise.
72294         * modules/strcase: Likewise.
72295         * modules/strchrnul: Likewise.
72296         * modules/strdup: Likewise.
72297         * modules/strndup: Likewise.
72298         * modules/strnlen: Likewise.
72299         * modules/strpbrk: Likewise.
72300         * modules/strsep: Likewise.
72301         * modules/strstr: Likewise.
72302         * modules/strtok_r: Likewise.
72303         * tests/test-dirname.c: Don't include "strdup.h", since
72304         <string.h> now suffices.
72305         * tests/test-memmem.c: Don't include "memmem.h", since
72306         <string.h> now suffices.
72307
72308 2007-01-25  Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72311         *resultp is 0.
72312
72313         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72314         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72315         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72316         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72317
72318         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72319         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72320         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72321         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72322         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72323         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72324
72325 2007-01-24  Bruno Haible  <bruno@clisp.org>
72326
72327         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72329         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72330         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72331         gl_FUNC_FTS_CORE.
72332         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72333         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72335         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72336         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72337         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72338         gl_FUNC_FCHOWNAT.
72339         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72340         gl_FUNC_STRFTIME.
72341         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72342         Reported by Ralf Wildenhues.
72343
72344 2007-01-24  Bruno Haible  <bruno@clisp.org>
72345
72346         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72347         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72348         gl_GETADDRINFO.
72349         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72350         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72351         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72352
72353 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72356         Don't use 'exit'; just return from 'main'.
72357         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72358
72359         * lib/fnmatch_.h: Readjust white space and comments to match
72360         glibc, to avoid spurious diffs.
72361
72362 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72365         2004-12-01 change by Jakub Jelinek, since this code won't compile
72366         if !LIBC.  Problem reported by Bob Proulx.
72367
72368 2007-01-23  Bruno Haible  <bruno@clisp.org>
72369
72370         * lib/striconveh.c: Include c-strcaseeq.h.
72371         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72372         * modules/striconveh (Depends-on): Add c-strcaseeq.
72373
72374 2007-01-23  Bruno Haible  <bruno@clisp.org>
72375
72376         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72377
72378         * modules/c-strcaseeq: New file.
72379         * lib/c-strcaseeq.h: New file.
72380
72381         * modules/streq: New file.
72382         * lib/streq.h: New file.
72383
72384 2007-01-23  Bruno Haible  <bruno@clisp.org>
72385
72386         * modules/striconveha-tests: New file.
72387         * tests/test-striconveha.c: New file.
72388
72389         * lib/striconveha.h: Include <stdbool.h>.
72390         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72391         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72392         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72393         (mem_iconveha): New function.
72394         (str_iconveha_notranslit): Renamed from str_iconveha.
72395         (str_iconveha): New function.
72396         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72397         c-strcase.
72398
72399 2007-01-23  Bruno Haible  <bruno@clisp.org>
72400
72401         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72402         encodings without forgiving before trying any encoding with handler.
72403         (str_iconveha): Try all encodings without forgiving before trying any
72404         encoding with handler.
72405
72406 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         Import the following changes from libc.
72409
72410         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72411
72412         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72413
72414         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72415
72416         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72417         normal_bracket label.
72418
72419         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72420
72421         [BZ #361]
72422         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72423         to normal_bracket after fetching the next character.
72424
72425 2007-01-22  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72428         argument.
72429         * lib/striconveh.c (iconv_carefully_1): New function.
72430         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72431         argument.
72432         (str_cd_iconveh): Update.
72433         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72434         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72435         * tests/test-striconveh.c (MAGIC): New macro.
72436         (new_offsets): New function.
72437         (main): Test call with and without offsets.
72438
72439 2007-01-22  Bruno Haible  <bruno@clisp.org>
72440
72441         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72442         * modules/sys_select (Makefile.am): Likewise.
72443         * modules/sys_socket (Makefile.am): Likewise.
72444         * modules/sys_time (Makefile.am): Likewise.
72445
72446 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * modules/gettimeofday (License): Change from GPL to LGPL, since
72449         gettimeofday is a library function.
72450
72451 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72452
72453         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72454
72455 2007-01-21  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72458
72459 2007-01-21  Bruno Haible  <bruno@clisp.org>
72460
72461         * modules/striconveha: New file.
72462         * lib/striconveha.h: New file.
72463         * lib/striconveha.c: New file.
72464         * MODULES.html.sh (Internationalization functions): Add striconveha.
72465         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72466         string.
72467         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72468
72469 2007-01-21  Bruno Haible  <bruno@clisp.org>
72470
72471         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72472         * lib/striconveh.c (str_iconveh): Likewise.
72473
72474 2007-01-21  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/striconveh.h (mem_iconveh): New declaration.
72477         * lib/striconveh.c (mem_iconveh): New function.
72478         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72479
72480 2007-01-21  Bruno Haible  <bruno@clisp.org>
72481
72482         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72483
72484         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72485         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72486         original result buffer.
72487         (str_cd_iconveh): Update.
72488         * tests/test-striconveh.c (main): Update.
72489
72490         * lib/striconv.h (mem_cd_iconv): Change specification.
72491         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72492         result buffer.
72493         (str_cd_iconv): Update.
72494         * tests/test-striconv.c (main): Update.
72495
72496 2007-01-21  Bruno Haible  <bruno@clisp.org>
72497
72498         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72499
72500 2007-01-20  Jim Meyering  <jim@meyering.net>
72501
72502         * lib/userspec.c (parse_with_separator): If a user or group string
72503         starts with "+", skip the corresponding name-to-ID look-up, since
72504         such a look-up must fail: user and group names may not include "+".
72505
72506 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72509         since we now assume the sys_time module.
72510         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72511         check for sys/time.h; no longer needed.
72512         * modules/poll (Depends-on): Depend on sys_time.
72513
72514 2007-01-18  Bruno Haible  <bruno@clisp.org>
72515
72516         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72517         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72518
72519         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72520         gettimeofday.
72521
72522         * tests/test-gettimeofday.c: Include <time.h>.
72523         (dummy): Remove variable.
72524
72525         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72526         gl_HEADER_SYS_TIME_H.
72527         (gl_HEADER_SYS_TIME_H): New macro.
72528
72529         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72530         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72531         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72532         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72533         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72535         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72536         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72537         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72538         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72539         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72540
72541         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72542         last change; it caused a compilation error when cross-compiling to
72543         Cygwin.
72544
72545 2007-01-18  Jim Meyering  <jim@meyering.net>
72546
72547         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72548         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72549         than the race-prone "test -d sys || mkdir sys".
72550         (configure.ac): Use AC_PROG_MKDIR_P.
72551         * modules/sys_select: Likewise.
72552         * modules/sys_socket: Likewise.
72553         * modules/sys_time: Likewise.
72554
72555 2007-01-18  Eric Blake  <ebb9@byu.net>
72556
72557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72558         replace gettimeofday.
72559         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72560         name, to avoid infinite recursion.
72561
72562 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72565         module sys_time.
72566         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72567         assume timespec.h defines struct timeval.
72568         * lib/settime.c: Likewise.
72569         * lib/utimens.c: Likewise.
72570         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72571         since we now assume the gettimeofday module.
72572         * lib/tempname.c (__gen_tempname): Likewise.
72573         * lib/gettimeofday.h: Remove.
72574         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72575         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72576         Include <time.h>, for 'time()'.
72577         (localtime_buffer_addr): Also use this workaround if
72578         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72579         to simplify the uses.  All uses changed.
72580         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72581         that #undef is inside {}, and 'const' follows type name consistently.
72582         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72583         (gettimeofday): Do not use the maximum possible value for
72584         tv->tv_usec, since that might break usages other than ls.c.
72585         Instead, we'll leave ls.c alone.  This undoes today's patch
72586         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72587         we've never observed the problem but might as well keep the
72588         canary.
72589         * lib/nanosleep.c: Include timespec.h first, for interface check.
72590         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72591         now assume the sys_time module.
72592         * lib/tempname.c: Likewise.
72593         * lib/timespec.h: Likewise.
72594         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72595         needed.
72596         * lib/strftime.c: Likewise.
72597         * lib/timespec.h: Likewise.
72598         * lib/posixtm.c: Include posixtm.h first, for interface check.
72599         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72600         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72601         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72602         * lib/sys_time_.h: New file.
72603         * lib/timespec.h (struct timespec): Use long int, not long.
72604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72605         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72606         Remove obsolescent call to AC_HEADER_TIME.
72607         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72609         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72610         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72611         Likewise.
72612         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72613         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72615         into the sys_time module.  Check for gettimeofday just once.
72616         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72617         for gettimeofday signature to just check the signature.  Merely
72618         compile it, since linking doesn't test signature.  Improve test for
72619         whether gettimeofday.o is actually needed.
72620         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72621         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72622         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72623         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72624         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72625         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72626         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72627         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72628         than worrying about sys/time.h.
72629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72630         Don't bother worrying about TIME_WITH_SYS_TIME.
72631         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72632         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72633         * m4/sys_time_h.m4: New file.
72634         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72635         Don't include sys/time.h.  Return from main rather than exiting.
72636         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72637         all uses changed.
72638         * modules/gethrxtime (Depends-on): Add sys_time.
72639         * modules/gettime (Depends-on): Likewise.
72640         * modules/gettimeofday (Depends-on): Likewise.
72641         * modules/nanosleep (Depends-on): Likewise.
72642         * modules/settime (Depends-on): Likewise.
72643         * modules/tempname (Depends-on): Likewise.
72644         * modules/utimens (Depends-on): Likewise.
72645         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72646         (Include): Change back to <sys/time.h>.
72647         (Maintainer): Add self.
72648         * modules/sys_time: New file.
72649         * modules/tempname (Depends-on): Add gettimeofday.
72650         * tests/test-gettimeofday.c: Include <sys/time.h>
72651         rather than gettimeofday.h.
72652
72653 2007-01-17  Bruno Haible  <bruno@clisp.org>
72654
72655         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72656         the license default to GPL.
72657         (func_create_testdir): Don't complain if a module is LGPL and its
72658         tests module depends on GPLed modules.
72659
72660 2007-01-17  Bruno Haible  <bruno@clisp.org>
72661
72662         * lib/gettimeofday.c (gettimeofday): Add code for the case
72663         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72664         maximum possible value for tv->tv_usec, rather than the minimum one.
72665
72666 2005-10-08  Martin Lambers  <marlam@marlam.de>
72667 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72668 2007-01-16  Bruno Haible  <bruno@clisp.org>
72669
72670         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72671         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72672         gl_FUNC_GETTIMEOFDAY.
72673         (Include): Add gettimeofday.h.
72674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72675         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72676         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72677         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72678         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72679         * lib/gettimeofday.h: New file.
72680         * lib/gettimeofday.c: Include <sys/timeb.h>.
72681         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72682         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72683         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72684         fall back on time().
72685
72686         * tests/test-gettimeofday.c: New file.
72687         * modules/gettimeofday-tests: New file.
72688
72689 2007-01-16  Eric Blake  <ebb9@byu.net>
72690
72691         * modules/fnmatch (Depends-on): Depend on wchar.
72692         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72693         * m4/fnmatch.m4: Likewise.
72694         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72695         * m4/mbchar.m4: Likewise.
72696         * modules/mbswidth (Depends-on): Depend on wchar.
72697         * lib/mbswidth.c: Assume <wchar.h>.
72698         * m4/mbswidth.m4: Likewise.
72699         * modules/quotearg (Depends-on): Depend on wchar.
72700         * lib/quotearg.c: Assume <wchar.h>.
72701         * m4/quotearg.m4: Likewise.
72702         * modules/regex (Depends-on): Depend on wchar.
72703         * lib/regex_internal.h: Assume <wchar.h>.
72704         * m4/regex.m4: Likewise.
72705         * modules/stdint (Depends-on): Depend on wchar.
72706         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72707         * m4/stdint.m4: Likewise.
72708         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72709         * modules/strftime (Depends-on): Depend on wchar.
72710         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72711         * modules/strtol (Depends-on): Depend on wchar.
72712         * lib/strtol.c: Assume <wchar.h>.
72713         * modules/wcwidth (Depends-on): Depend on wchar.
72714         * lib/wcwidth.h: Assume <wchar.h>.
72715         * m4/wcwidth.m4: Likewise.
72716
72717 2007-01-16  Bruno Haible  <bruno@clisp.org>
72718
72719         * modules/csharpexec-script: New, created from...
72720         * modules/csharpexec: ... this.
72721
72722 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72723
72724         * modules/javaexec-script: New, created from...
72725         * modules/javaexec: ... this.
72726
72727 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72728
72729         * modules/poll (Dependencies): Add sys_select.
72730
72731 2007-01-15  Jim Meyering  <jim@meyering.net>
72732
72733         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72734         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72735         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72736         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72737
72738 2007-01-15  Bruno Haible  <bruno@clisp.org>
72739
72740         * modules/striconveh: New file.
72741         * lib/striconveh.h: New file.
72742         * lib/striconveh.c: New file.
72743         * MODULES.html.sh (Internationalization functions): Add striconveh.
72744
72745         * modules/striconveh-tests: New file.
72746         * tests/test-striconveh.c: New file.
72747
72748 2007-01-15  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72751         not from GNU libiconv or GNU libc.
72752
72753 2007-01-15  Bruno Haible  <bruno@clisp.org>
72754
72755         * doc/gnulib-intro.texi (Copyright): Explain the different license
72756         terms for module descriptions, autoconf macros, tests, documentation.
72757
72758 2007-01-14  Bruno Haible  <bruno@clisp.org>
72759
72760         * modules/striconv-tests: New file.
72761         * tests/test-striconv.c: New file.
72762
72763 2007-01-14  Bruno Haible  <bruno@clisp.org>
72764
72765         * modules/iconv-tests: New file.
72766         * tests/test-iconv.c: New file.
72767
72768 2007-01-14  Bruno Haible  <bruno@clisp.org>
72769
72770         * gnulib-tool (func_get_license): For test modules, use the license of
72771         the main module.
72772
72773 2007-01-14  Bruno Haible  <bruno@clisp.org>
72774
72775         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72776         if iconv is found to exist.
72777
72778 2007-01-14  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/c-ctype-tests: New file.
72781         * tests/test-c-ctype.c: New file.
72782
72783 2007-01-14  Bruno Haible  <bruno@clisp.org>
72784
72785         * modules/binary-io-tests: New file.
72786         * tests/test-binary-io.sh: New file.
72787         * tests/test-binary-io.c: New file.
72788
72789 2007-01-14  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/array-oset-tests: New file.
72792         * tests/test-array_oset.c: New file.
72793
72794 2007-01-14  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/array-list-tests: New file.
72797         * tests/test-array_list.c: New file.
72798
72799 2007-01-14  Bruno Haible  <bruno@clisp.org>
72800
72801         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72802         and make.
72803         Reported by Simon Josefsson in
72804         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72805
72806 2007-01-14  Bruno Haible  <bruno@clisp.org>
72807
72808         * modules/allocsa-tests: New file.
72809         * tests/test-allocsa.c: New file.
72810
72811 2007-01-14  Bruno Haible  <bruno@clisp.org>
72812
72813         * modules/fchdir (Depends-on): Add absolute-header.
72814         * modules/unistd (Depends-on): Likewise.
72815
72816 2006-12-30  Bruno Haible  <bruno@clisp.org>
72817
72818         * modules/fchdir: New file.
72819         * modules/unistd (Files): Add lib/unistd_.h.
72820         (Makefile.am): Generate unistd.h from unistd_.h.
72821         * lib/fchdir.c: New file.
72822         * lib/dirent_.h: New file.
72823         * lib/unistd_.h: New file.
72824         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72825         * m4/fchdir.m4: New file.
72826         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72827         (gl_HEADER_UNISTD): Invoke it.
72828         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72829         function.
72830         * lib/backupfile.c (opendir, closedir): Undefine.
72831         * lib/chown.c (open, close): Undefine.
72832         * lib/clean-temp.c (open, close): Undefine.
72833         * lib/copy-file.c (open, close): Undefine.
72834         * lib/execute.c (open, close): Undefine.
72835         * lib/fsusage.c (open, close): Undefine.
72836         * lib/gc-gnulib.c (open, close): Undefine.
72837         * lib/getcwd.c (opendir, closedir): Undefine.
72838         * lib/glob.c (opendir, closedir): Undefine.
72839         * lib/javacomp.c (open, close): Undefine.
72840         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72841         * lib/openat-proc.c (open, close): Undefine.
72842         * lib/pagealign_alloc.c (open, close): Undefine.
72843         * lib/pipe.c (open, close): Undefine.
72844         * lib/progreloc.c (open, close): Undefine.
72845         * lib/savedir.c (opendir, closedir): Undefine.
72846         * lib/utime.c (open, close): Undefine.
72847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72848
72849 2007-01-10  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72852
72853 2007-01-12  Eric Blake  <ebb9@byu.net>
72854
72855         Provide a robust <wchar.h>.  Further simplifications are now
72856         possible in other modules, but not included here.
72857         * modules/wchar: New module.
72858         * m4/wchar.m4: New file.
72859         * lib/wchar_.h: Likewise.
72860         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72861         of the new module.
72862         * MODULES.html.sh (Extended multibyte and wide character utilities):
72863         New section.
72864
72865 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72868         to a reasonable default for memory allocation.
72869         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72870         file system that reports garbage st_size values for symlinks.
72871         Problem reported by Liyang Hu.
72872
72873 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72874
72875         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72876         Emacs .#* auto-save files).
72877
72878 2007-01-11  Bruno Haible  <bruno@clisp.org>
72879
72880         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72881         directory.
72882
72883 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         Use @...@ consistently in lib/wctype_.h.
72886         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72887         on it being set to 1 or 0.
72888         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72889         go back to AC_SUBSTing it.
72890         * modules/wctype (Makefile.am): Undo previous change.
72891
72892 2007-01-10  Eric Blake  <ebb9@byu.net>
72893
72894         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72895         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72896         * modules/wctype (Makefile.am): Likewise.
72897         Reported by Chris McGuire.
72898
72899 2007-01-10  Jim Meyering  <jim@meyering.net>
72900
72901         fts.c: a small readability/maintainability improvement
72902         * lib/fts.c (fts_read): Make this code slightly more readable and
72903         maintainable by hoisting the "sp->fts_cur = p" assignments to
72904         immediately follow the statements that set P.  Derived from
72905         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72906
72907 2007-01-10  Eric Blake  <ebb9@byu.net>
72908
72909         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72910         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72913         Reported by Chris McGuire.
72914
72915 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72916
72917         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72918         in sed script.
72919
72920 2007-01-09  Bruno Haible  <bruno@clisp.org>
72921
72922         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72923         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72924         variables.
72925         (func_module): Use them.
72926
72927 2007-01-09  Bruno Haible  <bruno@clisp.org>
72928
72929         * modules/unistr/base: New file.
72930         * lib/unistr.h: New file.
72931
72932         * modules/unistr/u8-to-u16: New file.
72933         * lib/unistr/u8-to-u16.c: New file.
72934
72935         * modules/unistr/u8-to-u32: New file.
72936         * lib/unistr/u8-to-u32.c: New file.
72937
72938         * modules/unistr/u16-to-u8: New file.
72939         * lib/unistr/u16-to-u8.c: New file.
72940
72941         * modules/unistr/u16-to-u32: New file.
72942         * lib/unistr/u16-to-u32.c: New file.
72943
72944         * modules/unistr/u32-to-u8: New file.
72945         * lib/unistr/u32-to-u8.c: New file.
72946
72947         * modules/unistr/u32-to-u16: New file.
72948         * lib/unistr/u32-to-u16.c: New file.
72949
72950         * modules/unistr/u8-check: New file.
72951         * modules/unistr/u16-check: New file.
72952         * modules/unistr/u32-check: New file.
72953         * lib/unistr/u8-check.c: New file.
72954         * lib/unistr/u16-check.c: New file.
72955         * lib/unistr/u32-check.c: New file.
72956
72957         * modules/unistr/u8-chr: New file.
72958         * modules/unistr/u16-chr: New file.
72959         * modules/unistr/u32-chr: New file.
72960         * lib/unistr/u8-chr.c: New file.
72961         * lib/unistr/u16-chr.c: New file.
72962         * lib/unistr/u32-chr.c: New file.
72963
72964         * modules/unistr/u8-cmp: New file.
72965         * modules/unistr/u16-cmp: New file.
72966         * modules/unistr/u32-cmp: New file.
72967         * lib/unistr/u8-cmp.c: New file.
72968         * lib/unistr/u16-cmp.c: New file.
72969         * lib/unistr/u32-cmp.c: New file.
72970
72971         * modules/unistr/u8-cpy: New file.
72972         * modules/unistr/u16-cpy: New file.
72973         * modules/unistr/u32-cpy: New file.
72974         * lib/unistr/u8-cpy.c: New file.
72975         * lib/unistr/u16-cpy.c: New file.
72976         * lib/unistr/u32-cpy.c: New file.
72977         * lib/unistr/u-cpy.h: New file.
72978
72979         * modules/unistr/u8-cpy-alloc: New file.
72980         * modules/unistr/u16-cpy-alloc: New file.
72981         * modules/unistr/u32-cpy-alloc: New file.
72982         * lib/unistr/u8-cpy-alloc.c: New file.
72983         * lib/unistr/u16-cpy-alloc.c: New file.
72984         * lib/unistr/u32-cpy-alloc.c: New file.
72985         * lib/unistr/u-cpy-alloc.h: New file.
72986
72987         * modules/unistr/u8-endswith: New file.
72988         * modules/unistr/u16-endswith: New file.
72989         * modules/unistr/u32-endswith: New file.
72990         * lib/unistr/u8-endswith.c: New file.
72991         * lib/unistr/u16-endswith.c: New file.
72992         * lib/unistr/u32-endswith.c: New file.
72993         * lib/unistr/u-endswith.h: New file.
72994
72995         * modules/unistr/u8-mblen: New file.
72996         * modules/unistr/u16-mblen: New file.
72997         * modules/unistr/u32-mblen: New file.
72998         * lib/unistr/u8-mblen.c: New file.
72999         * lib/unistr/u16-mblen.c: New file.
73000         * lib/unistr/u32-mblen.c: New file.
73001
73002         * modules/unistr/u8-mbtouc: New file.
73003         * modules/unistr/u16-mbtouc: New file.
73004         * modules/unistr/u32-mbtouc: New file.
73005         * lib/unistr/u8-mbtouc.c: New file.
73006         * lib/unistr/u16-mbtouc.c: New file.
73007         * lib/unistr/u32-mbtouc.c: New file.
73008
73009         * modules/unistr/u8-mbtouc-safe: New file.
73010         * modules/unistr/u16-mbtouc-safe: New file.
73011         * modules/unistr/u32-mbtouc-safe: New file.
73012         * lib/unistr/u8-mbtouc-safe.c: New file.
73013         * lib/unistr/u16-mbtouc-safe.c: New file.
73014         * lib/unistr/u32-mbtouc-safe.c: New file.
73015
73016         * modules/unistr/u8-move: New file.
73017         * modules/unistr/u16-move: New file.
73018         * modules/unistr/u32-move: New file.
73019         * lib/unistr/u8-move.c: New file.
73020         * lib/unistr/u16-move.c: New file.
73021         * lib/unistr/u32-move.c: New file.
73022         * lib/unistr/u-move.h: New file.
73023
73024         * modules/unistr/u8-next: New file.
73025         * modules/unistr/u16-next: New file.
73026         * modules/unistr/u32-next: New file.
73027         * lib/unistr/u8-next.c: New file.
73028         * lib/unistr/u16-next.c: New file.
73029         * lib/unistr/u32-next.c: New file.
73030
73031         * modules/unistr/u8-prev: New file.
73032         * modules/unistr/u16-prev: New file.
73033         * modules/unistr/u32-prev: New file.
73034         * lib/unistr/u8-prev.c: New file.
73035         * lib/unistr/u16-prev.c: New file.
73036         * lib/unistr/u32-prev.c: New file.
73037
73038         * modules/unistr/u8-set: New file.
73039         * modules/unistr/u16-set: New file.
73040         * modules/unistr/u32-set: New file.
73041         * lib/unistr/u8-set.c: New file.
73042         * lib/unistr/u16-set.c: New file.
73043         * lib/unistr/u32-set.c: New file.
73044         * lib/unistr/u-set.h: New file.
73045
73046         * modules/unistr/u8-startswith: New file.
73047         * modules/unistr/u16-startswith: New file.
73048         * modules/unistr/u32-startswith: New file.
73049         * lib/unistr/u8-startswith.c: New file.
73050         * lib/unistr/u16-startswith.c: New file.
73051         * lib/unistr/u32-startswith.c: New file.
73052         * lib/unistr/u-startswith.h: New file.
73053
73054         * modules/unistr/u8-stpcpy: New file.
73055         * modules/unistr/u16-stpcpy: New file.
73056         * modules/unistr/u32-stpcpy: New file.
73057         * lib/unistr/u8-stpcpy.c: New file.
73058         * lib/unistr/u16-stpcpy.c: New file.
73059         * lib/unistr/u32-stpcpy.c: New file.
73060         * lib/unistr/u-stpcpy.h: New file.
73061
73062         * modules/unistr/u8-stpncpy: New file.
73063         * modules/unistr/u16-stpncpy: New file.
73064         * modules/unistr/u32-stpncpy: New file.
73065         * lib/unistr/u8-stpncpy.c: New file.
73066         * lib/unistr/u16-stpncpy.c: New file.
73067         * lib/unistr/u32-stpncpy.c: New file.
73068         * lib/unistr/u-stpncpy.h: New file.
73069
73070         * modules/unistr/u8-strcat: New file.
73071         * modules/unistr/u16-strcat: New file.
73072         * modules/unistr/u32-strcat: New file.
73073         * lib/unistr/u8-strcat.c: New file.
73074         * lib/unistr/u16-strcat.c: New file.
73075         * lib/unistr/u32-strcat.c: New file.
73076         * lib/unistr/u-strcat.h: New file.
73077
73078         * modules/unistr/u8-strchr: New file.
73079         * modules/unistr/u16-strchr: New file.
73080         * modules/unistr/u32-strchr: New file.
73081         * lib/unistr/u8-strchr.c: New file.
73082         * lib/unistr/u16-strchr.c: New file.
73083         * lib/unistr/u32-strchr.c: New file.
73084
73085         * modules/unistr/u8-strcmp: New file.
73086         * modules/unistr/u16-strcmp: New file.
73087         * modules/unistr/u32-strcmp: New file.
73088         * lib/unistr/u8-strcmp.c: New file.
73089         * lib/unistr/u16-strcmp.c: New file.
73090         * lib/unistr/u32-strcmp.c: New file.
73091
73092         * modules/unistr/u8-strcpy: New file.
73093         * modules/unistr/u16-strcpy: New file.
73094         * modules/unistr/u32-strcpy: New file.
73095         * lib/unistr/u8-strcpy.c: New file.
73096         * lib/unistr/u16-strcpy.c: New file.
73097         * lib/unistr/u32-strcpy.c: New file.
73098         * lib/unistr/u-strcpy.h: New file.
73099
73100         * modules/unistr/u8-strcspn: New file.
73101         * modules/unistr/u16-strcspn: New file.
73102         * modules/unistr/u32-strcspn: New file.
73103         * lib/unistr/u8-strcspn.c: New file.
73104         * lib/unistr/u16-strcspn.c: New file.
73105         * lib/unistr/u32-strcspn.c: New file.
73106         * lib/unistr/u-strcspn.h: New file.
73107
73108         * modules/unistr/u8-strdup: New file.
73109         * modules/unistr/u16-strdup: New file.
73110         * modules/unistr/u32-strdup: New file.
73111         * lib/unistr/u8-strdup.c: New file.
73112         * lib/unistr/u16-strdup.c: New file.
73113         * lib/unistr/u32-strdup.c: New file.
73114         * lib/unistr/u-strdup.h: New file.
73115
73116         * modules/unistr/u8-strlen: New file.
73117         * modules/unistr/u16-strlen: New file.
73118         * modules/unistr/u32-strlen: New file.
73119         * lib/unistr/u8-strlen.c: New file.
73120         * lib/unistr/u16-strlen.c: New file.
73121         * lib/unistr/u32-strlen.c: New file.
73122         * lib/unistr/u-strlen.h: New file.
73123
73124         * modules/unistr/u8-strmblen: New file.
73125         * modules/unistr/u16-strmblen: New file.
73126         * modules/unistr/u32-strmblen: New file.
73127         * lib/unistr/u8-strmblen.c: New file.
73128         * lib/unistr/u16-strmblen.c: New file.
73129         * lib/unistr/u32-strmblen.c: New file.
73130
73131         * modules/unistr/u8-strmbtouc: New file.
73132         * modules/unistr/u16-strmbtouc: New file.
73133         * modules/unistr/u32-strmbtouc: New file.
73134         * lib/unistr/u8-strmbtouc.c: New file.
73135         * lib/unistr/u16-strmbtouc.c: New file.
73136         * lib/unistr/u32-strmbtouc.c: New file.
73137
73138         * modules/unistr/u8-strncat: New file.
73139         * modules/unistr/u16-strncat: New file.
73140         * modules/unistr/u32-strncat: New file.
73141         * lib/unistr/u8-strncat.c: New file.
73142         * lib/unistr/u16-strncat.c: New file.
73143         * lib/unistr/u32-strncat.c: New file.
73144         * lib/unistr/u-strncat.h: New file.
73145
73146         * modules/unistr/u8-strncmp: New file.
73147         * modules/unistr/u16-strncmp: New file.
73148         * modules/unistr/u32-strncmp: New file.
73149         * lib/unistr/u8-strncmp.c: New file.
73150         * lib/unistr/u16-strncmp.c: New file.
73151         * lib/unistr/u32-strncmp.c: New file.
73152
73153         * modules/unistr/u8-strncpy: New file.
73154         * modules/unistr/u16-strncpy: New file.
73155         * modules/unistr/u32-strncpy: New file.
73156         * lib/unistr/u8-strncpy.c: New file.
73157         * lib/unistr/u16-strncpy.c: New file.
73158         * lib/unistr/u32-strncpy.c: New file.
73159         * lib/unistr/u-strncpy.h: New file.
73160
73161         * modules/unistr/u8-strnlen: New file.
73162         * modules/unistr/u16-strnlen: New file.
73163         * modules/unistr/u32-strnlen: New file.
73164         * lib/unistr/u8-strnlen.c: New file.
73165         * lib/unistr/u16-strnlen.c: New file.
73166         * lib/unistr/u32-strnlen.c: New file.
73167         * lib/unistr/u-strnlen.h: New file.
73168
73169         * modules/unistr/u8-strpbrk: New file.
73170         * modules/unistr/u16-strpbrk: New file.
73171         * modules/unistr/u32-strpbrk: New file.
73172         * lib/unistr/u8-strpbrk.c: New file.
73173         * lib/unistr/u16-strpbrk.c: New file.
73174         * lib/unistr/u32-strpbrk.c: New file.
73175         * lib/unistr/u-strpbrk.h: New file.
73176
73177         * modules/unistr/u8-strrchr: New file.
73178         * modules/unistr/u16-strrchr: New file.
73179         * modules/unistr/u32-strrchr: New file.
73180         * lib/unistr/u8-strrchr.c: New file.
73181         * lib/unistr/u16-strrchr.c: New file.
73182         * lib/unistr/u32-strrchr.c: New file.
73183
73184         * modules/unistr/u8-strspn: New file.
73185         * modules/unistr/u16-strspn: New file.
73186         * modules/unistr/u32-strspn: New file.
73187         * lib/unistr/u8-strspn.c: New file.
73188         * lib/unistr/u16-strspn.c: New file.
73189         * lib/unistr/u32-strspn.c: New file.
73190         * lib/unistr/u-strspn.h: New file.
73191
73192         * modules/unistr/u8-strstr: New file.
73193         * modules/unistr/u16-strstr: New file.
73194         * modules/unistr/u32-strstr: New file.
73195         * lib/unistr/u8-strstr.c: New file.
73196         * lib/unistr/u16-strstr.c: New file.
73197         * lib/unistr/u32-strstr.c: New file.
73198         * lib/unistr/u-strstr.h: New file.
73199
73200         * modules/unistr/u8-strtok: New file.
73201         * modules/unistr/u16-strtok: New file.
73202         * modules/unistr/u32-strtok: New file.
73203         * lib/unistr/u8-strtok.c: New file.
73204         * lib/unistr/u16-strtok.c: New file.
73205         * lib/unistr/u32-strtok.c: New file.
73206         * lib/unistr/u-strtok.h: New file.
73207
73208         * modules/unistr/u8-uctomb: New file.
73209         * modules/unistr/u16-uctomb: New file.
73210         * modules/unistr/u32-uctomb: New file.
73211         * lib/unistr/u8-uctomb.c: New file.
73212         * lib/unistr/u16-uctomb.c: New file.
73213         * lib/unistr/u32-uctomb.c: New file.
73214
73215         * MODULES.html.sh (Unicode string functions): Add the new modules.
73216
73217 2007-01-08  Bruno Haible  <bruno@clisp.org>
73218
73219         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73220         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73221         subdirectories.
73222
73223 2007-01-08  Karl Berry  <karl@gnu.org>
73224
73225         * doc/error.texi: mention that main() fns must set program_name
73226         when progname is used.
73227
73228 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73231         WCTYPE_H is empty, for the benefit of builds from non-distclean
73232         directories.  Problem reported by Eric Blake in
73233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73234
73235 2007-01-08  Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73238         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73239         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73240         PROVIDE_CANONICALIZE_FILENAME_MODE.
73241         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73242
73243 2007-01-08  Bruno Haible  <bruno@clisp.org>
73244
73245         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73246         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73247         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73248         * lib/fts.c: Likewise.
73249         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73250
73251 2006-12-25  Bruno Haible  <bruno@clisp.org>
73252
73253         * modules/utf8-ucs4-safe: New file.
73254         * lib/utf8-ucs4-safe.h: New file.
73255         * lib/unistr/utf8-ucs4-safe.c: New file.
73256
73257         * modules/utf16-ucs4-safe: New file.
73258         * lib/utf16-ucs4-safe.h: New file.
73259         * lib/unistr/utf16-ucs4-safe.c: New file.
73260
73261         * MODULES.html.sh (Unicode string functions): Add the new modules.
73262
73263 2007-01-08  Bruno Haible  <bruno@clisp.org>
73264
73265         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73266         (Depends-on): Add unitypes.
73267         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73268         (u8_mbtouc_aux): Move out to separate file.
73269         (u8_mbtouc): Use ucs4_t, uint8_t types.
73270         * lib/unistr/utf8-ucs4.c: New file.
73271
73272         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73273         (Depends-on): Add unitypes.
73274         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73275         (u16_mbtouc_aux): Move out to separate file.
73276         (u16_mbtouc): Use ucs4_t, uint16_t types.
73277         * lib/unistr/utf16-ucs4.c: New file.
73278
73279         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73280         (Depends-on): Add unitypes.
73281         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73282         (u8_uctomb_aux): Move out to separate file.
73283         (u8_uctomb): Use ucs4_t, uint8_t types.
73284         * lib/unistr/ucs4-utf8.c: New file.
73285
73286         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73287         (Depends-on): Add unitypes.
73288         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73289         (u16_uctomb_aux): Move out to separate file.
73290         (u16_uctomb): Use ucs4_t, uint16_t types.
73291         * lib/unistr/ucs4-utf16.c: New file.
73292
73293 2006-12-25  Bruno Haible  <bruno@clisp.org>
73294
73295         * modules/unitypes: New file.
73296         * lib/unitypes.h: New file.
73297         * MODULES.html.sh (func_all_modules): New section "Unicode string
73298         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73299         this section. Add unitypes.
73300
73301 2007-01-08  Bruno Haible  <bruno@clisp.org>
73302
73303         Avoid variable names that conflict with those from libtool.
73304         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73305         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73306         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73307         library_names_spec to acl_library_names_spec, hardcode_* to
73308         acl_hardcode_*.
73309         Reported by Ralf Wildenhues.
73310
73311 2007-01-08  Bruno Haible  <bruno@clisp.org>
73312
73313         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73314         definition.
73315         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73316         definition.
73317         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73318         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73319         definition.
73320         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73321         definition.
73322         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73323         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73324         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73325         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73326         definition.
73327         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73328         definition.
73329         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73330         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73331         GC_USE_<algorithm>.
73332         * lib/gc-libgcrypt.c: Likewise.
73333         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73334         * modules/gc-arctwo (configure.ac): Likewise.
73335         * modules/gc-des (configure.ac): Likewise.
73336         * modules/gc-hmac-md5 (configure.ac): Likewise.
73337         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73338         * modules/gc-md2 (configure.ac): Likewise.
73339         * modules/gc-md4 (configure.ac): Likewise.
73340         * modules/gc-md5 (configure.ac): Likewise.
73341         * modules/gc-random (configure.ac): Likewise.
73342         * modules/gc-rijndael (configure.ac): Likewise.
73343         * modules/gc-sha1 (configure.ac): Likewise.
73344
73345 2007-01-08  Bruno Haible  <bruno@clisp.org>
73346
73347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73348         macro definition.
73349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73350         definition.
73351         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73352         definition.
73353         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73354         * modules/fcntl-safer (configure.ac): Likewise.
73355         * modules/fopen-safer (configure.ac): Likewise.
73356         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73357         GNULIB_FWRITEERROR macro definition.
73358
73359 2007-01-08  Bruno Haible  <bruno@clisp.org>
73360
73361         * m4/gnulib-common.m4: New file.
73362         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73363         (func_get_filelist): Add m4/gnulib-common.m4.
73364
73365 2007-01-08  Bruno Haible  <bruno@clisp.org>
73366
73367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73368         command.
73369
73370 2007-01-08  Jim Meyering  <jim@meyering.net>
73371
73372         Use a more robust test for a "can't happen" condition.
73373         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73374         narrowed the st_size value.  Presuming the "can't happen" condition
73375         is true, that narrowing could conceivably convert an invalid st_size
73376         value into a valid one.  Instead, use a change based on Matthew
73377         Woehlke's original patch.
73378
73379         Slight readability improvement: use an assert-like macro
73380         in place of literal "abort ()" uses.
73381         * lib/fts.c (fts_assert): Define.
73382         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73383         Use this macro instead of a bare 'abort'.
73384
73385 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73388         simply work around them.
73389         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73390         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73391         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73392         declaring.
73393         Don't bother to define as macros, since the standard doesn't require it.
73394         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73395         longer worry about IRIX 5.3.
73396         (HAVE_WCTYPE_CTMP_BUG): Remove.
73397
73398 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73401         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73402         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73403         Problems reported by Georg Schwarz for IRIX 5.3.
73404
73405         * gnulib-tool (autoconf_minversion): Take the maximum version number
73406         found, not the minimum.  Problem reported by James Youngman.
73407
73408 2007-01-03  Karl Berry  <karl@gnu.org>
73409
73410         * doc/error.texi: new file, explaining interaction with progname.
73411         * doc/gnulib.texi: include it.  Update copyright.
73412
73413 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73414
73415         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73416         AC_CANONICAL_HOST, to improve autobuild outputs.
73417
73418 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73419             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73420
73421         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73422         sockets, server sockets, and other file descriptors.  Count errors
73423         to compute the return value.  Reorder the code a bit to be easier
73424         to follow.  Don't set event bits that were not requested (except
73425         POLLERR and POLLHUP).
73426
73427 2007-01-01  Bruno Haible  <bruno@clisp.org>
73428
73429         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73430
73431 2007-01-03  Jim Meyering  <jim@meyering.net>
73432
73433         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73434
73435 2007-01-02  Bruno Haible  <bruno@clisp.org>
73436
73437         * modules/settime (Include): Require timespec.h.
73438         * modules/nanosleep (Include): Likewise.
73439
73440 2007-01-01  Bruno Haible  <bruno@clisp.org>
73441
73442         * gnulib-tool (func_emit_copyright_notice): Bump year.
73443         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73444
73445 2007-01-01  Bruno Haible  <bruno@clisp.org>
73446
73447         Improve support for OpenBSD.
73448         * build-aux/config.rpath (libname_spec): Export.
73449         (library_names_spec): New variable. Export.
73450         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73451         library_names_spec from the config.rpath output. Locate shared library
73452         through the name pattern in library_names_spec.
73453
73454 2007-01-01  Eric Blake  <ebb9@byu.net>
73455
73456         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73457
73458 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73461         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73462         assume the C locale, and avoid an "eval" that could cause trouble.
73463         Problem with SORT reported by Bob Proulx.
73464
73465         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73466         Define.  Trivial patch from Henning Nielsen Lund, originally
73467         sent to bug-grep@gnu.org today.
73468
73469 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73472         struct stat.  Problem reported by Henning Nielsen Lund.
73473         * lib/acl.c: Include acl.h first, to check interface.  Don't
73474         bother to include sys/types.h and sys/stat.h again.
73475
73476 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         Import the following change from libc; problem reported by
73479         Sven Verdoolaege.
73480
73481         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73482
73483         [BZ #1373]
73484         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73485
73486 2006-12-28  Jim Meyering  <jim@meyering.net>
73487
73488         * build-aux/announce-gen: Do not assume that the package
73489         builds any of tar.gz, tar.bz2, and .xdelta files.
73490         Suggestion from Simon Josefsson.
73491
73492 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73493
73494         * modules/announce-gen: New file.
73495
73496 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73499         handles its gotchas now.
73500         * lib/mbswidth.c: Likewise.
73501         * lib/wcwidth.h: Likewise.
73502         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73503         and iswcntrl; the wctype module does this stuff now.
73504         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73506         * modules/mbchar (Depends-on): Add wctype.
73507         * modules/mbswidth (Depends-on): Likewise.
73508         * modules/wcwidth (Depends-on): Likewise.
73509
73510 2006-12-27  Eric Blake  <ebb9@byu.net>
73511
73512         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73513         module uses more than what <wctype.h> is required to provide.
73514
73515 2006-12-26  Eric Blake  <ebb9@byu.net>
73516
73517         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73518
73519 2006-12-26  Eric Blake  <ebb9@byu.net>
73520
73521         * modules/absolute-header: New module.
73522         * modules/fcntl (Depends-on): Depend on it.
73523         * modules/inttypes (Depends-on): Likewise.
73524         * modules/stdint (Depends-on): Likewise.
73525         * modules/sys_stat (Depends-on): Likewise.
73526         * modules/wctype (Depends-on): Likewise.
73527         * MODULES.html.sh (Support for building libraries and
73528         executables): Document it.
73529
73530 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * gnulib-tool (SED): Remove, undoing previous change.
73533         The problem was that it broke coreutils on Solaris, because
73534         "sed --posix" leaked into a makefile.
73535         (sed): New alias, if 'alias' and GNU sed.
73536
73537 2006-12-24  Jim Meyering  <jim@meyering.net>
73538
73539         Work around an fchownat bug in glibc-2.4:
73540         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73541         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73542         in spite of the -P option.
73543         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73544         New macros.
73545         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73546         * modules/openat (Files): Add lib/fchownat.c.
73547         * lib/openat.c (fchownat): Don't define here.  Move to...
73548         * lib/fchownat.c: ...this new file.
73549
73550 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         Fix bug reported by Bruno Haible in
73553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73554         where quotearg.c didn't compile on Mac OS X 10.2 because it
73555         lacks <wchar.h> and wint_t.
73556         * lib/wctype_.h (__wctype_wint_t): New type.
73557         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73558         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73559         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73560         Arg is now of type __wctype_wint_t, not wint_t.
73561         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73562         substitute HAVE_WINT_T.
73563         * modules/wctype (Files): Add m4/wint_t.m4.
73564         (wctype.h): Substitute HAVE_WINT_T.
73565
73566 2006-12-23  Bruno Haible  <bruno@clisp.org>
73567
73568         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73569
73570 2006-12-23  Bruno Haible  <bruno@clisp.org>
73571
73572         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73573         S_ISLNK.
73574         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73575         mingw.
73576
73577 2006-12-22  Bruno Haible  <bruno@clisp.org>
73578
73579         * lib/copy-file.c: Include acl.h.
73580         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73581         Close the file descriptors only after being done with copy_acl.
73582         * modules/copy-file (Depends-on): Add acl.
73583
73584 2006-12-22  Bruno Haible  <bruno@clisp.org>
73585
73586         * gnulib-tool (SED): New variable.
73587         Use $SED instead of sed everywhere.
73588
73589 2006-12-22  Bruno Haible  <bruno@clisp.org>
73590
73591         * modules/no-c++: New file.
73592         * m4/no-c++.m4: New file.
73593         * MODULES.html.sh (Support for building libraries and executables):
73594         Add no-c++.
73595
73596 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73599         Include <limits.h>, and use its INT_MAX to rewrite the
73600         j loop so that it does not overflow 'int'.  Problem reported by
73601         Ralf Wildenhues in
73602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73603         Play it safe by shifting left by 1 rather than multiplying by 2,
73604         as GCC is less likely to optimize this away when the value
73605         is signed (when it assumes overflow leads to undefined behavior).
73606         Also, don't assume time_t uses two's complement.
73607
73608 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * MODULES.html.sh: New module wctype.
73611         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73612         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73613         <wctype.h>, since the new wctype module should fix this.
73614         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73615         the wctype module should arrange for it.
73616         * lib/regex_internal.h: Likewise.
73617         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73618         since the wctype module should handle this now.
73619         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73620         * modules/fnmatch (Depends-on): Add wctype.
73621         * modules/quotearg (Depends-on): Likewise.
73622         * modules/regex (Depends-on): Likewise.
73623
73624 2006-12-19  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73627         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73628
73629 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73630
73631         * modules/savewd (Depends-on): Fix dependency on fcntl.
73632
73633 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73636         conforms to C99, rather than relying on the user's environment
73637         setting of STDINT_H.
73638
73639 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73640         and Eric Blake  <ebb9@byu.net>
73641
73642         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73643         This is more consistent with the other defines here.
73644         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73645         Port to z/OS.  Problem reported by Paul Gilmartin.
73646         Change local vars to use gl_ prefix rather than ac_.
73647         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73648         with other defines.
73649         * modules/double-slash-root: New module.
73650         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73651         (Depends-on): Add double-slash-root.
73652         * MODULES.html.sh (File system functions): Mention new module.
73653
73654 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73657         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73658         This is for the benefit of gzip, which doesn't do i18n.
73659
73660 2006-12-12  Jim Meyering  <jim@meyering.net>
73661
73662         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73663         Reported by Andreas Schwab <schwab@suse.de>.
73664
73665 2006-12-12  Bruno Haible  <bruno@clisp.org>
73666
73667         Merge these changes.
73668         2006-09-05  Bruno Haible  <bruno@clisp.org>
73669         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73670         iconv_alloc succeeded.
73671         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73672         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73673         test for " && dest " at the end - dest is always != NULL there. Call
73674         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73675         with 2xNULL arguments, also to flush the state storage. Handle the
73676         IRIX iconv behaviour. Realloc the final result, to throw away unused
73677         memory.
73678
73679 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73682         and fchmodat unconditionally, since glibc 2.4 has them.
73683         Problem reported by Arkadiusz Miskiewicz.
73684
73685 2006-12-10  Bruno Haible  <bruno@clisp.org>
73686
73687         * gnulib-tool (func_import): Show the include files only for those
73688         modules that are copied and specified.
73689         Reported by Karl Berry.
73690
73691 2006-12-08  Jim Meyering  <jim@meyering.net>
73692
73693         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73694         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73695
73696         * build-aux/announce-gen: Add two new options, both optional:
73697         --bootstrap-tools=TOOL_LIST
73698               a comma-separated list of tools, e.g.,
73699               autoconf,automake,bison,gnulib
73700         --gnulib-snapshot-date=DATE
73701               if gnulib is in the bootstrap tool list,
73702               then report this as the snapshot date.
73703               If not specified, use the current date/time.
73704               If you specify a date here, be sure it's UTC.
73705
73706 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73707
73708         * tests/test-argp-2.sh: Fix test to match actual output.
73709         (func_compare): Fix sed script to be portable.
73710
73711 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73714         workaround for this case.  It is not autoconfigured now; offhand
73715         it's hard to see how to autoconfigure it.
73716
73717 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73720         a directory that is about to be chowned.  Such a directory's
73721         initial file permissions should permit the owner only and this
73722         should not be changed until after the chown, since the group and
73723         other bits would be incorrect if they granted permission before
73724         the chown.
73725
73726         Fix porting problem for iswctype reported by Georg Schwarz in:
73727         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73728         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73729         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73731         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73732
73733 2006-12-03  Jim Meyering  <jim@meyering.net>
73734
73735         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73736         p->fts_statp may not yet be defined.
73737         (fts_read): Instead, set it in the caller, once p->fts_statp is
73738         sure to be defined, and corresponds to a top-level directory.
73739         This bug made du -x fail.  Here's the coreutils test case:
73740         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73741         Reported by Mike Frysinger.
73742
73743 2006-12-01  Jim Meyering  <jim@meyering.net>
73744
73745         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73746         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73747         Reported by Simon Josefsson.
73748
73749 2006-11-30  Jim Meyering  <jim@meyering.net>
73750
73751         * m4/warning.m4: Use the all-permissive copyright notice
73752         recommended by RMS (rather than LGPL).
73753         * m4/vararrays.m4: Likewise.
73754         * m4/flexmember.m4: Likewise.
73755
73756 2006-11-29  Bruno Haible  <bruno@clisp.org>
73757
73758         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73759         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73760         using +=.
73761         Reported by Simon Josefsson <simon@josefsson.org>.
73762
73763 2006-11-28  James Youngman <jay@gnu.org>
73764
73765         * README: Advise users that they might find the bug-gnulib@gnu.org
73766         and autotools-announce@gnu.org mailing lists useful.
73767
73768 2006-11-28  Bruno Haible  <bruno@clisp.org>
73769
73770         * m4/ptrdiff_max.m4: Remove file.
73771
73772 2006-11-21  Bruno Haible  <bruno@clisp.org>
73773
73774         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73775         _AC_COMPUTE_INT.
73776         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73777         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73778         _AC_COMPUTE_INT.
73779         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73780         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73781         _AC_COMPUTE_INT.
73782         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73783
73784 2006-11-28  Jim Meyering  <jim@meyering.net>
73785
73786         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73787         warning from "gcc -Wshadow" about shadowing the builtin.
73788
73789 2006-11-27  Bruno Haible  <bruno@clisp.org>
73790
73791         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73792         _AC_COMPUTE_INT.
73793         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73794
73795 2006-11-27  Bruno Haible  <bruno@clisp.org>
73796             Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73799
73800 2006-11-26  Bruno Haible  <bruno@clisp.org>
73801
73802         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73803         noinst_LTLIBRARIES.
73804
73805 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73806             Bruno Haible  <bruno@clisp.org>
73807
73808         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73809         if compiling with "gcc -ansi".
73810
73811 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         Fix some incompatibilities with gcc -ansi -pedantic.
73814         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73815         if compiling pedantically with GCC, unless it's C99 or later.
73816         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73817         it mishandles gcc -ansi -pedantic as well.
73818         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73819         if gcc -pedantic.
73820         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73821         initializers for struct if -pedantic, unless it's C99 or later.
73822
73823 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73824
73825         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73826         Don't close an fd more than once. Identical atimes indicate
73827         success, not failure.
73828
73829 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73830
73831         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73832
73833 2006-11-23  Jim Meyering  <jim@meyering.net>
73834
73835         * build-aux/announce-gen: New file.  From coreutils.
73836
73837 2006-11-22  Jim Meyering  <jim@meyering.net>
73838
73839         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73840         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73841         (fts_read): Use a temporary to narrow the overused st_size member
73842         before using it in a switch statement.  Reported by Matthew Woehlke.
73843
73844         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73845         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73846
73847 2006-11-20  Bruno Haible  <bruno@clisp.org>
73848
73849         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73850         changequote instead of pairs of brackets.
73851         Reported by Andreas Schwab <schwab@suse.de>.
73852
73853 2006-11-21  Jim Meyering  <jim@meyering.net>
73854
73855         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73856         so as to remain compatible with older compilers.
73857         Patch from Michael Deutschmann.
73858
73859 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * MODULES.html.sh (File system functions): Add openat.
73862
73863         * lib/openat.h (rpl_fstatat): New macro, if
73864         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73865         (fstatat): Define to rpl_fstatat under the same conditions,
73866         unless COMPILING_FSTATAT.
73867         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73868         seems to have the bug.
73869         * lib/fstatat.c: New file.
73870         * modules/openat (Files): Add it.
73871
73872 2006-11-20  Bruno Haible  <bruno@clisp.org>
73873
73874         * Makefile: New file.
73875
73876 2006-11-20  Jim Meyering  <jim@meyering.net>
73877
73878         The beginnings of syntax-related checks for gnulib.
73879         * lib/Makefile: New file.
73880         * lib/t-idcache: New script.  Ensure that the two halves of
73881         idcache.c stay in sync.
73882
73883         * lib/idcache.c: Adjust comments in user- and group- portions to
73884         be more accurate, and to be consistent with one another.
73885
73886 2006-11-20  Jim Meyering  <jim@meyering.net>
73887
73888         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73889         continue using the flexible array member (thus, this module performs
73890         half as many malloc calls), with the addition that...
73891         (getgroup, getuser): Consistently record a non-match via an empty
73892         "name" string, and map an empty string match to a NULL return value.
73893         * modules/idcache (Depends-on): Re-add flexmember.
73894
73895         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73896         (getuidbyname, getgroup, getgidbyname): Likewise.
73897
73898         Use cleaner syntax: NULL rather than 0.
73899         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73900
73901 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73904         It mishandled the case where the group was missing.
73905         Problem reported by Greg Schafer.
73906         * modules/idcache: Likewise.
73907
73908 2006-11-18  Jim Meyering  <jim@meyering.net>
73909
73910         * check-module (%exempt_header): Add exception for some
73911         conditionally-included headers.
73912
73913         * modules/i-ring (Depends-on): Add verify.
73914         (License): Change to LGPL.
73915
73916 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73919         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73920         and inttostr.h.  Use snprintf rather than uinttostr, so that
73921         LGPLed code doesn't depend on GPLed.
73922
73923 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * modules/inline (License): Change from GPL to LGPL.
73926
73927 2006-11-17  Jim Meyering  <jim@meyering.net>
73928
73929         * modules/d-type (License): Switch to LGPL.
73930
73931 2006-11-15  Bruno Haible  <bruno@clisp.org>
73932
73933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73934
73935 2006-11-15  Eric Blake  <ebb9@byu.net>
73936
73937         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73938         the module dependency.
73939
73940 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73941             Bruno Haible  <bruno@clisp.org>
73942
73943         * gnulib-tool (func_create_testdir): Add license consistency check.
73944
73945 2006-11-15  Eric Blake  <ebb9@byu.net>
73946
73947         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73948         random "(cached)" in configure output.
73949
73950 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73951
73952         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73953         test for conforming inttypes.h is both announced and cached.
73954
73955         * MODULES.html.sh (seen_modules, seen_files): New variables.
73956         (func_module): Rewrite to use a few less gnulib-tool and sed
73957         invocations.  Avoid a couple of quadratic algorithms for ...
73958         (missed_modules, missed_files): ... these, with ...
73959         (func_append, func_tmpdir): ... these new functions, from
73960         gnulib-tool.  Analogously, install traps for cleanup.
73961
73962         * tests/test-gc.c (main): Remove unused variables.
73963         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73964
73965 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * modules/inttostr (License): Change to LGPL.
73968
73969 2006-11-14  Eric Blake  <ebb9@byu.net>
73970
73971         * modules/tempname (License): Change to LGPL.
73972
73973 2006-11-14  Eric Blake  <ebb9@byu.net>
73974
73975         * doc/functions.texi (Function Portability): *printf functions on
73976         Cygwin now understand all POSIX size specifiers.
73977
73978 2006-11-14  Bruno Haible  <bruno@clisp.org>
73979
73980         * modules/c-ctype (License): Change to LGPL.
73981
73982 2006-11-12  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73985         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73986         for GNOME libraries, for which the include files are installed in
73987         subdirectories of $prefix/include.
73988
73989 2006-11-12  Bruno Haible  <bruno@clisp.org>
73990
73991         * m4/lib-link.m4: Require at least autoconf-2.54.
73992         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73993         name to underscores for the --with option.
73994
73995 2006-11-13  Bruno Haible  <bruno@clisp.org>
73996
73997         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73998         the tests directory.
73999         Reported by Ralf Wildenhues.
74000
74001 2006-11-13  Bruno Haible  <bruno@clisp.org>
74002
74003         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74004         (func_emit_initmacro_end): Undo the override here.
74005         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74006         Works around the famous automake error in coreutils.
74007
74008 2006-11-13  Eric Blake  <ebb9@byu.net>
74009
74010         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74011         element, not its node.
74012
74013 2006-11-12  Bruno Haible  <bruno@clisp.org>
74014
74015         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74016         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74017
74018 2006-11-12  Bruno Haible  <bruno@clisp.org>
74019
74020         * gnulib-tool: New option --local-symlink.
74021         (func_usage): Document it.
74022         (lsymbolic): New variable.
74023         (func_import, func_create_testdir): If --symlink was not specified,
74024         test whether --local-symlink was specified and the file comes from
74025         the local_gnulib_dir.
74026
74027 2006-11-12  Bruno Haible  <bruno@clisp.org>
74028
74029         * gnulib-tool (func_ln): New function.
74030         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74031
74032 2006-11-12  Bruno Haible  <bruno@clisp.org>
74033
74034         Finish support for source files in subdirectories.
74035         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74036         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74037         AUTOMAKE_OPTIONS.
74038         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74039
74040 2006-11-12  Bruno Haible  <bruno@clisp.org>
74041
74042         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74043         EXTRA_lib_SOURCES augmentation.
74044         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74045
74046 2006-11-12  Jim Meyering  <jim@meyering.net>
74047
74048         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74049         file descriptors.  This also averts a failure on systems with
74050         native openat support when a traversed directory lacks "x" access.
74051         * lib/fts_.h: Include "i-ring.h"
74052         (struct FTS) [fts_fd_ring]: New member.
74053         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74054         (FCHDIR): Add parentheses.
74055         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74056         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74057         When descending, rather than simply closing the previous
74058         fts_cwd_fd value, push that file descriptor onto the ring.
74059         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74060         (fts_open): Initialize the new fd_ring member.
74061         (fts_close): Clear the ring.
74062         (fts_safe_changedir): When possible, use our new fd_ring to skip
74063         the diropen and fstat and dev/ino comparison that would normally
74064         accompany a virtual `chdir ("..")'.
74065
74066         * modules/fts (Depends-on): Add i-ring.
74067         * modules/i-ring: New module.
74068         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74069         * m4/i-ring.m4: New file.
74070
74071 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74072
74073         * gnulib-tool (func_create_testdir): Fix replacement of
74074         `build-aux' in configure.ac.  Run autotools in gltests
74075         subdirectory.
74076         (func_create_testdir, func_create_megatestdir, test): There is
74077         no need for '--force' in most autotool invocations in a new
74078         tree.  Actually fail the whole test if any of the tools, or the
74079         configure or make stages fail.
74080
74081         Sync from Automake.
74082         * build-aux/gnupload: Revert last change.  Add pointer to upload
74083         instructions of the GNU Maintenance Instructions.
74084         Suggestion by Karl Berry.
74085
74086 2006-11-10  Jim Meyering  <jim@meyering.net>
74087
74088         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74089
74090 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74093         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74094         (bind_textdomain_codeset) [! ENABLE_NLS]:
74095         Evaluate all the arguments.  That way, callers get compatible behavior
74096         if the arguments have side effects.  Also, it avoids some GCC
74097         diagnostics in some cases; Joel E. Denny reported problems when Bison
74098         was configured with --enable-gcc-warnigs.
74099
74100 2006-11-10  Jim Meyering  <jim@meyering.net>
74101
74102         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74103         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74104         account.
74105
74106 2006-11-10  Jim Meyering  <jim@meyering.net>
74107
74108         * modules/inline: New file/module.
74109         * modules/xalloc (Files): Remove m4/inline.m4.
74110         (Depends-on): Add inline, instead.
74111         * modules/oset: Likewise.
74112         * modules/list: Likewise.
74113
74114 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74117         Problem reported by Matthew Woehlke.
74118
74119 2006-11-09  Bruno Haible  <bruno@clisp.org>
74120
74121         * lib/tempname.c (gen_tempname): Remove variant that invokes
74122         __gen_tempname.
74123         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74124         __gen_tempname.
74125
74126 2006-11-08  Bruno Haible  <bruno@clisp.org>
74127
74128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74129         to 'yes' instead of 'cross-compiling'.
74130
74131 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/quotearg.h (quotearg_free): New decl.
74134         * lib/quotearg.c (quotearg_free): New function.
74135         (slot0, nslots, slotvec0, slotvec):
74136         Now file-scope so that quotearg_free can get at them.
74137
74138 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74139
74140         Sync from Automake.
74141         * build-aux/gnupload: Add missing 'gnu' to example URL.
74142         Report by Karl Berry.
74143
74144 2006-11-08  Bruno Haible  <bruno@clisp.org>
74145
74146         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74147         Suggested by Paul Eggert.
74148
74149 2006-11-08  Jim Meyering  <jim@meyering.net>
74150
74151         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74152         It's already included if !_LIBC.
74153         (fts_safe_changedir): Add a comment.
74154
74155 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74158         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74159         Matthew Woehlke.
74160
74161         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74162         definitions up, to avoid colliding with change below.
74163         (static_inline) [HAVE_INLINE]: New macro.
74164         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74165         Provide extern decls when !HAVE_INLINE.  Do not define unless
74166         static_inline is defined, either by us or by xmalloc.c.  Use
74167         static_inline rather than static inline.
74168         (XCALLOC): Optimize sizeof(T) = 1 case.
74169         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74170
74171 2006-11-07  Bruno Haible  <bruno@clisp.org>
74172
74173         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74175         AC_C_INLINE.
74176         * modules/xalloc (Files): Add m4/inline.m4.
74177
74178 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74179
74180         * README: Fix typo.
74181         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74182         (Miscellanous Notes): ...from this.
74183
74184 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74187         Mention that offsetof should be used instead of sizeof.
74188         From Bruno Haible.
74189
74190 2006-11-07  Bruno Haible  <bruno@clisp.org>
74191
74192         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74193
74194 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74197         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74198         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74199         (gl_tree_add_before, gl_tree_add_after):
74200         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74201         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74202         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74203         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74204         (gl_linked_add_after, gl_linked_add_at): Likewise.
74205         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74206         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74207         (gl_tree_add_before, gl_tree_add_after): Likewise.
74208         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74209         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74210         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74211
74212 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74213
74214         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74215
74216 2006-11-06  Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/inline.m4: New file.
74219         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74220         * modules/list (Files): Add m4/inline.m4.
74221         * modules/oset (Files): Likewise.
74222
74223 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * lib/idcache.c: Include <stddef.h>, for offsetof.
74226         (struct userid.name): Change from char * to a flexible array member.
74227         All uses changed.
74228         * modules/idcache (Depends-on): Add flexmember.
74229
74230         * MODULES.html.sh (Core language properties): New module flexmember.
74231         * modules/flexmember, m4/flexmember.m4: New files.
74232
74233         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74234         inline functions that are identical with the old xnmalloc_inline,
74235         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74236         that we can avoid some unnecessary integer multiplications and
74237         divisions in the common case where the element size is known at
74238         compile time.
74239         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74240         needed.
74241         (xnboundedmalloc): Remove.
74242         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74243         arguments, for consistency with rest of this header.
74244         (xcharalloc): Rewrite using XNMALLOC.
74245         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74246         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74247         versions have been moved to lib/xalloc.h and renamed to be the
74248         non-*_inline versions.
74249         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74250         and xnrealloc functions, since those functions are now inline and
74251         now call us.
74252         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74253         renaming described above.
74254         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74255         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74256         captures the dependency in AC_C_INLINE.
74257
74258         New module canonicalize-lgpl, proposed by Charles Wilson in
74259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74260         with a few small changes afterwards.
74261         * MODULES.html.sh (File system functions): New module
74262         canonicalize-lgpl.
74263         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74264         and canonicalize_file_name.
74265         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74266         * modules/canonicalize-lgpl: New files.
74267
74268 2006-11-05  Bruno Haible  <bruno@clisp.org>
74269
74270         * gnulib-tool (func_import, func_create_testdir): Create directories
74271         also for files in subdirectories of lib/.
74272
74273 2006-11-05  Bruno Haible  <bruno@clisp.org>
74274
74275         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74276         ANSI C compliant.
74277
74278 2006-11-03  Bruno Haible  <bruno@clisp.org>
74279
74280         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74281         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74282         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74283         (xnboundedmalloc): New inline function.
74284         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74285         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74286         xmalloc.
74287         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74288         xmalloc.
74289         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74290         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74291         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74292         xmalloc.
74293         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74294         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74295         xmalloc.
74296         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74297         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74298         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74299         xmalloc.
74300         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74301         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74302         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74303         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74304         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74305         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74306         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74307
74308 2006-11-03  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/c-ctype.h [C++]: Define functions without name mangling.
74311         * lib/fwriteerror.h [C++]: Likewise.
74312         * lib/gcd.h [C++]: Likewise.
74313         * lib/linebreak.h [C++]: Likewise.
74314
74315 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74318         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74319         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74320         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74321         Check for functions and headers just once.
74322         Check for declaration of canonicalize_file_name.
74323         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74324
74325 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74326
74327         * gnulib-tool (func_import): Fix typo in actioncmd.
74328
74329 2006-11-02  Bruno Haible  <bruno@clisp.org>
74330
74331         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74332         newline sequence in the Makefile.am snippet as a space, like "make"
74333         does.
74334         Reported by Roger Persson <perrog@gmail.com>.
74335
74336 2006-11-01  Bruno Haible  <bruno@clisp.org>
74337
74338         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74339         already declared in <string.h>.
74340         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74341
74342 2006-11-01  Bruno Haible  <bruno@clisp.org>
74343
74344         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74345         * lib/strcase.h: Include <string.h>.
74346         (strcasecmp): Define to rpl_strcasecmp here.
74347
74348 2006-11-01  Bruno Haible  <bruno@clisp.org>
74349
74350         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74351
74352 2006-11-01  Eric Blake  <ebb9@byu.net>
74353
74354         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74355
74356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74357
74358 2006-10-29  Bruno Haible  <bruno@clisp.org>
74359
74360         Make it compile in C++ mode.
74361         * lib/full-write.c (full_rw): Add a cast.
74362
74363 2006-11-01  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74366         be POSIX compliant.
74367         Reported by Roger Persson <perrog@gmail.com>.
74368
74369 2006-11-01  Eric Blake  <ebb9@byu.net>
74370
74371         * lib/getopt_.h: Fix comments.
74372
74373 2006-10-31  Eric Blake  <ebb9@byu.net>
74374
74375         * modules/tmpdir (Depends-on): Add sys_stat.
74376         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74377         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74378         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74379         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74380         tempname.
74381
74382 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         Avoid some C++ diagnostics reported by Bruno Haible.
74385         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74386         xmalloc.
74387         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74388         (struct slotvec): Move to top level.
74389         (quotearg_n_options): Rewrite to avoid xmalloc.
74390         * lib/xalloc.h (xcharalloc): New function.
74391         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74392         [defined __cplusplus]: Add function template that provides result
74393         type propagation.  This part of the change is from Bruno Haible.
74394
74395 2006-10-29  Bruno Haible  <bruno@clisp.org>
74396
74397         Make it compile in C++ mode.
74398         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74399         * lib/strnlen1.c (strnlen1): Cast memchr result.
74400         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74401         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74402         (create_temp_dir): Rename local variable 'template'.
74403         (compile_csharp_using_sscli): Add cast.
74404         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74405         * lib/findprog.c (find_in_path): Likewise.
74406         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74407         * lib/wait-process.c (register_slave_subprocess): Likewise.
74408
74409 2006-10-22  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/tsearch: New file.
74412         * lib/tsearch.h: New file.
74413         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74414         * m4/tsearch.m4: New file.
74415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74416
74417 2006-10-29  Eric Blake  <ebb9@byu.net>
74418
74419         * lib/arcfour.c: Assume config.h.
74420         * lib/arctwo.c: Likewise.
74421         * lib/base64.c: Likewise.
74422         * lib/check-version.c: Likewise.
74423         * lib/crc.c: Likewise.
74424         * lib/des.c: Likewise.
74425         * lib/gc-gnulib.c: Likewise.
74426         * lib/gc-libgcrypt.c: Likewise.
74427         * lib/gc-pbkdf2-sha1.c: Likewise.
74428         * lib/getaddrinfo.c: Likewise.
74429         * lib/getdelim.c: Likewise.
74430         * lib/getline.c: Likewise.
74431         * lib/hmac-md5.c: Likewise.
74432         * lib/hmac-sha1.c: Likewise.
74433         * lib/iconvme.c: Likewise.
74434         * lib/md2.c: Likewise.
74435         * lib/md4.c: Likewise.
74436         * lib/memxor.c: Likewise.
74437         * lib/read-file.c: Likewise.
74438         * lib/readline.c: Likewise.
74439         * lib/rijndael-alg-fst.c: Likewise.
74440         * lib/rijndael-api-fst.c: Likewise.
74441         * lib/xgetdomainname.c: Likewise.
74442
74443 2006-10-28  Eric Blake  <ebb9@byu.net>
74444
74445         * lib/xstrndup.c: Assume config.h.
74446
74447 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74450         stat-macros.h is now for our own macros, whereas stat_h is for
74451         macros in the <sys/stat.h> name space.
74452         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74453         (STAT_MACROS_H): Remove.
74454         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74455         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74456         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74457         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74458         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74459         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74460         Move these macros to ...
74461         * lib/stat_.h: here.  Don't include stat-macros.h.
74462         * lib/canonicalize.c: Don't include stat-macros.h.
74463         * lib/chown.c: Likewise.
74464         * lib/euidaccess.c: Likewise.
74465         * lib/file-type.c: Likewise.
74466         * lib/filemode.c: Likewise.
74467         * lib/glob.c: Likewise.
74468         * lib/isapipe.c: Likewise.
74469         * lib/lchown.c: Likewise.
74470         * lib/lstat.c: Likewise.
74471         * lib/mkdir-p.c: Likewise.
74472         * lib/rmdir.c: Likewise.
74473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74474         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74475         unless mkdir isn't declared, to speed up 'configure'.
74476         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74477         would define all the S_* symbols.
74478         * modules/canonicalize (Depends-on):
74479         Depend on sys_stat, not stat-macros.
74480         * modules/chown: Likewise.
74481         * modules/euidaccess: Likewise.
74482         * modules/filemode: Likewise.
74483         * modules/file-type: Likewise.
74484         * modules/glob: Likewise.
74485         * modules/isapipe: Likewise.
74486         * modules/lchown: Likewise.
74487         * modules/lstat: Likewise.
74488         * modules/mkancesdirs: Likewise.
74489         * modules/rmdir: Likewise.
74490         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74491         * modules/modechange: Likewise.
74492         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74493         (configure.ac): Remove gl_STAT_MACROS.
74494         * modules/sys_stat (Depends-on): Remove stat-macros.
74495
74496 2006-10-27  Bruno Haible  <bruno@clisp.org>
74497
74498         * m4/signed.m4: Remove file.
74499         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74500         invocation.
74501         * modules/vasnprintf (Files): Remove m4/signed.m4.
74502
74503 2006-10-27  Bruno Haible  <bruno@clisp.org>
74504
74505         Update to GNU gettext 0.16.
74506         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74507         m4/inttypes-h.m4, m4/signed.m4.
74508         * m4/gettext.m4: Update to GNU gettext 0.16.
74509         * m4/intl.m4: New file, from GNU gettext.
74510         * m4/intldir.m4: New file, from GNU gettext.
74511         * config/srclist.txt: Update
74512
74513 2006-10-27  Eric Blake  <ebb9@byu.net>
74514
74515         * MODULES.html.sh: Document tempname.
74516         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74517         dependencies.
74518         (Files): Move lib/tempname.c...
74519         * modules/tempname: ...to this new module.
74520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74521         (gl_PREREQ_TEMPNAME): Move...
74522         * m4/tempname.m4: ...to this new file.
74523         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74524         * modules/sys_stat (Depends-on): Add stat-macros.
74525         * lib/stat_.h (includes): Pick up stat macros.
74526         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74527         if stat macros are broken.
74528         * lib/tempname.c (includes): No need to include "stat-macros.h".
74529         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74530         (direxists, __path_search) [!_LIBC]: Don't compile these in
74531         gnulib; the tmpdir module covers that.
74532         * lib/tempname.h: New file.
74533
74534 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * COPYING: Explain how gnulib-tool converts licence headers.
74537         Almost all wording by Eric Blake.
74538
74539 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * lib/mbchar.h (is_basic_table): Make read-only.
74542         * lib/mbchar.c (is_basic_table): Likewise.
74543         Reported by John Darrington.
74544
74545 2006-10-25  Bruno Haible  <bruno@clisp.org>
74546
74547         * lib/progname.h (set_program_name): Undefine before defining.
74548
74549 2006-10-25  Bruno Haible  <bruno@clisp.org>
74550
74551         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74552         false for non-gcc C++ compilers.
74553         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74554
74555 2006-10-24  Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74558         iconv implementations like Irix iconv.
74559
74560 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * modules/vararrays: New file.
74563         * m4/vararrays.m4: New file, taken from diffutils.
74564         * MODULES.html.sh: New module vararrays.
74565
74566 2006-10-24  Karl Berry  <karl@gnu.org>
74567
74568         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74569         Don't call GNU Unix.
74570
74571 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74572
74573         * users.txt: Add Libtool.
74574
74575         Sync from Libtool:
74576
74577         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74580         to gnulib's policy of including config.h unconditionally.
74581
74582 2006-10-24  Bruno Haible  <bruno@clisp.org>
74583
74584         * modules/wcwidth (Files): Add m4/wint_t.m4.
74585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74586         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74587
74588 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74591         to pacify GCC with some -W flags enabled.  Problem reported by
74592         Bruno Haible.
74593
74594 2006-10-24  Jim Meyering  <jim@meyering.net>
74595
74596         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74597         Reported by Karl Berry.
74598
74599 2006-10-23  Bruno Haible  <bruno@clisp.org>
74600
74601         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74602
74603 2006-10-24  Bruno Haible  <bruno@clisp.org>
74604
74605         * lib/gl_list.h: Use C comment style, not C++ comment style.
74606
74607 2006-10-23  Eric Blake  <ebb9@byu.net>
74608
74609         * lib/getaddrinfo.c (includes): Add missing include.
74610
74611 2006-10-23  Bruno Haible  <bruno@clisp.org>
74612             Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         Ability to rename obstack_free.
74615         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74616         obstack_free.
74617         (obstack_free): Invoke the __obstack_free macro.
74618         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74619
74620 2006-10-23  Bruno Haible  <bruno@clisp.org>
74621             Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74624         __argc, __argv from the declaration. (They are defined as macros on
74625         mingw.)
74626
74627 2006-10-22  Bruno Haible  <bruno@clisp.org>
74628
74629         * doc/gnulib-intro.texi: New file.
74630         * doc/gnulib.texi: Include it.
74631
74632 2006-10-21  Bruno Haible  <bruno@clisp.org>
74633
74634         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74635         "Introduction", "Miscellanous Notes", "Particular Modules".
74636
74637 2006-10-21  Bruno Haible  <bruno@clisp.org>
74638
74639         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74640         Change mostlyclean-local rule to avoid sh syntax error from bash
74641         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74642
74643 2006-10-23  Jim Meyering  <jim@meyering.net>
74644
74645         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74646         in place of snprintf.
74647
74648         * modules/inttostr (Files): Add lib/uinttostr.c.
74649         * lib/uinttostr.c (inttostr): New file/function.
74650         * lib/inttostr.h (uinttostr): Declare.
74651         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74652         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74653         Add uinttostr.
74654         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74655
74656 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * lib/canonicalize.c (ELOOP): Define if not already defined.
74659         Problem reported by Bruno Haible in
74660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74661
74662 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74663
74664         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74665         Problem reported by Perry Smith and Ville Laurikari.
74666
74667         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74668         uses.
74669
74670 2006-10-19  Bruno Haible  <bruno@clisp.org>
74671
74672         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74673         for mingw.
74674
74675 2006-10-19  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74678         Needed for mingw.
74679
74680 2006-10-19  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74683
74684 2006-10-19  Bruno Haible  <bruno@clisp.org>
74685
74686         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74687         it.
74688
74689 2006-10-19  Bruno Haible  <bruno@clisp.org>
74690
74691         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74692         invocation.
74693
74694 2006-10-19  Bruno Haible  <bruno@clisp.org>
74695
74696         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74697         mountlist by default.
74698
74699 2006-10-16  Bruno Haible  <bruno@clisp.org>
74700
74701         * lib/c-strstr.c: Include c-strstr.h.
74702
74703 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74704
74705         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74706         in a slash.
74707
74708 2006-10-18  Bruno Haible  <bruno@clisp.org>
74709
74710         * lib/lock.h [C++]: Wrap definitions in extern "C".
74711
74712 2006-10-18  Bruno Haible  <bruno@clisp.org>
74713
74714         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74715         gl_LIBOBJS list.
74716
74717 2006-10-18  Bruno Haible  <bruno@clisp.org>
74718
74719         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74720
74721 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         * lib/xstrtol.h: Include gettext.h.
74724         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74725         Problem reported by Eric Blake.
74726         * modules/xstrtol (Depends-on): Add gettext-h.
74727
74728 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74729
74730         * lib/strftime.c (advance): New macro.
74731         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74732         incomplete type, so you can't add 0 to it.  Problem and patch
74733         reported by Eelco Dolstra for dietlibc.
74734
74735 2006-10-18  Jim Meyering  <jim@meyering.net>
74736
74737         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74738         type for a local, and rename it: s/up/user_proc/.
74739
74740 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74741
74742         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74743         READ_UTMP_USER_PROCESS.
74744         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74745
74746 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74749         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74750
74751 2006-10-17  Eric Blake  <ebb9@byu.net>
74752
74753         * lib/sigprocmask.c (sigprocmask): Fix typo.
74754
74755         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74756
74757         * modules/clean-temp (Makefile.am): Don't add to make output...
74758         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74759         config.h.
74760
74761 2006-10-17  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74764         differently if DEFAULT_TEXT_DOMAIN is set.
74765
74766 2006-10-16  Bruno Haible  <bruno@clisp.org>
74767
74768         * lib/clean-temp.c: Include fwriteerror.h.
74769
74770 2006-10-16  Bruno Haible  <bruno@clisp.org>
74771
74772         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74773
74774 2006-10-16  Bruno Haible  <bruno@clisp.org>
74775
74776         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74777         * lib/sigprocmask.h: Include <sys/types.h>.
74778         (sigset_t): Use the system's definition if present.
74779
74780 2006-10-17  Eric Blake  <ebb9@byu.net>
74781
74782         * lib/xvasprintf.c (includes): Assume config.h.
74783         * lib/xasprintf.c (includes): Likewise.
74784
74785 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74788         at least as wide as intmax_t.
74789
74790 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74791
74792         (Imported from Automake.)
74793         * build-aux/gnupload: Update to version 1.1 of directive file.
74794
74795 2006-10-16  Eric Blake  <ebb9@byu.net>
74796
74797         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74798         match Automake 1.10a.
74799
74800 2006-10-14  Bruno Haible  <bruno@clisp.org>
74801
74802         * modules/sigprocmask: New file.
74803         * lib/sigprocmask.h: New file.
74804         * lib/sigprocmask.c: New file.
74805         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74806         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74807         request sigprocmask.o.
74808         (gl_PREREQ_SIGPROCMASK): New macro.
74809         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74810         (Depends-on): Add sigprocmask.
74811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74812         gt_SIGNALBLOCKING. Test for 'raise' only once.
74813         * lib/fatal-signal.c: Include sigprocmask.h.
74814         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74815         unblock_fatal_signals): Define always.
74816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74817         sigprocmask.
74818
74819 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         Sync from Automake.
74822         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74823         which incorrectly sets the mode of an existing destination
74824         directory.  In some cases the unpatched install-sh could do the
74825         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74826         system.  We hope this is rare in practice, but it's clearly worth
74827         fixing.  Problem reported by Alex Unleashed in
74828         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74829         Also, don't bother to check for -m bugs unless we're using -m;
74830         suggested by Stepan Kasal.
74831
74832 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74833
74834         Sync from Automake.
74835         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74836         `-c' flag, so they appear at the same position as in %FASTDEP%
74837         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74838         which ignores unknown options only after the first non-option.
74839         Bug report against M4 by Nelson H. F. Beebe.
74840
74841 2006-10-13  Jim Meyering  <jim@meyering.net>
74842
74843         Fix a bug in yesterday's change.
74844         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74845         p->fts_statp->st_dev would be used uninitialized.
74846         Ensures that we always call fts_stat on the very first entry.
74847         Miklos Szeredi reported that find -xdev stopped working.
74848
74849 2006-10-12  Bruno Haible  <bruno@clisp.org>
74850
74851         * gnulib-tool (func_get_automake_snippet): Append an automatically
74852         computed EXTRA_DIST augmentation.
74853         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74854         * modules/alloca-opt (Makefile.am): Likewise.
74855         * modules/allocsa (Makefile.am): Likewise.
74856         * modules/arcfour (Makefile.am): Likewise.
74857         * modules/arctwo (Makefile.am): Likewise.
74858         * modules/argmatch (Makefile.am): Likewise.
74859         * modules/argz (Makefile.am): Likewise.
74860         * modules/atexit (Makefile.am): Likewise.
74861         * modules/backupfile (Makefile.am): Likewise.
74862         * modules/byteswap (Makefile.am): Likewise.
74863         * modules/c-strtod (Makefile.am): Likewise.
74864         * modules/c-strtold (Makefile.am): Likewise.
74865         * modules/calloc (Makefile.am): Likewise.
74866         * modules/canon-host (Makefile.am): Likewise.
74867         * modules/canonicalize (Makefile.am): Likewise.
74868         * modules/chdir-long (Makefile.am): Likewise.
74869         * modules/chdir-safer (Makefile.am): Likewise.
74870         * modules/check-version (Makefile.am): Likewise.
74871         * modules/chown (Makefile.am): Likewise.
74872         * modules/cloexec (Makefile.am): Likewise.
74873         * modules/close-stream (Makefile.am): Likewise.
74874         * modules/closeout (Makefile.am): Likewise.
74875         * modules/crc (Makefile.am): Likewise.
74876         * modules/csharpexec (Makefile.am): Likewise.
74877         * modules/cycle-check (Makefile.am): Likewise.
74878         * modules/des (Makefile.am): Likewise.
74879         * modules/dev-ino (Makefile.am): Likewise.
74880         * modules/dirfd (Makefile.am): Likewise.
74881         * modules/dirname (Makefile.am): Likewise.
74882         * modules/dup2 (Makefile.am): Likewise.
74883         * modules/eealloc (Makefile.am): Likewise.
74884         * modules/error (Makefile.am): Likewise.
74885         * modules/euidaccess (Makefile.am): Likewise.
74886         * modules/exclude (Makefile.am): Likewise.
74887         * modules/exitfail (Makefile.am): Likewise.
74888         * modules/fcntl-safer (Makefile.am): Likewise.
74889         * modules/fcntl (Makefile.am): Likewise.
74890         * modules/file-type (Makefile.am): Likewise.
74891         * modules/fileblocks (Makefile.am): Likewise.
74892         * modules/filemode (Makefile.am): Likewise.
74893         * modules/filenamecat (Makefile.am): Likewise.
74894         * modules/fnmatch (Makefile.am): Likewise.
74895         * modules/fopen-safer (Makefile.am): Likewise.
74896         * modules/fpending (Makefile.am): Likewise.
74897         * modules/fprintftime (Makefile.am): Likewise.
74898         * modules/free (Makefile.am): Likewise.
74899         * modules/fsusage (Makefile.am): Likewise.
74900         * modules/ftruncate (Makefile.am): Likewise.
74901         * modules/fts (Makefile.am): Likewise.
74902         * modules/gc-arcfour (Makefile.am): Likewise.
74903         * modules/gc-des (Makefile.am): Likewise.
74904         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74905         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74906         * modules/gc-md4 (Makefile.am): Likewise.
74907         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74908         * modules/gc-sha1 (Makefile.am): Likewise.
74909         * modules/gc (Makefile.am): Likewise.
74910         * modules/getaddrinfo (Makefile.am): Likewise.
74911         * modules/getcwd (Makefile.am): Likewise.
74912         * modules/getdelim (Makefile.am): Likewise.
74913         * modules/getdomainname (Makefile.am): Likewise.
74914         * modules/getgroups (Makefile.am): Likewise.
74915         * modules/gethostname (Makefile.am): Likewise.
74916         * modules/gethrxtime (Makefile.am): Likewise.
74917         * modules/getline (Makefile.am): Likewise.
74918         * modules/getloadavg (Makefile.am): Likewise.
74919         * modules/getlogin_r (Makefile.am): Likewise.
74920         * modules/getndelim2 (Makefile.am): Likewise.
74921         * modules/getopt (Makefile.am): Likewise.
74922         * modules/getpagesize (Makefile.am): Likewise.
74923         * modules/getpass-gnu (Makefile.am): Likewise.
74924         * modules/getpass (Makefile.am): Likewise.
74925         * modules/getsubopt (Makefile.am): Likewise.
74926         * modules/gettime (Makefile.am): Likewise.
74927         * modules/gettimeofday (Makefile.am): Likewise.
74928         * modules/getugroups (Makefile.am): Likewise.
74929         * modules/getusershell (Makefile.am): Likewise.
74930         * modules/glob (Makefile.am): Likewise.
74931         * modules/group-member (Makefile.am): Likewise.
74932         * modules/hard-locale (Makefile.am): Likewise.
74933         * modules/hash (Makefile.am): Likewise.
74934         * modules/hmac-md5 (Makefile.am): Likewise.
74935         * modules/hmac-sha1 (Makefile.am): Likewise.
74936         * modules/human (Makefile.am): Likewise.
74937         * modules/idcache (Makefile.am): Likewise.
74938         * modules/imaxabs (Makefile.am): Likewise.
74939         * modules/imaxdiv (Makefile.am): Likewise.
74940         * modules/inet_ntop (Makefile.am): Likewise.
74941         * modules/inet_pton (Makefile.am): Likewise.
74942         * modules/intprops (Makefile.am): Likewise.
74943         * modules/inttostr (Makefile.am): Likewise.
74944         * modules/inttypes (Makefile.am): Likewise.
74945         * modules/isapipe (Makefile.am): Likewise.
74946         * modules/javaversion (Makefile.am): Likewise.
74947         * modules/lchmod (Makefile.am): Likewise.
74948         * modules/lchown (Makefile.am): Likewise.
74949         * modules/localcharset (Makefile.am): Likewise.
74950         * modules/long-options (Makefile.am): Likewise.
74951         * modules/lstat (Makefile.am): Likewise.
74952         * modules/malloc (Makefile.am): Likewise.
74953         * modules/mathl (Makefile.am): Likewise.
74954         * modules/mbchar (Makefile.am): Likewise.
74955         * modules/md2 (Makefile.am): Likewise.
74956         * modules/md4 (Makefile.am): Likewise.
74957         * modules/md5 (Makefile.am): Likewise.
74958         * modules/memcasecmp (Makefile.am): Likewise.
74959         * modules/memchr (Makefile.am): Likewise.
74960         * modules/memcmp (Makefile.am): Likewise.
74961         * modules/memcoll (Makefile.am): Likewise.
74962         * modules/memcpy (Makefile.am): Likewise.
74963         * modules/memmem (Makefile.am): Likewise.
74964         * modules/memmove (Makefile.am): Likewise.
74965         * modules/mempcpy (Makefile.am): Likewise.
74966         * modules/memrchr (Makefile.am): Likewise.
74967         * modules/memset (Makefile.am): Likewise.
74968         * modules/memxor (Makefile.am): Likewise.
74969         * modules/mkancesdirs (Makefile.am): Likewise.
74970         * modules/mkdir-p (Makefile.am): Likewise.
74971         * modules/mkdir (Makefile.am): Likewise.
74972         * modules/mkdtemp (Makefile.am): Likewise.
74973         * modules/mkstemp (Makefile.am): Likewise.
74974         * modules/mktime (Makefile.am): Likewise.
74975         * modules/modechange (Makefile.am): Likewise.
74976         * modules/mountlist (Makefile.am): Likewise.
74977         * modules/nanosleep (Makefile.am): Likewise.
74978         * modules/obstack (Makefile.am): Likewise.
74979         * modules/openat (Makefile.am): Likewise.
74980         * modules/pagealign_alloc (Makefile.am): Likewise.
74981         * modules/pathmax (Makefile.am): Likewise.
74982         * modules/physmem (Makefile.am): Likewise.
74983         * modules/poll (Makefile.am): Likewise.
74984         * modules/posixtm (Makefile.am): Likewise.
74985         * modules/posixver (Makefile.am): Likewise.
74986         * modules/putenv (Makefile.am): Likewise.
74987         * modules/quote (Makefile.am): Likewise.
74988         * modules/quotearg (Makefile.am): Likewise.
74989         * modules/raise (Makefile.am): Likewise.
74990         * modules/read-file (Makefile.am): Likewise.
74991         * modules/readline (Makefile.am): Likewise.
74992         * modules/readlink (Makefile.am): Likewise.
74993         * modules/readtokens (Makefile.am): Likewise.
74994         * modules/readutmp (Makefile.am): Likewise.
74995         * modules/realloc (Makefile.am): Likewise.
74996         * modules/regex (Makefile.am): Likewise.
74997         * modules/rename-dest-slash (Makefile.am): Likewise.
74998         * modules/rename (Makefile.am): Likewise.
74999         * modules/rijndael (Makefile.am): Likewise.
75000         * modules/rmdir (Makefile.am): Likewise.
75001         * modules/rpmatch (Makefile.am): Likewise.
75002         * modules/safe-read (Makefile.am): Likewise.
75003         * modules/safe-write (Makefile.am): Likewise.
75004         * modules/same-inode (Makefile.am): Likewise.
75005         * modules/same (Makefile.am): Likewise.
75006         * modules/save-cwd (Makefile.am): Likewise.
75007         * modules/savedir (Makefile.am): Likewise.
75008         * modules/setenv (Makefile.am): Likewise.
75009         * modules/settime (Makefile.am): Likewise.
75010         * modules/sha1 (Makefile.am): Likewise.
75011         * modules/sig2str (Makefile.am): Likewise.
75012         * modules/snprintf (Makefile.am): Likewise.
75013         * modules/stat-macros (Makefile.am): Likewise.
75014         * modules/stat-time (Makefile.am): Likewise.
75015         * modules/stdbool (Makefile.am): Likewise.
75016         * modules/stdint (Makefile.am): Likewise.
75017         * modules/stdlib-safer (Makefile.am): Likewise.
75018         * modules/stpcpy (Makefile.am): Likewise.
75019         * modules/stpncpy (Makefile.am): Likewise.
75020         * modules/strcase (Makefile.am): Likewise.
75021         * modules/strcasestr (Makefile.am): Likewise.
75022         * modules/strchrnul (Makefile.am): Likewise.
75023         * modules/strcspn (Makefile.am): Likewise.
75024         * modules/strdup (Makefile.am): Likewise.
75025         * modules/strerror (Makefile.am): Likewise.
75026         * modules/strftime (Makefile.am): Likewise.
75027         * modules/strndup (Makefile.am): Likewise.
75028         * modules/strnlen (Makefile.am): Likewise.
75029         * modules/strpbrk (Makefile.am): Likewise.
75030         * modules/strsep (Makefile.am): Likewise.
75031         * modules/strstr (Makefile.am): Likewise.
75032         * modules/strtod (Makefile.am): Likewise.
75033         * modules/strtoimax (Makefile.am): Likewise.
75034         * modules/strtok_r (Makefile.am): Likewise.
75035         * modules/strtol (Makefile.am): Likewise.
75036         * modules/strtoll (Makefile.am): Likewise.
75037         * modules/strtoul (Makefile.am): Likewise.
75038         * modules/strtoull (Makefile.am): Likewise.
75039         * modules/strtoumax (Makefile.am): Likewise.
75040         * modules/strverscmp (Makefile.am): Likewise.
75041         * modules/sys_socket (Makefile.am): Likewise.
75042         * modules/sys_stat (Makefile.am): Likewise.
75043         * modules/sysexits (Makefile.am): Likewise.
75044         * modules/time_r (Makefile.am): Likewise.
75045         * modules/timegm (Makefile.am): Likewise.
75046         * modules/timespec (Makefile.am): Likewise.
75047         * modules/tmpfile-safer (Makefile.am): Likewise.
75048         * modules/trim (Makefile.am): Likewise.
75049         * modules/unistd-safer (Makefile.am): Likewise.
75050         * modules/unlinkdir (Makefile.am): Likewise.
75051         * modules/unlocked-io (Makefile.am): Likewise.
75052         * modules/userspec (Makefile.am): Likewise.
75053         * modules/utime (Makefile.am): Likewise.
75054         * modules/utimecmp (Makefile.am): Likewise.
75055         * modules/utimens (Makefile.am): Likewise.
75056         * modules/vasnprintf (Makefile.am): Likewise.
75057         * modules/vasprintf (Makefile.am): Likewise.
75058         * modules/vsnprintf (Makefile.am): Likewise.
75059         * modules/xalloc (Makefile.am): Likewise.
75060         * modules/xgetcwd (Makefile.am): Likewise.
75061         * modules/xnanosleep (Makefile.am): Likewise.
75062         * modules/xreadlink (Makefile.am): Likewise.
75063         * modules/xstrtod (Makefile.am): Likewise.
75064         * modules/xstrtol (Makefile.am): Likewise.
75065         * modules/xstrtold (Makefile.am): Likewise.
75066         * modules/yesno (Makefile.am): Likewise.
75067         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75068
75069 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * modules/error (Makefile.am): Distribute files through
75072         EXTRA_DIST, not lib_SOURCES.
75073
75074 2006-10-12  Eric Blake  <ebb9@byu.net>
75075
75076         * modules/error (Makefile.am): Distribute files in /lib.
75077         * modules/obstack (Makefile.am): Likewise.
75078
75079 2006-10-12  Bruno Haible  <bruno@clisp.org>
75080
75081         * modules/acl (Makefile.am): Distribute all files in lib/ through
75082         EXTRA_DIST.
75083         * modules/arcfour (Makefile.am): Likewise.
75084         * modules/arctwo (Makefile.am): Likewise.
75085         * modules/argmatch (Makefile.am): Likewise.
75086         * modules/argz (Makefile.am): Likewise.
75087         * modules/atexit (Makefile.am): Likewise.
75088         * modules/backupfile (Makefile.am): Likewise.
75089         * modules/c-strtod (Makefile.am): Likewise.
75090         * modules/c-strtold (Makefile.am): Likewise.
75091         * modules/calloc (Makefile.am): Likewise.
75092         * modules/canon-host (Makefile.am): Likewise.
75093         * modules/canonicalize (Makefile.am): Likewise.
75094         * modules/chdir-long (Makefile.am): Likewise.
75095         * modules/chdir-safer (Makefile.am): Likewise.
75096         * modules/check-version (Makefile.am): Likewise.
75097         * modules/chown (Makefile.am): Likewise.
75098         * modules/cloexec (Makefile.am): Likewise.
75099         * modules/close-stream (Makefile.am): Likewise.
75100         * modules/closeout (Makefile.am): Likewise.
75101         * modules/crc (Makefile.am): Likewise.
75102         * modules/cycle-check (Makefile.am): Likewise.
75103         * modules/des (Makefile.am): Likewise.
75104         * modules/dirfd (Makefile.am): Likewise.
75105         * modules/dirname (Makefile.am): Likewise.
75106         * modules/dup2 (Makefile.am): Likewise.
75107         * modules/euidaccess (Makefile.am): Likewise.
75108         * modules/exclude (Makefile.am): Likewise.
75109         * modules/exitfail (Makefile.am): Likewise.
75110         * modules/fcntl-safer (Makefile.am): Likewise.
75111         * modules/file-type (Makefile.am): Likewise.
75112         * modules/fileblocks (Makefile.am): Likewise.
75113         * modules/filemode (Makefile.am): Likewise.
75114         * modules/filenamecat (Makefile.am): Likewise.
75115         * modules/fnmatch (Makefile.am): Likewise.
75116         * modules/fopen-safer (Makefile.am): Likewise.
75117         * modules/fpending (Makefile.am): Likewise.
75118         * modules/fprintftime (Makefile.am): Likewise.
75119         * modules/free (Makefile.am): Likewise.
75120         * modules/fsusage (Makefile.am): Likewise.
75121         * modules/ftruncate (Makefile.am): Likewise.
75122         * modules/fts (Makefile.am): Likewise.
75123         * modules/gc (Makefile.am): Likewise.
75124         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75125         * modules/getaddrinfo (Makefile.am): Likewise.
75126         * modules/getcwd (Makefile.am): Likewise.
75127         * modules/getdelim (Makefile.am): Likewise.
75128         * modules/getdomainname (Makefile.am): Likewise.
75129         * modules/getgroups (Makefile.am): Likewise.
75130         * modules/gethostname (Makefile.am): Likewise.
75131         * modules/gethrxtime (Makefile.am): Likewise.
75132         * modules/getline (Makefile.am): Likewise.
75133         * modules/getloadavg (Makefile.am): Likewise.
75134         * modules/getlogin_r (Makefile.am): Likewise.
75135         * modules/getopt (Makefile.am): Likewise.
75136         * modules/getpass (Makefile.am): Likewise.
75137         * modules/getpass-gnu (Makefile.am): Likewise.
75138         * modules/getsubopt (Makefile.am): Likewise.
75139         * modules/gettime (Makefile.am): Likewise.
75140         * modules/gettimeofday (Makefile.am): Likewise.
75141         * modules/getugroups (Makefile.am): Likewise.
75142         * modules/getusershell (Makefile.am): Likewise.
75143         * modules/glob (Makefile.am): Likewise.
75144         * modules/group-member (Makefile.am): Likewise.
75145         * modules/hard-locale (Makefile.am): Likewise.
75146         * modules/hash (Makefile.am): Likewise.
75147         * modules/hmac-md5 (Makefile.am): Likewise.
75148         * modules/hmac-sha1 (Makefile.am): Likewise.
75149         * modules/human (Makefile.am): Likewise.
75150         * modules/idcache (Makefile.am): Likewise.
75151         * modules/imaxabs (Makefile.am): Likewise.
75152         * modules/imaxdiv (Makefile.am): Likewise.
75153         * modules/inet_ntop (Makefile.am): Likewise.
75154         * modules/inet_pton (Makefile.am): Likewise.
75155         * modules/inttostr (Makefile.am): Likewise.
75156         * modules/isapipe (Makefile.am): Likewise.
75157         * modules/lchown (Makefile.am): Likewise.
75158         * modules/long-options (Makefile.am): Likewise.
75159         * modules/lstat (Makefile.am): Likewise.
75160         * modules/malloc (Makefile.am): Likewise.
75161         * modules/mathl (Makefile.am): Likewise.
75162         * modules/mbchar (Makefile.am): Likewise.
75163         * modules/md2 (Makefile.am): Likewise.
75164         * modules/md4 (Makefile.am): Likewise.
75165         * modules/md5 (Makefile.am): Likewise.
75166         * modules/memcasecmp (Makefile.am): Likewise.
75167         * modules/memchr (Makefile.am): Likewise.
75168         * modules/memcmp (Makefile.am): Likewise.
75169         * modules/memcoll (Makefile.am): Likewise.
75170         * modules/memcpy (Makefile.am): Likewise.
75171         * modules/memmem (Makefile.am): Likewise.
75172         * modules/memmove (Makefile.am): Likewise.
75173         * modules/mempcpy (Makefile.am): Likewise.
75174         * modules/memrchr (Makefile.am): Likewise.
75175         * modules/memset (Makefile.am): Likewise.
75176         * modules/memxor (Makefile.am): Likewise.
75177         * modules/mkancesdirs (Makefile.am): Likewise.
75178         * modules/mkdir (Makefile.am): Likewise.
75179         * modules/mkdir-p (Makefile.am): Likewise.
75180         * modules/mkdtemp (Makefile.am): Likewise.
75181         * modules/mkstemp (Makefile.am): Likewise.
75182         * modules/mktime (Makefile.am): Likewise.
75183         * modules/modechange (Makefile.am): Likewise.
75184         * modules/mountlist (Makefile.am): Likewise.
75185         * modules/nanosleep (Makefile.am): Likewise.
75186         * modules/openat (Makefile.am): Likewise.
75187         * modules/pagealign_alloc (Makefile.am): Likewise.
75188         * modules/physmem (Makefile.am): Likewise.
75189         * modules/poll (Makefile.am): Likewise.
75190         * modules/posixtm (Makefile.am): Likewise.
75191         * modules/posixver (Makefile.am): Likewise.
75192         * modules/putenv (Makefile.am): Likewise.
75193         * modules/quote (Makefile.am): Likewise.
75194         * modules/quotearg (Makefile.am): Likewise.
75195         * modules/raise (Makefile.am): Likewise.
75196         * modules/read-file (Makefile.am): Likewise.
75197         * modules/readline (Makefile.am): Likewise.
75198         * modules/readlink (Makefile.am): Likewise.
75199         * modules/readtokens (Makefile.am): Likewise.
75200         * modules/readutmp (Makefile.am): Likewise.
75201         * modules/realloc (Makefile.am): Likewise.
75202         * modules/regex (Makefile.am): Likewise.
75203         * modules/rename (Makefile.am): Likewise.
75204         * modules/rename-dest-slash (Makefile.am): Likewise.
75205         * modules/rijndael (Makefile.am): Likewise.
75206         * modules/rmdir (Makefile.am): Likewise.
75207         * modules/rpmatch (Makefile.am): Likewise.
75208         * modules/safe-read (Makefile.am): Likewise.
75209         * modules/safe-write (Makefile.am): Likewise.
75210         * modules/same (Makefile.am): Likewise.
75211         * modules/save-cwd (Makefile.am): Likewise.
75212         * modules/savedir (Makefile.am): Likewise.
75213         * modules/setenv (Makefile.am): Likewise.
75214         * modules/settime (Makefile.am): Likewise.
75215         * modules/sha1 (Makefile.am): Likewise.
75216         * modules/sig2str (Makefile.am): Likewise.
75217         * modules/snprintf (Makefile.am): Likewise.
75218         * modules/stdlib-safer (Makefile.am): Likewise.
75219         * modules/stpcpy (Makefile.am): Likewise.
75220         * modules/stpncpy (Makefile.am): Likewise.
75221         * modules/strcase (Makefile.am): Likewise.
75222         * modules/strcasestr (Makefile.am): Likewise.
75223         * modules/strchrnul (Makefile.am): Likewise.
75224         * modules/strcspn (Makefile.am): Likewise.
75225         * modules/strdup (Makefile.am): Likewise.
75226         * modules/strerror (Makefile.am): Likewise.
75227         * modules/strftime (Makefile.am): Likewise.
75228         * modules/strndup (Makefile.am): Likewise.
75229         * modules/strnlen (Makefile.am): Likewise.
75230         * modules/strpbrk (Makefile.am): Likewise.
75231         * modules/strsep (Makefile.am): Likewise.
75232         * modules/strstr (Makefile.am): Likewise.
75233         * modules/strtod (Makefile.am): Likewise.
75234         * modules/strtoimax (Makefile.am): Likewise.
75235         * modules/strtok_r (Makefile.am): Likewise.
75236         * modules/strtol (Makefile.am): Likewise.
75237         * modules/strtoll (Makefile.am): Likewise.
75238         * modules/strtoul (Makefile.am): Likewise.
75239         * modules/strtoull (Makefile.am): Likewise.
75240         * modules/strtoumax (Makefile.am): Likewise.
75241         * modules/strverscmp (Makefile.am): Likewise.
75242         * modules/time_r (Makefile.am): Likewise.
75243         * modules/timegm (Makefile.am): Likewise.
75244         * modules/tmpfile-safer (Makefile.am): Likewise.
75245         * modules/unistd-safer (Makefile.am): Likewise.
75246         * modules/unlinkdir (Makefile.am): Likewise.
75247         * modules/userspec (Makefile.am): Likewise.
75248         * modules/utime (Makefile.am): Likewise.
75249         * modules/utimecmp (Makefile.am): Likewise.
75250         * modules/utimens (Makefile.am): Likewise.
75251         * modules/vasnprintf (Makefile.am): Likewise.
75252         * modules/vasprintf (Makefile.am): Likewise.
75253         * modules/vsnprintf (Makefile.am): Likewise.
75254         * modules/xalloc (Makefile.am): Likewise.
75255         * modules/xgetcwd (Makefile.am): Likewise.
75256         * modules/xnanosleep (Makefile.am): Likewise.
75257         * modules/xreadlink (Makefile.am): Likewise.
75258         * modules/xstrtod (Makefile.am): Likewise.
75259         * modules/xstrtol (Makefile.am): Likewise.
75260         * modules/xstrtold (Makefile.am): Likewise.
75261         * modules/yesno (Makefile.am): Likewise.
75262
75263 2006-10-12  Jim Meyering  <jim@meyering.net>
75264
75265         * m4/getloadavg.m4: Revert the change below.
75266
75267         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75268         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75269         fail with a symlink, which is what coreutils' ./bootstrap now
75270         creates by default.
75271
75272 2006-10-12  Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75275         mingw.
75276         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75277         MSVC and mingw explicitly.
75278
75279 2006-10-11  Simon Josefsson  <jas@extundo.com>
75280             Bruno Haible  <bruno@clisp.org>
75281
75282         Add support for multiple gnulib-tool invocations in the scope of a
75283         single configure.ac file.
75284         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75285         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75286         with the same contents as the _LIBADD variable.
75287         (func_emit_initmacro_start, func_emit_initmacro_end,
75288         func_emit_initmacro_done): New functions.
75289         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75290         gl_LIBOBJS and gl_LTLIBOBJS.
75291
75292 2006-10-11  Bruno Haible  <bruno@clisp.org>
75293
75294         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75295         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75296         autoreconf. Instead, invoke autopoint explicitly but move back the
75297         *.m4 files from gnulib.
75298
75299 2006-10-11  Bruno Haible  <bruno@clisp.org>
75300
75301         * gnulib-tool (func_usage): Make module names after --create-testdir
75302         optional.
75303         (func_create_testdir): If no module was specified, use nearly all
75304         modules.
75305
75306 2006-10-12  Jim Meyering  <jim@meyering.net>
75307
75308         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75309         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75310         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75311         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75312         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75313         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75314         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75315         (fts_set_stat_required): New function.
75316         (fts_open): Defer the calls to fts_stat, if possible or requested.
75317         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75318         into fts_stat itself.
75319         (fts_read): Perform any required (deferred) fts_stat call.
75320         (fts_build): Likewise, for the directory we're about to open and read.
75321         In the readdir loop, carefully decide whether each entry will require
75322         an eventual call to fts_stat, using dirent.d_type info if available.
75323         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75324         a command line argument into this function.  Update all callers.
75325         Map a return value of FTS_DOT to FTS_D for a command line argument.
75326         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75327         Thanks to Miklos Szeredi for his tenacity and for the initial
75328         bug report about "find" failing on a FUSE-based file system.
75329
75330         * lib/fts.c (fts_open): Use consistent indentation.
75331
75332 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75335         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75336         reported by Jim Meyering.  All uses of cache variables renamed
75337         to match Autoconf's.
75338         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75339         the other one.
75340
75341         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75342         Fix misspelling in diagnostic.
75343
75344 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75347         defined.  Problem reported by Matthew Woehlke.
75348
75349         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75350         Add support for Tandem NonStop R series.
75351         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75352         Use new macro.
75353
75354         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75355         (has_trailing_slash): Omit size arg; all callers changed.
75356         Omit 'inline', since it doesn't help performance and we'd
75357         need to configure it.
75358         Don't count //, ///, etc. as having a trailing slash.
75359         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75360         (rpl_rename_dest_slash): On failure, use rename's errno rather
75361         than (in some cases) an incorrect or junk errno.
75362         Simplify code by removing need to compute length; this does
75363         cause it to make two passes instead of one over the file name,
75364         but it's worth it.
75365
75366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75367         change, since Autoconf's version may no longer be appropriate now
75368         that we are using CVS Autoconf's version.  Add support for Tandem.
75369
75370 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75371             Bruno Haible  <bruno@clisp.org>
75372
75373         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75374         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75375         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75376         gl_AC_TYPE_LONG_LONG.
75377
75378         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75379         instead of HAVE_LONG_LONG.
75380         * lib/printf-args.c (printf_fetchargs): Likewise.
75381         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75382         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75384         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75385         gl_AC_TYPE_LONG_LONG.
75386
75387 2006-10-11  Bruno Haible  <bruno@clisp.org>
75388
75389         * m4/longlong.m4: Add comments.
75390         * m4/ulonglong.m4: Likewise.
75391
75392 2006-10-10  Bruno Haible  <bruno@clisp.org>
75393
75394         Make it possible to #define stpcpy, strdup to aliases.
75395         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75396         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75397
75398 2006-10-10  Bruno Haible  <bruno@clisp.org>
75399
75400         Make it possible to #define gcd to an alias.
75401         * lib/gcd.c: Include config.h.
75402
75403 2006-10-10  Bruno Haible  <bruno@clisp.org>
75404
75405         Make it possible to #define c_isascii to an alias.
75406         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75407         defined. Undefine the macros before defining them, to avoid gcc
75408         warnings.
75409         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75410         define NO_C_CTYPE_MACROS early.
75411
75412 2006-10-10  Bruno Haible  <bruno@clisp.org>
75413
75414         Make it possible to #define set_program_name to an alias.
75415         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75416         ENABLE_RELOCATABLE early.
75417
75418 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75421         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75422         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75423         More generally, don't assume that 64-bit signed int is available
75424         if unsigned int is, and vice versa.
75425         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75426         unsigned symbols, not on their signed counterparts.
75427         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75428         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75429         (UINT64_C, UINTMAX_C):
75430         Likewise.
75431         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75432         unsigned counterparts.
75433         (Have_long_long, Unsigned): New macros.
75434         (Int): Renamed from INT.
75435         (strtoimax): Use the new macros.
75436         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75437         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75438         * modules/inttypes (inttypes.h): Substitute
75439         HAVE_UNSIGNED_LONG_LONG_INT.
75440         * modules/stdint (stdint.h): Likewise.
75441         (Files): Add m4/ulonglong.m4.
75442
75443 2006-10-10  Bruno Haible  <bruno@clisp.org>
75444
75445         Fix a gcc -Wshadow warning.
75446         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75447         to 'bucket'.
75448         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75449         gl_linked_indexof_from_to): Likewise.
75450         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75451         Likewise.
75452         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75453         Likewise.
75454         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75455         Reported by Eric Blake.
75456
75457 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75460         for NetBSD.  Problem reported by Bruno Haible.
75461
75462 2006-10-09  Jim Meyering  <jim@meyering.net>
75463
75464         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75465         Patch from Bruno Haible.
75466
75467 2006-10-09  Jim Meyering  <jim@meyering.net>
75468
75469         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75470         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75471         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75472
75473 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75474
75475         Don't include <config.h> twice; this doesn't work in some cases,
75476         e.g., when config.h has "#define intmax_t long long int" and
75477         we include <config.h>, <inttypes.h>, <config.h> in that order.
75478         Problem reported by Matthew Woehlke in:
75479         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75480         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75481         * lib/fts-cycle.c: Don't include config.h.
75482         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75483         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75484         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75485         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75486         inttypes.h.
75487         * lib/xstrtoumax.c: Likewise.
75488         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75489         __strtol and the like, so that this module is more like its siblings.
75490         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75491         Remove; no longer needed now that we assume gnulib inttypes.h.
75492
75493 2006-10-08  Bruno Haible  <bruno@clisp.org>
75494
75495         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75496         option.
75497
75498 2006-10-07  Jim Meyering  <jim@meyering.net>
75499
75500         * modules/inttypes (inttypes.h): Revert what seems to have been
75501         an inadvertent part of today's change: use "|", not "/" in the
75502         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75503
75504 2006-10-07  Bruno Haible  <bruno@clisp.org>
75505
75506         * modules/sublist: New file.
75507
75508 2006-10-07  Bruno Haible  <bruno@clisp.org>
75509
75510         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75511         * modules/argz (argz.h): Likewise.
75512         * modules/arpa_inet (arpa/inet.h): Likewise.
75513         * modules/byteswap (byteswap.h): Likewise.
75514         * modules/configmake (configmake.h): Likewise.
75515         * modules/fcntl (fcntl.h): Likewise.
75516         * modules/fnmatch (fnmatch.h): Likewise.
75517         * modules/getopt (getopt.h): Likewise.
75518         * modules/glob (glob.h): Likewise.
75519         * modules/inttypes (inttypes.h): Likewise.
75520         * modules/netinet_in (netinet/in.h): Likewise.
75521         * modules/poll (poll.h): Likewise.
75522         * modules/stdbool (stdbool.h): Likewise.
75523         * modules/stdint (stdint.h): Likewise.
75524         * modules/sys_select (sys/select.h): Likewise.
75525         * modules/sys_socket (sys/socket.h): Likewise.
75526         * modules/sys_stat (sys/stat.h): Likewise.
75527         * modules/sysexits (sysexits.h): Likewise.
75528         * modules/unistd (unistd.h): Likewise.
75529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75530         Add a "DO NOT EDIT" comment to the generated file.
75531         (func_import): Likewise for gnulib-comp.m4.
75532
75533 2006-10-07  Bruno Haible  <bruno@clisp.org>
75534
75535         * lib/gl_sublist.h: New file.
75536         * lib/gl_sublist.c: New file.
75537
75538 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75541         name (relative to the original working directory) and the file
75542         name component (relative to the temporary working directory).  All
75543         callers changed.
75544         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75545         * lib/mkdir-p.c (make_dir_parents): Likewise.
75546         * lib/mkdir-p.h (make_dir_parents): Likewise.
75547
75548 2006-10-06  Eric Blake  <ebb9@byu.net>
75549
75550         Define several macros for use by the clean-temp module.
75551         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75552         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75554
75555         * lib/clean-temp.h (close_stream_temp): New declaration.
75556         * lib/clean-temp.c (includes): Pull in headers according to what
75557         other modules are in use.
75558         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75559
75560 2006-10-06  Bruno Haible  <bruno@clisp.org>
75561
75562         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75563         instead of fopen, fwriteerror.
75564
75565 2006-10-06  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75568         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75569         int.
75570         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75571         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75572         Return an error indicator.
75573         Suggested by Eric Blake.
75574
75575 2006-10-06  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75578         Reported by Eric Blake.
75579
75580 2006-10-06  Bruno Haible  <bruno@clisp.org>
75581
75582         * modules/closeout (Description): Mention stderr too.
75583
75584 2006-10-06  Bruno Haible  <bruno@clisp.org>
75585         and Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * lib/closeout.c (close_stdout): Also close stderr.
75588         * lib/closeout.h: Update comment.
75589
75590 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75593         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75594         * lib/dirchownmod.c: Include lchown.h.
75595         * lib/lchown.c: Don't include files that lchown.h now includes.
75596         Don't declare chown, since lchown.h now does that.
75597         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75598         (lchown): Define to rpl_chown if lchown is declared but
75599         does not exist.  Declare using a prototype if lchown is not
75600         declared.  Add a copyright notice.
75601         * lib/mkstemp.h: Include <unistd.h>.
75602         * lib/openat.c: Include lchown.h.
75603
75604         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75605         we now test for that separately.
75606         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75607         rather than O_NOFOLLOW, when testing whether it's possible to
75608         avoid a race condition reliably.
75609         * lib/savewd.c (savewd_chdir): Likewise.
75610
75611         Remove macros that are no longer needed now that stdint.h is
75612         reliable.
75613         * lib/fsusage.c (UINTMAX_MAX): Remove.
75614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75615         * lib/utimecmp.c (SIZE_MAX): Remove.
75616
75617         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75618
75619         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75620         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75621         O_NOATIME works.
75622
75623 2006-10-05  Bruno Haible  <bruno@clisp.org>
75624
75625         * lib/gl_list.h (gl_sortedlist_search_from_to,
75626         gl_sortedlist_indexof_from_to): New declarations.
75627         (gl_list_implementation): New fields sortedlist_search_from_to,
75628         sortedlist_indexof_from_to.
75629         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75630         inline functions.
75631         * lib/gl_list.c (gl_sortedlist_search_from_to,
75632         gl_sortedlist_indexof_from_to): New functions.
75633         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75634         function.
75635         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75636         (gl_array_sortedlist_search_from_to): New function.
75637         (gl_array_list_implementation): Update.
75638         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75639         function.
75640         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75641         (gl_carray_sortedlist_search_from_to): New function.
75642         (gl_carray_list_implementation): Update.
75643         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75644         gl_linked_sortedlist_indexof_from_to): New functions.
75645         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75646         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75647         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75648         gl_tree_sortedlist_indexof_from_to): New functions.
75649         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75650         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75651         Update.
75652         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75653         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75654         Update.
75655
75656 2006-10-05  Bruno Haible  <bruno@clisp.org>
75657
75658         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75659         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75660         (struct gl_list_implementation): Add fields search_from_to,
75661         indexof_from_to. Remove fields search, indexof.
75662         (gl_list_search): Use the search_from_to method.
75663         (gl_list_search_from, gl_list_search_from_to): New functions.
75664         (gl_list_indexof): Use the indexof_from_to method.
75665         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75666         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75667         (gl_list_search_from, gl_list_search_from_to): New functions.
75668         (gl_list_indexof): Use the indexof_from_to method.
75669         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75670         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75671         gl_array_indexof. Add start_index, end_index arguments.
75672         (gl_array_search_from_to): Renamed from gl_array_search. Add
75673         start_index, end_index arguments.
75674         (gl_array_remove, gl_array_list_implementation): Update.
75675         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75676         gl_carray_indexof. Add start_index, end_index arguments.
75677         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75678         start_index, end_index arguments.
75679         (gl_carray_remove, gl_carray_list_implementation): Update.
75680         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75681         gl_linked_search. Add start_index, end_index arguments.
75682         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75683         start_index, end_index arguments.
75684         (gl_linked_remove): Update.
75685         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75686         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75687         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75688         field to 'size_t'.
75689         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75690         gl_tree_search. Add start_index, end_index arguments.
75691         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75692         start_index, end_index arguments.
75693         (gl_tree_remove): Update.
75694         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75695         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75696         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75697         function.
75698         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75699         gl_tree_search. Add start_index, end_index arguments.
75700         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75701         start_index, end_index arguments.
75702         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75703         Update.
75704         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75705
75706 2006-10-05  Bruno Haible  <bruno@clisp.org>
75707
75708         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75709
75710         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75711         fwriteerror_temp): New declarations.
75712         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75713         (descriptors): New variable.
75714         (cleanup): First, close the descriptors.
75715         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75716         fclose_temp, fwriteerror_temp): New functions.
75717
75718 2006-10-04  Jim Meyering  <jim@meyering.net>
75719
75720         * lib/fts.c (fts_open): Tiny comment change.
75721
75722 2006-10-04  Bruno Haible  <bruno@clisp.org>
75723
75724         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75725         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75726         gl_LOCK_BODY.
75727         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75728         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75729         gl_LOCK_EARLY_BODY.
75730         (gl_LOCK): Require gl_LOCK_BODY.
75731
75732 2006-10-04  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75735         (gl_oset_search_atleast): New declaration.
75736         (struct gl_oset_implementation): Add field 'search_atleast'.
75737         (gl_oset_search_atleast): New inline function.
75738         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75739         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75740         (gl_array_oset_implementation): Update.
75741         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75742         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75743         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75744
75745 2006-10-04  Bruno Haible  <bruno@clisp.org>
75746
75747         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75748
75749 2006-10-03  Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75752         from gl_avltreehash_list_implementation.
75753
75754 2006-10-03  Bruno Haible  <bruno@clisp.org>
75755
75756         * lib/gl_oset.c (gl_oset_add): Fix return type.
75757
75758 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75759
75760         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75761
75762 2006-10-02  Eric Blake  <ebb9@byu.net>
75763
75764         * modules/strnlen (Depends-on): Add extensions.
75765
75766 2006-10-02  Eric Blake  <ebb9@byu.net>
75767
75768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75769         definition in 2.60+.
75770
75771 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75772
75773         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75774         checks.
75775
75776 2006-10-02  Bruno Haible  <bruno@clisp.org>
75777
75778         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75779         to the AUTOMAKE_OPTIONS.
75780         Reported by Jim Meyering.
75781
75782 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         Work around bug in Solaris 10 /proc file system:
75785         /proc/self/fd/NNN/.. isn't the parent directory of
75786         the directory whose file descriptor is NNN.  This needs to
75787         be worked around at run time, not compile time, since a
75788         program might be built on Solaris 8, where things work, and
75789         run on Solaris 10.
75790         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75791         to use the following interface instead:
75792         (OPENAT_BUFFER_SIZE): New macro.
75793         (openat_proc_name): New function.
75794         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75795         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75796         Likewise.
75797         * lib/openat-proc.c: New file.
75798         * modules/openat (Files): Add lib/openat-proc.c.
75799         (Depends-on): Add same-inode, stdbool.
75800         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75801
75802 2006-09-29  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75805         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75806         argument. Set stdout_closed before testing for ferror, not after.
75807         (fwriteerror, fwriteerror_no_ebadf): New functions.
75808
75809 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75810
75811         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75812
75813 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75814
75815         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75816         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75817
75818 2006-09-28  Jim Meyering  <jim@meyering.net>
75819
75820         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75821         Include <unistd.h>.
75822
75823 2006-09-28  Bruno Haible  <bruno@clisp.org>
75824
75825         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75826         * modules/linkedhash-list (Depends-on): Likewise.
75827         * modules/rbtreehash-list (Depends-on): Likewise.
75828
75829 2006-09-28  Bruno Haible  <bruno@clisp.org>
75830
75831         * lib/strndup.h: Simplify the redefinition of strndup.
75832         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75834
75835 2006-09-28  Bruno Haible  <bruno@clisp.org>
75836
75837         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75838         * lib/gl_linkedhash_list.c: Likewise.
75839         * lib/gl_rbtreehash_list.c: Likewise.
75840
75841 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75844         getaddrinfo.
75845
75846         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75847         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75848         it causes <stdio_ext.h> to cause a compile-time error.
75849         Problem reported by Nelson H. F. Beebe.
75850         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75851         of HAVE_DECL___PENDING.
75852
75853         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75855         declaration.
75856
75857 2006-09-27  Jim Meyering  <jim@meyering.net>
75858
75859         This file could end up with a definition for a function
75860         named __strndup, rather than rpl_strndup on a system with
75861         incomplete weak_alias support.
75862         * lib/strndup.c (strndup): Rename from __strndup.
75863         Remove #defines that used to map __strndup to strndup.
75864         Don't use K&R prototypes.
75865         Remove LIBC-related code, since this file is not sync'd with glibc.
75866         * lib/strndup.h: Revamp, accordingly.
75867         * m4/strndup.m4: Modernize.
75868
75869 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75870
75871         * modules/savewd (Depends-on): Add 'raise'.
75872         * lib/savewd.c: Include <signal.h>, for 'raise'.
75873
75874 2006-09-26  Jim Meyering  <jim@meyering.net>
75875
75876         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75877         when we detect Darwin 8.7.0's acl_get_file bug.
75878         Rearrange to perform the new (below) run-test while $LIBS
75879         contains any acl-related library.  Set USE_ACL at the end.
75880         (gl_ACL_GET_FILE): New function.
75881
75882 2006-09-26  Eric Blake  <ebb9@byu.net>
75883
75884         * lib/verror.c: Include <config.h> unconditionally.
75885
75886 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75887
75888         * modules/clock-time (Maintainer): Add self.
75889         * modules/getlogin_r (Depends-on): Add extensions.
75890
75891 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75892
75893         * modules/clock-time: New module.
75894         * modules/nanosleep (Depends-on): Add clock-time.
75895         * modules/gethrxtime (Depends-on): Likewise.
75896         * modules/gettime (Depends-on): Likewise.
75897         * modules/settime (Depends-on): Likewise.
75898
75899         * modules/fts-lgpl: Depend on openat.
75900         * modules/mkancesdirs: Depend on savewd.
75901         * modules/mkdir-p: Likewise.
75902
75903 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75904
75905         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75906
75907         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75908         `gl_have_arbitrary_file_name_length_limit' to
75909         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75910         actually works between configure runs.
75911
75912 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75913             Bruno Haible  <bruno@clisp.org>
75914
75915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75916
75917 2006-09-25  Jim Meyering  <jim@meyering.net>
75918
75919         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75920         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75921
75922 2006-09-25  Eric Blake  <ebb9@byu.net>
75923
75924         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75925         exec's in 2006-09-18 patch when shuffling fds.
75926
75927 2006-09-25  Bruno Haible  <bruno@clisp.org>
75928
75929         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75930         Reported by Jim Meyering.
75931
75932 2006-09-24  Jim Meyering  <jim@meyering.net>
75933
75934         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75935         compare a pointer against a literal "0".  That caused failures with
75936         at least HP-UX's hpcc.
75937
75938 2006-09-22  Simon Josefsson  <jas@extundo.com>
75939
75940         * modules/gc-sha1:
75941         * modules/gc-md4:
75942         * modules/gc-hmac-sha1:
75943         * modules/gc-hmac-md5:
75944         * modules/gc-des:
75945         * modules/gc-arcfour: Distribute more files.
75946
75947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75948
75949         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75950         (gl_linked_iterator_from_to): Initialize struct completely.
75951         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75952         (gl_tree_iterator_from_to): Likewise
75953         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75954         * lib/gl_array_list.c [lint] (gl_array_iterator)
75955         (gl_array_iterator_from_to): Likewise.
75956         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75957         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75958         (gl_carray_iterator_from_to): Likewise.
75959
75960         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75961         * lib/md4.c (md4_process_block): Remove unused variable.
75962         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75963         parentheses for clarity.
75964
75965 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75966
75967         * modules/bison-i18n (Depends-on): Add gettext.
75968
75969 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75970
75971         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75972         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75973         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75974         also add missing comma that caused broken test.
75975         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75976         stdlib.h, for `abort'.
75977         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75978         variables.
75979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75980         include unistd.h if present, for `rmdir'.
75981         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75982         variables.
75983         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75984         in the process include standard headers for prototypes.
75985         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75986         gets declared on GNU/Linux.
75987         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75988         unistd.h, for `rmdir'.
75989         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75990
75991         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75992         always true.
75993         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75994
75995         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75996
75997 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75998
75999         * gnulib-tool (func_version): Create output all at once.  This
76000         may help avoid triggering unnecessary SIGPIPEs, and at any
76001         rate it doesn't hurt.
76002
76003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76004             Bruno Haible  <bruno@clisp.org>
76005
76006         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76007         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76008         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76009
76010         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76011         (gl_FUNC_VASPRINTF): Invoke it.
76012
76013 2006-09-22  Bruno Haible  <bruno@clisp.org>
76014
76015         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76016         getloadavg.c as first argument.
76017
76018 2006-09-22  Bruno Haible  <bruno@clisp.org>
76019
76020         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76021         at the beginning of the gl_INIT macro.
76022         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76023         gl_GETLOADAVG.
76024
76025 2006-09-22  Bruno Haible  <bruno@clisp.org>
76026
76027         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76028         module.
76029         Suggested by Ralf Wildenhues.
76030
76031 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76032
76033         Import this patch from libc:
76034
76035         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76036
76037         * lib/regex_internal.c (re_string_reconstruct): Handle
76038         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76039         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76040         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76041         re_string_context_at.
76042
76043         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76044         now requires it.
76045         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76046         gl_REGEX now does it for us.
76047         (gl_REGEX): Add test taken from
76048         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76049
76050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76051         Check that large offsets work.  Modernize Autoconf usages.
76052         Prefer "yes" to mean a good thing rather than a bad.
76053         Don't put "#define mkstemp" in config.h, as this might interfere
76054         with standard system headers that "#define mkstemp mkstemp64".
76055
76056         * modules/mkstemp (Depends-on): Add extensions, so that
76057         mkstemp is visible on some platforms.
76058         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76059         (Include): Change to "mkstemp.h" from <stdlib.h>.
76060         (Files): Add mkstemp.h.
76061
76062         * lib/mkstemp.h: New file, since some standard headers
76063         #define mkstemp.
76064         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76065         Include "mkstemp.h".
76066         Make the _LIBC code resemble glibc original more,
76067         e.g., use K&R style.
76068         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76069         (mkstemp): Remove, since mkstemp.h does this for us.
76070         * lib/stdlib--.h: Include mkstemp.h.
76071
76072         Import this patch from libc:
76073
76074         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76075
76076         * lib/tempname.c (__gen_tempname): Change attempts_min
76077         into a macro.  Use preprocessor to decide how to initialize
76078         attempts [Coverity CID 67].
76079
76080 2006-09-20  Bruno Haible  <bruno@clisp.org>
76081
76082         * lib/mkdtemp.c: Import from libc.
76083         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76084                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76085                 attempts_min into a macro.  Use preprocessor to decide how to
76086                 initialize attempts [Coverity CID 67].
76087         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76088                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76089                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76090
76091 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76092
76093         * gnulib-tool (func_exit): New function, to allow to pass the
76094         exit status portably through the trap.  Use everywhere.
76095         (--help, --version): Signal a write error.
76096         (trap): catch SIGPIPE, for write errors.
76097         Exit at the end of the trap, with the correct exit status.
76098
76099 2006-09-19  Karl Berry  <karl@gnu.org>
76100
76101         * doc/gnulib.texi: note about the license texinfo files.
76102
76103 2006-09-19  Eric Blake  <ebb9@byu.net>
76104
76105         * gnulib-tool: Avoid space-tab.
76106
76107 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76110         that prevented coreutils 6.1 from building.  Problem reported
76111         by Petter Reinholdtsen.
76112
76113 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * gnulib-tool (avoidlist): Fix typo that broke options like
76116         --avoid=lock that are used by coreutils bootstrap.
76117
76118 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76119
76120         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76121         more systematically.
76122
76123 2006-09-18  Jim Meyering  <jim@meyering.net>
76124
76125         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76126
76127 2006-09-18  Bruno Haible  <bruno@clisp.org>
76128
76129         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76130
76131 2006-09-18  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76134         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76135         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76136         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76137         * m4/gettext.m4: Require autoconf >= 2.52.
76138         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76139         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76140         of gl_cv_header_inttypes_h.
76141
76142 2006-09-18  Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/javaversion.c: Include configmake.h.
76145
76146 2006-09-18  Bruno Haible  <bruno@clisp.org>
76147
76148         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76149         avoid that the while loops be executed in a subshell.
76150
76151 2006-09-18  Bruno Haible  <bruno@clisp.org>
76152
76153         * MODULES.html.sh (func_module): Break long lines.
76154         Suggested by Bruce Korb <bkorb@gnu.org>.
76155
76156 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76157
76158         Speed up by a factor of 1.12.
76159         * gnulib-tool (nl): New variable.
76160         (func_import): Rewrite include directive extraction to only read each
76161         directive once.
76162
76163 2006-09-17  Bruno Haible  <bruno@clisp.org>
76164
76165         * modules/javaversion (Makefile.am): Remove DEFS setting.
76166         (Depends-on): Add configmake, for PKGDATADIR definition.
76167
76168 2006-09-17  Bruno Haible  <bruno@clisp.org>
76169
76170         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76171
76172 2006-09-17  Bruno Haible  <bruno@clisp.org>
76173
76174         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76175         (func_modules_transitive_closure, func_modules_add_dummy,
76176         func_modules_to_filelist, func_import, func_create_testdir,
76177         func_create_megatestdir, ...): Use it wherever possible.
76178         Suggested by Ralf Wildenhues.
76179
76180 2006-09-16  Karl Berry  <karl@gnu.org>
76181
76182         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76183         to avoid sectioning errors.
76184         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76185         [ifinfo]: blank line after @center-ed titles.
76186         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76187         Spell FSF address consistently with others.
76188         (These changes approved by rms.)
76189
76190 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76191
76192         Speed up by a factor of 1.61.
76193         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76194         already checked module names again.
76195
76196 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76197
76198         Speed up by a factor of 1.13.
76199         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76200         for new_files, and the input to func_add_or_update.
76201
76202 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76203
76204         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76205         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76206
76207 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * modules/mkancesdirs (Depends-on): Add fcntl.
76210         * modules/savewd: New file.
76211         * MODULES.html.sh (File system functions): Add savewd.
76212
76213         * modules/configmake (Makefile.am): Add support for the
76214         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76215
76216 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * m4/savewd.m4: New file.
76219
76220 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76223         (dirchownmod): New arg FD.  All callers changed.
76224         Use FD rather than opening the directory ourself, as opening is
76225         now the caller's responsibility.
76226         * lib/dirchownmod.h: Likewise.
76227         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76228         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76229         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76230         (test_dir): Remove.
76231         (mkancesdirs): Return length of prefix of FILE that has already
76232         been made, or -2 if there is a child doing the work.  Redo
76233         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76234         ".", and treat ".." specially since it might stray back into
76235         already-created areas.  Use a subprocess if necessary.  New arg
76236         WD; all users changed.  MAKE_DIR function should now return 1
76237         if it creates a directory that is not readable.  Return -2 if
76238         a child process is spun off.
76239         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76240         Adjust signature to match code.
76241         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76242         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76243         all users changed.
76244         * lib/savewd.c, lib/savewd.h: New files.
76245
76246 2006-09-15  Jim Meyering  <jim@meyering.net>
76247
76248         * modules/rename-dest-slash: New module.
76249         * MODULES.html.sh (posix_compat): Add it here.
76250
76251         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76252
76253 2006-09-15  Jim Meyering  <jim@meyering.net>
76254
76255         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76256         file.
76257
76258         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76259
76260 2006-09-15  Jim Meyering  <jim@meyering.net>
76261
76262         * lib/rename-dest-slash.c (has_trailing_slash): Use
76263         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76264         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76265         test before testing whether SRC is a directory.
76266         Suggestions from Bruno Haible.
76267
76268         Avoid a warning about an unused variable.
76269         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76270         into the #ifdef block where it's used.
76271
76272         * lib/rename-dest-slash.c: New file.
76273
76274 2006-09-14  Bruno Haible  <bruno@clisp.org>
76275
76276         * lib/allocsa.c: Include <config.h> unconditionally.
76277         * lib/asnprintf.c: Likewise.
76278         * lib/asprintf.c: Likewise.
76279         * lib/c-strcasecmp.c: Likewise.
76280         * lib/c-strcasestr.c: Likewise.
76281         * lib/c-strncasecmp.c: Likewise.
76282         * lib/c-strstr.c: Likewise.
76283         * lib/classpath.c: Likewise.
76284         * lib/clean-temp.c: Likewise.
76285         * lib/concatpath.c: Likewise.
76286         * lib/copy-file.c: Likewise.
76287         * lib/csharpcomp.c: Likewise.
76288         * lib/csharpexec.c: Likewise.
76289         * lib/execute.c: Likewise.
76290         * lib/fatal-signal.c: Likewise.
76291         * lib/findprog.c: Likewise.
76292         * lib/fwriteerror.c: Likewise.
76293         * lib/gl_array_list.c: Likewise.
76294         * lib/gl_array_oset.c: Likewise.
76295         * lib/gl_avltree_list.c: Likewise.
76296         * lib/gl_avltree_oset.c: Likewise.
76297         * lib/gl_avltreehash_list.c: Likewise.
76298         * lib/gl_carray_list.c: Likewise.
76299         * lib/gl_linked_list.c: Likewise.
76300         * lib/gl_linkedhash_list.c: Likewise.
76301         * lib/gl_list.c: Likewise.
76302         * lib/gl_oset.c: Likewise.
76303         * lib/gl_rbtree_list.c: Likewise.
76304         * lib/gl_rbtree_oset.c: Likewise.
76305         * lib/gl_rbtreehash_list.c: Likewise.
76306         * lib/imaxabs.c: Likewise.
76307         * lib/imaxdiv.c: Likewise.
76308         * lib/javacomp.c: Likewise.
76309         * lib/javaexec.c: Likewise.
76310         * lib/javaversion.c: Likewise.
76311         * lib/linebreak.c: Likewise.
76312         * lib/localcharset.c: Likewise.
76313         * lib/lock.c: Likewise.
76314         * lib/mbchar.c: Likewise.
76315         * lib/mbswidth.c: Likewise.
76316         * lib/mkdtemp.c: Likewise.
76317         * lib/pipe.c: Likewise.
76318         * lib/printf-args.c: Likewise.
76319         * lib/printf-parse.c: Likewise.
76320         * lib/progname.c: Likewise.
76321         * lib/progreloc.c: Likewise.
76322         * lib/readlink.c: Likewise.
76323         * lib/sh-quote.c: Likewise.
76324         * lib/stpcpy.c: Likewise.
76325         * lib/stpncpy.c: Likewise.
76326         * lib/strcasecmp.c: Likewise.
76327         * lib/strcasestr.c: Likewise.
76328         * lib/strcspn.c: Likewise.
76329         * lib/striconv.c: Likewise.
76330         * lib/strncasecmp.c: Likewise.
76331         * lib/strnlen1.c: Likewise.
76332         * lib/strstr.c: Likewise.
76333         * lib/strtok_r.c: Likewise.
76334         * lib/tls.c: Likewise.
76335         * lib/tmpdir.c: Likewise.
76336         * lib/unicodeio.c: Likewise.
76337         * lib/unsetenv.c: Likewise.
76338         * lib/vasnprintf.c: Likewise.
76339         * lib/vasprintf.c: Likewise.
76340         * lib/wait-process.c: Likewise.
76341         * lib/xallocsa.c: Likewise.
76342         * lib/xsetenv.c: Likewise.
76343         * lib/xstriconv.c: Likewise.
76344
76345 2006-09-13  Simon Josefsson  <jas@extundo.com>
76346
76347         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76348         that internally, suggested by Ralf Wildenhues
76349         <Ralf.Wildenhues@gmx.de>.
76350
76351 2006-09-13  Simon Josefsson  <jas@extundo.com>
76352
76353         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76354         @LIBOBJS@.
76355         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76356
76357 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76360         longer worry about uses that don't define HAVE_CONFIG_H.
76361         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76362         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76363         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76364         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76365         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76366         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76367         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76368         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76369         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76370         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76371         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76372         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76373         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76374         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76375         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76376         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76377         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76378         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76379         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76380         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76381         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76382         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76383         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76384         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76385         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76386         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76387         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76388         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76389         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76390         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76391         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76392         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76393         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76394         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76395         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76396         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76397         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76398         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76399         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76400         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76401         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76402         Likewise.
76403
76404 2006-09-13  Eric Blake  <ebb9@byu.net>
76405
76406         * lib/getopt.c: Fix typo in last commit.
76407
76408 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76409
76410         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76411         dgettext.
76412
76413 2006-09-12  Jim Meyering  <jim@meyering.net>
76414
76415         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76416         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76417         Reported by Nelson H. F. Beebe.
76418
76419 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76420
76421         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76422         program_invocation_name and program_invocation_short_name are
76423         initialized.
76424         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76425         and program_invocation_short_name to argp.h, so they are visible
76426         to user programs.
76427         * lib/argp.h: Likewise
76428
76429 2006-09-10  Bruno Haible  <bruno@clisp.org>
76430
76431         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76432         m4/inttypes_h.m4, m4/uintmax_t.m4.
76433
76434 2006-09-10  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76437         gl_AC_TYPE_UINTMAX_T.
76438
76439 2006-09-10  Bruno Haible  <bruno@clisp.org>
76440
76441         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76442
76443 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76444
76445         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76446         convention.  Text proposed by Bruno Haible.
76447         (struct argp_option): Document the use of N_() wrappers.
76448
76449         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76450         '\v', and translate the two parts separately, instead of feeding
76451         the whole string to gettext.  This allows to exclude
76452         '\v' from the strings visible to the translator by writing doc
76453         strings as N_("..") "\v" N_("..").
76454
76455 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * config/srclist.txt: Undo latest change; the bug was fixed.
76458
76459 2006-09-09  Bruno Haible  <bruno@clisp.org>
76460
76461         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76462         assignments if building a library without libtool.
76463         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76464         in func_emit_lib_Makefile_am.
76465         (func_import): When building a static library libfoo.a, arrange to
76466         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76467         (func_create_testdir): Likewise.
76468         * modules/gc (configure.ac, Makefile.am): If building statically,
76469         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76470         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76471         * modules/striconv (configure.ac, Makefile.am): Likewise.
76472         Based on a suggestion by Ralf Wildenhues.
76473
76474 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76477         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76478         Also:
76479
76480         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76481         Add year_2050_test to catch glibc bug 2821
76482         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76483
76484         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76485         Prefer #ifdef to #if.
76486
76487         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76488         Return from 'main' instead of calling 'exit'.
76489
76490 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76493         returned the maximum time_t value rather than (time_t) -1.
76494         Problem originally reported by William Bardwell
76495         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76496
76497         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76498         Moved to here ...
76499         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76500         ... from here.
76501
76502 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76505         2821 is fixed.
76506
76507 2006-09-08  Jim Meyering  <jim@meyering.net>
76508
76509         Don't make generated files read-only.  That would bother too many
76510         people.  However, do retain the ability to work when targets are
76511         read-only: remove the destination and temporary files before writing
76512         them (when generated via sed or echo), or by using the -f option for
76513         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76514         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76515         * modules/byteswap, modules/configmake, modules/fcntl:
76516         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76517         * modules/localcharset, modules/netinet_in, modules/poll:
76518         * modules/stdbool, modules/stdint, modules/sys_select:
76519         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76520
76521 2006-09-08  Jim Meyering  <jim@meyering.net>
76522
76523         Avoid new build failure on FreeBSD 6.0.
76524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76525         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76526         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76527
76528 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76529
76530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76531
76532 2006-09-07  Jim Meyering  <jim@meyering.net>
76533
76534         Fix global typo in last change: use chmod u-w, not chmod u-x.
76535         Spotted by Paul Eggert and Bruce Korb.
76536         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76537         * modules/byteswap, modules/configmake, modules/fcntl:
76538         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76539         * modules/localcharset, modules/netinet_in, modules/poll:
76540         * modules/stdbool, modules/stdint, modules/sys_select:
76541         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76542
76543 2006-09-06  Jim Meyering  <jim@meyering.net>
76544
76545         Make generated files be read-only.
76546         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76547         Ensure that each generated file is now read-only.
76548         * modules/argz: Likewise.
76549         * modules/arpa_inet: Likewise.
76550         * modules/byteswap: Likewise.
76551         * modules/configmake: Likewise.
76552         * modules/fcntl: Likewise.
76553         * modules/fnmatch: Likewise.
76554         * modules/getopt: Likewise.
76555         * modules/glob: Likewise.
76556         * modules/inttypes: Likewise.
76557         * modules/netinet_in: Likewise.
76558         * modules/poll: Likewise.
76559         * modules/stdbool: Likewise.
76560         * modules/stdint: Likewise.
76561         * modules/sys_select: Likewise.
76562         * modules/sys_socket: Likewise.
76563         * modules/sys_stat: Likewise.
76564         * modules/sysexits: Likewise.
76565         * modules/localcharset: Same as above, but continue using temporary
76566         file named "t-$@" (why different?) rather than the "$@-t" used
76567         everywhere else.
76568
76569         * modules/sysexits (Makefile.am): Replace literal occurrences
76570         of "sysexit.h" more readable, and more consistent, "$@".
76571
76572 2006-09-06  Bruno Haible  <bruno@clisp.org>
76573
76574         * modules/striconv: New file.
76575         * modules/xstriconv: New file.
76576         * MODULES.html.sh (Internationalization functions): Add striconv,
76577         xstriconv.
76578
76579 2006-09-06  Bruno Haible  <bruno@clisp.org>
76580
76581         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76582         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76583         not using libtool correctly.
76584
76585 2006-09-06  Bruno Haible  <bruno@clisp.org>
76586
76587         * lib/striconv.h: New file.
76588         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76589         iconvstring.c.
76590         * lib/xstriconv.h: New file.
76591         * lib/xstriconv.c: New file.
76592
76593 2006-09-06  Bruno Haible  <bruno@clisp.org>
76594
76595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76596         lib_..._LDFLAGS.
76597
76598 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76599
76600         * lib/argz_.h: Sync from Libtool.
76601
76602         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76603                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76604
76605         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76606
76607 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76608
76609         * modules/trim: New file.
76610
76611 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76612
76613         * lib/trim.h: New file.
76614         * lib/trim.c: New file.
76615
76616 2006-09-05  Bruno Haible  <bruno@clisp.org>
76617
76618         * MODULES.html.sh (String handling): Add trim.
76619
76620 2006-09-04  Karl Berry  <karl@gnu.org>
76621
76622         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76623         until next release.
76624
76625 2006-09-03  Bruno Haible  <bruno@clisp.org>
76626
76627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76628         correctly.
76629
76630 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76633         not gl_GETLOADAVG.  Omit unneeded semicolons.
76634         Problems reported by Ralf Wildenhues in
76635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76636         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76637         at the end, which is the usual gnulib style.
76638
76639         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76640         of doing all the work ourselves.
76641         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76642         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76643
76644 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76647         Problem reported by Ralf Wildenhues in
76648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76649
76650         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76651         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76652
76653 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76656         yesterday's patch by changing test -n to test -z.
76657
76658 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76659
76660         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76661         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76662         the former is now obsolescent.
76663
76664         * modules/chdir-long (Depends-on): Add fcntl.
76665
76666 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76669         obsolescent, and programs should use gnulib instead.
76670         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76671         but with prefixes changed.
76672
76673 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76676         or stdbool.h, because they might not exist while configuring.
76677
76678         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76679         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76680         does that for us.
76681         (O_DIRECTORY): Remove.
76682
76683 2006-08-31  Eric Blake  <ebb9@byu.net>
76684
76685         * gnulib-tool: Don't let emacs change spaces to TAB.
76686
76687 2006-08-31  Bruno Haible  <bruno@clisp.org>
76688
76689         * gnulib-tool: When calling func_import more than once, do it in a
76690         subshell.
76691         Reported by Eric Blake <ebb9@byu.net>.
76692
76693 2006-08-31  Bruno Haible  <bruno@clisp.org>
76694
76695         * gnulib-tool (nl): Remove variable.
76696         (sed_transform_lib_file): Use more robust test for config-h module.
76697         (func_import): Fix typo in 2006-08-25 patch.
76698
76699 2006-08-31  Bruno Haible  <bruno@clisp.org>
76700
76701         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76702         specified, augment Makefile.am variables instead of assigning them.
76703
76704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         Work around a bug in both the Linux and SunOS 64-bit kernels:
76707         nanosleep mishandles sleeps for longer than 2**31 seconds.
76708         Problem reported by Frank v Waveren in
76709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76711         Check for nanosleep bug.
76712         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76713
76714 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         Work around a bug in both the Linux and SunOS 64-bit kernels:
76717         nanosleep mishandles sleeps for longer than 2**31 seconds.
76718         Problem reported by Frank v Waveren in
76719         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76720         * lib/nanosleep.c (BILLION): New constant.
76721         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76722         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76723         implementation.
76724
76725 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * modules/nanosleep (Depends-on): Add gettime.
76728
76729 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76730         and Simon Josefsson  <jas@extundo.com>
76731         and Oskar Liljeblad  <oskar@osk.mine.nu>
76732
76733         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76734         * gnulib-tool (func_import): New license type 'unmodifiable license
76735         text'.
76736         * modules/fdl: Use it.  Longer description.
76737         * module/gpl, module/lgpl: New files.
76738
76739 2006-08-30  Jim Meyering  <jim@meyering.net>
76740
76741         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76742         shadowing the parameter.
76743
76744 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76745
76746         Sync from Libtool:
76747
76748         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76749
76750         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76751         sharing with gnulib.  Report by Eric Blake.
76752
76753 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * modules/isapipe: New file.
76756         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76757
76758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * modules/configmake (Makefile.am): Add a comment, and omit
76761         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76762         by Bruno Haible.
76763
76764 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         * m4/isapipe.m4: New file.
76767
76768 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * lib/isapipe.c, lib/isapipe.h: New files.
76771
76772 2006-08-29  Jim Meyering  <jim@meyering.net>
76773
76774         * modules/configmake (Makefile.am): Make configmake.h depend on
76775         Makefile.  Otherwise, a stale configmake.h could hang around.
76776
76777 2006-08-29  Eric Blake  <ebb9@byu.net>
76778
76779         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76780         resolution of upstream bug 3044.
76781
76782 2006-08-29  Bruno Haible  <bruno@clisp.org>
76783
76784         * modules/localcharset (Depends-on): Add configmake.
76785         (Makefile.am): Remove setting of LIBDIR through DEFS.
76786
76787 2006-08-29  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76790         defined.
76791
76792 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * modules/fcntl: New file.
76795         * modules/chdir-safer (Depends-on): Add fcntl.
76796         * modules/fts: Likewise.
76797         * modules/mkdir-p: Likewise.
76798
76799         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76800         This undoes the most recent change, since we're now addressing the
76801         problem in a different way.
76802
76803         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76804         into output, since the output might be called Makefile.am even
76805         if $makefile_name is something different.
76806         (func_import): Use $makefile_am rather than
76807         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76808         empty.
76809
76810         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76811
76812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76815         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76816         recent change to stdint.m4, since we're now addressing the problem in a
76817         different way.
76818
76819 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * m4/fcntl_h.m4: New file.
76822
76823 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * lib/fcntl_.h: New file.
76826         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76827         the fcntl module.
76828         * lib/dirchownmod.c: Likewise.
76829         * lib/fts.c: Likewise.
76830
76831         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76832         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76833         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76834         just before including <inttypes.h>, to avoid circular inclusion.
76835
76836 2006-08-28  Jim Meyering  <jim@meyering.net>
76837
76838         * doc/visibility.texi: Actually read and correct the grammar of the
76839         sentence affected by yesterday's change.
76840
76841 2006-08-28  Eric Blake  <ebb9@byu.net>
76842
76843         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76844         needs wrapper.
76845
76846 2006-08-28  Eric Blake  <ebb9@byu.net>
76847
76848         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76849
76850 2006-08-28  Eric Blake  <ebb9@byu.net>
76851
76852         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76853
76854 2006-08-28  Bruno Haible  <bruno@clisp.org>
76855
76856         * modules/c-strstr: New file, from GNU gettext.
76857         * MODULES.html.sh (String handling): Add c-strstr.
76858
76859 2006-08-28  Bruno Haible  <bruno@clisp.org>
76860
76861         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76862         macros.
76863         Reported by Eric Blake.
76864
76865 2006-08-28  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76868         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76869         * lib/vasprintf.c: Include errno.h, limits.h.
76870         (EOVERFLOW): New fallback definition.
76871         (vasprintf): Test here whether the string length is > INT_MAX.
76872         * lib/vsnprintf.c: Include errno.h, limits.h.
76873         (EOVERFLOW): New fallback definition.
76874         (vsnprintf): Fix bug when generated string was too long for the buffer.
76875         Test here whether the string length is > INT_MAX.
76876
76877 2006-08-28  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/inttypes_.h (SCNX*): Remove definitions.
76880         Reported by Eric Blake.
76881
76882 2006-08-28  Bruno Haible  <bruno@clisp.org>
76883
76884         * lib/c-strstr.h: New file, from GNU gettext.
76885         * lib/c-strstr.c: New file, from GNU gettext.
76886
76887 2006-08-28  Bruno Haible  <bruno@clisp.org>
76888
76889         * gnulib-tool: Reorder some statements.
76890
76891 2006-08-28  Bruno Haible  <bruno@clisp.org>
76892
76893         * gnulib-tool: New option --makefile-name.
76894         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76895         $makefile_name.
76896         (func_import): Write $makefile_name to the cache file, and read it from
76897         there unless explicitly specified. Use $makefile_name as file name
76898         instead of Makefile.am. Adjust the recommendations accordingly.
76899
76900 2006-08-28  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool (func_verify_module): Check against misapplying patch.
76903
76904 2006-08-28  Bruno Haible  <bruno@clisp.org>
76905
76906         * gnulib-tool (func_relativize, func_relconcat): New functions.
76907         Give an error if --local-dir is given with --update.
76908         Remove trailing slashes from $local_gnulib_dir.
76909         (func_import): Store the relativized $local_gnulib_dir in
76910         gnulib-cache.m4, and read it from there if not specified explicitly.
76911
76912 2006-08-28  Bruno Haible  <bruno@clisp.org>
76913
76914         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76915         is the current directory. Respect also $local_gnulib_dir.
76916
76917 2006-08-28  Bruno Haible  <bruno@clisp.org>
76918             Simon Josefsson  <jas@extundo.com>
76919
76920         BeOS portability.
76921         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76922
76923 2006-08-27  Jim Meyering  <jim@meyering.net>
76924
76925         * doc/visibility.texi: Remove duplicate word: "pointer".
76926
76927 2006-08-26  Bruno Haible  <bruno@clisp.org>
76928
76929         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76930         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76931         (Makefile.am): Create inttypes.h from inttypes_.h.
76932         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76933
76934         * modules/imaxabs: New file.
76935
76936         * modules/imaxdiv: New file.
76937
76938 2006-08-26  Bruno Haible  <bruno@clisp.org>
76939
76940         * m4/inttypes.m4: New file.
76941         * m4/_inttypes_h.m4: Remove file.
76942         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76943         PRI_MACROS_BROKEN.
76944         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76945
76946         * m4/imaxabs.m4: New file.
76947
76948         * m4/imaxdiv.m4: New file.
76949
76950 2006-08-26  Bruno Haible  <bruno@clisp.org>
76951
76952         * lib/inttypes_.h: New file.
76953         * lib/inttypes.h: Remove file.
76954         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76955
76956         * lib/imaxabs.c: New file.
76957
76958         * lib/imaxdiv.c: New file.
76959
76960 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         New config-h module, so that "make" output needn't be cluttered
76963         by -DHAVE_CONFIG_H.
76964         * MODULES.html.sh (Support for building libraries and executables):
76965         Add config-h.
76966         * modules/config-h: New file.
76967         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76968         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76969         the config-h module is used.
76970
76971         New configmake module, so that "make" output needn't be cluttered
76972         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76973         * MODULES.html.sh (Support for building libraries and executables):
76974         Add configmake.
76975         * modules/configmake: New file.
76976
76977 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * m4/config-h.m4: New file.
76980
76981 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * config/srclist.txt: Add elisp-comp.
76984
76985 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76986
76987         * MODULES.html.sh (Support for building libraries and executables):
76988         Add elisp-comp.
76989         * build-aux/elisp-comp: New file.
76990         * modules/elisp-comp: New file.
76991
76992 2006-08-24  Bruno Haible  <bruno@clisp.org>
76993
76994         * gnulib-tool (func_create_testdir): Use non-default values of
76995         sourcebase and m4base.
76996
76997 2006-08-24  Bruno Haible  <bruno@clisp.org>
76998
76999         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77000         HTML structure.
77001
77002 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * modules/openat (Depends-on): Add lchown.
77005
77006 2006-08-23  Bruno Haible  <bruno@clisp.org>
77007
77008         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77009         of gl_LOCK_EARLY instead of gl_LOCK.
77010
77011 2006-08-23  Bruno Haible  <bruno@clisp.org>
77012
77013         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77014         on OSF/1 to no.
77015         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77016
77017 2006-08-23  Bruno Haible  <bruno@clisp.org>
77018
77019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77020         as unusable.
77021
77022         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77023         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77024         (gl_LOCK): New macro.
77025
77026 2006-08-22  Simon Josefsson  <jas@extundo.com>
77027
77028         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77029         to md5 module.
77030
77031 2006-08-22  Simon Josefsson  <jas@extundo.com>
77032
77033         * MODULES.html.sh: Add "Support for maintaining and release
77034         projects".
77035
77036         * build-aux/gnupload: New file, from coreutils.
77037
77038 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         Avoid the need for AC_LIBSOURCES in m4 macros.
77041         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77042         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77043         * modules/check-version (EXTRA_DIST): Add check-version.h.
77044         * modules/crc (EXTRA_DIST): Add crc.h.
77045         * modules/des (EXTRA_DIST): Add des.h.
77046         * modules/gc (EXTRA_DIST): Add gc.h.
77047         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77048         * modules/getline (EXTRA_DIST): Add getline.h.
77049         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77050         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77051         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77052         * modules/md2 (EXTRA_DIST): Add md2.h.
77053         * modules/md4 (EXTRA_DIST): Add md4.h.
77054         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77055         * modules/read-file (EXTRA_DIST): Add read-file.h.
77056         * modules/readline (EXTRA_DIST): Add readline.h.
77057         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77058         rijndael-api-fst.h.
77059
77060 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * m4/rijndael.m4 (gl_ARCFOUR):
77063         * m4/arctwo.m4 (gl_ARCTWO):
77064         * m4/check-version.m4 (gl_CHECK_VERSION):
77065         * m4/crc.m4 (gl_CRC):
77066         * m4/des.m4 (gl_DES):
77067         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77068         * m4/gc.m4 (gl_GC):
77069         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77070         * m4/getline.m4 (gl_FUNC_GETLINE):
77071         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77072         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77073         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77074         * m4/md2.m4 (gl_MD2):
77075         * m4/md4.m4 (gl_MD4):
77076         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77077         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77078         * m4/readline.m4 (gl_FUNC_READLINE):
77079         * m4/rijndael.m4 (gl_RIJNDAEL):
77080         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77081         to get the necessary .h files and whatnot.
77082
77083 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77086         gnulib rather than the other way around.
77087         * config/srclistvars.sh (COREUTILS): Remove.
77088
77089 2006-08-22  Jim Meyering  <jim@meyering.net>
77090
77091         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77092
77093         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77094
77095 2006-08-22  Eric Blake  <ebb9@byu.net>
77096
77097         * modules/regexprops-generic: New file.
77098         * MODULES.html.sh (Support for building documentation): List it.
77099
77100 2006-08-22  Eric Blake  <ebb9@byu.net>
77101
77102         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77103         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77104         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77105         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77106
77107 2006-08-22  Bruno Haible  <bruno@clisp.org>
77108
77109         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77110         and lib_LTLIBRARIES like the other lib_* variables.
77111
77112 2006-08-22  Bruno Haible  <bruno@clisp.org>
77113
77114         * build-aux/x-to-1.in: New file, from GNU gettext.
77115
77116 2006-08-22  Bruno Haible  <bruno@clisp.org>
77117
77118         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77119         <utmpx.h> exists.
77120
77121 2006-08-22  Bruno Haible  <bruno@clisp.org>
77122
77123         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77124         <utmpx.h> exists.
77125
77126 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         BeOS portability.
77129         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77130         exist.
77131         Problem reported by Bruno Haible.
77132
77133 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         Avoid the need for AC_LIBSOURCES in m4 macros.
77136         * modules/acl (EXTRA_DIST): Add acl.h.
77137         * modules/argmatch (Files): Add m4/argmatch.m4.
77138         (configure.ac): Add gl_ARGMATCH.
77139         (EXTRA_DIST): Renamed from lib_SOURCES, for
77140         consistency with the other modules.  Remove argmatch.c.
77141         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77142         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77143         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77144         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77145         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77146         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77147         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77148         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77149         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77150         * modules/closeout (EXTRA_DIST): Add closeout.h.
77151         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77152         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77153         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77154         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77155         dirname.h; remove basename.c and stripslash.c.
77156         * modules/exclude (EXTRA_DIST): Add exclude.h.
77157         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77158         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77159         * modules/file-type (EXTRA_DIST): Add file-type.h.
77160         * modules/filemode (EXTRA_DIST): Add filemode.h.
77161         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77162         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77163         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77164         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77165         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77166         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77167         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77168         * modules/getdate (EXTRA_DIST): Add getdate.c.
77169         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77170         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77171         * modules/getpass (EXTRA_DIST): Add getpass.h.
77172         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77173         * modules/group-member (EXTRA_DIST): Add group-member.h.
77174         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77175         * modules/hash (EXTRA_DIST): Add hash.h.
77176         * modules/human (EXTRA_DIST): Add human.h.
77177         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77178         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77179         * modules/lchown (EXTRA_DIST): Add lchown.h.
77180         * modules/long-options (EXTRA_DIST): Add long-options.h.
77181         * modules/lstat (EXTRA_DIST): Add lstat.h.
77182         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77183         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77184         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77185         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77186         * modules/memxor (EXTRA_DIST): Add memxor.h.
77187         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77188         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77189         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77190         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77191         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77192         * modules/physmem (EXTRA_DIST): Add physmem.h.
77193         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77194         * modules/posixver (EXTRA_DIST): Add posixver.h.
77195         * modules/quote (EXTRA_DIST): Add quote.h.
77196         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77197         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77198         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77199         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77200         regex_internal.h regexec.c.
77201         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77202         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77203         * modules/same (EXTRA_DIST): Add same.h.
77204         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77205         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77206         * modules/savedir (EXTRA_DIST): Add savedir.h.
77207         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77208         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77209         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77210         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77211         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77212         * modules/strdup (EXTRA_DIST): Add strdup.h.
77213         * modules/strftime (EXTRA_DIST): Add strftime.h.
77214         * modules/strndup (EXTRA_DIST): Add strndup.h.
77215         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77216         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77217         * modules/time_r (EXTRA_DIST): Add time_r.h.
77218         * modules/timespec (EXTRA_DIST): Add timespec.h.
77219         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77220         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77221         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77222         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77223         * modules/userspec (EXTRA_DIST): Add userspec.h.
77224         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77225         * modules/utimens (EXTRA_DIST): Add utimens.h.
77226         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77227         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77228         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77229         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77230         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77231         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77232         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77233         * modules/yesno (EXTRA_DIST): Add yesno.h.
77234
77235 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77238
77239         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77240         * m4/dev-ino.m4, same-inode.m4: Remove.
77241
77242         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77243         * m4/acl.m4 (AC_FUNC_ACL):
77244         * m4/backupfile.m4 (gl_BACKUPFILE):
77245         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77246         * m4/canon-host.m4 (gl_CANON_HOST):
77247         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77249         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77250         * m4/cloexec.m4 (gl_CLOEXEC):
77251         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77252         * m4/closeout.m4 (gl_CLOSEOUT):
77253         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77254         * m4/dirname.m4 (gl_DIRNAME):
77255         * m4/exclude.m4 (gl_EXCLUDE):
77256         * m4/exitfail.m4 (gl_EXITFAIL):
77257         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77258         * m4/file-type.m4 (gl_FILE_TYPE):
77259         * m4/filemode.m4 (gl_FILEMODE):
77260         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77261         * m4/fpending.m4 (gl_FUNC_FPENDING):
77262         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77263         * m4/fts.m4 (gl_FUNC_FTS):
77264         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77265         * m4/getdate.m4 (gl_GETDATE):
77266         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77267         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77268         * m4/getpass.m4 (gl_FUNC_GETPASS):
77269         * m4/gettime.m4 (gl_GETTIME):
77270         * m4/getugroups.m4 (gl_GETUGROUPS):
77271         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77272         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77273         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77274         * m4/hash.m4 (gl_HASH):
77275         * m4/idcache.m4 (gl_IDCACHE):
77276         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77277         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77278         * m4/long-options.m4 (gl_LONG_OPTIONS):
77279         * m4/lstat.m4 (gl_FUNC_LSTAT):
77280         * m4/md5.m4 (gl_MD5):
77281         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77282         * m4/memcoll.m4 (gl_MEMCOLL):
77283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77284         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77285         * m4/memxor.m4 (gl_MEMXOR):
77286         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77287         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77288         * m4/modechange.m4 (gl_MODECHANGE):
77289         * m4/mountlist.m4 (gl_MOUNTLIST):
77290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77291         * m4/openat.m4 (gl_FUNC_OPENAT):
77292         * m4/pathmax.m4 (gl_PATHMAX):
77293         * m4/physmem.m4 (gl_PHYSMEM):
77294         * m4/posixtm.m4 (gl_POSIXTM):
77295         * m4/posixver.m4 (gl_POSIXVER):
77296         * m4/quote.m4 (gl_QUOTE):
77297         * m4/quotearg.m4 (gl_QUOTEARG):
77298         * m4/readtokens.m4 (gl_READTOKENS):
77299         * m4/readutmp.m4 (gl_READUTMP):
77300         * m4/regex.m4 (gl_REGEX):
77301         * m4/safe-read.m4 (gl_SAFE_READ):
77302         * m4/safe-write.m4 (gl_SAFE_WRITE):
77303         * m4/same.m4 (gl_SAME):
77304         * m4/save-cwd.m4 (gl_SAVE_CWD):
77305         * m4/savedir.m4 (gl_SAVEDIR):
77306         * m4/settime.m4 (gl_SETTIME):
77307         * m4/sha1.m4 (gl_SHA1):
77308         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77309         * m4/stat-macros.m4 (gl_STAT_MACROS):
77310         * m4/stat-time.m4 (gl_STAT_TIME):
77311         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77312         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77313         * m4/strdup.m4 (gl_FUNC_STRDUP):
77314         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77315         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77316         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77317         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77318         * m4/time_r.m4 (gl_TIME_R):
77319         * m4/timespec.m4 (gl_TIMESPEC):
77320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77321         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77322         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77323         * m4/userspec.m4 (gl_USERSPEC):
77324         * m4/utimecmp.m4 (gl_UTIMECMP):
77325         * m4/utimens.m4 (gl_UTIMENS):
77326         * m4/xalloc.m4 (gl_XALLOC):
77327         * m4/xgetcwd.m4 (gl_XGETCWD):
77328         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77329         * m4/xreadlink.m4 (gl_XREADLINK):
77330         * m4/xstrtod.m4 (gl_XSTRTOD):
77331         * m4/yesno.m4 (gl_YESNO):
77332         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77333         to get the necessary .h files and whatnot.
77334
77335 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77336             Bruno Haible  <bruno@clisp.org>
77337
77338         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77339         /bin/sh understanding of '!' conditional negation.
77340
77341 2006-08-21  Jim Meyering  <jim@meyering.net>
77342
77343         * modules/openat (Depends-on): Really alphabetize.
77344
77345         * modules/acl (Depends-on): Add error and quote.
77346
77347         * check-module (find_included_lib_files): Add at-func.c to the
77348         ok-to-include-more-than-once white list.
77349
77350         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77351
77352 2006-08-21  Bruno Haible  <bruno@clisp.org>
77353
77354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77355         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77356         Reported by Martin Lambers <marlam@marlam.de>.
77357
77358 2006-08-21  Bruno Haible  <bruno@clisp.org>
77359
77360         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77361         specify an installation location, don't emit a noinst_LIBRARIES or
77362         noinst_LTLIBRARIES assignment.
77363
77364 2006-08-21  Bruno Haible  <bruno@clisp.org>
77365
77366         BeOS portability.
77367         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77368         BeOS has mbrtowc() but no <wctype.h>.
77369
77370 2006-08-21  Bruno Haible  <bruno@clisp.org>
77371
77372         BeOS portability.
77373         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77374         exist.
77375
77376 2006-08-21  Bruno Haible  <bruno@clisp.org>
77377
77378         BeOS portability.
77379         * lib/mbchar.h: Include <wctype.h> only if it exists.
77380
77381 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         Remove files that are no longer needed by their respective modules.
77384         * m4/obstack.m4: Remove.
77385         * m4/strerror_r.m4: Remove.
77386         * m4/uint32_t.m4: Remove.
77387         * m4/uintptr_t.m4: Remove.
77388         * m4/ullong_max.m4: Remove.
77389         * m4/xstrtoimax.m4: Remove.
77390         * m4/xstrtoumax.m4: Remove.
77391
77392         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77393         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77394         dependencies now capture this.
77395
77396         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77397         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77398         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77399         * m4/human.m4 (gl_HUMAN): Likewise.
77400         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77401         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77402
77403         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77404
77405         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77406         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77407         stdint.
77408         * m4/human.m4 (gl_HUMAN): Likewise.
77409         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77410         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77411         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77412         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77413         * m4/xstrtol (gl_XSTRTOL): Likewise.
77414
77415         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77416         AC_TYPE_LONG_LONG_INT.
77417         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77418         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77419         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77420         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77421
77422         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77423         on stdbool.
77424
77425         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77426         (gl_PREREQ_XSTRTOUL): Remove.
77427
77428         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77429
77430         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77431         mode.
77432
77433 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         Add and change modules to make it easier for coreutils to use
77436         gnulib-tool.
77437         * modules/backupfile (Files): Remove m4/d-ino.m4.
77438         (Depends-on): Add d-ino.
77439         * modules/cycle-check (Depends-on): Add stdint.
77440         (lib_SOURCES): Add cycle-check.h.
77441         * modules/d-ino: New module.
77442         * modules/d-type: New module.
77443         * modules/error (Files): Remove m4/strerror_r.m4.
77444         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77445         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77446         m4/inttypes_h.m4, m4/uintmax_t.m4.
77447         (Depends-on): Add stdint.
77448         (lib_SOURCES): Add fsusage.h.
77449         * modules/getcwd (Files): Remove d-ino.m4.
77450         (Depends-on): Add d-ino.
77451         * modules/getndelim2 (Depends-on): Add stdint.
77452         * modules/glob (Files): Remove m4/d-type.m4.
77453         (Depends-on): Add d-type.
77454         * modules/host-os: New module.
77455         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77456         m4/inttypes_h.m4, m4/uintmax_t.m4.
77457         * Depends-on: Add stdint.
77458         (lib_SOURCES): Add human.h.
77459         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77460         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77461         m4/uintmax_t.m4, m4/ulonglong.m4.
77462         (Depends-on): Add stdint.
77463         (EXTRA_DIST): Add inttostr.h.
77464         * modules/lchmod: New module.
77465         * modules/link-follow: New module.
77466         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77467         (Depends-on): Add lchmod.
77468         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77469         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77470         (Depends-on): Add stdint.
77471         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77472         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77473         (Depends-on): Add stdint.
77474         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77475         * modules/perl: New module.
77476         * modules/regex (Depends-on): Add stdint.
77477         * modules/rmdir-errno: New module.
77478         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77479         m4/intmax_t.m4.
77480         (Depends-on): Add stdint.
77481         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77482         m4/uintmax_t.m4.
77483         (Depends-on): Add stdint.
77484         * modules/unlink-busy: New module.
77485         * modules/utimecmp (Depends-on): Add stdint.
77486         * modules/uptime: New module.
77487         * modules/winsz-ioctl: New module.
77488         * modules/winsz-termios: New module.
77489         * modules/xnanosleep (Depends-on): Add nanosleep.
77490         * modules/ullong_max: Remove.
77491         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77492         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77493         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77494         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77495         (Depends-on): Add inttypes.
77496         (lib_SOURCES): Add xstrtol.h.
77497         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77498         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77499         * MODULES.html.sh: Move 'assert' into the assert section.
77500         Move 'dummy' into the linking section.
77501         Remove ullong_max.
77502         Add section for compatibility checks for POSIX:2001 functions,
77503         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77504         winsz-ioctl, and winsz-termios into it.
77505         Add lchmod.
77506         Add top-level Misc section and put host-os, perl, and uptime
77507         into it.
77508
77509 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77512         now assume the stdint module.  Do not include inttypes.h.
77513         * lib/fsusage.h: Likewise.
77514         * lib/getndelim2.c: Likewise.
77515         * lib/human.h: Likewise.
77516         * lib/inttostr.h: Likewise.
77517         * lib/obstack.c: Likewise.
77518         * lib/regex_internal.h: Likewise.
77519         * lib/tempname.c: Likewise.
77520         * lib/utimecmp.c: Likewise.
77521         * lib/xstrtol.h: Likewise.
77522
77523         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77524
77525         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77526         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77527         * lib/xtime.h: Likewise.
77528
77529 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * modules/openat (Files): Add lib/fchmodat.c.
77532         Fixes problem reported by Jay Youngman.
77533
77534 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77537         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77538
77539 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77540             Bruno Haible  <bruno@clisp.org>
77541
77542         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77543         and is a script that invokes bison. Tighten the code. Add comments.
77544
77545 2006-08-18  Jim Meyering  <jim@meyering.net>
77546
77547         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77548         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77549         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77550         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77551
77552 2006-08-18  Bruno Haible  <bruno@clisp.org>
77553
77554         * modules/bison-i18n: New file.
77555         * MODULES.html.sh (Internationalization functions): Add it.
77556
77557 2006-08-18  Bruno Haible  <bruno@clisp.org>
77558
77559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77560         sys/statvfs.h. When getmntinfo was found, check its declaration and
77561         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77562
77563 2006-08-18  Bruno Haible  <bruno@clisp.org>
77564
77565         * m4/bison-i18n.m4: New file, from bison.
77566
77567 2006-08-18  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77570         (ME_DUMMY): Treat "kernfs" as a dummy.
77571         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77572
77573 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         Update from coreutils.
77576
77577         2006-08-15  Jim Meyering  <jim@meyering.net>
77578
77579         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77580
77581         2006-01-17  Jim Meyering  <jim@meyering.net>
77582
77583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77584
77585         2006-01-11  Jim Meyering  <jim@meyering.net>
77586
77587         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77588         Check for the lchmod function.
77589
77590 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         Update from coreutils.
77593
77594         * lib/__fpending.h: Add copyright notice.
77595         * lib/fprintftime.h: Likewise.
77596         * lib/savedir.c: Use (C) in copyright notice.
77597         * lib/savedir.h: Likewise.
77598
77599         2006-08-15  Jim Meyering  <jim@meyering.net>
77600
77601         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77602         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77603         in support of the EXPECTED_ERRNO macro.
77604         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77605         definitions.  Instead, define the appropriate symbols and include
77606         "at-func.c".
77607         * lib/mkdirat.c (mkdirat): Likewise.
77608         * lib/fchmodat.c (fchmodat): Likewise.
77609         (ENOSYS): Remove definition.
77610         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77611         it.  Don't include "unistd--.h" -- it wasn't ever used.
77612
77613         2006-01-17  Jim Meyering  <jim@meyering.net>
77614
77615         Rewrite fts.c not to change the current working directory,
77616         by using openat, fstatat, fdopendir, etc..
77617
77618         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77619         (HAVE_OPENAT_SUPPORT): Define.
77620         [_LIBC] (fchdir): Don't undef or define; no longer used.
77621         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77622         Now, this `function' always succeeds, and consumes its file descriptor
77623         parameter -- so callers must not close such FDs.  Update callers.
77624         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77625         (diropen): Add parameter, SP.  Adjust all callers.
77626         Implement using diropen_fd, rather than open.
77627         (fts_open): Initialize new member, fts_cwd_fd.
77628         Remove fts_rft-setting code.
77629         (fts_close): Close fts_cwd_fd, if necessary.
77630         (__opendir2): Define in terms of opendir or opendirat,
77631         depending on whether the FST_NOCHDIR flag is set.
77632         (fts_build): Since fts_safe_changedir consumes its FD, and since
77633         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77634         and close the dup'd file descriptor upon failure.
77635         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77636         (fts_safe_changedir): Tweak semantics to reflect that this function
77637         now calls cwd_advance_fd and hence consumes its FD argument.
77638         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77639         [struct FTS] (fts_rft): Remove now-unused member.
77640         [struct FTS] (fts_cycle.state): Improve comment.
77641
77642         * lib/openat.c (openat_needs_fchdir): New function.
77643         * lib/openat.h (openat_needs_fchdir): Declare it.
77644
77645 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77648         Problem and fix reported by Pádraig Brady in
77649         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77650
77651 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77654
77655 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/memcoll.c (memcoll): Optimize for the common case where the
77658         arguments are bytewise equal.
77659
77660 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * doc/regexprops-generic.texi: Add a copyright notice.
77663
77664 2006-08-15  Bruno Haible  <bruno@clisp.org>
77665
77666         * modules/tmpdir (License): Change to LGPL.
77667
77668 2006-08-15  Bruno Haible  <bruno@clisp.org>
77669
77670         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77671         module.
77672
77673 2006-08-14  Simon Josefsson  <jas@extundo.com>
77674
77675         * config/srclist.txt: Add gnupload.
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         * tests/test-lock.c: Likewise.
77682         * tests/test-stdint.c: Likewise.
77683         * tests/test-tls.c: Likewise.
77684
77685         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77686         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77687         Add copyright notice.
77688
77689         * check-module: Add copyright notice.  Output a copyright
77690         notice if "--version" is specified.
77691         * modules/COPYING: New file.
77692         * tests/test-getaddrinfo.c: Add copyright notice.
77693         * tests/test-verify.c: Likewise.
77694
77695 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         Change copyright notice from LGPL 2 to GPL 2, since that's the
77698         standard form used in the gnulib repository.
77699         * lib/lock.c: LGPL -> GPL.
77700         * lib/lock.h: Likewise.
77701         * lib/strnlen1.c: Likewise.
77702         * lib/strnlen1.h: Likewise.
77703         * lib/tls.c: Likewise.
77704         * lib/tls.h: Likewise.
77705         * lib/tmpdir.c: Likewise.
77706
77707         * lib/TODO: Remove; this belongs only in coreutils.
77708
77709 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         Add copyright notices to long-enough files that lack them, since
77712         otherwise the files aren't clearly free.  Use the same notice that
77713         getdate.texi already uses.
77714         * doc/alloca-opt.texi: Add copyright notice.
77715         * doc/alloca.texi: Likewise.
77716         * doc/ctime.texi: Likewise.
77717         * doc/functions.texi: Likewise.
77718         * doc/gcd.texi: Likewise.
77719         * doc/gnulib-tool.texi: Likewise.
77720         * doc/inet_ntoa.texi: Likewise.
77721         * doc/visibility.texi: Likewise.
77722
77723         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77724         * doc/quote.texi: Add copyright notice.
77725
77726         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77727         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77728         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77729         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77730         is now obsolete, and give a pointer to the Sun list.
77731         Add copyright notice.
77732
77733 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * config/srclistvars.sh: Add copyright notice.
77736
77737 2006-08-14  Eric Blake  <ebb9@byu.net>
77738
77739         Import the following change from libc:
77740
77741         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77742
77743         Upstream bug 2997.
77744         * lib/misc/error.c: Add space between program name and message if file
77745         name is missing.
77746
77747 2006-08-12  Karl Berry  <karl@gnu.org>
77748
77749         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77750         remove, these originate in gnulib now.
77751
77752 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77753
77754         * doc/Makefile (standards.info standards.html standards.dvi):
77755         Also depend on make-stds.texi.
77756
77757 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77760         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77761
77762         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77763         in wchar_t.  Problem reported by Eric Blake.
77764
77765         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77766         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77767         Also, help the compiler to keep LEN in a register.
77768
77769 2006-08-11  Eric Blake  <ebb9@byu.net>
77770
77771         * users.txt: Sort.  Add tar.
77772
77773 2006-08-11  Bruno Haible  <bruno@clisp.org>
77774
77775         * users.txt: New file.
77776
77777 2006-08-11  Bruno Haible  <bruno@clisp.org>
77778
77779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77780         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77781
77782 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * modules/snprintf (Depends-on): Remove minmax.
77785         (Maintainer): Add self and Bruno.
77786
77787 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77790         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77791         (EOVERFLOW): Define if the system does not.
77792         Do not include "minmax.h"; it wasn't used.
77793         (snprintf): Don't assume size_t promotes to an unsigned type.
77794         Fix bug when generated string was too long for the buffer: the
77795         buffer's contents are supposed to be the initial prefix of the
77796         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77797         exceeds INT_MAX; do the check ourselves.
77798
77799         Import the following changes from libc:
77800
77801         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77802
77803         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77804         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77805         set wc to the byte which couldn't be converted.
77806         (re_string_reconstruct): Don't clear valid_raw_len before calling
77807         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77808         tip_context using re_string_context_at.
77809
77810         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77811
77812         * lib/posix/regex.h: g++ still cannot handled [restrict].
77813
77814         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77815
77816         * lib/posix/regex.h: Remove special handling for VMS.
77817
77818 2006-08-10  Jim Meyering  <jim@meyering.net>
77819
77820         * modules/same-inode: New module.
77821         * modules/dev-ino: New module.
77822         * modules/cycle-check: Depend on these modules, rather than simply
77823         including their .h files.
77824         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77825         required via m4/cycle-check.m4.
77826         * modules/same: Depend on new same-inode module, rather than
77827         including same-inode.h.
77828         * modules/chdir-safer: New file.
77829
77830         * modules/chown (Depends-on): Add stat-macros.
77831
77832 2006-08-10  Jim Meyering  <jim@meyering.net>
77833
77834         * m4/cycle-check.m4: New file.
77835         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77836         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77837
77838 2006-08-10  Eric Blake  <ebb9@byu.net>
77839
77840         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77841         in from original proposal.
77842
77843 2006-08-10  Eric Blake  <ebb9@byu.net>
77844         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77845
77846         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77847         namespace.
77848
77849 2006-08-10  Bruno Haible  <bruno@clisp.org>
77850
77851         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77852         as well.
77853
77854 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         Sync from coreutils.
77857
77858         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77859
77860         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77861         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77862
77863 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * modules/restrict: Remove; no longer needed now that we assume
77866         Autoconf 2.59 or later.
77867         * MODULES.html.sh: Remove 'restrict'.
77868         * modules/argp (Depends-on): Remove 'restrict'.
77869         * modules/base64 (Depends-on): Likewise.
77870         * modules/gc (Depends-on): Likewise.
77871         * modules/getaddrinfo (Depends-on): Likewise.
77872         * modules/glob (Depends-on): Likewise.
77873         * modules/inet_ntop (Depends-on): Likewise.
77874         * modules/inet_pton (Depends-on): Likewise.
77875         * modules/memxor (Depends-on): Likewise.
77876         * modules/regex (Depends-on): Likewise.
77877         * modules/strtok_r (Depends-on): Likewise.
77878         * modules/time_r (Depends-on): Likewise.
77879
77880 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77883         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77884         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77885         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77886         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77887         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77888         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77889         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77890
77891         Merge from coreutils.
77892         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77893         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77895         * m4/time_r.m4 (gl_TIME_R): Likewise.
77896
77897 2006-08-09  Karl Berry  <karl@gnu.org>
77898
77899         * config/srclist.txt: no more gettext-tools, per Bruno.
77900
77901 2006-08-08  Eric Blake  <ebb9@byu.net>
77902
77903         * modules/verror: New module.
77904         * MODULES.html.sh: Document it.
77905
77906 2006-08-08  Eric Blake  <ebb9@byu.net>
77907
77908         * lib/verror.h, lib/verror.c: New files.
77909
77910 2006-08-08  Eric Blake  <ebb9@byu.net>
77911
77912         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77913         verror_at_line output complies with GNU Coding Standards even when
77914         file is NULL.
77915
77916 2006-08-07  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77919         versions of AIX.
77920         Reported by Ralf Wildenhues.
77921
77922 2006-08-07  Bruno Haible  <bruno@clisp.org>
77923
77924         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77925         in an AC_DEFUN. Needed so that the autoconf snippets can use
77926         AC_REQUIRE.
77927
77928 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77929
77930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77931         Initialize pkgdata_DATA.
77932         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77933         overriding it.
77934
77935 2006-08-06  Eric Blake  <ebb9@byu.net>
77936
77937         * lib/error.h: Fold in some upstream changes from glibc.
77938         * lib/error.c: Likewise.
77939
77940 2006-08-04  Bruno Haible  <bruno@clisp.org>
77941
77942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77943         Make the mostlyclean-local rule depend on mostlyclean-generic.
77944         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77945
77946 2006-07-31  Bruno Haible  <bruno@clisp.org>
77947
77948         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77949         <stdlib.h>, <string.h>.
77950
77951 2006-07-30  Bruno Haible  <bruno@clisp.org>
77952
77953         * modules/readlink (License): Change to LGPL.
77954
77955 2006-07-30  Bruno Haible  <bruno@clisp.org>
77956
77957         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77958         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77959         set PKGDATADIR to point to it.
77960
77961 2006-07-30  Bruno Haible  <bruno@clisp.org>
77962
77963         * modules/csharpexec (configure.ac): Comment out macro invocation.
77964         * modules/javaexec (configure.ac): Likewise.
77965         * modules/javacomp-script (configure.ac): Likewise.
77966
77967         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77968
77969 2006-07-30  Bruno Haible  <bruno@clisp.org>
77970
77971         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77972         linked-list.
77973
77974 2006-07-30  Bruno Haible  <bruno@clisp.org>
77975
77976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77977
77978 2006-07-30  Bruno Haible  <bruno@clisp.org>
77979
77980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77981         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77982         get removed.
77983
77984 2006-07-29  Bruno Haible  <bruno@clisp.org>
77985
77986         Make it possible for gnulib-tool to work with locally modified or
77987         augmented gnulib repositories.
77988         * gnulib-tool (func_usage): Document --local-dir option.
77989         (local_gnulib_dir): New variable.
77990         Handle --local-dir option.
77991         (func_lookup_file): New function.
77992         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77993         (func_get_description, func_get_filelist, func_get_description,
77994         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77995         func_get_automake_snippet, func_get_include_directive,
77996         func_get_license, func_get_maintainer): Use func_lookup_file.
77997         (func_import, func_create_testdir): Use func_lookup_file.
77998
77999 2006-07-29  Bruno Haible  <bruno@clisp.org>
78000
78001         * modules/setenv (Depends-on): Add unistd.
78002
78003 2006-07-29  Bruno Haible  <bruno@clisp.org>
78004
78005         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78006
78007 2006-07-29  Bruno Haible  <bruno@clisp.org>
78008
78009         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78010
78011 2006-07-29  Bruno Haible  <bruno@clisp.org>
78012
78013         * gnulib-tool (import, update): If there is no Makefile.am, look at
78014         aclocal.m4, instead of bailing out.
78015
78016 2006-07-29  Bruno Haible  <bruno@clisp.org>
78017
78018         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78019         Categorize the options by when they are useful.
78020
78021 2006-07-29  Bruno Haible  <bruno@clisp.org>
78022
78023         * gnulib-tool (func_usage): Document option --no-libtool.
78024         Handle option --no-libtool.
78025         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78026         for changed semantics of $libtool variable.
78027         (func_import): Likewise. If libtool is not used, show this through
78028         an option --no-libtool.
78029         (func_create_testdir): Update.
78030
78031 2006-07-29  Bruno Haible  <bruno@clisp.org>
78032
78033         * gnulib-tool (func_import): Extend error message about missing
78034         --doc-base.
78035
78036 2006-07-29  Bruno Haible  <bruno@clisp.org>
78037
78038         * gnulib-tool (func_import): Don't create the $docbase directory if
78039         there is no file to store there.
78040
78041 2006-07-29  Bruno Haible  <bruno@clisp.org>
78042
78043         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78044         relevant, look for configure.ac there, not in the current directory.
78045         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78046
78047 2006-07-29  Bruno Haible  <bruno@clisp.org>
78048
78049         * gnulib-tool (SORT): New variable.
78050         (func_usage): Undocument --assume-autoconf option.
78051         Remove --assume-autoconf option handling.
78052         (autoconf_minversion): Determine from the contents of configure.ac.
78053         (func_import): Remove autoconf_minversion handling.
78054         Suggested by Eric Blake.
78055
78056 2006-07-29  Bruno Haible  <bruno@clisp.org>
78057
78058         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78059
78060 2006-07-29  Bruno Haible  <bruno@clisp.org>
78061
78062         * config/srclist.txt (*setenv.[ch]): Remove rules.
78063
78064 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78065
78066         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78067
78068 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78069
78070         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78071         arpa/inet.h.
78072
78073 2006-07-28  Simon Josefsson  <jas@extundo.com>
78074
78075         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78076         * modules/inet_pton (Depends-on): Likewise.
78077
78078 2006-07-28  Simon Josefsson  <jas@extundo.com>
78079
78080         * m4/netinet_in_h.m4: New file.
78081
78082 2006-07-28  Simon Josefsson  <jas@extundo.com>
78083
78084         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78085         #include's.
78086
78087 2006-07-28  Simon Josefsson  <jas@extundo.com>
78088
78089         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78090         #include's.
78091
78092 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78095         setgid on directories only if they set these bits.
78096         * lib/modechange.h: Remove obsolete comment about masks.
78097
78098 2006-07-28  Eric Blake  <ebb9@byu.net>
78099
78100         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78101         macro expansion.
78102
78103 2006-07-28  Bruno Haible  <bruno@clisp.org>
78104
78105         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78106
78107 2006-07-28  Bruno Haible  <bruno@clisp.org>
78108
78109         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78110
78111 2006-07-28  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78114         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78115         Define fallbacks.
78116         Avoids link error on FreeBSD 4.x.
78117         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78118
78119         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78120         encoding.
78121         * lib/mbswidth.c (iswcntrl): Likewise.
78122
78123 2006-07-27  Bruno Haible  <bruno@clisp.org>
78124
78125         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78126         test.
78127
78128 2006-07-27  Bruno Haible  <bruno@clisp.org>
78129
78130         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78131         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78132         defined.
78133
78134 2006-07-26  Eric Blake  <ebb9@byu.net>
78135
78136         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78137
78138 2006-07-26  Eric Blake  <ebb9@byu.net>
78139
78140         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78141         like mingw that lack mkstemp.
78142         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78143         avoid compilation warning on mingw.
78144
78145 2006-07-26  Bruno Haible  <bruno@clisp.org>
78146
78147         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78148         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78149         INT_FAST*_MIN, INTPTR_MIN.
78150
78151 2006-07-25  Bruno Haible  <bruno@clisp.org>
78152
78153         * modules/version-etc (Depends-on): Add stdarg.
78154
78155 2006-07-25  Bruno Haible  <bruno@clisp.org>
78156
78157         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78158         complex commands.
78159
78160 2006-07-25  Bruno Haible  <bruno@clisp.org>
78161
78162         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78163         defined in <stdarg.h> or config.h.
78164
78165 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78168         (gl_STDIO_SAFER): Remove.
78169
78170 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * MODULES.html.sh (File stream based Input/Output):
78173         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78174         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78175         * modules/fopen-safer, modules/tmpfile-safer: New files.
78176         * modules/stdio-safer: Remove.
78177
78178 2006-07-24  Bruno Haible  <bruno@clisp.org>
78179
78180         * modules/tmpdir: New file.
78181         * MODULES.html.sh (File system functions): Add it.
78182
78183 2006-07-24  Bruno Haible  <bruno@clisp.org>
78184
78185         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78186         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78187
78188 2006-07-24  Bruno Haible  <bruno@clisp.org>
78189
78190         * modules/clean-temp: New file.
78191
78192 2006-07-24  Bruno Haible  <bruno@clisp.org>
78193
78194         * m4/tmpdir.m4: New file, from GNU gettext.
78195
78196 2006-07-24  Bruno Haible  <bruno@clisp.org>
78197
78198         * lib/tmpdir.h: New file, from GNU gettext.
78199         * lib/tmpdir.c: New file, from GNU gettext.
78200
78201 2006-07-24  Bruno Haible  <bruno@clisp.org>
78202
78203         * lib/clean-temp.h: New file, from GNU gettext.
78204         * lib/clean-temp.c: New file, from GNU gettext.
78205
78206 2006-07-23  Eric Blake  <ebb9@byu.net>
78207
78208         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78209         (Depends-on): Add binary-io.
78210
78211 2006-07-23  Eric Blake  <ebb9@byu.net>
78212
78213         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78214
78215 2006-07-23  Eric Blake  <ebb9@byu.net>
78216
78217         * lib/tmpfile-safer.c: New file.
78218         * lib/stdio-safer.h (fopen_safer): Add prototype.
78219         * lib/stdio--.h (tmpfile): Make safer.
78220
78221 2006-07-23  Bruno Haible  <bruno@clisp.org>
78222
78223         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78224         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78225         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78226         gl_linked_remove_at): Use it.
78227
78228 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78229         and Simon Josefsson <jas@extundo.com>
78230
78231         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78232
78233         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78234
78235 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * modules/close-stream: New file.
78238         * modules/closeout (Description): Make it clear that it exits
78239         with a diagnostic on error.
78240         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78241         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78242
78243 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         * m4/close-stream.m4: New file.
78246
78247 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * lib/close-stream.c, lib/close-stream.h: New files.
78250
78251 2006-07-22  Bruno Haible  <bruno@clisp.org>
78252
78253         Merge from GNU gettext 0.15.
78254
78255         2006-05-01  Bruno Haible  <bruno@clisp.org>
78256
78257                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78258
78259         2006-07-22  Bruno Haible  <bruno@clisp.org>
78260
78261                 * modules/javaversion: New file.
78262                 * MODULES.html.sh (Java): Add javaversion.
78263
78264         2006-03-12  Bruno Haible  <bruno@clisp.org>
78265
78266                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78267
78268         2005-12-04  Bruno Haible  <bruno@clisp.org>
78269
78270                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78271                 (untested).
78272
78273         2006-06-21  Bruno Haible  <bruno@clisp.org>
78274
78275                 Avoid warnings from recent versions of mcs.
78276                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78277                 -o, -L, -r any more. Use options documented since mcs-1.0
78278                 instead. Similarly for -g.
78279
78280         2005-12-04  Bruno Haible  <bruno@clisp.org>
78281
78282                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78283                 .resources, not .resource.
78284
78285         2005-07-09  Bruno Haible  <bruno@clisp.org>
78286
78287                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78288                 add a .dll suffix.
78289                 Reported by Mark Junker <mjscod@gmx.de>.
78290
78291         2006-07-22  Bruno Haible  <bruno@clisp.org>
78292
78293                 * modules/gettext: Upgrade to gettext-0.15.
78294                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78295                 m4/visibility.m4.
78296                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78297
78298 2006-07-22  Bruno Haible  <bruno@clisp.org>
78299
78300         Merge from GNU gettext 0.15.
78301
78302         2006-03-25  Bruno Haible  <bruno@clisp.org>
78303
78304                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78305
78306         2006-07-21  Bruno Haible  <bruno@clisp.org>
78307
78308                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78309                 "1.1".
78310
78311         2006-05-09  Bruno Haible  <bruno@clisp.org>
78312
78313                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78314                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78315                 for the conftestver execution.
78316
78317         2006-05-01  Bruno Haible  <bruno@clisp.org>
78318
78319                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78320                 optional target-version argument. Verify that the compiler
78321                 groks source of the specified source-version, or add -source
78322                 option as necessary. Verify that the compiler produces
78323                 bytecode in the specified target-version, or add -target and
78324                 -source options as necessary. Make the result of the test
78325                 available as variable CONF_JAVAC. Also log error output in
78326                 config.log.
78327
78328         2006-03-11  Bruno Haible  <bruno@clisp.org>
78329
78330                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78331
78332         2006-05-09  Bruno Haible  <bruno@clisp.org>
78333
78334                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78335                 CLASSPATH_SEPARATOR to a semicolon.
78336
78337         2006-03-12  Bruno Haible  <bruno@clisp.org>
78338
78339                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78340                 available as variable CONF_JAVA, for subsequent autoconf
78341                 tests. Also log error output in config.log.
78342
78343         2006-07-19  Bruno Haible  <bruno@clisp.org>
78344
78345                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78346                 that getline works on glibc2 systems. Needed to avoid trouble
78347                 in relocatable.c.
78348                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78349
78350         2005-12-04  Bruno Haible  <bruno@clisp.org>
78351
78352                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78353                 launcher (untested).
78354
78355         2005-12-04  Bruno Haible  <bruno@clisp.org>
78356
78357                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78358
78359         2006-07-22  Bruno Haible  <bruno@clisp.org>
78360
78361                 * gettext.m4: Update from GNU gettext-0.15.
78362                 * nls.m4: Likewise.
78363                 * po.m4: Likewise.
78364                 * inttypes-pri.m4: Likewise.
78365                 * inttypes-h.m4: Renamed from inttypes.m4.
78366                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78367
78368 2006-07-22  Bruno Haible  <bruno@clisp.org>
78369
78370         Merge from GNU gettext 0.15.
78371
78372         2005-07-05  Bruno Haible  <bruno@clisp.org>
78373
78374                 * printf-args.c (printf_fetchargs): Work around broken
78375                 definition of wint_t on mingw.
78376
78377         2005-02-12  Bruno Haible  <bruno@clisp.org>
78378
78379                 * xallocsa.h: Add extern "C" for C++.
78380
78381         2006-05-17  Bruno Haible  <bruno@clisp.org>
78382
78383                 Cygwin portability.
78384                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78385
78386         2006-04-30  Bruno Haible  <bruno@clisp.org>
78387
78388                 * progreloc.c: Include <mach-o/dyld.h> if available.
78389                 (find_executable): Use _NSGetExecutablePath when possible.
78390
78391         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78392
78393                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78394                 function.
78395
78396         2005-12-29  Bruno Haible  <bruno@clisp.org>
78397
78398                 * progreloc.c (set_program_name_and_installdir): Fix
78399                 compilation error.
78400
78401         2005-12-04  Bruno Haible  <bruno@clisp.org>
78402
78403                 Cygwin portability.
78404                 * progreloc.c: Include <windows.h> also on Cygwin.
78405                 (find_executable): Add support for Cygwin.
78406                 (set_program_name_and_installdir): Handle also platforms with
78407                 nonempty EXEEXT.
78408
78409         2006-07-11  Bruno Haible  <bruno@clisp.org>
78410
78411                 * javacomp.c: Fix a comment.
78412                 Reported by Jim Meyering.
78413
78414         2006-04-30  Bruno Haible  <bruno@clisp.org>
78415
78416                 * javacomp.h (compile_java_class): Add source_version,
78417                 target_version arguments.
78418                 * javacomp.c: Rewritten to choose only a compiler that
78419                 respects the specified source_version and target_version.
78420
78421         2006-06-27  Bruno Haible  <bruno@clisp.org>
78422
78423                 Assume correct S_ISDIR macro.
78424                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78425
78426         2006-07-22  Bruno Haible  <bruno@clisp.org>
78427
78428                 * javaversion.h: New file, from GNU gettext.
78429                 * javaversion.c: New file, from GNU gettext.
78430                 * javaversion.java: New file, from GNU gettext.
78431                 * javaversion.class: New file, from GNU gettext.
78432
78433         2006-05-17  Bruno Haible  <bruno@clisp.org>
78434
78435                 Cygwin portability.
78436                 * javaexec.c (execute_java_class): Test for jview program
78437                 also on Cygwin.
78438
78439         2006-04-09  Bruno Haible  <bruno@clisp.org>
78440
78441                 * fatal-signal.c: Don't include string.h.
78442                 (at_fatal_signal): Use a copying loop instead of memcpy.
78443
78444         2005-12-04  Bruno Haible  <bruno@clisp.org>
78445
78446                 * csharpexec.c: Add support for 'clix' launcher (untested).
78447                 (execute_csharp_using_sscli): New function.
78448                 (execute_csharp_program): Call it.
78449
78450         2006-06-21  Bruno Haible  <bruno@clisp.org>
78451
78452                 Avoid warnings from recent versions of mcs.
78453                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78454                 -o, -L, -r any more. Use options documented since mcs-1.0
78455                 instead. Similarly for -g.
78456
78457         2005-07-09  Bruno Haible  <bruno@clisp.org>
78458
78459                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78460                 add a .dll suffix.
78461                 Reported by Mark Junker <mjscod@gmx.de>.
78462
78463         2006-06-17  Bruno Haible  <bruno@clisp.org>
78464
78465                 * config.charset: Update for NetBSD 3.0.
78466
78467         2006-05-17  Bruno Haible  <bruno@clisp.org>
78468
78469                 Cygwin portability.
78470                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78471
78472         2006-05-16  Bruno Haible  <bruno@clisp.org>
78473
78474                 * localcharset.c [CYGWIN]: Include <windows.h>.
78475                 (get_charset_aliases): For Cygwin, return the same CPxxx
78476                 aliases list as under WIN32.
78477                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78478                 the environment variables. Fall back to GetACP().
78479
78480         2006-04-05  Bruno Haible  <bruno@clisp.org>
78481
78482                 * config.charset: Update Juan Manuel Guerrero's address.
78483
78484         2005-02-12  Bruno Haible  <bruno@clisp.org>
78485
78486                 * allocsa.h: Add extern "C" for C++.
78487
78488         2005-02-10  Bruno Haible  <bruno@clisp.org>
78489
78490                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78491                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78492
78493         2006-07-22  Bruno Haible  <bruno@clisp.org>
78494
78495                 * gettext.h: Update to GNU gettext-0.15.
78496
78497 2006-07-22  Bruno Haible  <bruno@clisp.org>
78498
78499         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78500         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78501         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78502
78503 2006-07-21  Eric Blake  <ebb9@byu.net>
78504
78505         * modules/stdlib-safer: New file.
78506         * MODULES.html.sh (File stream based Input/Output): Add
78507         stdlib-safer.
78508
78509 2006-07-21  Eric Blake  <ebb9@byu.net>
78510
78511         * lib/stdlib-safer.h: New file from coreutils, required by
78512         stdlib--.h.
78513
78514 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78517
78518 2006-07-20  Bruno Haible  <bruno@clisp.org>
78519
78520         * gnulib-tool: Recognize new option --assume-autoconf.
78521         (autoconf_minversion): New variable.
78522         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78523
78524 2006-07-20  Bruno Haible  <bruno@clisp.org>
78525
78526         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78527
78528 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78529
78530         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78531         Reindent and repaginate.
78532
78533 2006-07-19  Derek Price  <derek@ximbiot.com>
78534
78535         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78536         Correct grammar.
78537
78538 2006-07-17  Bruno Haible  <bruno@clisp.org>
78539
78540         * modules/list: New file.
78541         * modules/array-list: New file.
78542         * modules/carray-list, modules/carray-list-tests: New files.
78543         * modules/linked-list, modules/linked-list-tests: New files.
78544         * modules/avltree-list, modules/avltree-list-tests: New files.
78545         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78546         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78547         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78548         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78549         * modules/oset: New file.
78550         * modules/array-oset: New file.
78551         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78552         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78553         * tests/test-carray_list.c: New file.
78554         * tests/test-linked_list.c: New file.
78555         * tests/test-avltree_list.c: New file.
78556         * tests/test-rbtree_list.c: New file.
78557         * tests/test-linkedhash_list.c: New file.
78558         * tests/test-avltreehash_list.c: New file.
78559         * tests/test-rbtreehash_list.c: New file.
78560         * tests/test-avltree_oset.c: New file.
78561         * tests/test-rbtree_oset.c: New file.
78562         * MODULES.html.sh (Container data structures): New section.
78563
78564 2006-07-17  Bruno Haible  <bruno@clisp.org>
78565
78566         * m4/gl_list.m4: New file.
78567
78568 2006-07-17  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/gl_list.h: New file.
78571         * lib/gl_list.c: New file.
78572         * lib/gl_array_list.h: New file.
78573         * lib/gl_array_list.c: New file.
78574         * lib/gl_carray_list.h: New file.
78575         * lib/gl_carray_list.c: New file.
78576         * lib/gl_linked_list.h: New file.
78577         * lib/gl_linked_list.c: New file.
78578         * lib/gl_anylinked_list1.h: New file.
78579         * lib/gl_anylinked_list2.h: New file.
78580         * lib/gl_avltree_list.h: New file.
78581         * lib/gl_avltree_list.c: New file.
78582         * lib/gl_anyavltree_list1.h: New file.
78583         * lib/gl_anyavltree_list2.h: New file.
78584         * lib/gl_rbtree_list.h: New file.
78585         * lib/gl_rbtree_list.c: New file.
78586         * lib/gl_anyrbtree_list1.h: New file.
78587         * lib/gl_anyrbtree_list2.h: New file.
78588         * lib/gl_anytree_list1.h: New file.
78589         * lib/gl_anytree_list2.h: New file.
78590         * lib/gl_linkedhash_list.h: New file.
78591         * lib/gl_linkedhash_list.c: New file.
78592         * lib/gl_anyhash_list1.h: New file.
78593         * lib/gl_anyhash_list2.h: New file.
78594         * lib/gl_avltreehash_list.h: New file.
78595         * lib/gl_avltreehash_list.c: New file.
78596         * lib/gl_rbtreehash_list.h: New file.
78597         * lib/gl_rbtreehash_list.c: New file.
78598         * lib/gl_anytreehash_list1.h: New file.
78599         * lib/gl_anytreehash_list2.h: New file.
78600
78601         * lib/gl_oset.h: New file.
78602         * lib/gl_oset.c: New file.
78603         * lib/gl_array_oset.h: New file.
78604         * lib/gl_array_oset.c: New file.
78605         * lib/gl_avltree_oset.h: New file.
78606         * lib/gl_avltree_oset.c: New file.
78607         * lib/gl_rbtree_oset.h: New file.
78608         * lib/gl_rbtree_oset.c: New file.
78609         * lib/gl_anytree_oset.h: New file.
78610
78611 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * m4/mkancesdirs.m4: New file.
78614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78615         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78616         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78617         it.
78618
78619 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78622         * lib/mkancesdirs.h: New files.
78623         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78624         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78625         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78626         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78627         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78628         callers changed.  Revamp internals significantly, by not
78629         attempting to create directories that are temporarily more
78630         permissive than the final results.  Do not attempt to use
78631         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78632         This removes some race conditions, fixes some bugs, and simplifies
78633         things.  Use new dirchownmod function to do owner and mode changes.
78634         * lib/mkdir-p.h: Likewise.
78635         * lib/modechange.c (octal_to_mode): New function.
78636         (struct mode_change): New member mentioned.
78637         (make_node_op_equals): New arg mentioned.  All callers changed.
78638         (mode_compile): Keep track of which mode bits the user has explicitly
78639         mentioned.
78640         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78641         New arg PMODE_BITS, to keep track of which mode bits the user
78642         mentioned; it treats S_ISUID and S_ISGID speciall.
78643         All callers changed.
78644         * lib/modechange.h: Likewise.
78645
78646 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * MODULES.html.sh: Add mkancestors.
78649         * modules/mkancesdirs: New module.
78650         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78651         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78652         The chdir-safer and afs files are now orphans; I'll remove them
78653         unless someone speaks up.
78654         Add lib/dirchownmod.c, lib/dirchownmod.h.
78655         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78656         Add lchown, mkancesdirs.
78657         (Maintainer): Add self.
78658
78659 2006-07-15  Karl Berry  <karl@gnu.org>
78660
78661         * gnulib-tool: help message wording/arrangement.
78662
78663 2006-07-14  Simon Josefsson  <jas@extundo.com>
78664
78665         * doc/gnulib.texi (Libtool and Windows): New section.
78666
78667 2006-07-12  Simon Josefsson  <jas@extundo.com>
78668
78669         * modules/gendocs (License): Fix license, approved by Karl.
78670
78671 2006-07-12  Eric Blake  <ebb9@byu.net>
78672
78673         * MODULES.html.sh: Add gendocs.
78674
78675 2006-07-11  Eric Blake  <ebb9@byu.net>
78676
78677         * modules/fdl: New module, to install doc/fdl.texi.
78678         * MODULES.html.sh: Add new section for documentation modules.
78679         * gnulib-tool: Avoid space-tab.
78680         (--doc-base): New option, to manage files from doc.
78681
78682 2006-07-11  Eric Blake  <ebb9@byu.net>
78683
78684         * m4/absolute-header.m4: Fix comments to match recent change.
78685
78686 2006-07-11  Eric Blake  <ebb9@byu.net>
78687
78688         * gnulib-tool: List --doc-base before --tests-base.
78689
78690 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78691
78692         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78693
78694 2006-07-11  Bruno Haible  <bruno@clisp.org>
78695
78696         * README: Mention where to put documentation.
78697
78698 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78699
78700         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78701
78702 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78703
78704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78705         to stdint.m4.
78706
78707 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78710         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78711         "no/such/file/stdint.h" when there is no such file, so that
78712         the resulting C code can be parsed by dodgy compilers.
78713         Problems reported by Bob Proulx.
78714
78715 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78716
78717         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78719         macros into the GNU _D_EXACT_NAMLEN.
78720         * lib/savedir.c:  Likewise.
78721         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78722
78723 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78724         and Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78727         * m4/savedir.m4:
78728         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78729         macros into the GNU _D_EXACT_NAMLEN.
78730
78731 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78734         around the absolute name, to work around a problem with the HP-UX
78735         11.23 native C compiler, reported by Bob Proulx.
78736
78737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * doc/maintain.texi, make-stds.texi: Sync from
78740         <http://savannah.gnu.org/projects/gnustandards>.
78741
78742 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78745
78746 2006-07-09  Jim Meyering  <jim@meyering.net>
78747
78748         * m4/glob.m4: Remove a doubled word in a comment.
78749
78750 2006-07-09  Jim Meyering  <jim@meyering.net>
78751
78752         * lib/argp-pv.c: Remove a doubled word in a comment.
78753         * lib/check-version.c (check_version): Likewise.
78754         * lib/javacomp.c (compile_java_class): Likewise.
78755
78756 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78759         for the benefit of people using Autoconf 2.60.  If you want to
78760         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78761         (or m4/onceonly.m4, if pre-2.57) manually.
78762
78763 2006-07-08  Jim Meyering  <jim@meyering.net>
78764
78765         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78766         comment.
78767         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78768         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78769         comment.
78770
78771 2006-07-08  Jim Meyering  <jim@meyering.net>
78772
78773         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78774
78775 2006-07-07  Simon Josefsson  <jas@extundo.com>
78776
78777         * tests/test-crc.c: Change expected crc value, the test vector
78778         were probably computed using the old broken crc.c?
78779
78780 2006-07-06  Simon Josefsson  <jas@extundo.com>
78781
78782         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78783         now the canonical place for the M4 file).
78784
78785         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78786         from the sys_socket dependency now.
78787
78788         * modules/inet_pton (Files): Ditto.
78789
78790         * modules/inet_ntop (Files): Ditto.
78791
78792 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78793
78794         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78795         not gl_PREREQ_GETUSERSHELL.
78796
78797 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78798
78799         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78800         with only one argument, for Autoconf 2.60.
78801         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78802         expand to nothing, so add a shell command to avoid syntax error.
78803         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78804
78805 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78806
78807         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78808
78809 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78812         no longer needed.  Check for isblank decl.
78813         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78814         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78815         of existence.
78816
78817 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * lib/getloadavg.c: Use __VMS, not VMS.
78820         * lib/getopt.c: Likewise.
78821         * lib/getpagesize.h: Likewise.
78822         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78823         and probably does not work.
78824
78825 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * lib/.cppi-disable: Add wcwidth.
78828         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78829         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78830         (ISGRAPH): Remove.  All uses changed to isgraph.
78831         (FOLD) [!defined _LIBC]: Remove special case.
78832         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78833         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78834         HAVE_ISBLANK.
78835         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78836         case.
78837
78838 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78839
78840         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78841         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78842         brackets.  Other minor changes to suppress some compiler
78843         warnings.
78844
78845 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78846         and Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78849         of invoking obsolescent AC_HEADER_DIRENT macro.
78850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78851         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78852         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78854         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78855         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78856         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78857         * m4/readdir.m4: Remove; no longer needed.
78858
78859 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78860         and Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78863         Don't worry about this obsolete case any more.
78864         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78865         directories.
78866         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78867         worry about this obsolete case any more.
78868         * lib/fts.c: Likewise.
78869         * lib/getcwd.c: Likewise.
78870         * lib/glob.h: Likewise.
78871         * lib/savedir.c: Likewise.
78872
78873 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78876         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78877         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78878         needed.
78879         All uses removed.
78880         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78881         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78882         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78883         needed.
78884         * m4/getdate.m4 (gl_GETDATE): Likewise.
78885         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78886         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78887         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78888         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78889         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78891         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78892         needed.
78893
78894 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * lib/memcasecmp.c: Include <limits.h>.
78897         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78898         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78899         Don't assume isdigit succeeds only on '0' through '9'.
78900
78901 2006-07-05  Eric Blake  <ebb9@byu.net>
78902
78903         * modules/getaddrinfo (Depends-on): Add snprintf.
78904
78905 2006-07-05  Eric Blake  <ebb9@byu.net>
78906
78907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78908         to avoid 'header present but could not be compiled' on cygwin.
78909
78910 2006-07-05  Eric Blake  <ebb9@byu.net>
78911
78912         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78913         missing from netdb.h.
78914         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78915
78916 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78917
78918         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78919         no longer needed.
78920         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78921         * m4/getdate.m4 (gl_GETDATE): Likewise.
78922         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78923         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78924         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78925         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78927
78928 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78929
78930         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78931         All uses of is_space replaced by isspace.
78932         * lib/exit.h: Don't talk about STDC_HEADERS.
78933         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78934         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78935         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78936         replaced by isprint etc.
78937         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78938         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78939         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78940         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78941         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78942         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78943
78944 2006-07-05  Bruno Haible  <bruno@clisp.org>
78945
78946         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78947         the function exists, before testing against AIX.
78948         Reported by Martin Lambers <marlam@marlam.de>.
78949
78950 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78951
78952         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78953         From Mark D. Baushke.
78954
78955 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78958         to the absolute name, not just one, to bypass Sun C 5.8's
78959         "warning: #include of /usr/include/... may be non-portable".
78960
78961 2006-07-04  Eric Blake  <ebb9@byu.net>
78962
78963         * modules/dirname-tests: New test module.
78964         * tests/test-dirname.c: New file, replacing dirname.c
78965         TEST_DIRNAME section that was recently deleted.
78966
78967 2006-07-04  Bruno Haible  <bruno@clisp.org>
78968
78969         Assume ANSI C header files and <ctype.h> functions.
78970         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78971         (mbsnwidth): Use isprint, iscntrl instead.
78972
78973 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         Merge from coreutils.
78976         * MODULES.html.sh: Add xstrtold.
78977         * modules/xstrtold: New file.
78978         * modules/cycle-check (Files): Add lib/same-inode.h.
78979         * modules/dirname (Files): Add m4/double-slash-root.m4.
78980         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78981         * modules/mkdir-p (Files): Add lib/same-inode.h.
78982         * modules/same (Files): Add lib/same-inode.h.
78983
78984 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78987         This is to keep the terminology clean; POSIX talks about
78988         "absolute pathnames", not "full pathnames", but the GNU
78989         Coding Standards say to use "path" for something else;
78990         so use "absolute" to keep both sides happy.
78991         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78992         Set gl_absolute_header, not gl_full_header_path.
78993         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78994         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78995         All uses changed.
78996
78997         Merge from coreutils.
78998
78999         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79002         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79003         want to require the building of c-strtod.o.
79004         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79005         needs -lm directly.
79006         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79007
79008         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79011         --as-needed option if available.  Problem reported by Albert Chin in
79012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79013         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79014         cc merely issues a bunch of annoying warnings for --as-needed
79015         (this problem was reported by Bob Proulx).  Also, try linking with
79016         -lm to detect a bug in binutils 2.16 (this problem was reported
79017         by Ralf Wildenhues).
79018
79019         2006-06-18  Jim Meyering  <jim@meyering.net>
79020
79021         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79022         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79023         macro.
79024         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79025         also check for glibc-2.4's abort-inducing bug.
79026
79027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79028         Low-probability clean-up should be to use rmdir to get rid of
79029         the just-created directory, not unlink.
79030
79031         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79032         configure fail, and request a bug report to inform us about it.
79033         Add a comment that, barring reports to the contrary, in 2007 we'll
79034         assume ftruncate is universally available.
79035
79036         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79039
79040         2006-03-12  Jim Meyering  <jim@meyering.net>
79041
79042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79043         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79044         * m4/same.m4 (gl_SAME): Likewise.
79045         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79046
79047         2006-03-11  Eric Blake  <ebb9@byu.net>
79048
79049         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79050         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79051         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79052         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79053
79054 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79057         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79058         reported by Mark D. Baushke, one in
79059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79060
79061         Merge from coreutils.
79062
79063         * lib/.cppi-disable: Add stdint_.h.
79064         * lib/.cvsignore: Add stdint.h.
79065
79066         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79069         both double and long double versions.
79070         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79071         * lib/xstrtold.c: New file.
79072         * lib/xstrtod.h (xstrtold): New decl.
79073
79074         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * lib/filemode.c (setst): Remove.
79077         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79078         (arguably) clearer, and the generated code is a bit smaller on my
79079         Debian GNU/Linux stable x86 host.
79080
79081         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79084         Assume that filemode.h includes sys/types.h and sys/stat.h.
79085         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79086         (ftypelet): Reorder to put common cases first, for efficiency.
79087         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79088         to do 'M'.
79089         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79090         of 10, for compatibility with FreeBSD.  All callers changed.
79091         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79092         types that can't be deduced solely from st_mode.  First arg is now a
79093         const pointer.
79094         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79095         (strmode): Renamed from mode_string.
79096         (filemodestring): New decl.
79097         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79098         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79099         needed.
79100         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79101
79102         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79105         fsusage.h now does that.  Include fsusage.h first, to test interface.
79106         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79107         at most one method (the old code could have generated decls that
79108         didn't conform to C89, not that this was ever exercised).
79109         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79110
79111         2006-03-19  Jim Meyering  <jim@meyering.net>
79112
79113         Work even in a chroot where d_ino values for entries in "/"
79114         don't match the stat.st_ino values for the same names.
79115         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79116         number, iterate through all entries again, using lstat instead.
79117         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79118         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79119
79120         * lib/getcwd.c (__getcwd): Clarify a comment.
79121         Use memcpy in place of a call to strcpy.
79122
79123         2006-03-12  Jim Meyering  <jim@meyering.net>
79124
79125         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79126         matches that of the current directory (which we're about to chdir ".."
79127         out of), then save the dev-ino of the parent, instead.
79128
79129         * lib/same-inode.h (SAME_INODE): New file/macro.
79130         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79131         Include "same-inode.h", instead.
79132         * lib/same.c: Likewise.
79133         * lib/cycle-check.h: Include "same-inode.h".
79134         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79135         * lib/cycle-check.c (SAME_INODE): Remove definition.
79136         * lib/root-dev-ino.h: Include "same-inode.h".
79137
79138         2006-03-11  Eric Blake  <ebb9@byu.net>
79139
79140         * lib/same.c (same_name): s/base_name/last_component/
79141         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79142         * lib/filenamecat.c (file_name_concat): Likewise.
79143
79144         2006-03-11  Eric Blake  <ebb9@byu.net>,
79145                     Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79148         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79149         drive prefix.
79150         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79151         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79152         (last_component): New method.
79153         * lib/dirname.c (dir_len): Determine when drive letters need a
79154         subsequent slash.  Preserve // when it is special.
79155         (dir_name): Don't append dot when drive letter is absolute.
79156         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79157         * lib/basename.c (base_name): New semantics - malloc the result.
79158         Preserve // when it is special.  Preserve relative files that look
79159         like drive letters.
79160         (base_len): Preserve // when it is special.
79161         (last_component): New method, similar to old base_name semantics.
79162         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79163         base_name.  Strip redundant slashes from ///.
79164
79165 2006-07-03  Jim Meyering  <jim@meyering.net>
79166
79167         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79168         macro is used before the first cycle_check call.
79169
79170 2006-07-03  Eric Blake  <ebb9@byu.net>
79171
79172         * modules/dirname (Depends-on): Add xstrndup.
79173
79174 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79177         test cases, so that config.log is a bit easier to follow.
79178
79179 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79182         both are 64 bits, since this seems to be the tradition, and this
79183         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79184         we ever run into a host that prefers long long to long in this
79185         case, we'll need another configure-time test.  Problem reported by
79186         Jim Meyering.
79187
79188 2006-07-02  Eric Blake  <ebb9@byu.net>
79189
79190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79191
79192 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * modules/inttypes (Depends-on): No longer depends on stdint.
79195         * modules/stdint (Description): Say more about assumptions.
79196         Say that the fast types might differ.  Say macros are used.
79197         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79198         (Makefile.am): Revise list of substituted symbols to match
79199         new stdint.m4.
79200         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79201         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79202         * tests/test-stdint.c (verify_same_types)
79203         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79204         the code conforms to C99/C89.
79205         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79206         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79207
79208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79211         but fix a bug, by requiring at least 64 bits.
79212         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79213         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79214         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79216
79217         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79218         changes.  Make 2.59 a prerequisite.  Check and substitute for
79219         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79220         inttypes.h.  Do not use special include files; just use the
79221         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79222         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79223         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79224         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79225         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79226         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79227         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79228         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79229         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79230         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79231         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79232         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79233         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79234         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79235         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79236         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79237         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79238         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79239         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79240         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79241         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79242         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79243         not check for things that C99 does not require, e.g., int8_t.  If
79244         a test isn't needed unless <stdint.h> isn't working, and is
79245         unlikely to be needed for any other reason, then don't do it
79246         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79247         size_t, since we assume C89 freestanding at least.  Do not check
79248         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79249         the right thing even if the types are not defined.  Instead use:
79250         (gl_STDINT_TYPE_PROPERTIES): New macro.
79251         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79252         testing whether <sys/types.h> clashes, as Autoconf does this for
79253         us now.  All uses removed.
79254         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79255         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79256         (gl_CHECK_TYPE_SAME):
79257         Remove; no longer needed.
79258         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79259         exists, since we'll return 0 anyway in that case.
79260         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79261
79262 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79265         possible collision with system files.
79266         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79267         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79268         WCHAR_MIN and WCHAR_MAX in this case.
79269         (<stddef.h>): Do not include; no longer needed.
79270         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79271         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79272         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79273         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79274         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79275         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79276         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79277         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79278         !defined(__c99))]: Include in this case too, since it's harmless
79279         now.
79280         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79281         dangerous to do so.
79282         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79283         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79284         (_STDINT_MIN, _STDINT_MAX): New macros.
79285         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79286         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79287         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79288         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79289         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79290         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79291         macros, not typedefs; this simplifies things quite a bit.
79292         Use long int for all types narrower than int64_t.
79293         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79294         Define in terms of long long int or int64_t or long int,
79295         not int64_t or int32_t.  This saves some compile-time testing.
79296         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79297         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79298         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79299         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79300         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79301         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79302         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79303         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79304         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79305         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79306         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79307         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79308         undef any previous version and define our own version, for
79309         simplicity and consistency with the new macros for types.
79310         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79311         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79312         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79313         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79314         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79315         @WINT_T_SUFFIX@ to keep things simple here.
79316         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79317         Simplify by assuming typical 8/16/32/64 host, since we're
79318         already doing that elsewhere anyway.
79319         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79320         and assume long long int is 64 bits if available.  This
79321         speeds up 'configure'.
79322
79323 2006-07-01  Eric Blake  <ebb9@byu.net>
79324
79325         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79326         Reported by Andreas Buening.
79327
79328 2006-07-01  Eric Blake  <ebb9@byu.net>
79329
79330         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79331
79332 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79333
79334         * lib/getaddrinfo.c: fixed typo
79335
79336 2006-06-29  Jim Meyering  <jim@meyering.net>
79337
79338         * modules/strftime (Maintainer): Add my name, since with the
79339         FPRINTFTIME changes strftime.c has forked from glibc.
79340
79341 2006-06-29  Eric Blake  <ebb9@byu.net>
79342
79343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79344
79345 2006-06-29  Eric Blake  <ebb9@byu.net>
79346
79347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79348
79349 2006-06-29  Eric Blake  <ebb9@byu.net>
79350
79351         * lib/stat_.h: New file.
79352
79353 2006-06-29  Eric Blake  <ebb9@byu.net>
79354
79355         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79356         unused static function.
79357
79358 2006-06-29  Eric Blake  <ebb9@byu.net>
79359
79360         * doc/functions.texi (Function Portability): Document missing lstat
79361         on mingw.
79362
79363 2006-06-29  Eric Blake  <ebb9@byu.net>
79364
79365         * MODULES.html.sh: Add sys_stat.
79366         * modules/sys_stat: New module.
79367         * modules/mkstemp (Depends-on): Add sys_stat.
79368
79369 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79370
79371         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79372
79373 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79374
79375         * m4/c-bs-a.m4: Removed.
79376
79377 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79378
79379         * lib/strftime.c: Assume strftime() exists.
79380
79381 2006-06-29  Derek Price  <derek@ximbiot.com>
79382
79383         * modules/c-bs-a: Removed - \a is C89.
79384         * MODULES.html.sh: Remove c-bs-a.
79385
79386 2006-06-29  Bruno Haible  <bruno@clisp.org>
79387
79388         * modules/wcwidth (License): Change to LGPL.
79389
79390 2006-06-28  Simon Josefsson  <jas@extundo.com>
79391
79392         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79393         on _WIN32.
79394
79395         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79396         getnameinfo.
79397
79398 2006-06-28  Simon Josefsson  <jas@extundo.com>
79399
79400         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79401
79402 2006-06-28  Simon Josefsson  <jas@extundo.com>
79403
79404         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79405         functions there.  It will succeed on Windows XP, but on Windows
79406         2000 and (presumably) earlier, it will fail, and use the internal
79407         re-implementation.
79408         (use_win32_p): New function.
79409         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79410         Support AI_NUMERICSERV to disable getservbyname.
79411         (getnameinfo): New function, only supports
79412         NI_NUMERICHOST|NI_NUMERICSERV for now.
79413
79414         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79415         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79416         getnameinfo.
79417
79418 2006-06-28  Eric Blake  <ebb9@byu.net>
79419
79420         * modules/wcwidth: New file.
79421         * modules/mbchar (Depends-on): Add wcwidth.
79422         * modules/mbswidth (Depends-on): Add wcwidth.
79423         * MODULES.html.sh: Add wcwidth.
79424
79425 2006-06-28  Eric Blake  <ebb9@byu.net>
79426
79427         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79429
79430 2006-06-28  Eric Blake  <ebb9@byu.net>
79431
79432         * lib/xvasprintf.h: Fix comments.
79433
79434 2006-06-28  Eric Blake  <ebb9@byu.net>
79435
79436         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79437         * lib/mbswidth.c (wcwidth): Move from here...
79438         * lib/wcwidth.h: ...to this new file.
79439
79440 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79441
79442         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79443
79444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79445         it's obsolete.
79446         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79447
79448 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79449
79450         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79451         Autoconf 2.60 says this stuff was obsolete.
79452
79453 2006-06-28  Bruno Haible  <bruno@clisp.org>
79454
79455         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79456
79457 2006-06-28  Bruno Haible  <bruno@clisp.org>
79458
79459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79460         gt_TYPE_WCHAR_T.
79461
79462 2006-06-28  Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79465         declaration for wcwidth.
79466         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79467
79468 2006-06-28  Bruno Haible  <bruno@clisp.org>
79469
79470         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79471         (mkdir): Define using _mkdir.
79472
79473 2006-06-28  Bruno Haible  <bruno@clisp.org>
79474
79475         * lib/getaddrinfo.h: Fix POSIX URL.
79476         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79477         _WIN32.
79478         (use_win32_p): Make static.
79479         (getaddrinfo): Reject service name if it is empty or does not consist
79480         solely of decimal digits, or if its value is > 65535.
79481         (getnameinfo): Remove useless casts.
79482
79483 2006-06-27  Simon Josefsson  <jas@extundo.com>
79484
79485         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79486         Eggert and Martin Lambers.
79487
79488 2006-06-27  Simon Josefsson  <jas@extundo.com>
79489
79490         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79491         Eggert and Martin Lambers.
79492
79493 2006-06-27  Bruno Haible  <bruno@clisp.org>
79494
79495         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79496         result to 0, not to empty.
79497         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79498
79499 2006-06-27  Bruno Haible  <bruno@clisp.org>
79500
79501         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79502
79503 2006-06-26  Simon Josefsson  <jas@extundo.com>
79504
79505         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79506         present.
79507
79508 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79511         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79513
79514 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79515
79516         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79517
79518 2006-06-26  Bruno Haible  <bruno@clisp.org>
79519
79520         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79521
79522 2006-06-26  Bruno Haible  <bruno@clisp.org>
79523
79524         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79525
79526 2006-06-26  Bruno Haible  <bruno@clisp.org>
79527
79528         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79529         SGI C compiler in pre-C99 mode.
79530         Suggested by Mark D. Baushke and Larry Jones.
79531
79532 2006-06-26  Bruno Haible  <bruno@clisp.org>
79533
79534         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79535         WCHAR_MAX.
79536         Reported by Mark D. Baushke and Larry Jones.
79537
79538 2006-06-26  Bruno Haible  <bruno@clisp.org>
79539
79540         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79541         in pre-C99 mode.
79542         Suggested by Mark D. Baushke and Larry Jones.
79543
79544 2006-06-23  Simon Josefsson  <jas@extundo.com>
79545             Bruno Haible  <bruno@clisp.org>
79546
79547         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79548         Emit mostlyclean-local rule.
79549         (func_emit_tests_Makefile_am): Likewise.
79550         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79551
79552 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79553
79554         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79555
79556 2006-06-23  Bruno Haible  <bruno@clisp.org>
79557
79558         * tests/test-stdint.c: Update to match ISO C 99 Technical
79559         Corrigendum 1.
79560
79561 2006-06-23  Bruno Haible  <bruno@clisp.org>
79562
79563         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79564
79565 2006-06-23  Bruno Haible  <bruno@clisp.org>
79566
79567         * lib/stdint_.h: Treat IRIX like OpenBSD.
79568
79569 2006-06-23  Bruno Haible  <bruno@clisp.org>
79570
79571         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79572         ISO C 99 Technical Corrigendum 1.
79573
79574 2006-06-22  Simon Josefsson  <jas@extundo.com>
79575
79576         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79577         MinGW.
79578
79579 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79582         needed.  Some compiler complained about some of them.  Problem reported
79583         by Larry Jones in
79584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79585
79586 2006-06-21  Simon Josefsson  <jas@extundo.com>
79587
79588         * tests/test-getaddrinfo.c: New file.
79589
79590         * modules/getaddrinfo-tests: New file.
79591
79592         * MODULES.html.sh: Add inet_pton.
79593
79594         * modules/inet_pton: New file.
79595
79596 2006-06-21  Simon Josefsson  <jas@extundo.com>
79597
79598         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79599         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79600         of using the (limited) gnulib implementation on Windows XP.
79601
79602         * m4/inet_pton.m4: New file.
79603
79604 2006-06-21  Simon Josefsson  <jas@extundo.com>
79605
79606         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79607         variable.
79608
79609         * lib/socket_.h: Don't define WINVER.
79610
79611         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79612         slightly modified to work in gnulib.
79613
79614 2006-06-21  Simon Josefsson  <jas@extundo.com>
79615
79616         * doc/gnulib.texi (Windows sockets): Add.
79617
79618 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * lib/read-file.c (fread_file): Start with buffer allocation of
79621         0 bytes rather than 1 byte; this simplifies the code.
79622         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79623         code to free buffer and save/restore errno.
79624         (internal_read_file): Remove unused local.
79625
79626 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79629         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79630         Problem reported by Denis Excoffier in
79631         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79632
79633 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79634
79635         * modules/sys_socket, modules/socklen: Include sys/types since
79636         FreeBSD 4.x's sys/socket.h needs it.
79637
79638 2006-06-19  Simon Josefsson  <jas@extundo.com>
79639
79640         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79641
79642 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79645
79646 2006-06-19  Bruno Haible  <bruno@clisp.org>
79647
79648         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79649         and FULL_PATH_INTTYPES_H in angle brackets.
79650         Reported by Mark D. Baushke <mdb@gnu.org>.
79651
79652 2006-06-17  Eric Blake  <ebb9@byu.net>
79653
79654         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79655         errno.
79656
79657 2006-06-17  Bruno Haible  <bruno@clisp.org>
79658
79659         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79660         <sys/inttypes.h>.
79661
79662 2006-06-17  Bruno Haible  <bruno@clisp.org>
79663
79664         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79665         whether errno is declared. Assume <errno.h> declares errno.
79666
79667 2006-06-17  Bruno Haible  <bruno@clisp.org>
79668
79669         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79670
79671 2006-06-17  Bruno Haible  <bruno@clisp.org>
79672
79673         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79674         problem on Solaris 2.5.1.
79675
79676 2006-06-16  Eric Blake  <ebb9@byu.net>
79677
79678         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79679         * lib/unicodeio.c [!defined errno]: Likewise.
79680         * lib/strtol.c [!defined errno]: Likewise.
79681         * lib/strtod.c [!defined errno]: Likewise.
79682
79683 2006-06-15  Eric Blake  <ebb9@byu.net>
79684
79685         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79686
79687 2006-06-15  Eric Blake  <ebb9@byu.net>
79688
79689         * config/srclist.txt (ssize_t.m4): Lose sync.
79690
79691 2006-06-15  Bruno Haible  <bruno@clisp.org>
79692
79693         * modules/stdint (Files): Include m4/full-header-path.m4,
79694         m4/size_max.m4, m4/wchar_t.m4.
79695         (Makefile.am): Many more substitutions.
79696         * modules/stdint-tests: New file.
79697         * tests/test-stdint.c: New file.
79698
79699 2006-06-15  Bruno Haible  <bruno@clisp.org>
79700
79701         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79702         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79703         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79704         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79705         gl_CHECK_TYPE_SAME): New macros.
79706
79707 2006-06-15  Bruno Haible  <bruno@clisp.org>
79708
79709         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79710
79711 2006-06-15  Bruno Haible  <bruno@clisp.org>
79712
79713         * lib/stdint_.h: Rewritten to be fully auto-configured.
79714         Fixes bug on HP-UX/IA64.
79715
79716 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * lib/getdate.y (__attribute__): Don't define if already defined.
79719         Problem reported by Larry Jones.
79720         * lib/utimens.c (__attribute__): Likewise.
79721
79722 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79725         reported by Andreas Schwab.
79726
79727 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79728             Bruno Haible  <bruno@clisp.org>
79729
79730         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79731         check for the declaration of strnlen and a run test that exposes the
79732         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79733         rpl_strndup.
79734
79735 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79736             Bruno Haible  <bruno@clisp.org>
79737
79738         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79739
79740 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79741
79742         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79743         compile test, for Tru64 4.0D.
79744
79745 2006-05-28  Karl Berry  <karl@gnu.org>
79746
79747         * config/srclist.txt (printf-args.c): lose sync.
79748
79749 2006-05-26  Martin Lambers  <marlam@marlam.de>
79750
79751         * lib/getpass.c: Updates the test for the native W32 API, and adds
79752         missing includes, thus fixing compilation warnings.
79753
79754 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79755
79756         * lib/exclude.c (exclude_fnmatch): New function.
79757         (excluded_file_name): Call exclude_fnmatch.
79758         * lib/exclude.h (excluded_file_name): New prototype
79759
79760 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * lib/tempname.c (small_open, large_open): New macros.
79763         (__open, __open64) [!_LIBC]: Remove.
79764         (__gen_tempname): Use small_open and large_open instead of __open
79765         and __open64.  This fixes a portability bug on HP-UX 11.11i
79766         reported by Simon Wing-Tang in
79767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79768
79769 2006-05-24  Bruno Haible  <bruno@clisp.org>
79770
79771         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79772         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79773         Reported by Thorsten Maerz <torte@netztorte.de> via
79774         Aaron Stone <aaron@serendipity.cx>.
79775
79776 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79779         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79780         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79781         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79782         not really conditional on the cache.
79783         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79784
79785 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79788         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79789         (my_usleep): Don't mishandle maximum value.
79790
79791 2006-05-19  Jim Meyering  <jim@meyering.net>
79792
79793         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79794
79795 2006-05-17  Bruno Haible  <bruno@clisp.org>
79796
79797         Cygwin portability.
79798         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79799
79800 2006-05-17  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/stdint_.h: Fix recognition of Cygwin.
79803
79804 2006-05-15  Bruno Haible  <bruno@clisp.org>
79805
79806         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79807         on libtool patch by Ralf Wildenhues.
79808
79809 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79810
79811         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79812         test for C99 conformance; (bool) 0.5 is an integer constant
79813         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79814         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79815
79816 2006-05-11  Simon Josefsson  <jas@extundo.com>
79817
79818         * m4/xvasprintf.m4: Fix obvious typo.
79819
79820 2006-05-11  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79823         James Lemley.
79824
79825 2006-05-10  Simon Josefsson  <jas@extundo.com>
79826
79827         * lib/md4.c: Typo fix, update copyright years.
79828         (K1, K2): Don't use L because it turn computations into 64-bit on
79829         64-bit platforms.
79830
79831 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79834         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79835         unwanted sign propagation, e.g., on hosts with 64-bit int.
79836         There still are some problems with reeelly weird theoretical hosts
79837         (e.g., 33-bit int) but it's not worth worrying about now.
79838         * lib/sha1.c (rol): Likewise.
79839         (K1, K2, K3, K4): Remove unnecessary L suffix.
79840
79841 2006-05-10  Bruno Haible  <bruno@clisp.org>
79842
79843         * lib/des.c: Cast to avoid warnings.
79844
79845 2006-05-09  Bruno Haible  <bruno@clisp.org>
79846
79847         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79848         (Depends-on): Depend also on xsize, stdarg.
79849         (configure.ac): Add gl_XVASPRINTF.
79850
79851 2006-05-09  Bruno Haible  <bruno@clisp.org>
79852
79853         * m4/xvasprintf.m4: New file.
79854
79855 2006-05-09  Bruno Haible  <bruno@clisp.org>
79856
79857         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79858         (EOVERFLOW): Define fallback value.
79859         (xstrcat): New function.
79860         (xvasprintf): Recognize the special case of a string concatenation.
79861
79862 2006-05-08  Eric Blake  <ebb9@byu.net>
79863
79864         * gnulib-tool (func_version): Base copyright year on CVS date.
79865         (func_emit_copyright_notice): New function.
79866         (func_emit_lib_Makefile_am): Use it.
79867         (func_emit_tests_Makefile_am): Likewise.
79868         (func_import): Likewise.
79869
79870 2006-05-08  Bruno Haible  <bruno@clisp.org>
79871
79872         * modules/stdarg: New file.
79873         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79874
79875 2006-05-08  Bruno Haible  <bruno@clisp.org>
79876
79877         * m4/stdarg.m4: New file, from GNU gettext.
79878
79879 2006-05-08  Bruno Haible  <bruno@clisp.org>
79880
79881         * config/srclist.txt (build-aux/config.rpath): different from latest
79882         release.
79883
79884 2006-05-08  Bruno Haible  <bruno@clisp.org>
79885
79886         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79887
79888 2006-05-05  Jim Meyering  <jim@meyering.net>
79889
79890         * m4/warning.m4: New file, derived from bison's file by the same name.
79891
79892 2006-05-03  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/stdint_.h: Shorter URL.
79895         * lib/inttypes.h: Likewise.
79896
79897 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79900
79901 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * lib/verify.h: Document the internals better.  Most of this change
79904         was written by Bruno Haible.
79905
79906 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * doc/verify.texi: New file, partly based on a proposal by
79909         Bruno Haible.
79910
79911 2006-05-02  Bruno Haible  <bruno@clisp.org>
79912
79913         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79914         test from here...
79915         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79916
79917 2006-04-29  Bruno Haible  <bruno@clisp.org>
79918
79919         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79920         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79921
79922 2006-04-29  Bruno Haible  <bruno@clisp.org>
79923
79924         * gnulib-tool: Make --update option actually work.
79925
79926 2006-04-29  Bruno Haible  <bruno@clisp.org>
79927
79928         * doc/gcd.texi: New file.
79929         * doc/gnulib.texi: Include it.
79930
79931 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79932
79933         * lib/getdate.y (get_date): When adding relative date, start with the
79934         initial time, not with the result of the first mktime call.
79935
79936 2006-04-25  Bruno Haible  <bruno@clisp.org>
79937
79938         * gnulib-tool (func_import): Output the include directives in three
79939         blocks, sorted separately.
79940         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79941
79942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79945         to define main with arguments, for C++.  Reported by Eric Blake.
79946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79947         Prefer 'int main ()' to 'int main (void)', for C++.
79948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79950         for 'main', for C99 and C++.
79951
79952 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79955         Don't assume that exit status -1 is valid.
79956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79957         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79958         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79959         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79960         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79962         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79963         functions can be used without declaring them, or that you can
79964         exit with status -1.
79965         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79966
79967 2006-04-24  Karl Berry  <karl@gnu.org>
79968
79969         * config/srclist.txt (longdouble.m4): sync lost.
79970
79971 2006-04-24  Eric Blake  <ebb9@byu.net>
79972
79973         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79974
79975 2006-04-24  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79978         poll() implementation in AIX.
79979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79980
79981 2006-04-24  Bruno Haible  <bruno@clisp.org>
79982
79983         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79984         assigned exactly once.
79985
79986 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79987             Bruno Haible  <bruno@clisp.org>
79988
79989         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79990         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79991         for AM_CPPFLAGS.
79992
79993 2006-04-23  Bruno Haible  <bruno@clisp.org>
79994
79995         * modules/copy-file: Depend on unistd.
79996         * modules/execute: Likewise.
79997         * modules/fatal-signal: Likewise.
79998         * modules/findprog: Likewise.
79999         * modules/mkdtemp : Likewise.
80000         * modules/pipe: Likewise.
80001         * modules/wait-process: Likewise.
80002
80003 2006-04-23  Bruno Haible  <bruno@clisp.org>
80004
80005         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80006         condition was already detected.
80007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80008
80009 2006-04-23  Bruno Haible  <bruno@clisp.org>
80010
80011         * lib/copy-file.c: Include <unistd.h> unconditionally.
80012         * lib/execute.c: Likewise.
80013         * lib/fatal-signal.c: Likewise.
80014         * lib/findprog.c: Likewise.
80015         * lib/mkdtemp.c: Likewise.
80016         * lib/pipe.h: Likewise.
80017         * lib/pipe.c: Likewise.
80018         * lib/wait-process.h: Likewise.
80019
80020 2006-04-23  Bruno Haible  <bruno@clisp.org>
80021
80022         * gnulib-tool (func_usage): Fix --import description. Document
80023         --update.
80024         (func_import): Create temporary file in a temporary directory, if
80025         --dry-run is specified. Silence errors from 'grep' when there are no
80026         m4 files in $m4dir.
80027         (func_create_testdir): Silence errors from 'grep' when there are no
80028         m4 files in $m4dir.
80029         Reported by Karl Berry <karl@freefriends.org>.
80030
80031 2006-04-20  Bruno Haible  <bruno@clisp.org>
80032
80033         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80034         one argument, so that the code will be portable to Autoconf 2.60.
80035         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80037         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80038
80039 2006-04-19  Derek Price  <derek@ximbiot.com>
80040             Eric Blake  <ebb9@byu.net>
80041
80042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80043         rather than "/full/path.h".  Update comment to match.  Shorten &
80044         generalize m4_translit call via AS_TR_CPP.
80045
80046 2006-04-19  Derek Price  <derek@ximbiot.com>
80047             Eric Blake  <ebb9@byu.net>
80048
80049         * lib/inttypes.h: Correct grammar in comment.
80050
80051 2006-04-18  Derek Price  <derek@ximbiot.com>
80052             Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * modules/inttypes: New file.
80055         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80056
80057 2006-04-18  Derek Price  <derek@ximbiot.com>
80058             Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80061         New files.
80062
80063 2006-04-18  Derek Price  <derek@ximbiot.com>
80064             Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * lib/inttypes.h: New file.
80067         * lib/strtoimax.c: Assume <inttypes.h>.
80068
80069 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80072         isn't mounted.  Problem reported by Kir Kolyshkin.
80073
80074 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80077         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80078         Derek R. Price.
80079         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80080         implementation.
80081
80082 2006-04-12  Eric Blake  <ebb9@byu.net>
80083
80084         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80085         is now done automatically by the corresponding Autoconf macro.
80086
80087 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80090         time_r.h.
80091
80092 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         Merge regex changes from libc, removing some of our
80095         POSIX-conformance changes that were rejected and redoing them in a
80096         less-intrusive way.
80097
80098         * lib/regcomp.c (re_compile_internal, init_dfa):
80099         Length arg is now size_t, not Idx.  All uses changed.
80100         (peek_token): Forward decl now says internal_function.
80101         (__re_error_msgid, __re_error_msgid_idx):
80102         Now static rather than extern with attribute_hidden.
80103         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80104         For some reason libc prefers K&R style defns for external functions.
80105         (regerror) [!defined _LIBC]: Likewise.
80106         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80107         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80108         (build_range_exp, build_collating_symbol):
80109         Use K&R-style defn.
80110         (re_compile_fastmap): Use '\0' to memset, not 0.
80111         (utf8_sb_map): Make the calculations more obvious.
80112         (init_dfa, parse_bracket_exp, build_charclass_op):
80113         Call calloc and cast result, as glibc does.
80114         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80115         (build_range_exp, build_collating_symbol):
80116         Now internal functions.
80117
80118         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80119
80120         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80121         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80122         Don't depend on VMS; depend on __VMS instead, for POSIX
80123         namespace cleanness.
80124         (regoff_t): Define to ssize_t, not long int.
80125
80126         Remove the REG_ macros named below.  Instead, make the old names
80127         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80128         __USE_GNU_REGEX.
80129         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80130         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80131         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80132         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80133         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80134         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80135         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80136         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80137         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80138         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80139         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80140         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80141         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80142         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80143         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80144         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80145         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80146         (REG_NREGS):
80147         Remove.  All uses replaced by the old RE_* names.
80148         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80149         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80150         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80151         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80152         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80153         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80154         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80155         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80156         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80157         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80158         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80159         Don't bother having these macros be independent of each others'
80160         values, since they no longer exist in the POSIX name space.
80161
80162         Rename the following member names back to their old names,
80163         unless !__USE_GNU_REGEX.  All uses changed back.
80164         (buffer): Renamed from re_buffer.
80165         (allocated): Renamed from re_allocated.
80166         (used): Renamed from re_used.
80167         (syntax): Renamed from re_syntax.
80168         (fastmap): Renamed from re_fastmap.
80169         (translate): Renamed from re_translate.
80170         (can_be_null): Renamed from re_can_be_null.
80171         (regs_allocated): Renamed from re_regs_allocated.
80172         (fastmap_accurate): Renamed from re_fastmap_accurate.
80173         (no_sub): Renamed from re_no_sub.
80174         (not_bol): Renamed from re_not_bol.
80175         (not_eol): Renamed from re_not_eol.
80176         (newline_anchor): Renamed from re_newline_anchor.
80177         (num_regs): Renamed from rm_num_regs.
80178         (start): Renamed from rm_start.
80179         (end): Renamed from rm_end.
80180
80181         (free_state): Move up a bit.
80182
80183         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80184         #define to be empty.
80185         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80186         when that is what is intended.
80187         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80188         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80189         (MAX): New macro.
80190         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80191         All uses changed back to re_malloc, etc.  It's now the caller's
80192         responsibility to check for overflow; all callers changed.
80193         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80194         (re_x2nrealloc): Remove.
80195         (free_state): Remove decl.
80196
80197         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80198         (re_set_registers, re_exec):
80199         Use K&R-style defn.
80200
80201         2006-01-31  Roland McGrath  <roland@redhat.com>
80202
80203         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80204         Reported by Mike Frysinger <vapier@gentoo.org>.
80205
80206         2006-01-15  Andreas Jaeger  <aj@suse.de>
80207
80208         [BZ #1950]
80209         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80210         build_wcs_upper_buffer change.
80211         (build_wcs_upper_buffer): Change return type.
80212
80213         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80214
80215         * lib/regex_internal.h: Include <stdint.h> if available.
80216
80217         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80218
80219         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80220
80221         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80222
80223         * lib/regcomp.c: Adjust for changed secondary hash function.
80224
80225         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80226
80227         * lib/regex.h: Pretty printing.
80228         Clean up namespace a bit.
80229
80230         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80231
80232         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80233         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80234
80235         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80236                     Ulrich Drepper  <drepper@redhat.com>
80237
80238         [BZ #1302]
80239         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80240         changed.
80241         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80242
80243         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80244
80245         [BZ #281]
80246         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80247         * lib/regcomp.c: Remove unnecessary uses of
80248         unsigned RE_TRANSLATE_TYPE.
80249         * lib/regex_internal.h: Likewise.
80250         * lib/regex_internal.c: Likewise.
80251         * lib/regexec.c: Likewise.
80252         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80253
80254         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80255
80256         * lib/regexec.c (find_recover_state): Remove unnecessary
80257         initialization.
80258         (transit_state_bkref): Make DFA a const pointer.
80259         (get_subexp): Likewise.
80260         (check_arrival): Likewise.
80261         (update_cur_sifted_state): Likewise.
80262         (re_search_internal): Likewise.
80263         (prune_impossible_nodes): Likewise.
80264         (acquire_init_state_context): Likewise.
80265         (proceed_next_node): Likewise.
80266         (set_regs): Likewise.
80267         (free_fail_stack_return): Likewise.
80268         (check_arrival_expand_ecl): Mark DFA parameter as const.
80269         (check_arrival_expand_ecl_sub): Likewise.
80270         (check_subexp_limits): Likewise.
80271         (sub_epsilon_src_nodes):  Likewise.
80272         (add_epsilon_src_nodes):  Likewise.
80273         (merge_state_array): Likewise.
80274         (update_regs): Likewise.
80275         (build_trtable): Likewise.
80276         (sift_states_backward): Mark MCTX parameter as const.
80277         (build_sifted_states): Likewise.
80278         (update_cur_sifted_state): Likewise.
80279         (sift_states_mkref): Likewise.
80280         (check_arrival_expand_ecl): Mark eclosure as const.
80281         (check_dst_limits_calc_pos_1): Likewise.
80282         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80283         pointer.
80284
80285         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80286
80287         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80288         (transit_state_sb): Likewise.
80289         (transit_state_mb): Likewise.
80290         (sift_states_iter_mb): Likewise.
80291         (check_arrival_add_next_nodes): Likewise.
80292         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80293         [_LIBC] (re_search_2_stub): Use mempcpy.
80294
80295         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80296         mbrtowc for very simple UTF-8 case.
80297
80298         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80299         a pointer-to-const.
80300         (re_acquire_state_context): Likewise.
80301         * lib/regex_internal.h: Adjust prototypes.
80302
80303         * lib/regex.c: Prevent using C++ compilers.
80304
80305         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80306         (re_acquire_state_context): Likewise.
80307
80308 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80309
80310         * modules/regex (Depends-on): Add ssize_t.
80311
80312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80313
80314         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80315         translation table.
80316
80317 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80320
80321 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80322             Bruno Haible  <bruno@clisp.org>
80323
80324         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80325         <sys/types.h> and <inttypes.h>.
80326
80327 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80328
80329         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80330         `__error_t_defined', so argp.h will not typedef the former.
80331
80332 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80335         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80336         glibc names.  Even if glibc is changed to conform to POSIX, the
80337         traditional names will be available anyway, since regex depends on
80338         the extensions module.  Also, fix a longstanding typo in the
80339         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80340         reported by Emanuele Giaquinta.  Also, change sense of cached
80341         variable, so that the message makes sense.
80342
80343 2006-03-24  Simon Josefsson  <jas@extundo.com>
80344
80345         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80346         including some doc fixes.
80347         (base64_encode_alloc): Fix +1 bug on allocation failures.
80348
80349 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80350
80351         * lib/base64.c (base64_encode): Do not read past end of array with
80352         unsanitized input on systems with CHAR_BIT > 8.
80353
80354 2006-03-24  Eric Blake  <ebb9@byu.net>
80355
80356         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80357
80358 2006-03-22  Karl Berry  <karl@gnu.org>
80359
80360         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80361         * config/srclistvars.sh (COREUTILS): new var.
80362
80363 2006-03-17  Jim Meyering  <jim@meyering.net>
80364
80365         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80366         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80367
80368 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80369
80370         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80371         no longer needs it.  Instead, check that regoff_t is as least
80372         as wide as ptrdiff_t.
80373
80374         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80375         so that our regex.h stays compatible with the installed regex.
80376         This is helpful for installers who configure --without-included-regex.
80377         Problem reported by Emanuele Giaquinta.
80378
80379 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80380
80381         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80382         Typedef to long int, not to off_, as POSIX will likely change
80383         in that direction.
80384
80385 2006-03-15  Eric Blake  <ebb9@byu.net>
80386
80387         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80388
80389 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80390
80391         * lib/argp-help.c (validate_uparams): Fix typo
80392         * lib/argp-parse.c (argp_default_options): Consistently begin help
80393         messages with a lowercase letter.
80394
80395 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80396
80397         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80398         overrun buffers and shouldn't be used (much as gets shouldn't be
80399         used).
80400         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80401
80402 2006-03-08  Simon Josefsson  <jas@extundo.com>
80403
80404         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80405         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80406
80407 2006-03-08  Simon Josefsson  <jas@extundo.com>
80408
80409         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80410         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80411
80412 2006-03-08  Simon Josefsson  <jas@extundo.com>
80413
80414         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80415         signal that configure disabled the device.
80416
80417 2006-03-08  Simon Josefsson  <jas@extundo.com>
80418
80419         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80420         languages.
80421
80422 2006-03-07  Simon Josefsson  <jas@extundo.com>
80423
80424         * modules/getopt (Depends-on): Add unistd.
80425
80426         * modules/unistd: New file.
80427
80428 2006-03-07  Simon Josefsson  <jas@extundo.com>
80429
80430         * modules/gc-random: New file.
80431
80432 2006-03-07  Simon Josefsson  <jas@extundo.com>
80433
80434         * m4/unistd_h.m4: New file.
80435
80436 2006-03-07  Simon Josefsson  <jas@extundo.com>
80437
80438         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80439         test to be side-effect free by storing the result in the cache
80440         variable gl_cv_lib_readline, and moving the assignment of
80441         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80442         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80443
80444 2006-03-07  Simon Josefsson  <jas@extundo.com>
80445
80446         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80447         error on missing devices (the functions will return an error).
80448
80449         * m4/gc.m4: Move random stuff to gc-random.m4
80450
80451 2006-03-07  Simon Josefsson  <jas@extundo.com>
80452
80453         * lib/unistd_.h: New file.
80454
80455 2006-03-07  Simon Josefsson  <jas@extundo.com>
80456
80457         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80458
80459 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80462         Problem reported by Juan Manuel Guerrero.
80463
80464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80467         the unistd module.
80468         * lib/getlogin_r.c: Likewise.
80469         * lib/getlogin_r.h: Likewise.
80470         * lib/glob.c: Likewise.
80471         * lib/pagealign_alloc.c: Likewise.
80472         * lib/unistd_.h: Remove; no longer needed.
80473
80474 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80475
80476         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80477         Add unistd.
80478         * modules/c-stack (Depends-on): Add unistd.
80479         * modules/getlogin_r: Likewise.
80480         * modules/glob: Likewise.
80481         * modules/pagealign_alloc: Likewise.
80482         * modules/unistd (Files): Remove lib/unistd_.h.
80483         (EXTRA_DIST): Remove.
80484         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80485         need unistd_.h.
80486         (MOSTLYCLEANFILES): Remove unistd.h-t.
80487
80488 2006-03-03  Simon Josefsson  <jas@extundo.com>
80489
80490         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80491
80492 2006-03-03  Simon Josefsson  <jas@extundo.com>
80493
80494         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80495         libidn and bison.
80496
80497 2006-03-03  Simon Josefsson  <jas@extundo.com>
80498
80499         * build-aux/maint.mk: Add indent target.
80500
80501 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80502
80503         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80504         our replacement poll.h in any case, to avoid a differing
80505         declaration from a system header.  Seen on AIX.
80506
80507 2006-03-01  Simon Josefsson  <jas@extundo.com>
80508
80509         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80510         <kasal@ucw.cz>.
80511
80512 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80513
80514         * modules/gettime (Depends-on): Add extensions module.
80515         * modules/nanosleep (Depends-on): Likewise.
80516         * modules/settime (Depends-on): Likewise.
80517
80518 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80521         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80522         pedantically.
80523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80524         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80525
80526         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80527         not "==".  Reported by Ralf Wildenhues.
80528
80529 2006-03-01  Karl Berry  <karl@gnu.org>
80530
80531         * doc/Copyright/request-*: new files, synced from gnuorg.
80532
80533 2006-03-01  Karl Berry  <karl@gnu.org>
80534
80535         * config/srclist.txt (Copyright/*): new entries.
80536
80537 2006-02-28  Simon Josefsson  <jas@extundo.com>
80538
80539         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80540
80541 2006-02-27  Simon Josefsson  <jas@extundo.com>
80542
80543         * lib/base64.h: Indent #define's.  From Jim Meyering
80544         <jim@meyering.net>.
80545
80546 2006-02-27  Jim Meyering  <jim@meyering.net>
80547
80548         Revert the change of 2006-02-24, so these files can continue
80549         to be sync'd from gettext.
80550         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80551         of `config.h'.
80552
80553 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * modules/intprops: New file.
80556         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80557         Add intprops.
80558         * modules/getloadavg (Files): Remove lib/intprops.h.
80559         (Depends-on): Add intprops.
80560         * modules/human: Likewise.
80561         * modules/inttostr: Likewise.
80562         * modules/openat: Likewise.
80563         * modules/sig2str: Likewise.
80564         * modules/userspec: Likewise.
80565         * modules/utimecmp: Likewise.
80566         * modules/xnanosleep: Likewise.
80567         * modules/xstrtol: Likewise.
80568
80569 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80570
80571         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80572         * modules/lock-tests (TESTS): Use $(EXEEXT).
80573         * modules/tls-tests: Likewise.
80574         * modules/argp-tests: Likewise.
80575         (check_PROGRAMS): New var, replacing...
80576         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80577
80578 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80579
80580         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80581         `config.h'.
80582
80583 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80586
80587 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80588
80589         Sync from coreutils.
80590         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80591         gl_CHDIR_SAFER.
80592
80593 2006-02-22  Jim Meyering  <jim@meyering.net>
80594
80595         Sync from coreutils.
80596         * m4/chdir-safer.m4: New file.
80597
80598 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80601         AT_FDCWD exceeds INT_MAX.
80602         * lib/openat.h (AT_FDCWD): Likewise.
80603
80604 2006-02-17  Eric Blake  <address@hidden>
80605
80606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80607
80608 2006-02-16  Simon Josefsson  <jas@extundo.com>
80609
80610         * modules/getaddrinfo (Depends-on): Add sys_socket.
80611
80612 2006-02-15  Simon Josefsson  <jas@extundo.com>
80613
80614         * build-aux/maint.mk: Add dsyntax-check rule.
80615
80616 2006-02-15  Eric Blake  <ebb9@byu.net>
80617
80618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80619         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80620         'present but cannot compile' warnings on cygwin.
80621         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80622         use ws2tcpip.h if sys/socket.h works.
80623         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80624         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80625
80626 2006-02-14  Simon Josefsson  <jas@extundo.com>
80627
80628         * modules/maintainer-makefile (Files): Rename.
80629
80630         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80631         and (the local) Makefile.cfg to maint-cfg.mk.
80632
80633         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80634         to the latter.
80635
80636         * modules/maintainer-makefile: New module.
80637
80638         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80639         severaly stripped to make it possible to build it up from scratch
80640         with reliable tests.
80641
80642         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80643         fixes to permit overriding the default actions when configure and
80644         makefile are not available.
80645
80646 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         Sync from coreutils.
80649         * modules/lstat (Depends-on): Don't depend on xalloc.
80650         (License): Change from GPL to LGPL, since this is now simply a
80651         replacement for a libc function.
80652
80653 2006-02-14  Jim Meyering  <jim@meyering.net>
80654
80655         Sync from coreutils.
80656
80657         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80658         failure on deficient systems, and simplify gnulib lgpl dependencies.
80659         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80660         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80661
80662         * lib/xalloc-die.c: Remove unused definition of N_.
80663
80664 2006-02-14  Jim Meyering  <jim@meyering.net>
80665
80666         Sync from coreutils.
80667         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80668         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80669         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80670         double-quote uses of that variable, to accommodate the rare case in
80671         which getmntent is available in none of the libraries checked.  This
80672         happens at least on FreeBSD 5.0.
80673
80674 2006-02-13  Simon Josefsson  <jas@extundo.com>
80675
80676         * gnulib-tool (Usage): Fix --import, from
80677         karl@freefriends.org (Karl Berry).
80678
80679 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80680
80681         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80682
80683 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80684
80685         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80686         "autoupdate" on 2005-12-12.
80687
80688 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80689
80690         * modules/closeout (Depends-on): Remove atexit.
80691
80692 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80693
80694         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80695         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80696
80697 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80700         __EXTENSIONS__ if this causes compilation to fail.  Problem
80701         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80702         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80703
80704 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80705
80706         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80707         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80709         All uses changed.
80710
80711 2006-01-26  Simon Josefsson  <jas@extundo.com>
80712
80713         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80714         prototype is visible on mingw32.
80715
80716         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80717         for mingw32.
80718
80719         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80720         mingw32).
80721
80722 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80725         attempt to open for write; this always fails, at least on POSIX
80726         hosts.  This reinstates the 2006-01-09 change, which was
80727         inadvertently removed.
80728
80729 2006-01-26  Bruno Haible  <bruno@clisp.org>
80730
80731         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80732         Reported by Paul Eggert.
80733
80734 2006-01-26  Bruno Haible  <bruno@clisp.org>
80735             Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * lib/stdbool_.h (_Bool)
80738         [(! (defined __cplusplus || defined __BEOS__)
80739           && !defined __GNUC__
80740           && !(defined __HP_cc || defined __xlc__
80741                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80742                || defined __sgi))]:
80743         #define to signed char in these cases too; this simplifies
80744         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80745         etc., separately) and makes it more conservative.
80746
80747 2006-01-25  Simon Josefsson  <jas@extundo.com>
80748
80749         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80750         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80751         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80752
80753 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80754
80755         * lib/argp-namefrob.h: Bugfix. Remove stray #
80756
80757 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80760         so that we test the test.
80761         Check for yet another HP-UX cc bug involving *bool |= bool.
80762
80763 2006-01-25  Karl Berry  <karl@gnu.org>
80764
80765         * config/srclist.txt (vasnprintf.c): sync lost.
80766
80767 2006-01-25  Jim Meyering  <jim@meyering.net>
80768
80769         Sync from the stable (b5) branch of coreutils:
80770
80771         * lib/fts.c (fts_children): Don't let close() clobber errno from
80772         failed fchdir().
80773
80774         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80775         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80776         a dangling symlink.  That can also happen at least for ELOOP.
80777         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80778         FYI, this bug predates the inclusion of fts.c in coreutils.
80779
80780         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80781         in their own block, so pre-c99 compilers don't object.
80782
80783         Avoid the double-free (first in fts_read, second in fts_close) that
80784         would occur when an `active' directory is made inaccessible (e.g.,
80785         via chmod a-x) during a traversal.
80786         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80787         before returning.  Reproduce this failure by
80788         mkdir -p a/b; cd a; chmod a-x . b
80789         Reported by Stavros Passas.
80790
80791 2006-01-25  Jim Meyering  <jim@meyering.net>
80792
80793         * lib/fileblocks.c: Remove more useless parentheses.
80794         * lib/readutmp.h: Likewise.
80795
80796 2006-01-25  Bruno Haible  <bruno@clisp.org>
80797
80798         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80799         warnings.
80800         Reported by Paul Eggert.
80801
80802 2006-01-25  Bruno Haible  <bruno@clisp.org>
80803
80804         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80805         rid of a trap command. For Solaris sh.
80806         Reported by Mark D. Baushke <mdb@gnu.org>.
80807
80808 2006-01-24  Simon Josefsson  <jas@extundo.com>
80809
80810         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80811         Bruno.
80812
80813 2006-01-24  Karl Berry  <karl@gnu.org>
80814
80815         * config/srclist.txt (argp-namefrob.h): sync lost.
80816
80817 2006-01-24  Jim Meyering  <jim@meyering.net>
80818
80819         * modules/openat (Files): Add lib/intprops.h.
80820         From Mark D. Baushke.
80821
80822 2006-01-24  Jim Meyering  <jim@meyering.net>
80823
80824         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80825         Reported by Mark D. Baushke.
80826
80827 2006-01-24  Jim Meyering  <jim@meyering.net>
80828
80829         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80830
80831 2006-01-24  Bruno Haible  <bruno@clisp.org>
80832
80833         * modules/strnlen (Maintainer): Change from glibc to all.
80834
80835 2006-01-24  Bruno Haible  <bruno@clisp.org>
80836
80837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80838         Patch by Paul Eggert.
80839
80840 2006-01-24  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80843         already has it.
80844         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80845         2005-11-26.
80846
80847         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80848         'signed char' to avoid problems with the built-in _Bool type.
80849         Reported by Paul Eggert on 2005-11-26.
80850
80851 2006-01-24  Bruno Haible  <bruno@clisp.org>
80852
80853         * gnulib-tool (func_import): Avoid constructing complicated sed
80854         expressions inside backquote.
80855         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80856
80857 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80858
80859         These changes imported from libc.
80860         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80861         test and two separate function calls.
80862         * lib/strndup.c (__strndup): Add libc_hidden_def.
80863
80864 2006-01-23  Simon Josefsson  <jas@extundo.com>
80865
80866         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80867         Remove the test_*_SOURCES variable: automake infers it by default.
80868         * modules/tls-tests: Likewise.
80869
80870 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80871
80872         Work around porting bugs reported by Dieter in
80873         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80874         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80875         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80876         Include "getopt.h" first, to check interface.
80877         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80878         !HAVE_DECL_GETENV.
80879         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80880         (__strndup): Revert to K&R-style function dfns, the glibc style.
80881         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80882         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80883         Include strnlen.h first, to get prototype properly.
80884         (strnlen): Renamed from __strnlen.
80885         Remove weak alias.
80886
80887 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80890
80891 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80892
80893         * config/srclist.txt: Adjust to reflect glibc reorganization.
80894         This affects only comments.
80895
80896 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80897
80898          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80899          Reported by Bruce Korb <bkorb@gnu.org>.
80900
80901 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80904         to pacify gcc -Wswitch-default.
80905
80906 2006-01-22  Bruno Haible  <bruno@clisp.org>
80907
80908         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80909         temporary buffer for sprintf, take into account the precision also
80910         for 'd', 'i', 'u', 'o', 'x', 'X'.
80911
80912 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80913
80914         * modules/argp-tests: New module
80915         * tests/test-argp.c: New file
80916         * tests/test-argp-2.sh: New file
80917
80918 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80919
80920         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80921         (__argp_base_name): Removed
80922         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80923         typo.
80924         (__argp_base_name): Provide macro definition or extern declaration
80925         depending on the configuration
80926
80927 2006-01-20  Simon Josefsson  <jas@extundo.com>
80928
80929         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80930
80931 2006-01-20  Simon Josefsson  <jas@extundo.com>
80932
80933         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80934
80935 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80936
80937         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80938         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80939         Suggested by Bruno Haible.
80940
80941 2006-01-20  Karl Berry  <karl@gnu.org>
80942
80943         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80944         until changes propagate, I guess.
80945
80946 2006-01-19  Simon Josefsson  <jas@extundo.com>
80947
80948         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80949
80950 2006-01-19  Simon Josefsson  <jas@extundo.com>
80951
80952         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80953
80954 2006-01-19  Simon Josefsson  <jas@extundo.com>
80955
80956         * gnulib-tool: Set check_PROGRAMS.
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: Use
80967         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80968         test_*_SOURCES.
80969
80970 2006-01-18  Simon Josefsson  <jas@extundo.com>
80971
80972         * modules/socklen (Depends-on): Depend on sys_socket.
80973
80974 2006-01-18  Simon Josefsson  <jas@extundo.com>
80975
80976         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80977         modules/des-tests, modules/gc-arcfour-tests,
80978         modules/gc-arctwo-tests, modules/gc-des-tests,
80979         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80980         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80981         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80982         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80983         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80984         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80985         $(EXEEXT) to automake TESTS variable, for mingw32.
80986
80987 2006-01-17  Simon Josefsson  <jas@extundo.com>
80988
80989         * modules/socklen (Include): Need sys/socket.h.
80990
80991 2006-01-17  Bruno Haible  <bruno@clisp.org>
80992
80993         * modules/ssize_t (Include): Add <sys/types.h>.
80994
80995 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80998         it's not portable and it doesn't work with cross-compiles.
80999         Problem reported by Bruno Haible.  Fix missing-$ typo in
81000         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81001         -zignore from being used with Sun's C compiler.
81002
81003 2006-01-12  Simon Josefsson  <jas@extundo.com>
81004
81005         * lib/base64.c: Fix warning, reported by Bruno Haible
81006         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81007
81008 2006-01-12  Bruno Haible  <bruno@clisp.org>
81009
81010         * modules/ldd: New file.
81011         * build-aux/ldd.sh.in: New file.
81012         * MODULES.html.sh (Support for building libraries and executables): Add
81013         ldd.
81014
81015 2006-01-12  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/ldd.m4: New file.
81018
81019 2006-01-12  Bruno Haible  <bruno@clisp.org>
81020
81021         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81022         endless loop while replacing $auxdir with build-aux.
81023
81024 2006-01-11  Simon Josefsson  <jas@extundo.com>
81025
81026         * lib/stdint_.h (SIZE_MAX): Add missing (.
81027
81028 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         Sync from coreutils.
81031         * lib/md5.c: Fix commentary typos.
81032         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81033         * lib/md5.h (__attribute__): Remove; unused.
81034         * lib/sha1.c: Fix commentary to match md5 better.
81035         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81036         so that we don't need to worry about alignment.  All uses changed.
81037         This merges the 2005-10-28 md5 change into sha1.
81038
81039 2006-01-11  Jim Meyering  <jim@meyering.net>
81040
81041         Sync from coreutils.
81042         * lib/md5.c (OP): Fix spacing.
81043
81044 2006-01-11  Bruno Haible  <bruno@clisp.org>
81045
81046         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81047         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81048         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81049
81050 2006-01-11  Bruno Haible  <bruno@clisp.org>
81051
81052         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81053         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81054         the "early" section as well.
81055
81056 2006-01-11  Bruno Haible  <bruno@clisp.org>
81057
81058         Avoid "ar: no archive members specified" error on MacOS X.
81059         * gnulib-tool (func_modules_add_dummy): New function.
81060         (func_import, func_create_testdir): Invoke it.
81061
81062 2006-01-11  Bruno Haible  <bruno@clisp.org>
81063
81064         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81065         with $auxdir in AC_CONFIG_FILES statements.
81066
81067 2006-01-11  Bruno Haible  <bruno@clisp.org>
81068
81069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81070         Initialize also noinst_HEADERS to empty.
81071
81072 2006-01-11  Bruno Haible  <bruno@clisp.org>
81073
81074         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81075         variables.
81076         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81077         autoreconf.
81078
81079 2006-01-11  Bruno Haible  <bruno@clisp.org>
81080
81081         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81082         overridable by the user.
81083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81084
81085 2006-01-10  Simon Josefsson  <jas@extundo.com>
81086
81087         * modules/sys_socket: New file.
81088
81089 2006-01-10  Simon Josefsson  <jas@extundo.com>
81090
81091         * m4/sys_socket_h.m4: New file.
81092
81093 2006-01-10  Simon Josefsson  <jas@extundo.com>
81094
81095         * lib/socket_.h: New file.
81096
81097 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         * modules/readutmp (Maintainer): Add myself.
81100
81101 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81104         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81105         People who are still concerned with buggy memcmp implementations
81106         can invoke gl_FUNC_MEMCMP themselves.
81107
81108 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81109
81110         * lib/regex_internal.h (BITSET_WORD_BITS):
81111         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81112         preprocessor mishandles large unsigned values as if they were signed.
81113         Problem reported by Claudio Fontana in
81114         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81115
81116 2006-01-10  Jim Meyering  <jim@meyering.net>
81117
81118         Avoid the double-free (first in fts_read, second in fts_close) that
81119         would occur when an `active' directory is made inaccessible (e.g.,
81120         via chmod a-x) during a traversal.
81121         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81122         before returning.  Reproduce this failure by
81123         mkdir -p a/b; cd a; chmod a-x . b
81124         Reported by Stavros Passas.
81125
81126         Sync from coreutils.
81127         * lib/sha1.c: Tweak grammar in a comment.
81128
81129 2006-01-10  Jim Meyering  <jim@meyering.net>
81130
81131         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81132         Patch by Joerg Sonnenberger.
81133
81134 2006-01-10  Bruno Haible  <bruno@clisp.org>
81135
81136         * modules/readutmp: Depend on module free.
81137         * modules/strtok_r: Depend on module restrict.
81138
81139 2006-01-10  Bruno Haible  <bruno@clisp.org>
81140
81141         * modules/gettext (configure.ac): Add an invocation of
81142         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81143
81144 2006-01-10  Bruno Haible  <bruno@clisp.org>
81145
81146         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81147         Reported by Werner Lemberg <wl@gnu.org>.
81148
81149 2006-01-10  Bruno Haible  <bruno@clisp.org>
81150
81151         * lib/localcharset.c: Update from GNU gettext.
81152
81153 2006-01-10  Bruno Haible  <bruno@clisp.org>
81154
81155         * lib/argp.h (__const): Remove macro. Use const instead.
81156         * lib/argp-fmtstream.h (__const): Likewise.
81157         * lib/glob_.h (__const): Remove macro.
81158         * lib/glob-libc.h: Use const instead of __const.
81159
81160 2006-01-10  Bruno Haible  <bruno@clisp.org>
81161
81162         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81163         variable.
81164         Needed to avoid an automake error regarding the 'gettext' module.
81165
81166 2006-01-09  Simon Josefsson  <jas@extundo.com>
81167
81168         * modules/inet_ntop (Depends-on): Add restrict.
81169
81170 2006-01-09  Simon Josefsson  <jas@extundo.com>
81171
81172         * modules/gc-rijndael-tests (License): Put under LGPL.
81173
81174         * modules/gc-des-tests (License): Likewise.
81175
81176         * modules/gc-arcfour-tests (License): Likewise.
81177
81178         * modules/gc-arctwo-tests (License): Likewise.
81179
81180         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81181
81182         * modules/gc-hmac-sha1-tests (Files): Likewise.
81183
81184         * modules/gc-hmac-md5-tests (License): Likewise.
81185
81186         * modules/gc-sha1-tests (License): Likewise.
81187
81188         * modules/gc-md5-tests (License): Likewise.
81189
81190         * modules/gc-md4-tests (License): Likewise.
81191
81192         * modules/gc-md2-tests (License): Likewise.
81193
81194         * modules/gc-tests (License): Likewise.
81195
81196         * modules/des-tests (License): Likewise.
81197
81198         * modules/md4-tests (License): Likewise.
81199
81200         * modules/md2-tests (License): Likewise.
81201
81202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         Sync from coreutils:
81205
81206         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81207         * modules/lib-ignore: New file.
81208         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81209         chdir-safer.m4, lchmod.m4.
81210         * modules/openat: Add mkdirat.c, openat-priv.h.
81211
81212 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81213
81214         Sync from coreutils.
81215         * m4/lib-ignore.m4: New file.
81216         * m4/lchmod.m4: New file.
81217
81218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81219
81220         Sync from coreutils.
81221         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81222         for write access: POSIX says that must fail.
81223         * lib/fts.c (diropen): Likewise.
81224         * lib/save-cwd.c (save_cwd): Likewise.
81225         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81226         well, for minor improvements on hosts that lack O_DIRECTORY.
81227         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81228         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81229         Fall back on chown if open failed with EACCES.
81230
81231         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81232         Report an error at compile-time if only a 1-second nominal clock
81233         resolution is found.
81234
81235         * lib/lchmod.h: New file.
81236         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81237         (make_dir_parents): Use lchown rather than chown, and
81238         lchmod rather than chmod.
81239
81240         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81241         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81242         "proc" reported by n0dalus.
81243
81244         * lib/mountlist.c: Include <limits.h>.
81245         (dev_from_mount_options)
81246         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81247         New function.  It no longer assumes "dev=" has the System V meaning
81248         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81249         (read_file_system_list)
81250         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81251         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81252         dev= in that case.
81253
81254         * lib/posixtm.h (PDS_PRE_2000): New macro.
81255         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81256         allow_century.  All usages changed.  Reject dates outside the range
81257         1969-1999 if PDS_PRE_2000 is used.
81258
81259 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         Sync from coreutils.
81262         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81263         (Time of day items): Mention the possibility of leap seconds.
81264         Problem reported by Dr. David Alan Gilbert.
81265
81266 2006-01-09  Jim Meyering  <jim@meyering.net>
81267
81268         Sync from coreutils.
81269
81270         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81271
81272         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81273
81274         * lib/modechange.c (mode_compile): Reject an invalid mode string
81275         that starts with an octal digit.  From Andreas Gruenbacher.
81276
81277         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81278         and dup to open_safer and dup_safer, respectively.
81279         (openat_permissive): Fix typo in comment.
81280
81281         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81282         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81283         (_): Remove; no longer needed.
81284         (openat): Renamed from rpl_openat; no need for rpl_openat
81285         since openat.h renames openat for us.
81286         Replace most of the body with a call to openat_permissive,
81287         to avoid duplicate code.
81288         Port to (probably hypothetical) environments were mode_t is
81289         wider than int.
81290         (openat_permissive): Require mode arg, so that we can check
81291         types better.  Put it just after flags.  Change cwd failure
81292         indicator from pointer-to-bool to pointer-to-errno-value.
81293         All callers changed.
81294         Invoke openat_save_fail and/or openat_restore_fail if
81295         cwd_errno is null, so that openat can call us.
81296         (openat_permissive, fdopendir, fstatat, unlinkat):
81297         Simplify errno handling to avoid some duplicate code,
81298         as it's OK to set errno on success.
81299         * lib/openat.h: Revamp code so that function macros depend on
81300         __OPENAT_PREFIX only, not also on AT_FDCWD.
81301         (openat_ro): Remove.  Caller changed to use openat_permissive.
81302         (openat_permissive): Now a macro, if not a function.
81303         (openat_restore_fail, openat_save_fail): Now always functions,
81304         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81305
81306         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81307         and openat.c.
81308         * lib/mkdirat.c: Include openat-priv.h.
81309         Remove definitions of macros defined therein.
81310         * lib/openat.c: Likewise.
81311
81312         * lib/mkdirat.c (mkdirat): New file and function.
81313         * lib/openat.h (mkdirat): Declare.
81314
81315         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81316
81317         * lib/openat.h (openat_permissive): Declare.
81318         (openat_ro): Define.
81319
81320         * lib/openat.c (EXPECTED_ERRNO): New macro.
81321         (openat_permissive): New function -- used in remove.c rewrite.
81322         (all functions): Set errno just before returning, only if there
81323         was an actual failure.
81324         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81325
81326         Emulate openat-family functions using Linux's procfs, if possible.
81327         Idea and some code based on Ulrich Drepper's glibc changes.
81328
81329         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81330         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81331         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81332         before falling back on save_cwd and restore_cwd.
81333         (fdopendir, fstatat, unlinkat): Likewise.
81334
81335         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81336         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81337
81338         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81339         as second argument to va_arg.  Otherwise, some versions of gcc
81340         warn that `if this code is reached, the program will abort'.
81341
81342 2006-01-09  Jim Meyering  <jim@meyering.net>
81343
81344         Sync from coreutils.
81345         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81346         Require openat-priv.h.
81347
81348 2006-01-09  Bruno Haible  <bruno@clisp.org>
81349
81350         * modules/strnlen (Include): Use strnlen.h.
81351
81352 2006-01-09  Bruno Haible  <bruno@clisp.org>
81353
81354         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81355
81356 2006-01-09  Bruno Haible  <bruno@clisp.org>
81357
81358         * lib/sysexit_.h (EX_OK): New macro.
81359         Suggested by Martin Lambers <marlam@marlam.de>.
81360
81361 2006-01-09  Bruno Haible  <bruno@clisp.org>
81362
81363         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81364         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81365
81366 2006-01-09  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81369         numbers.
81370
81371 2006-01-09  Bruno Haible  <bruno@clisp.org>
81372
81373         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81374         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81375         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81376         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81377
81378 2006-01-09  Bruno Haible  <bruno@clisp.org>
81379
81380         * build-aux/javacomp.sh.in: New file, moved from lib/.
81381         * modules/javacomp-script (Files): Update.
81382         (configure.ac): Add AC_CONFIG_FILES invocation.
81383         (EXTRA_DIST): Remove variable.
81384
81385         * build-aux/javaexec.sh.in: New file, moved from lib/.
81386         * modules/javaexec (Files): Update.
81387         (configure.ac): Add AC_CONFIG_FILES invocation.
81388         (EXTRA_DIST): Remove javaexec.sh.in.
81389
81390         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81391         * modules/csharpcomp-script (Files): Update.
81392         (configure.ac): Add AC_CONFIG_FILES invocation.
81393         (EXTRA_DIST): Remove variable.
81394
81395         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81396         * modules/csharpexec (Files): Update.
81397         (configure.ac): Add AC_CONFIG_FILES invocation.
81398         (EXTRA_DIST): Remove csharpexec.sh.in.
81399
81400 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81401
81402         Sync from coreutils.
81403
81404         Add POSIX ACL support
81405         * lib/acl.h (copy_acl, set_acl): Add declarations.
81406         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81407         systems other than Linux.
81408         (chmod_or_fchmod): New function: use fchmod when possible,
81409         and chmod otherwise.
81410         (file_has_acl): Add a POSIX ACL implementation, with a
81411         Linux-specific subcase.
81412         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81413         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81414         acls are unsupported.
81415         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81416         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81417         are unsupported.
81418
81419 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81420
81421         Sync from coreutils.
81422         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81423
81424 2006-01-07  Bruno Haible  <bruno@clisp.org>
81425
81426         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81427         gl_EARLY.
81428
81429 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81432         Problem reported for Mingw by Mark Junker.
81433
81434 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81435
81436         * README: Gnulib normally doesn't generate a tarball.
81437
81438 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81441         long int, not int, for nanosecond counts, so that people who are
81442         used to POSIX struct timespec won't be surprised.  Reported by Jim
81443         Meyering.
81444
81445 2005-12-28  Bruno Haible  <bruno@clisp.org>
81446
81447         * build-aux/config.rpath: Update from GNU gettext.
81448
81449 2005-12-16  Jim Meyering  <jim@meyering.net>
81450
81451         * modules/fprintftime: New module.
81452         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81453
81454 2005-12-16  Jim Meyering  <jim@meyering.net>
81455
81456         * m4/fprintftime.m4: New file.
81457
81458 2005-12-16  Jim Meyering  <jim@meyering.net>
81459
81460         * lib/fprintftime.c, lib/fprintftime.h: New files.
81461
81462 2005-12-15  Simon Josefsson  <jas@extundo.com>
81463
81464         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81465         new m4/socklen.m4.
81466
81467 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81468
81469         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81470         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81471
81472 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81473
81474         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81475         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81476         struct uparams is valid. Fall back to the default values if it is
81477         not.
81478
81479 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81480
81481         * modules/argp (Files): Add argp-pin.c
81482         (Depends-on): dirname
81483         (lib_SOURCES): Add argp-pin.c
81484
81485 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81486
81487         * m4/argp.m4:  Check if program_invocation_name and
81488         program_invocation_short_name are declared and define appropriate
81489         macros if they are not.
81490
81491 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81492
81493         * lib/argp-help.c (__argp_base_name): New function
81494         (__argp_short_program_name): Rewrite using __argp_base_name
81495         * lib/argp-namefrob.h: Define program_invocation_name and
81496         program_invocation_short_name if requested
81497         (__argp_base_name): Add prototype
81498         * lib/argp-parse.c (argp_def): Use gettext wrappers
81499         (argp_default_parser): Use __argp_base_name
81500         * lib/argp-pin.c: New file. Defines program_invocation_name and
81501         program_invocation_short_name on systems that lack them.
81502
81503 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81504
81505         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81506         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81507         porting problem reported by Georg Schwarz in
81508         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81509
81510 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81511
81512         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81513         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81514         porting problem reported by Georg Schwarz in
81515         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81516
81517 2005-12-05  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81520         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81521         Reported by Mark Junker <mjscod@gmx.de>.
81522
81523 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81526         Use implementation from Albert Chin, with some
81527         comments/corrections by Stepan Kasal and myself.
81528
81529 2005-12-02  Bruno Haible  <bruno@clisp.org>
81530
81531         * gnulib-tool (func_import): Accept GPLed build tool modules when
81532         --lgpl is given.
81533         * modules/csharpcomp-script: New file.
81534         * modules/csharpcomp: Depend on it.
81535         * modules/javacomp-script: New file.
81536         * modules/javacomp: Depend on it.
81537         Suggested by Simon Josefsson.
81538
81539 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81542         statement, to work around an HP-UX 10.20 compiler bug reported by
81543         Peter O'Gorman.
81544
81545 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * modules/savedir (Depends-on): Add openat.
81548
81549 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81552         (uintmax_t) [defined uintmax_t]: Do not declare.
81553         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81554         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81555         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81556         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81557         sake of portability to weird hosts that C allows (though we don't
81558         know of any practical examples).
81559
81560         * lib/savedir.h (fdsavedir): New decl.
81561         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81562         contains most of the former guts of savedir.
81563         (savedir): Use savedirstream.
81564         Include "openat.h".
81565
81566 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * modules/obstack (Files): Add m4/ulonglong.m4.
81569         Problem reported by Davide Angelocola.
81570
81571 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81574         coreutils no longer futzes with rounding modes.
81575
81576 2005-11-14  Jim Meyering  <jim@meyering.net>
81577
81578         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81579         replacement of mkstemp.
81580
81581 2005-11-10  Simon Josefsson  <jas@extundo.com>
81582
81583         * lib/readline.c: Remove EOL.
81584
81585 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * modules/gethrxtime (Depends-on): Add gettime.
81588
81589 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81592         or gettimeofday; no longer needed.
81593
81594 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81595
81596         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81597         time business.
81598         (gethrxtime) [! (HAVE_NANOUPTIME
81599         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81600         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81601         our own approximation.
81602
81603 2005-11-08  Eric Blake  <ebb9@byu.net>
81604
81605         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81606
81607 2005-11-08  Eric Blake  <ebb9@byu.net>
81608
81609         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81610
81611 2005-11-04  Bruno Haible  <bruno@clisp.org>
81612
81613         * gnulib-tool: Implement --update mode.
81614
81615 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         Fix porting problem reported by Theodoros V. Kalamatianos.
81618         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81619         Don't assume that futimes failing means we must fail.
81620
81621 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81624         variables to suggest the intended function of the PATH_MAX check.
81625
81626 2005-10-30  Kean Johnston  <jkj@sco.com>
81627
81628         Trivial changes to support SCO systems.
81629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81630         as PATH_MAX.
81631         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81632         where __ptr is null when no I/O is pending.
81633
81634 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81637         leave errno alone.  Problem reported by Dmitry V. Levin.
81638
81639 2005-10-28  Simon Josefsson  <jas@extundo.com>
81640
81641         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81642         Test more.
81643
81644         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81645
81646         * modules/md2, modules/md2-tests: New files.
81647
81648 2005-10-28  Simon Josefsson  <jas@extundo.com>
81649
81650         * m4/inet_ntop.m4: More tests.
81651
81652         * m4/gc-md2.m4, md2.m4: New file.
81653
81654 2005-10-28  Simon Josefsson  <jas@extundo.com>
81655
81656         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81657         "restrict" keywords, as per POSIX.  Protect the function
81658         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81659         Don't use K&R prototypes.  Check the sprintf return values.
81660         Re-define EAFNOSUPPORT if not present.  Indent.
81661
81662         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81663         suggested by Bruno Haible <bruno@clisp.org>.
81664
81665         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81666
81667         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81668
81669         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81670         libgcrypt).
81671
81672         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81673
81674         * lib/md2.h, lib/md2.c: New files.
81675
81676 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81679         errno alone.  Problem reported by Frederic Jolliton.
81680
81681 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * modules/verify (License): Change from GPL to LGPL.  This is a
81684         tiny module and there are apparently near-equivalents that are
81685         under the BSD license.
81686
81687 2005-10-24  Simon Josefsson  <jas@extundo.com>
81688
81689         * modules/sha1: Relicense to LGPL.
81690
81691 2005-10-24  Simon Josefsson  <jas@extundo.com>
81692
81693         * lib/md4.h: Shrink buffer size, now that we changed the type.
81694
81695 2005-10-23  Simon Josefsson  <jas@extundo.com>
81696
81697         * gnulib-tool (func_import): Fix --tests-base.
81698
81699 2005-10-22  Simon Josefsson  <jas@extundo.com>
81700
81701         * modules/arcfour (Depends-on): Need stdint.
81702
81703 2005-10-22  Simon Josefsson  <jas@extundo.com>
81704
81705         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81706         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81707
81708 2005-10-22  Simon Josefsson  <jas@extundo.com>
81709
81710         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81711         suggested by Bruno Haible <bruno@clisp.org>.
81712
81713 2005-10-22  Simon Josefsson  <jas@extundo.com>
81714
81715         * lib/crc.h: Include stddef.h, for size_t.
81716
81717 2005-10-22  Simon Josefsson  <jas@extundo.com>
81718
81719         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81720         arcfour_context struct (simplify test vector testing in GNU
81721         Shishi).
81722
81723 2005-10-21  Simon Josefsson  <jas@extundo.com>
81724
81725         * modules/des, modules/des-tests: New files.
81726
81727         * modules/gc-des, modules/gc-des-tests: New files.
81728
81729         * tests/test-des.c, tests/test-gc-des.c: New file.
81730
81731 2005-10-21  Simon Josefsson  <jas@extundo.com>
81732
81733         * modules/arctwo, modules/arctwo-tests: New files.
81734
81735         * tests/test-arctwo.c: New file.
81736
81737         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81738
81739         * tests/test-gc-arctwo.c: New file.
81740
81741 2005-10-21  Simon Josefsson  <jas@extundo.com>
81742
81743         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81744         Bruno Haible <bruno@clisp.org>.
81745
81746         * m4/gc-des.m4: New file.
81747
81748 2005-10-21  Simon Josefsson  <jas@extundo.com>
81749
81750         * m4/arctwo.m4: New file.
81751
81752         * m4/gc-arctwo.m4: New file.
81753
81754 2005-10-21  Simon Josefsson  <jas@extundo.com>
81755
81756         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81757         block.
81758
81759 2005-10-21  Simon Josefsson  <jas@extundo.com>
81760
81761         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81762         <bruno@clisp.org>.
81763
81764         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81765
81766         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81767         Bruno Haible <bruno@clisp.org>.
81768
81769         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81770         <bruno@clisp.org>.
81771
81772 2005-10-21  Simon Josefsson  <jas@extundo.com>
81773
81774         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81775
81776 2005-10-21  Simon Josefsson  <jas@extundo.com>
81777
81778         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81779
81780 2005-10-21  Simon Josefsson  <jas@extundo.com>
81781
81782         * lib/des.h, lib/des.c: New files.
81783
81784         * lib/gc-gnulib.c: Support DES.c
81785
81786 2005-10-21  Simon Josefsson  <jas@extundo.com>
81787
81788         * lib/arctwo.h, lib/arctwo.c: New files.
81789
81790         * lib/gc-gnulib.c: Support ARCTWO.
81791
81792 2005-10-21  Simon Josefsson  <jas@extundo.com>
81793
81794         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81795         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81796
81797 2005-10-21  Simon Josefsson  <jas@extundo.com>
81798
81799         * gnulib-tool (func_import, func_create_testdir): Define automake
81800         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81801         Makefile.am snippet),
81802         suggested by Bruno Haible <bruno@clisp.org>.
81803
81804         * modules/gc (Makefile.am): Use it.
81805
81806 2005-10-21  Bruno Haible  <bruno@clisp.org>
81807
81808         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81809         patch.
81810
81811 2005-10-19  Simon Josefsson  <jas@extundo.com>
81812
81813         * tests/test-gc-rijndael.c: New file.
81814
81815         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81816
81817 2005-10-19  Simon Josefsson  <jas@extundo.com>
81818
81819         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81820         interface too.
81821
81822 2005-10-19  Simon Josefsson  <jas@extundo.com>
81823
81824         * tests/test-gc-arcfour.c: New file.
81825
81826         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81827
81828 2005-10-19  Simon Josefsson  <jas@extundo.com>
81829
81830         * modules/gc-md4, modules/gc-md4-tests: New file.
81831
81832         * tests/test-gc-md4.c: New file.
81833
81834 2005-10-19  Simon Josefsson  <jas@extundo.com>
81835
81836         * m4/gc-md4.m4: New file.
81837
81838 2005-10-19  Simon Josefsson  <jas@extundo.com>
81839
81840         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81841         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81842         <kasal@ucw.cz>.
81843
81844 2005-10-19  Simon Josefsson  <jas@extundo.com>
81845
81846         * m4/gc-arcfour.m4: New file.
81847
81848         * m4/gc-rijndael.m4: New file.
81849
81850 2005-10-19  Simon Josefsson  <jas@extundo.com>
81851
81852         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81853
81854 2005-10-19  Simon Josefsson  <jas@extundo.com>
81855
81856         * lib/gc-gnulib.c: Support ARCFOUR.
81857
81858 2005-10-19  Simon Josefsson  <jas@extundo.com>
81859
81860         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81861         support.
81862
81863         * lib/gc.h: Add ECB enum type.
81864
81865         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81866
81867 2005-10-18  Simon Josefsson  <jas@extundo.com>
81868
81869         * tests/test-md5.c: New file.
81870
81871         * modules/md5-tests: New file.
81872
81873 2005-10-18  Simon Josefsson  <jas@extundo.com>
81874
81875         * tests/test-md4.c: New file.
81876
81877         * modules/md4, modules/md4-tests: New files.
81878
81879 2005-10-18  Simon Josefsson  <jas@extundo.com>
81880
81881         * m4/md4.m4: New file.
81882
81883 2005-10-18  Simon Josefsson  <jas@extundo.com>
81884
81885         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81886
81887 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81888
81889         * gnulib-tool (func_create_testdir): Omit the second check whether
81890         BUILT_SOURCES in nonempty.
81891
81892 2005-10-17  Simon Josefsson  <jas@extundo.com>
81893
81894         * tests/test-rijndael.c: New file.
81895
81896 2005-10-17  Simon Josefsson  <jas@extundo.com>
81897
81898         * modules/sha1: Depend on stdint instead of md5.
81899
81900         * modules/md5: Depend on stdint, remove uint32_t.
81901
81902 2005-10-17  Simon Josefsson  <jas@extundo.com>
81903
81904         * modules/gc-sha1-tests: New file.
81905
81906         * tests/test-gc-sha1.c: New file.
81907
81908 2005-10-17  Simon Josefsson  <jas@extundo.com>
81909
81910         * m4/md5.m4: Remove call to uint32_t.m4.
81911
81912 2005-10-17  Simon Josefsson  <jas@extundo.com>
81913
81914         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81915
81916         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81917         md5.h.
81918
81919         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81920
81921         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81922
81923 2005-10-17  Simon Josefsson  <jas@extundo.com>
81924
81925         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81926
81927 2005-10-17  Simon Josefsson  <jas@extundo.com>
81928
81929         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81930
81931 2005-10-17  Simon Josefsson  <jas@extundo.com>
81932
81933         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81934
81935         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81936
81937 2005-10-17  Bruno Haible  <bruno@clisp.org>
81938
81939         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81940         that it can also be used in a test.
81941
81942 2005-10-16  Bruno Haible  <bruno@clisp.org>
81943
81944         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81945         TESTS_ENVIRONMENT, so that individual tests can augment it.
81946
81947         * gnulib-tool (func_create_testdir): Use an intermediate target for
81948         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81949         macros, like $(ALLOCA_H), which cannot be passed through the command
81950         line.
81951
81952 2005-10-15  Simon Josefsson  <jas@extundo.com>
81953
81954         * modules/rijndael-tests: New file.
81955
81956         * modules/rijndael: New file.
81957
81958 2005-10-15  Simon Josefsson  <jas@extundo.com>
81959
81960         * m4/rijndael.m4: New file.
81961
81962 2005-10-15  Simon Josefsson  <jas@extundo.com>
81963
81964         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81965
81966         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81967
81968 2005-10-14  Simon Josefsson  <jas@extundo.com>
81969
81970         * tests/test-arcfour.c: New file.
81971
81972         * modules/arcfour, modules/arcfour-tests: New files.
81973
81974 2005-10-14  Simon Josefsson  <jas@extundo.com>
81975
81976         * m4/arcfour.m4: New file.
81977
81978 2005-10-14  Simon Josefsson  <jas@extundo.com>
81979
81980         * lib/arcfour.h, lib/arcfour.c: New files.
81981
81982 2005-10-14  Roland McGrath  <roland@redhat.com>
81983
81984         Import from libc.  [BZ #1331]
81985         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81986         macro argument.
81987         Reported by Matej Vela <vela@debian.org>.
81988
81989 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81992         include <wchar.h>; no longer needed.
81993
81994 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81997
81998 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81999         and  Ulrich Drepper  <drepper@redhat.com>
82000
82001         Import from libc.
82002         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82003         instead of inline stream orientation test and two separate
82004         function calls.  Pay no attention to USE_IN_LIBIO.
82005
82006 2005-10-13  Simon Josefsson  <jas@extundo.com>
82007
82008         * modules/gc-hmac-md5-tests: New file.
82009
82010         * tests/test-gc-hmac-sha1.c: New file.
82011
82012         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82013
82014         * modules/gc-hmac-md5-tests: New file.
82015
82016         * tests/test-gc-md5.c: New file.
82017
82018         * modules/gc-md5-tests: New file.
82019
82020 2005-10-13  Simon Josefsson  <jas@extundo.com>
82021
82022         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82023         Move memory allocation outside of loop.
82024
82025 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82028         intermediate directory is in a read-only file system.  Problem
82029         reported by Eric Blake.
82030
82031 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82032
82033         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82034
82035 2005-10-12  Simon Josefsson  <jas@extundo.com>
82036
82037         * tests/test-hmac-sha1.c: New file.
82038
82039         * modules/hmac-sha1-tests: New file.
82040
82041         * modules/hmac-sha1: New file.
82042
82043 2005-10-12  Simon Josefsson  <jas@extundo.com>
82044
82045         * modules/gc-sha1: New file.
82046
82047 2005-10-12  Simon Josefsson  <jas@extundo.com>
82048
82049         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82050
82051         * tests/test-gc-pbkdf2-sha1.c: New file.
82052
82053 2005-10-12  Simon Josefsson  <jas@extundo.com>
82054
82055         * modules/gc-md5, modules/gc-hmac-md5: New files.
82056
82057         * modules/gc (Files): Remove md5, memxor and hmac files.
82058
82059 2005-10-12  Simon Josefsson  <jas@extundo.com>
82060
82061         * m4/gc-pbkdf2-sha1.m4: New file.
82062
82063         * m4/gc-hmac-sha1.m4: New file.
82064
82065         * m4/gc-sha1: New file.
82066
82067         * m4/hmac-sha1.m4: New file.
82068
82069 2005-10-12  Simon Josefsson  <jas@extundo.com>
82070
82071         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82072
82073         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82074
82075 2005-10-12  Simon Josefsson  <jas@extundo.com>
82076
82077         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82078         suggested by Bruno Haible <bruno@clisp.org>.
82079
82080 2005-10-12  Simon Josefsson  <jas@extundo.com>
82081
82082         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82083
82084 2005-10-12  Simon Josefsson  <jas@extundo.com>
82085
82086         * lib/gc-pbkdf2-sha1.c: New file.
82087
82088         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82089
82090 2005-10-12  Simon Josefsson  <jas@extundo.com>
82091
82092         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82093
82094         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82095
82096 2005-10-12  Simon Josefsson  <jas@extundo.com>
82097
82098         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82099         GC_USE_HMAC_MD5, respectively.
82100
82101         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82102         (gc_md5): Fix typo.
82103
82104         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82105
82106         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82107
82108         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82109
82110 2005-10-12  Bruno Haible  <bruno@clisp.org>
82111
82112         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82113         Reported by Stepan Kasal <kasal@ucw.cz>.
82114
82115 2005-10-11  Simon Josefsson  <jas@extundo.com>
82116
82117         * tests/test-crc.c: New file.
82118
82119         * modules/crc, modules/crc-tests: New files.
82120
82121 2005-10-11  Simon Josefsson  <jas@extundo.com>
82122
82123         * m4/crc.m4: New file.
82124
82125 2005-10-11  Simon Josefsson  <jas@extundo.com>
82126
82127         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82128
82129         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82130
82131         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82132
82133 2005-10-11  Simon Josefsson  <jas@extundo.com>
82134
82135         * lib/crc.h, lib/crc.c: New files.
82136
82137         * lib/gc.h (gc_hash_buffer): Add doc.
82138
82139 2005-10-11  Bruno Haible  <bruno@clisp.org>
82140
82141         * modules/c-strcasestr: New file.
82142         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82143
82144 2005-10-11  Bruno Haible  <bruno@clisp.org>
82145
82146         * modules/c-strcase: New file.
82147         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82148
82149 2005-10-11  Bruno Haible  <bruno@clisp.org>
82150
82151         * lib/strcasecmp.c: Include limits.h.
82152         (strcasecmp): Avoid integer overflow on exotic platforms.
82153         * lib/strncasecmp.c: Include limits.h.
82154         (strncasecmp): Avoid integer overflow on exotic platforms.
82155         Reported by Paul Eggert.
82156
82157 2005-10-11  Bruno Haible  <bruno@clisp.org>
82158
82159         * lib/c-strcasestr.h: New file, from GNU gettext.
82160         * lib/c-strcasestr.c: New file, from GNU gettext.
82161
82162 2005-10-11  Bruno Haible  <bruno@clisp.org>
82163
82164         * lib/c-strcase.h: New file, from GNU gettext.
82165         * lib/c-strcasecmp.c: New file, from GNU gettext.
82166         * lib/c-strncasecmp.c: New file, from GNU gettext.
82167
82168 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         * modules/mempcpy (License): GPL -> LGPL.
82171         * modules/strchrnul (License): Likewise.
82172         * modules/sysexits (License): Likewise.
82173
82174 2005-10-08  Simon Josefsson  <jas@extundo.com>
82175
82176         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82177
82178 2005-10-07  Simon Josefsson  <jas@extundo.com>
82179
82180         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82181
82182 2005-10-06  Simon Josefsson  <jas@extundo.com>
82183
82184         * tests/test-hmac-md5.c: New file.
82185
82186         * modules/hmac-md5-tests: New file.
82187
82188         * modules/hmac-md5: New file.
82189
82190 2005-10-06  Simon Josefsson  <jas@extundo.com>
82191
82192         * m4/hmac-md5.m4: New file.
82193
82194         * m4/memxor.m4: Require gl_C_RESTRICT.
82195
82196 2005-10-06  Simon Josefsson  <jas@extundo.com>
82197
82198         * lib/memxor.c (memxor): Avoid casts and warnings.
82199
82200 2005-10-06  Simon Josefsson  <jas@extundo.com>
82201
82202         * lib/hmac-md5.c: New file.
82203
82204         * lib/hmac.h: New file.
82205
82206 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82207
82208         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82209         promotes to int, not unsigned int, to catch the AIX 5.3
82210         compiler bug.
82211
82212 2005-10-05  Simon Josefsson  <jas@extundo.com>
82213
82214         * modules/memxor: New file.
82215
82216         * modules/iconv (Files): Move config.rpath to havelib, it is used
82217         there.
82218
82219         * modules/havelib (Files): Add config.rpath.
82220
82221 2005-10-05  Simon Josefsson  <jas@extundo.com>
82222
82223         * m4/memxor.m4: New file.
82224
82225 2005-10-05  Simon Josefsson  <jas@extundo.com>
82226
82227         * lib/memxor.c (memxor): Fix compiler error.
82228
82229         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82230         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82231
82232         * lib/memxor.h, lib/memxor.c: New files.
82233
82234         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82235         we assume all systems have it, suggested by Jim Meyering
82236         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82237         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82238         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82239         same reasons.
82240
82241 2005-10-05  Simon Josefsson  <jas@extundo.com>
82242
82243         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82244
82245 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82248         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82249         needed, since the source code now assumes these .h files.
82250
82251 2005-10-05  Derek Price  <derek@ximbiot.com>
82252
82253         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82254
82255 2005-10-05  Bruno Haible  <bruno@clisp.org>
82256
82257         * modules/stdint (License): Change to LGPL.
82258
82259 2005-10-04  Simon Josefsson  <jas@extundo.com>
82260
82261         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82262         D. Baushke" <mdb@gnu.org>.
82263
82264 2005-10-04  Bruno Haible  <bruno@clisp.org>
82265
82266         * lib/verify.h (verify_true): Provide alternative definition for C++.
82267
82268 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82269
82270         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82271         (SSIZE_MAX): New macro, if not already defined.
82272         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82273         than 2 GiB.
82274
82275 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         Sync from coreutils.
82278         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82279         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82280         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82281         ULLONG_MAX doesn't work with 2.7.2.1.
82282
82283 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82286         From Ben Pfaff.
82287
82288         * modules/exclude (Depends-on): Depend on verify.
82289         * modules/strtoimax (Depends-on): Likewise.
82290         * modules/utimecmp (Depends-on): Likewise.
82291
82292 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82293
82294         * lib/exclude.c: Include verify.h.
82295         (verify): Remove.  All callers changed to use verify.h's version.
82296         * lib/strtoimax.c: Likewise.
82297         * lib/utimecmp.c: Likewis.e
82298
82299         Sync from coreutils.
82300         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82301         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82302         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82303         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82304         bother returning ENOSYS if settimeofday or stime fails; just let
82305         them return whatever errno they want to return.
82306         * lib/utimens.c: Include unistd.h, for dup2.
82307         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82308         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82309
82310 2005-10-02  Jim Meyering  <jim@meyering.net>
82311
82312         Sync from coreutils.
82313         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82314         from glibc-2.2.5 that fails for read-only files.
82315
82316 2005-10-02  Jim Meyering  <jim@meyering.net>
82317
82318         Sync from coreutils.
82319         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82320         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82321         `#if HAVE_CONFIG_H'.
82322         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82323         Remove AT_FDCWD test.
82324         Do not consume the fd unless successful.
82325         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82326         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82327         block, so that we don't even try to compile it if settimeofday is
82328         available.  This works around a compilation failure on OSF1 V5.1,
82329         due to stime requiring a `long int*' while tv_sec is `int'.
82330
82331 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82332
82333         Sync from coreutils.
82334         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82335         against `yes', rather than just testing for nonempty.
82336
82337 2005-10-01  Simon Josefsson  <jas@extundo.com>
82338
82339         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82340         and Darwin.
82341
82342         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82343         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82344         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82345         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82346         Check if struct addrinfo is declared.
82347
82348 2005-10-01  Simon Josefsson  <jas@extundo.com>
82349
82350         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82351         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82352         AI_* and EAI_* definitions.  Protect function declarations.
82353
82354 2005-10-01  Jim Meyering  <jim@meyering.net>
82355
82356         Sync from coreutils.
82357
82358         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82359         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82360         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82362         in the inet and nsl libraries.  Required on Solaris 5.7.
82363
82364 2005-10-01  Jim Meyering  <jim@meyering.net>
82365
82366         Sync from coreutils.
82367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82368         in the inet and nsl libraries.  Required on Solaris 5.7.
82369
82370 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82371
82372         * lib/getdelim.c (getdelim): Remove unused variables.
82373
82374 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82377         so that the code works even with ancient cpp.  Portability problem
82378         with GCC 2.7.2.1 reported by Thomas M.Ott.
82379
82380 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82381
82382         * modules/regex (Depends-on): Add strcase.
82383
82384         * modules/gethostname (Licence): Change from GPL to LGPL, since
82385         gethostname.c is a trivial implementation of a standard library
82386         function.
82387         * modules/poll (License): Change from GPL to LGPL, since it's
82388         derived from LGPL code.
82389
82390 2005-09-27  Jim Meyering  <jim@meyering.net>
82391
82392         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82393         HAVE_CONFIG_H.
82394
82395         * lib/intprops.h (signed_type_or_expr__): Define.
82396         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82397         for unsigned types.
82398
82399 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82400
82401         * lib/verify.h (verify_expr): Remove, replacing with:
82402         (verify_true): New macro that returns true instead of void.
82403         (verify_type__): Remove.
82404         (verify): Use verify_true rather than verify_type__.
82405
82406 2005-09-26  Bruno Haible  <bruno@clisp.org>
82407
82408         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82409         is necessary.
82410         (lib_SOURCES): Remove mbchar.c.
82411         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82412         (Files): Add m4/mbrtowc.m4.
82413         * modules/mbiter: Likewise.
82414         * modules/mbuiter: Likewise.
82415
82416 2005-09-26  Bruno Haible  <bruno@clisp.org>
82417
82418         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82419         compile mbchar.c if they are not both present.
82420         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82421         * m4/mbiter.m4 (gl_MBITER): Likewise.
82422         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82423         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82424         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82425
82426 2005-09-25  Jim Meyering  <jim@meyering.net>
82427
82428         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82429         also uses socklen_t.
82430
82431 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82432
82433         * lib/utimens.c (ENOSYS): Define if not already defined.
82434         (futimens): Support having a null PATH if the file descriptor
82435         is nonnegative.
82436
82437         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82438         Remove.
82439         (__attribute): Define to empty unless GCC 3.1 or later.
82440         This works around a core dump on OpenBSD 3.4, which has GCC
82441         2.95.3, which dumps core when given __attribute__(()).  It also
82442         simplifies other tests, since we really don't want to bother with
82443         worrying about which ancient version of GCC supported what.
82444         Original problem reported by Yoann Vandoorselaere, with part of
82445         the fix suggested by Derek Price.
82446
82447 2005-09-24  Jim Meyering  <jim@meyering.net>
82448
82449         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82450         so we can once again use a positive bitfield width of 1 -- now we
82451         don't have to explain why we were using a bitfield width of 2.
82452
82453 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82454
82455         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82456         and similarly for the other external symbols.  Problem reported
82457         by James Gallager.
82458
82459         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82460         bug reported by Jim Meyering.
82461
82462         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82464         not needed, since socklen is a prerequisite module.
82465
82466 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82469         Problem reported by Eric Blake.
82470         (getaddrinfo): Initialize se so that it's not garbage.
82471         Redo internal storage allocation so that it doesn't make unportable
82472         assumptions about alignment.
82473         Fix a memory leak.
82474
82475         * lib/utimens.c (futimens): Use futimesat if available.
82476         Prefer it to futimes since it doesn't have the futimes bug.
82477
82478         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82479         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82480         Instead, declare a function that returns a pointer to an array,
82481         and use verify_type__ to declare the size of the array.
82482         Problem and germ of a solution reported by Bruno Haible.
82483         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82484         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82485
82486 2005-09-23  Jim Meyering  <jim@meyering.net>
82487
82488         Sync from coreutils.
82489         Correct build failure (socklen_t not defined) on at least
82490         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82492
82493 2005-09-23  Jim Meyering  <jim@meyering.net>
82494
82495         * modules/getaddrinfo (Depends-on): Add socklen.
82496
82497 2005-09-23  Bruno Haible  <bruno@clisp.org>
82498
82499         * tests/test-verify.c: New file.
82500
82501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82502
82503         Sync from coreutils.
82504
82505         * modules/argmatch (Depends-on): Add verify.
82506         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82507         unistd-safer.
82508         * modules/save-cwd (Depends-on): Likewise.
82509
82510         * modules/openat (Files): Add lib/openat-die.c.
82511         (Depends-on): Remove error, exitfail.
82512         Add dirname.
82513
82514         * modules/verify: New file.
82515         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82516         with "verify" module.
82517
82518 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82519
82520         Sync from coreutils.
82521
82522         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82523         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82524         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82525         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82526         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82527         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82528         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82529         Don't bother checking for string.h, stdlib.h, unistd.h.
82530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82532         module's job.
82533         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82534         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82535
82536         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82537         (gl_GETDATE): Use it.
82538
82539         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82540
82541 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82542
82543         Sync from coreutils.
82544
82545         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82546         stat-time.h.
82547         * lib/argmatch.h: Include verify.h
82548         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82549         (ARGMATCH_ASSERT): Remove; unused.
82550         * lib/canonicalize.c: Assume STDC_HEADERS.
82551         * lib/exclude.c: Include "strcase.h".
82552         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82553         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82554         and stdio-safer.h.
82555         (getusershell): Call fopen, not fopen_safer.
82556         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82557         Do not include unistd-safer.h.
82558         (save_cwd): Don't call fd_safer; no longer needed
82559         now that we include fcntl--.h.
82560
82561         * lib/getdate.y (relative_time): New type.
82562         (RELATIVE_TIME_0): New constant.
82563         (parser_control): Use relative_time instead of doing it ourselves.
82564         (%union): Add new relative_time rel member.
82565         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82566         Now typeless.
82567         (relunit, relunit_snumber): Now of type rel.
82568         (zone, rel, relunit, get_date): Adjust to above changes.
82569
82570         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82571         Do not include unistd-safer.h.
82572         (getloadavg): Don't call fd_safer; no longer needed
82573         now that we include fcntl--.h.
82574
82575         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82576         (make_dir_parents): Treat ENOSYS like EEXIST.
82577
82578         Improve quality of diagnostics on restore_cwd failure.
82579         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82580         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82581         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82582         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82583         each time through the loop.  Do not diagnose restore_cwd failure;
82584         that is the caller's job (and perhaps the caller does not care).
82585
82586         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82587         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82588         If the file already exists but is not a directory, don't bother
82589         to try to make its parents.
82590         Close potential file descriptor leak if we can't chdir("/") (!).
82591         Don't always return true if chdir($PWD) fails; return true only
82592         if the requested action was done successfully (except for the
82593         chdir($PWD)).
82594         Don't log final directory unless we actually made it.
82595         Refactor to avoid duplicate code to fix up permissions.
82596         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82597
82598         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82599         to make it a bit faster and (I hope) clearer.
82600         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82601         Fix bug in formats like %2N.
82602
82603         * lib/verify.h: New file.
82604
82605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82606
82607         Sync from coreutils.
82608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82609
82610 2005-09-22  Jim Meyering  <jim@meyering.net>
82611
82612         Sync from coreutils.
82613
82614         * m4/lstat.m4 (gl_FUNC_LSTAT):
82615         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82616         Remove obsolete comment.
82617         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82618         * m4/xstrtod.m4: Likewise.
82619
82620         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82621
82622 2005-09-22  Jim Meyering  <jim@meyering.net>
82623
82624         Sync from coreutils.
82625
82626         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82627
82628         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82629         the .tm_year member, since otherwise gcc-4.0 would now warn about
82630         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82631
82632         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82633         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82634
82635         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82636         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82637         when run in a time zone for which daylight savings time is in effect
82638         for the starting date.
82639
82640         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82641         stop us from restricting permissions of just-created absolute-named
82642         directories.
82643         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82644         to restore initial working directory.
82645         * lib/mkdir-p.c (make_dir_parents): New parameter:
82646         different_working_dir, to tell caller if/when we change the working
82647         directory and are unable to return to the initial one.
82648         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82649         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82650         `return false'.  This fixes a bug introduced on 2004-07-30.
82651
82652         * lib/openat.c (fdopendir): Be sure to close the supplied
82653         file descriptor before returning.  This makes our replacement
82654         implementation a little closer to Solaris's, where fdopendir
82655         ties the file descriptor to the returned DIR* pointer.
82656         * lib/openat.c (unlinkat): New function.
82657         * lib/openat.h (unlinkat): Add prototype.
82658         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82659         (openat_restore_fail): Rename from openat_restore_die.
82660         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82661
82662         Provide an alternative to exiting immediately upon save_cwd or
82663         restore_cwd failure.  Now, an application can arrange e.g.,
82664         to perform a longjump in that case.
82665         * lib/openat.c: Include dirname.h.
82666         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82667         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82668         and openat_restore_die rather than calling error directly.
82669         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82670
82671         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82672         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82673         define.
82674
82675         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82676         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82677                             int utc, int nanoseconds);
82678         Background:
82679         date should not have to allocate a megabyte of virtual memory to
82680         handle a format argument like +%1048575T.  When implemented with
82681         strftime, it must allocate such a buffer, use strftime to fill it
82682         in, print it, then free it.
82683         With fprintftime, it simply prints everything and exits.
82684         With no need for memory allocation, that's one fewer way to fail.
82685         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82686         optional field width, not before, so we accept %9:z, not %:9z.
82687         (my_strftime): Be sure to use L_('x') for literals.
82688
82689         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82690         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82691         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82692         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82693         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82694         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82695         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82696         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82697         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82698         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82699         * lib/xgethostname.c, lib/xreadlink.c:
82700         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82701
82702         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82703         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82704         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82705         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82706         and don't include <sys/file.h>).
82707
82708 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82709
82710         Sync from coreutils.
82711
82712         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82713         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82714         [!LDAV_DONE]: Avoid unused variable warning.
82715
82716 2005-09-21  Bruno Haible  <bruno@clisp.org>
82717
82718         * lib/unicodeio.h (unicode_to_mb): New declaration.
82719
82720 2005-09-20  Derek Price  <derek@ximbiot.com>
82721
82722         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82723         getaddrinfo.h.
82724
82725 2005-09-20  Bruno Haible  <bruno@clisp.org>
82726
82727         * gnulib-tool: Remove trailing slashes from the values specified for
82728         --source-base, --m4-base, --tests-base, --aux-dir.
82729         Suggested by Simon Josefsson <jas@extundo.com>.
82730
82731 2005-09-20  Bruno Haible  <bruno@clisp.org>
82732
82733         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82734         func_modules_to_filelist, func_import, func_create_testdir): Make all
82735         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82736         change when gnulib-tool is invoked in a different locale.
82737
82738 2005-09-19  Simon Josefsson  <jas@extundo.com>
82739
82740         * m4/socklen.m4: Fix typo.
82741
82742 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82743
82744         Use a consistent style for including <config.h>.
82745         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82746         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82747         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82748         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82749         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82750         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82751         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82752         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82753         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82754         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82755         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82756         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82757         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82758         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82759         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82760         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82761         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82762         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82763         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82764         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82765         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82766         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82767         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82768         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82769         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82770         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82771         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82772         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82773         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82774         lib/xstrtoumax.c, lib/yesno.c:
82775         Standardize inclusion of config.h.
82776         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82777         lib/inttostr.h:  Removed inclusion of config.h from header files.
82778         * lib/inttostr.c:  Adjusted in-tree users.
82779         * lib/timespec.h: Remove superfluous warning to include config.h.
82780         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82781         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82782         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82783         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82784         config.h with HAVE_CONFIG_H.
82785
82786 2005-09-19  Jim Meyering  <jim@meyering.net>
82787
82788         * modules/pathmax (License): Change to LGPL.
82789
82790 2005-09-19  Derek Price  <derek@ximbiot.com>
82791
82792         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82793
82794 2005-09-19  Bruno Haible  <bruno@clisp.org>
82795
82796         * gnulib-tool (import): Provide default for --tests-base.
82797
82798 2005-09-19  Bruno Haible  <bruno@clisp.org>
82799
82800         * doc/quote.texi: New file, extracted from gnulib.texi.
82801         * doc/ctime.texi: New file, extracted from gnulib.texi.
82802         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82803         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82804         * doc/gnulib.texi: Include them.
82805
82806 2005-09-18  Bruno Haible  <bruno@clisp.org>
82807
82808         Portability fix.
82809         * gnulib-tool (func_readlink): New function.
82810         (func_ln_if_changed): Use it.
82811
82812 2005-09-18  Bruno Haible  <bruno@clisp.org>
82813
82814         * gnulib-tool: Support --with-tests also with --import.
82815         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82816         (func_import): Use variables $testsbase and $inctests. Emit a
82817         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82818         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82819         SUBDIRS += $testsdir.
82820         (func_create_testdir): Update.
82821
82822 2005-09-18  Bruno Haible  <bruno@clisp.org>
82823
82824         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82825         instead of $dry_run.
82826         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82827         (func_ln_if_changed): Don't handle dry-run here.
82828         (func_import): In dry-run mode, detect more precisely which actions
82829         would be performed, and don't use "...ing" verbs.
82830
82831 2005-09-18  Bruno Haible  <bruno@clisp.org>
82832
82833         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82834         (func_import): Use join on two temporary files instead of three nested
82835         loops, in order to determine which files are new or old.
82836
82837 2005-09-18  Bruno Haible  <bruno@clisp.org>
82838
82839         * gnulib-tool (func_import): Comment out code that spits out the
82840         new files with --dry-run.
82841
82842 2005-09-18  Bruno Haible  <bruno@clisp.org>
82843
82844         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82845
82846 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82847
82848         * lib/stat-time.h: New file.
82849         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82850         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82851         in a different way.
82852         (timespec_cmp): New function.
82853         * lib/utimecmp.c: Include stat-time.h.
82854         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82855         members exist, not on the obsolescent ST_MTIM_NSEC.
82856         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82857
82858 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82861
82862 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * MODULES.html.sh (File system functions): Add stat-time.
82865         * modules/stat-time: New file.
82866         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82867         is now done in a different way, by the stat-time module.
82868         * modules/utimecmp (Depends-on): Add stat-time.
82869
82870 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82871
82872         * m4/st_mtim.m4: Remove.  Superseded by...
82873         * m4/stat-time.m4: New file.
82874         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82875         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82876
82877 2005-09-15  Derek Price  <derek@ximbiot.com>
82878
82879         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82880
82881 2005-09-15  Derek Price  <derek@ximbiot.com>
82882
82883         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82884         * lib/regex_internal.c: Ditto, using this...
82885         (__GNUC_PREREQ): ...new macro.
82886         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82887         using...
82888         (__GNUC_PREREQ): ...this new macro.
82889
82890         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82891
82892 2005-09-15  Derek Price  <derek@ximbiot.com>
82893             Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82896         changes, consolidating in...
82897         * lib/regex_internal.h: ...this file.
82898
82899 2005-09-13  Jim Meyering  <jim@meyering.net>
82900
82901         * lib/canon-host.c: Filter through gnu indent and reword comments
82902         slightly.
82903         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82904
82905 2005-09-13  Derek Price  <derek@ximbiot.com>
82906
82907         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82908         failure.
82909         Reported by Jim Meyering  <jim@meyering.net>.
82910
82911 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82912
82913         * lib/base64.c: Typo.
82914         (base64_encode): Put b64str in initialized data section.
82915
82916 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82917
82918         Merge glibc and coreutils changes into gnulib, plus a few
82919         extra fixes.
82920         * lib/md5.c: Use #error rather than a string.
82921         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82922         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82923         (__attribute__): Define to empty for non recent-GCC.
82924         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82925         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82926         Renamed from their non-__ counterparts, with new macros replacing
82927         them if not _LIBC.  Add __THROW attribute.
82928         (rol): Remove.
82929         (struct md5_ctx): Align buffer if using GCC.
82930         * lib/sha1.h (struct sha1_ctx): Likewise.
82931         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82932         The old name was backwards.
82933         (NOTSWAP): Remove; not used.
82934         (rol): New macro, moved here from md5.h.
82935         (sha1_process_block): Remove a FIXME that doesn't make sense.
82936
82937 2005-09-12  Derek Price  <derek@ximbiot.com>
82938
82939         Return usable errors from canon-host.
82940         * lib/canon-host.h: New file.
82941         * lib/canon-host.c (canon_host): Wrap...
82942         (canon_host_r): ...this new function, which now relies exclusively on
82943         getaddrinfo.
82944         (ch_strerror): New function.
82945         (last_cherror): New global.
82946         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82947         interface.
82948         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82949         void *.
82950         (freeaddrinfo): Free ai->ai_canonname when set.
82951
82952 2005-09-12  Derek Price  <derek@ximbiot.com>
82953
82954         Make canon-host require getaddrinfo.
82955         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82956         AC_LIBSOURCE canon-host.h.  Call...
82957         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82958         gl_GETADDRINFO.
82959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82960
82961 2005-09-12  Derek Price  <derek@ximbiot.com>
82962
82963         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82964         LGPL.
82965         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82966
82967 2005-09-12  Derek Price  <derek@ximbiot.com>
82968
82969         * lib/gai_strerror.c: Include config.h when available.  Include
82970         getaddrinfo.h before other headers to test interface.
82971         Reported by Larry Jones <lawrence.jones@ugs.com>.
82972
82973 2005-09-12  Derek Price  <derek@ximbiot.com>
82974             Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * modules/glob (Files): Add glob-libc.h.
82977
82978 2005-09-12  Derek Price  <derek@ximbiot.com>
82979             Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82982         glob_.h, glob-libc.h.
82983         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82984
82985 2005-09-12  Derek Price  <derek@ximbiot.com>
82986             Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82989         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82990         protecting things that should be done only in gnulib contexts.
82991         * lib/glob_.h: New file, containing only the glob things needed for
82992         gnulib.
82993         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82994         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82995         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82996         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82997         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82998         and to respect the namespace rules better.
82999
83000 2005-09-08  Simon Josefsson  <jas@extundo.com>
83001
83002         * modules/socklen: New file.
83003
83004 2005-09-08  Simon Josefsson  <jas@extundo.com>
83005
83006         * m4/socklen.m4: New file.
83007
83008 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83009
83010         * modules/utimens (Files): Add m4/utimbuf.m4, since
83011         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83012         Reported by Sergey Poznyakoff.
83013
83014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83015
83016         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83017         definitions, since that's the preferred style in glibc.
83018         Fix a minor spacing issue, and update copyright notice to match
83019         glibc's.
83020
83021 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83024
83025 2005-09-06  Simon Josefsson  <jas@extundo.com>
83026
83027         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83028         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83029
83030 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83033         warning.
83034
83035 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * config/srclist.txt: Add glibc bug 1302.
83038
83039 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         Change bitset word type from unsigned int to unsigned long int,
83042         as this has better performance on typical 64-bit hosts.
83043         Port bitset code to hosts with unusual word sizes.
83044         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83045         (build_collating_symbol):
83046         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83047         argument is a bitset.  This is merely a style issue, but it makes
83048         it clearer that an entire array is expected.
83049         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83050         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83051         Port to the case where bitset_word is not the same as unsigned int.
83052         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83053         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83054         Likewise.
83055         * lib/regexec.c (check_dst_limits_calc_pos_1,
83056         check_subexp_matching_top):
83057         (build_trtable, group_nodes_into_DFAstates):
83058         Likewise.
83059         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83060         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83061         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83062         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83063         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83064         * lib/regcomp.c (optimize_subexps, lower_subexp):
83065         Work even if bitset_word has holes in its bitwise representation.
83066         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83067         * lib/regexec.c (check_dst_limits_calc_pos_1,
83068         check_subexp_matching_top):
83069         Likewise.
83070         * lib/regex_internal.c (re_string_reconstruct):
83071         Don't assume UCHAR_MAX == 255.
83072         * lib/regex_internal.h (bitset_set_all): Likewise.
83073         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83074         All uses changed.
83075         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83076         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83077         All uses changed.
83078         (BITSET_WORD_MAX): New macro.
83079         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83080         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83081         (bitset_empty, bitset_copy):
83082         Prefer sizeof (bitset) to multiplying it out ourselves.
83083         (bitset_not_merge): Remove; unused.
83084         (bitset_contain): Return bool, not unsigned int with one bit on.
83085         All callers changed.
83086         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83087         alignment than re_node_set; do this by defining a new internal
83088         type struct dests_alloc and using it to allocate memory.
83089
83090 2005-09-05  Bruno Haible  <bruno@clisp.org>
83091
83092         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83093         links.
83094
83095 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83096
83097         * modules/size_max (Makefile.am): Add size_max.h
83098
83099 2005-09-04  Derek Price  <derek@ximbiot.com>
83100
83101         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83102
83103 2005-09-03  Simon Josefsson  <jas@extundo.com>
83104
83105         * gnulib-tool: Fix typo.
83106
83107 2005-09-03  Simon Josefsson  <jas@extundo.com>
83108
83109         * config/srclist.txt: Add glibc bug 1293.
83110
83111 2005-09-03  Derek Price  <derek@ximbiot.com>
83112
83113         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83114         From Larry Jones <lawrence.jones@ugs.com>.
83115
83116 2005-09-02  Simon Josefsson  <jas@extundo.com>
83117
83118         * modules/socklen: New file.
83119
83120 2005-09-02  Simon Josefsson  <jas@extundo.com>
83121
83122         * modules/havelib: New module.
83123
83124         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83125         Use havelib.
83126
83127 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83128
83129         Check for arithmetic overflow when calculating sizes, to prevent
83130         some buffer-overflow issues.  These patches are conservative, in the
83131         sense that when I couldn't determine whether an overflow was possible,
83132         I inserted a run-time check.
83133         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83134         macros.
83135         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83136         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83137         (re_xnrealloc, re_x2nrealloc): New inline functions.
83138         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83139         parse_bracket_exp):
83140         (build_equiv_class, build_charclass): Check for arithmetic overflow
83141         in size expression calculations.
83142         * lib/regex_internal.c (re_string_realloc_buffers):
83143         (build_wcs_upper_buffer, re_node_set_add_intersect):
83144         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83145         (re_dfa_add_node, register_state): Likewise.
83146         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83147         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83148         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83149         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83150
83151 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83152
83153         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83154         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83155
83156 2005-09-02  Bruno Haible  <bruno@clisp.org>
83157
83158         Support for lib vs. lib64 distinction on biarch platforms.
83159         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83160         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83161         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83162
83163 2005-09-02  Bruno Haible  <bruno@clisp.org>
83164
83165         * gnulib-tool (import): In the other first-use case, provide defaults
83166         as well.
83167
83168 2005-09-02  Bruno Haible  <bruno@clisp.org>
83169
83170         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83171         patches not yet found in the latest gettext release.
83172
83173 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83174
83175         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83176         to avoid a collision with bits/local_lim.h in glibc.
83177         All uses changed.  Problem reported by Dmitry V. Levin in
83178         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83179
83180         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83181         bugs in int versus size_t comparisons.
83182         (re_string_context_at): Fix bug where the code assumed that
83183         Idx is signed.
83184
83185         Use bool where appropriate.
83186         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83187         All callers changed.
83188         (calc_eclosure_iter): Likewise, for ROOT arg.
83189         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83190         (build_charclass_op): Likewise, for NON_MATCH arg.
83191         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83192         (re_string_construct_common): Likewise, for ICASE arg.
83193         * lib/regexec.c (re_search_2_stub, re_search_stub):
83194         Likewise, for RET_LEN arg.
83195         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83196         (set_regs): Likewise, for FL_BACKTRACK arg.
83197         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83198         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83199         (calc_eclosure_iter, parse_bracket_exp):
83200         Use bool for internal variables that are booleans.
83201         * lib/regexec.c (re_search_internal, check_matching,
83202         proceed_next_node):
83203         (set_regs, build_sifted_states, sift_states_bkref):
83204         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83205         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83206         (find_collation_sequence_value):
83207         Likewise.
83208         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83209         (re_node_set_compare):
83210         Return bool, not int. All callers changed.
83211         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83212         (build_trtable, check_node_accept): Likewise.
83213         * lib/regex_internal.h: Include stdbool.h.
83214
83215         Fix bugs uncovered when converting to bool.
83216         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83217         failure instead of charging ahead blindly.
83218         * lib/regex_internal.c (register_state): Likewise.
83219         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83220         for freeing internal storage.
83221         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83222         bitset pieces used as boolean, to avoid undefined behavior
83223         on hosts that do int overflow checking.
83224
83225 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         * config/srclist.txt: Add glibc bugs 1285-1287.
83228
83229 2005-09-01  Jim Meyering  <jim@meyering.net>
83230
83231         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83232         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83233         Require gl_STAT_MACROS, too.
83234
83235 2005-09-01  Bruno Haible  <bruno@clisp.org>
83236
83237         * gnulib-tool (import): In the first-use case, provide defaults.
83238
83239 2005-09-01  Bruno Haible  <bruno@clisp.org>
83240
83241         * gnulib-tool (func_import): Remove the .tmp files.
83242
83243 2005-09-01  Bruno Haible  <bruno@clisp.org>
83244
83245         * gnulib-tool (func_import): Fix handling of symbolic links.
83246
83247 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83250         old glibc regex code mishandles strings longer than 2**31 bytes.
83251         This patch fixes this when the regex code is used in gnulib
83252         (i.e., outside glibc).
83253
83254         This patch should not affect the use of the regex code inside
83255         glibc.  No doubt this problem also needs to be handled for glibc
83256         as well, but the result will be an incompatible change to the
83257         glibc ABI, and the old ABI will have to be supported too.  That
83258         can be the the subject for another patch.
83259
83260         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83261         governing whether the rest of this patch is active.  By default,
83262         the macro is disabled and the patch has no effect.
83263         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83264         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83265         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83266         (re_match_2, re_set_registers): Use the new types.
83267         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83268         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83269         New macros.
83270         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83271         (re_string_context_at, bin_tree_t, re_dfastate_t):
83272         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83273         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83274         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83275         (re_string_char_size_at, re_string_wchar_at):
83276         (re_string_elem_size_at):
83277         Use the new types and macros to port to 64-bit hosts.
83278         Use unsigned types for internal values, so that the code
83279         mostly works even for arrays larger than SSIZE_MAX.
83280         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83281         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83282         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83283         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83284         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83285         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83286         (calc_inveclosure, parse_dup_op, build_range_exp):
83287         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83288         (fetch_number, create_token_tree, mark_opt_subexp):
83289         Likewise.
83290         * lib/regex_internal.c (re_string_construct_common,
83291         create_ci_newstate):
83292         (create_cd_newstate, re_string_allocate, re_string_construct):
83293         (re_string_realloc_buffers, build_wcs_upper_buffer):
83294         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83295         (re_string_reconstruct, re_string_peek_byte_case):
83296         (re_string_fetch_byte_case, re_string_context_at):
83297         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83298         (re_node_set_init_copy, re_node_set_add_intersect):
83299         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83300         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83301         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83302         (re_acquire_state, re_acquire_state_context, register_state):
83303         Likewise.
83304         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83305         search_cur_bkref_entry):
83306         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83307         (re_search_internal, re_search_2_stub, re_search_stub)
83308         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83309         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83310         (update_cur_sifted_state, check_dst_limits):
83311         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83312         (check_subexp_limits, sift_states_bkref, merge_state_array):
83313         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83314         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83315         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83316         (expand_bkref_cache, check_node_accept_bytes):
83317         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83318         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83319         (acquire_init_state_context, check_halt_node_context):
83320         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83321         (sift_states_backward, clean_state_log_if_needed):
83322         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83323         (find_recover_state, transit_state_sb, transit_state_mb):
83324         (transit_state_bkref, build_trtable, match_ctx_clean):
83325         Likewise.
83326         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83327         to work around an assumption that REG_MISSING is negative.
83328
83329         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83330         (seek_collating_symbol_entry) [defined _LIBC]:
83331         (lookup_collation_sequence_value) [defined _LIBC]:
83332         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83333         Use prototypes rather than old-style function definitions.
83334         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83335         (transit_state_sb) [0]:
83336         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83337
83338         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83339         rm_eo.
83340
83341         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83342         (optimize_subexps, lower_subexp):
83343         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83344         since the signed shift might overflow.  Use 1u<<31 instead.
83345         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83346         Likewise.
83347         * lib/regexec.c (check_dst_limits_calc_pos_1,
83348         check_subexp_matching_top): Likewise.
83349
83350         * lib/regcomp.c (optimize_subexps, lower_subexp):
83351         Use CHAR_BIT rather than 8, for clarity.
83352         * lib/regexec.c (check_dst_limits_calc_pos_1):
83353         (check_subexp_matching_top): Likewise.
83354         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83355         have to worry about portability issues when shifting it left.
83356         Remove no-longer-needed test for table_size > 0.
83357         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83358         in a word, as the resulting behavior is undefined.
83359         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83360         in one case, a <= should have been an <, and in another case the
83361         whole test was missing.
83362         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83363         the standard name CHAR_BIT.
83364         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83365         this is not true on one's complement and signed-magnitude hosts.
83366
83367         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83368         next_last_offset.
83369         (struct re_dfa_t): Remove unused member states_alloc.
83370         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83371
83372 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83373
83374         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83375         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83376         and large-file glibc and in 32-bit large-file Solaris.
83377
83378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83381         lengths fit in regoff_t; this isn't true if regoff_t is the same
83382         width as size_t.
83383         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83384         (= START + RANGE) instead of RANGE.  This avoids overflow
83385         problems when regoff_t is the same width as size_t.
83386         All callers changed.
83387         (re_search_2_stub): Check for overflow when adding the
83388         sizes of the two strings.
83389         (re_search_stub): Check for overflow when adding START
83390         to RANGE; if it occurs, substitute the extreme value.
83391
83392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83395
83396 2005-08-31  Jim Meyering  <jim@meyering.net>
83397
83398         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83399         a pointer-to-const.
83400         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83401         (register_state): Likewise.
83402         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83403         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83404         (group_nodes_into_DFAstates): Likewise.
83405
83406 2005-08-31  Jim Meyering  <jim@meyering.net>
83407
83408         * check-module: Add a FIXME comment.
83409
83410 2005-08-31  Eric Blake  <ebb9@byu.net>
83411
83412         * modules/unistd-safer (Files): Add unistd--.h.
83413         * modules/stdio-safer (Files): Add stdio--.h.
83414
83415 2005-08-31  Derek Price  <derek@ximbiot.com>
83416
83417         * lib/getdelim.c (getdelim): Return EOF on EOF.
83418         Reported by Larry Jones <lawrence.jones@ugs.com>.
83419
83420 2005-08-31  Bruno Haible  <bruno@clisp.org>
83421
83422         Avoid unnecessary diffs in the generated lib/Makefile.am.
83423         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83424         the generated files.
83425         (func_import): Don't set cmd.
83426
83427 2005-08-31  Bruno Haible  <bruno@clisp.org>
83428
83429         * lib/strstr.c: Include <stddef.h>, for NULL.
83430         * lib/strcasestr.c: Likewise.
83431         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83432
83433 2005-08-31  Bruno Haible  <bruno@clisp.org>
83434
83435         * gnulib-tool: New option --macro-prefix.
83436         (func_import): Use macro_prefix.
83437         (import): Handle option --macro-prefix.
83438
83439 2005-08-31  Bruno Haible  <bruno@clisp.org>
83440
83441         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83442         Also use new variables cached_lgpl, cached_libtool.
83443
83444 2005-08-31  Bruno Haible  <bruno@clisp.org>
83445
83446         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83447         always instantiating them.
83448
83449 2005-08-31  Bruno Haible  <bruno@clisp.org>
83450
83451         * gnulib-tool (func_import): Read the previous cached settings
83452         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83453         earlier added by gnulib but are now dropped. Warn when a gnulib file
83454         overwrites a non-gnulib file.
83455
83456 2005-08-31  Bruno Haible  <bruno@clisp.org>
83457
83458         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83459         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83460         projects that don't keep autogenerated files in CVS. Put into
83461         actioncmd only the specified modules, not the transitive closure.
83462
83463 2005-08-31  Bruno Haible  <bruno@clisp.org>
83464
83465         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83466         Create directories that shall be filled.
83467         (import): Don't look for gl_* macros in configure.ac. Recurse across
83468         all directories containing a gnulib-cache.m4 files, if meaningful.
83469
83470 2005-08-31  Bruno Haible  <bruno@clisp.org>
83471
83472         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83473         (import): Set seen_libtool when we see gl_LIBTOOL.
83474
83475 2005-08-31  Bruno Haible  <bruno@clisp.org>
83476
83477         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83478         declaration macro definitions from generated gnulib.m4.
83479
83480 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83481
83482         * lib/iconvme.h: Add prototype for iconv_alloc.
83483
83484 2005-08-29  Simon Josefsson  <jas@extundo.com>
83485
83486         * lib/iconvme.c: Fix errno.
83487
83488 2005-08-29  Bruno Haible  <bruno@clisp.org>
83489
83490         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83491         that it works when the directory contains spaces.
83492
83493 2005-08-29  Bruno Haible  <bruno@clisp.org>
83494
83495         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83496
83497 2005-08-29  Bruno Haible  <bruno@clisp.org>
83498
83499         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83500         Emit more advice.
83501
83502 2005-08-29  Bruno Haible  <bruno@clisp.org>
83503         and Stepan Kasal  <kasal@ucw.cz>
83504
83505         * check-module: If more parameters are given, check each of them
83506         separately; add more exceptions, as noted by Jim Meyering.
83507         (check_module): New procedure.
83508         (%exempt_header): Now contains all exceptions.
83509
83510 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83511
83512         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83513
83514 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83515
83516         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83517
83518 2005-08-28  Bruno Haible  <bruno@clisp.org>
83519
83520         * m4/gnulib-tool.m4: New file.
83521
83522 2005-08-27  Jim Meyering  <jim@meyering.net>
83523
83524         * modules/unistd-safer (Files): Add pipe-safer.c.
83525         * modules/fcntl-safer (Files): Add creat-safer.c.
83526
83527 2005-08-27  Jim Meyering  <jim@meyering.net>
83528
83529         * m4/stdlib-safer.m4: New file.  From coreutils.
83530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83532         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83533         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83534         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83535
83536 2005-08-27  Jim Meyering  <jim@meyering.net>
83537
83538         * lib/fopen-safer.c: Merge minor changes from coreutils.
83539         * lib/dup-safer.c: Likewise.
83540         * lib/fd-safer.c: Likewise.
83541
83542         Merge from coreutils.
83543         * lib/stdio--.h: New file.
83544         * lib/stdlib--.h: New file.
83545         * lib/mkstemp-safer.c: New file.
83546
83547         GNU tar needs these.
83548         * lib/pipe-safer.c: New file.
83549         * lib/creat-safer.c: New file.
83550         * lib/fcntl--.h (creat): Define to creat_safer.
83551         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83552         * lib/unistd--.h (pipe): Define to pipe_safer.
83553         * lib/unistd-safer.h: Declare pipe_safer.
83554
83555 2005-08-26  Simon Josefsson  <jas@extundo.com>
83556
83557         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83558         Haible <bruno@clisp.org>.
83559
83560 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/regex_internal.h: Remove all references to
83563         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83564         or better.
83565         (bitset_not, bitset_merge, bitset_not_merge):
83566         (bitset_mask, re_string_allocate, re_string_construct):
83567         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83568         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83569         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83570         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83571         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83572         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83573         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83574         (re_acquire_state_context):
83575         Remove unnecessary forward decls.
83576         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83577         Put __attribute at function definition,
83578         now that the function decl has been removed.
83579         * lib/regex_internal.c (re_string_peek_byte_case):
83580         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83581         Likewise.
83582
83583 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83584
83585         * m4/regex.m4: Add AC_PREREQ(2.50).
83586         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83587
83588 2005-08-25  Simon Josefsson  <jas@extundo.com>
83589
83590         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83591         __fsetlocking.
83592
83593 2005-08-25  Simon Josefsson  <jas@extundo.com>
83594
83595         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83596         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83597         GLIBC specific code.
83598
83599 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83600
83601         Make regex safe for g++.  This fixes one real bug (an "err"
83602         that should have been "*err").  g++ problem reported by
83603         Sam Steingold.
83604         * lib/regex_internal.h (re_calloc): New macro, consistent with
83605         re_malloc etc.  All callers of calloc changed to use re_calloc.
83606         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83607         not int.  All callers changed.
83608         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83609         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83610         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83611         (find_recover_state): Change "err" to "*err"; this fixes what
83612         appears to be a real bug.
83613         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83614         versus int.
83615
83616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * modules/regex (Depends-on): Add malloc, since the code
83619         assumes that !malloc(0) means failure.
83620
83621 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83624
83625         alloca modernization/simplification for regex.
83626         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83627         needs to be at the start of the file, and can be moved into
83628         regex_internal.h and simplified.
83629         * lib/regex_internal.h: Include <alloca.h>.
83630         (__libc_use_alloca) [!defined _LIBC]: New macro.
83631         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83632         now works outside glibc.
83633
83634 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * config/srclist.txt: Add glibc bugs 1241, 1245.
83637
83638 2005-08-25  Jim Meyering  <jim@meyering.net>
83639
83640         * lib/open-safer.c: Include <config.h>.
83641         Otherwise, we'd lose LARGEFILE support in any file using
83642         e.g. "fcntl--.h"
83643
83644 2005-08-25  Bruno Haible  <bruno@clisp.org>
83645
83646         * m4/minmax.m4: Require autoconf 2.52.
83647         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83648         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83649         alternatives of translit over the alphabet.
83650         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83651
83652 2005-08-24  Simon Josefsson  <jas@extundo.com>
83653
83654         * tests/test-getpass.c: New file.
83655
83656 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83657
83658         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83659         for GNU regex features.
83660
83661 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83664         * lib/regex.h (regerror): Likewise.
83665
83666         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83667         requires this.  (The code never needed it.)
83668
83669         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83670         All uses of recently-renamed identifiers changed to use the new,
83671         POSIX-compliant names.  The code will build and run just fine
83672         without these changes, but it's better to eat our own dog food
83673         and use the standard-conforming names.
83674
83675         * lib/regex.h: Fix a multitude of POSIX name space violations.
83676         These changes have an effect only for programs that define
83677         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83678         do not change anything for programs compiled in the normal way.
83679         Also, there is no effect on the ABI.
83680
83681         (_REGEX_SOURCE): New macro.
83682         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83683         defined and _GNU_SOURCE is not; this fixes a name space violation.
83684
83685         Rename the following macros to obey POSIX requirements.
83686         The old names are still visible as macros if _REGEX_SOURCE is defined.
83687         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83688         RE_BACKSLASH_ESCAPE_IN_LISTS.
83689         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83690         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83691         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83692         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83693         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83694         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83695         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83696         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83697         (REG_INTERVALS): renamed from RE_INTERVALS.
83698         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83699         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83700         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83701         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83702         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83703         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83704         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83705         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83706         RE_UNMATCHED_RIGHT_PAREN_ORD.
83707         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83708         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83709         (REG_DEBUG): renamed from RE_DEBUG.
83710         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83711         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83712         unusual, since we can't clash with the POSIX REG_ICASE.
83713         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83714         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83715         (REG_NO_SUB): renamed from RE_NO_SUB.
83716         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83717         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83718         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83719         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83720         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83721         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83722         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83723         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83724         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83725         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83726         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83727         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83728         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83729         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83730         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83731         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83732         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83733         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83734         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83735         (REG_FIXED): Renamed from REGS_FIXED.
83736         (REG_NREGS): Renamed from RE_NREGS.
83737
83738         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83739         of other REG_* macros, since POSIX says the user is allowed to
83740         #undef these macros selectively.
83741
83742         (reg_errcode_t): Update comment stating what other tables need
83743         to be consistent.
83744
83745         Rename the following enum values to obey POSIX requirements.
83746         The old names are still visible as macros.
83747         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83748         is not defined, since GNU is supposed to be a superset of POSIX as
83749         much as possible, and since we want reg_errcode_t to be a signed
83750         type for implementation consistency.
83751         (_REG_NOERROR): Renamed from REG_NOERROR.
83752         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83753         (_REG_BADPAT): Renamed from REG_BADPAT.
83754         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83755         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83756         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83757         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83758         (_REG_EBRACK): Renamed from REG_EBRACK.
83759         (_REG_EPAREN): Renamed from REG_EPAREN.
83760         (_REG_EBRACE): Renamed from REG_EBRACE.
83761         (_REG_BADBR): Renamed from REG_BADBR.
83762         (_REG_ERANGE): Renamed from REG_ERANGE.
83763         (_REG_ESPACE): Renamed from REG_ESPACE.
83764         (_REG_BADRPT): Renamed from REG_BADRPT.
83765         (_REG_EEND): Renamed from REG_EEND.
83766         (_REG_ESIZE): Renamed from REG_ESIZE.
83767         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83768         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83769         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83770         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83771         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83772
83773         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83774         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83775         changed.  But support the old name if the new one is not defined
83776         and if _REGEX_SOURCE.
83777
83778         Change the following member names in struct re_pattern_buffer.
83779         The old names are still supported if !_REGEX_SOURCE.
83780         The new names are always supported, regardless of _REGEX_SOURCE.
83781         (re_buffer): Renamed from buffer.
83782         (re_allocated): Renamed from allocated.
83783         (re_used): Renamed from used.
83784         (re_syntax): Renamed from syntax.
83785         (re_fastmap): Renamed from fastmap.
83786         (re_translate): Renamed from translate.
83787         (re_can_be_null): Renamed from can_be_null.
83788         (re_regs_allocated): Renamed from regs_allocated.
83789         (re_fastmap_accurate): Renamed from fastmap_accurate.
83790         (re_no_sub): Renamed from no_sub.
83791         (re_not_bol): Renamed from not_bol.
83792         (re_not_eol): Renamed from not_eol.
83793         (re_newline_anchor): Renamed from newline_anchor.
83794
83795         Change the following member names in struct re_registers.
83796         The old names are still supported if !_REGEX_SOURCE.
83797         The new names are always supported, regardless of _REGEX_SOURCE.
83798         (rm_num_regs): Renamed from num_regs.
83799         (rm_start): Renamed from start.
83800         (rm_end): Renamed from end.
83801
83802         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83803         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83804         Prepend __ to parameter names.
83805
83806         Undo yesterday's changes.
83807
83808 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83811         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83812         lib/regex.c.
83813
83814 2005-08-24  Jim Meyering  <jim@meyering.net>
83815
83816         Sync from coreutils.
83817         * m4/fcntl-safer.m4: New file.
83818
83819         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83820         and object files for this module.
83821
83822 2005-08-24  Jim Meyering  <jim@meyering.net>
83823
83824         Sync from coreutils.
83825         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83826
83827 2005-08-24  Jim Meyering  <jim@meyering.net>
83828
83829         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83830         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83831
83832 2005-08-24  Jim Meyering  <jim@meyering.net>
83833
83834         * modules/fcntl-safer: New module.
83835         * modules/fts (Depends-on): Add fcntl-safer.
83836         * MODULES.html.sh (File descriptor based Input/Output):
83837         Add fcntl-safer.
83838
83839 2005-08-24  Bruno Haible  <bruno@clisp.org>
83840
83841         Support for unit test modules.
83842         * modules/README: Mention tests modules.
83843         * modules/TEMPLATE-TESTS: New file.
83844         * gnulib-tool: New options --extract-tests-module, --with-tests and
83845         --tests-base (unused for the moment).
83846         (testsbase, inctests): New variables.
83847         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83848         (func_verify_module): Exclude TEMPLATE-TESTS.
83849         (func_verify_nontests_module, func_verify_tests_module): New functions.
83850         (func_get_dependencies): Add implicit dependency for tests modules.
83851         (func_get_tests_module): New function.
83852         (func_modules_transitive_closure): When --with-tests was specified,
83853         include the unit tests as well, unless explicitly avoided.
83854         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83855         (func_emit_tests_Makefile_am): New function.
83856         (func_create_testdir): When --with-tests was specified, emit a
83857         tests/ directory.
83858         * MODULES.html.sh (Future developments): Update.
83859
83860 2005-08-24  Bruno Haible  <bruno@clisp.org>
83861
83862         * modules/tls-tests: New file.
83863         * tests/test-tls.c: New file, from GNU gettext.
83864
83865 2005-08-24  Bruno Haible  <bruno@clisp.org>
83866
83867         * modules/lock-tests: New file.
83868         * tests/test-lock.c: New file, from GNU gettext.
83869
83870 2005-08-24  Bruno Haible  <bruno@clisp.org>
83871
83872         * lib/lock.h: Add multiple inclusion guard.
83873         * lib/tls.h: Add multiple inclusion guard.
83874
83875 2005-08-24  Bruno Haible  <bruno@clisp.org>
83876
83877         * gnulib-tool: Add support for the --aux-dir option to
83878         --create-testdir, --create-megatestdir, --test, --megatest.
83879         (func_create_testdir, func_create_megatestdir): Optionally emit a
83880         AC_CONFIG_AUX_DIR directive.
83881         (create-testdir, create-megatestdir, test, megatest): Provide a
83882         default value for $auxdir.
83883
83884 2005-08-24  Bruno Haible  <bruno@clisp.org>
83885
83886         * gnulib-tool (import): Use compound statement instead of subshell
83887         where possible.
83888
83889 2005-08-24  Bruno Haible  <bruno@clisp.org>
83890
83891         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83892
83893 2005-08-24  Bruno Haible  <bruno@clisp.org>
83894
83895         * gnulib-tool (func_version): Update.
83896
83897 2005-08-24  Bruno Haible  <bruno@clisp.org>
83898
83899         * gnulib-tool (func_import, func_create_testdir,
83900         func_create_megatestdir): Quote all autoconf macro arguments.
83901
83902 2005-08-24  Bruno Haible  <bruno@clisp.org>
83903
83904         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83905         option --force, because --force causes the aclocal.m4 of each
83906         subdirectory to be newer than the corresponding config.h.in.
83907
83908 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83911         All contents moved to gl_REGEX.
83912         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83913         assume that it does.
83914
83915 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         * lib/regex.h (REG_NOSYS)
83918         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83919         Define, since POSIX requires it as of 2001.
83920         (_REG_ENOSYS)
83921         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83922         New private symbol, used to keep the enum signed in all cases.
83923         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83924         Youngman in
83925         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83926
83927         * lib/regex_internal.c (re_string_skip_chars, register_state):
83928         (calc_state_hash):
83929         Remove forward decls; no longer needed now that we use prototypes.
83930         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83931         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83932         (clean_state_log_if_needed): Likewise.
83933
83934 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * config/srclist.txt: Add glibc bugs 1231-1233.
83937
83938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         Fix problems reported by Sam Steingold in
83941         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83942         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83943         assumed that reg_errcode_t is a signed type, which is not
83944         necessarily true if _XOPEN_SOURCE is not defined.
83945         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83946         since some compilers warn about it otherwise.
83947
83948 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83951         (init_word_char, create_initial_state, duplicate_node_closure):
83952         (fetch_token, peek_token_bracket, build_range_exp):
83953         (build_collating_symbol): Remove forward decls; no longer needed
83954         now that we use prototypes.
83955
83956         * lib/regcomp.c:
83957         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83958         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83959         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83960         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83961         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83962         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83963         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83964         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83965         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83966         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83967         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83968         (build_charclass, build_charclass_op, fetch_number, create_tree):
83969         (create_token_tree, mark_opt_subexp, duplicate_tree):
83970         Use prototypes rather than old-style definitions.
83971
83972         * lib/regex_internal.c:
83973         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83974         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83975         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83976         (re_string_reconstruct, re_string_peek_byte_case):
83977         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83978         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83979         (re_node_set_init_copy, re_node_set_add_intersect):
83980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83982         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83983         (re_acquire_state, re_acquire_state_context, register_state):
83984         (create_ci_newstate, create_cd_newstate, free_state):
83985         Likewise.
83986         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83987         re_search_2):
83988         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83989         (re_search_internal, prune_impossible_nodes):
83990         (acquire_init_state_context, check_matching, static):
83991         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83992         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83993         (update_regs, sift_states_backward, build_sifted_states):
83994         (clean_state_log_if_needed, merge_state_array):
83995         (update_cur_sifted_state, add_epsilon_src_nodes):
83996         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83997         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83998         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83999         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84000         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84001         (check_arrival, check_arrival_add_next_nodes):
84002         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84003         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84004         (check_node_accept_bytes, check_node_accept, extend_buffers):
84005         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84006         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84007         (sift_ctx_init):
84008         Likewise.
84009
84010         * lib/regex_internal.h:
84011         (re_string_allocate, re_string_construct, re_string_reconstruct):
84012         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84013         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84014         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84015         (re_string_context_at, re_string_peek_byte_case):
84016         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84017         is defined, since we now use prototypes always.
84018
84019         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84020         C89 or better.  All uses removed.
84021
84022 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84023
84024         * config/srclist.txt: Add glibc bugs 1220-1227.
84025
84026 2005-08-20  Jim Meyering  <jim@meyering.net>
84027
84028         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84029         of unused local, dfa.
84030
84031 2005-08-20  Bruno Haible  <bruno@clisp.org>
84032
84033         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84034
84035 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84036
84037         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84038         (re_node_set_insert_last, re_dfa_add_node):
84039         Rename local variables to avoid GCC shadowing warnings.
84040
84041 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84042
84043         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84044         [defined lint]: Suppress bogus uninitialized-variable warnings.
84045
84046         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84047         and let the caller return REG_ESPACE if out of space.  This
84048         removes an uninitialied-variable warning with GCC 4.0.1, and also
84049         avoids taking the address of a local variable.  All callers
84050         changed.
84051
84052 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84053
84054         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84055         $LIBCSRC/posix/regexec.c.
84056         Add glibc bug 1217 for regcomp.c.
84057
84058 2005-08-19  Jim Meyering  <jim@meyering.net>
84059
84060         * lib/regexec.c (proceed_next_node): Redo local variables to
84061         avoid GCC shadowing warnings.
84062
84063 2005-08-18  Bruno Haible  <bruno@clisp.org>
84064
84065         * lib/strstr.c (strstr): Fix return value in multibyte case.
84066         * lib/strcasestr.c (strcasestr): Likewise.
84067
84068 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84069
84070         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84071
84072 2005-08-17  Jim Meyering  <jim@meyering.net>
84073
84074         Make the %s format (seconds since the epoch) work for a negative
84075         number and when used with a zero-padded field width, e.g. %015s.
84076
84077         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84078         label so that it precedes the code to set `digits'.  Otherwise,
84079         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84080         print `00-22'.  Now, it prints `-0022', as it should.
84081
84082 2005-08-17  Bruno Haible  <bruno@clisp.org>
84083
84084         * modules/strstr (Files): Add m4/mbrtowc.m4.
84085         (Depends-on): Add mbuiter.
84086
84087 2005-08-17  Bruno Haible  <bruno@clisp.org>
84088
84089         * modules/strcasestr: New file.
84090         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84091         strcasestr.
84092
84093 2005-08-17  Bruno Haible  <bruno@clisp.org>
84094
84095         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84096
84097 2005-08-17  Bruno Haible  <bruno@clisp.org>
84098
84099         * modules/mbuiter: New file.
84100         * MODULES.html.sh (Extended multibyte and wide character utilities):
84101         Add mbuiter.
84102
84103 2005-08-17  Bruno Haible  <bruno@clisp.org>
84104
84105         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84106         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84107
84108 2005-08-17  Bruno Haible  <bruno@clisp.org>
84109
84110         * m4/strcasestr.m4: New file.
84111
84112 2005-08-17  Bruno Haible  <bruno@clisp.org>
84113
84114         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84115         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84116
84117 2005-08-17  Bruno Haible  <bruno@clisp.org>
84118
84119         * lib/strcasestr.h: New file.
84120         * lib/strcasestr.c: New file.
84121
84122 2005-08-17  Bruno Haible  <bruno@clisp.org>
84123
84124         * lib/strcasecmp.c: Use mbuiter.h.
84125
84126 2005-08-17  Bruno Haible  <bruno@clisp.org>
84127
84128         * lib/mbuiter.h: New file.
84129
84130 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84133         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84134         and gl_GETOPT are both invoked via different paths (as happens
84135         with GNU tar CVS because it uses both argp and getopt), the former
84136         wins.
84137
84138 2005-08-16  Bruno Haible  <bruno@clisp.org>
84139
84140         * modules/tls: New file.
84141         * MODULES.html.sh (Multithreading): Add tls.
84142
84143 2005-08-16  Bruno Haible  <bruno@clisp.org>
84144
84145         * modules/strnlen1: New file.
84146         * MODULES.html.sh (String handling): Add strnlen1.
84147
84148 2005-08-16  Bruno Haible  <bruno@clisp.org>
84149
84150         * modules/strcase (Files): Add m4/mbrtowc.m4.
84151         (Depends-on): Add strnlen1, mbchar.
84152
84153 2005-08-16  Bruno Haible  <bruno@clisp.org>
84154
84155         * modules/mbiter: New file.
84156         * MODULES.html.sh (Extended multibyte and wide character utilities):
84157         Add mbiter.
84158
84159 2005-08-16  Bruno Haible  <bruno@clisp.org>
84160
84161         * modules/mbfile: New file.
84162         * MODULES.html.sh (Extended multibyte and wide character utilities):
84163         Add mbfile.
84164
84165 2005-08-16  Bruno Haible  <bruno@clisp.org>
84166
84167         * modules/mbchar: New file.
84168         * MODULES.html.sh (Extended multibyte and wide character utilities):
84169         New section.
84170
84171 2005-08-16  Bruno Haible  <bruno@clisp.org>
84172
84173         * m4/tls.m4: New file, from GNU gettext.
84174
84175 2005-08-16  Bruno Haible  <bruno@clisp.org>
84176
84177         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84178         always.
84179         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84180
84181 2005-08-16  Bruno Haible  <bruno@clisp.org>
84182
84183         * m4/mbiter.m4: New file.
84184
84185 2005-08-16  Bruno Haible  <bruno@clisp.org>
84186
84187         * m4/mbfile.m4: New file.
84188
84189 2005-08-16  Bruno Haible  <bruno@clisp.org>
84190
84191         * m4/mbchar.m4: New file.
84192
84193 2005-08-16  Bruno Haible  <bruno@clisp.org>
84194
84195         * lib/tls.h: New file, from GNU gettext.
84196         * lib/tls.c: New file, from GNU gettext.
84197
84198 2005-08-16  Bruno Haible  <bruno@clisp.org>
84199
84200         * lib/strnlen1.h: New file.
84201         * lib/strnlen1.c: New file.
84202
84203 2005-08-16  Bruno Haible  <bruno@clisp.org>
84204
84205         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84206         (mbi_init): Update.
84207         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84208         NUL byte, not after it.
84209
84210 2005-08-16  Bruno Haible  <bruno@clisp.org>
84211
84212         * lib/strcase.h (strcasecmp): Add note in comments.
84213         * lib/strncasecmp.c: Use code from strcasecmp.c.
84214         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84215         (strcasecmp): Work correctly in multibyte locales.
84216
84217 2005-08-16  Bruno Haible  <bruno@clisp.org>
84218
84219         * lib/mbiter.h: New file.
84220
84221 2005-08-16  Bruno Haible  <bruno@clisp.org>
84222
84223         * lib/mbfile.h: New file.
84224
84225 2005-08-16  Bruno Haible  <bruno@clisp.org>
84226
84227         * lib/mbchar.h: New file.
84228         * lib/mbchar.c: New file.
84229
84230 2005-08-16  Bruno Haible  <bruno@clisp.org>
84231
84232         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84233         the valid ones. Makes the comparison operations transitive:
84234         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84235         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84236
84237 2005-08-15  Simon Josefsson  <jas@extundo.com>
84238
84239         * modules/ssize_t (License): Change to 'unlimited'.
84240
84241         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84242
84243 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84246         Add comments for each pending glibc patch.
84247
84248 2005-08-15  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84251         __cplusplus is defined.
84252
84253 2005-08-14  Jim Meyering  <jim@meyering.net>
84254
84255         Sync from coreutils.
84256
84257         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84258         Use the hash-table-based cycle-detection code not just when
84259         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84260         Reported by James Youngman in
84261         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84262         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84263         FTS_TIGHT_CYCLE_CHECK.
84264         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84265         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84266         once again.
84267         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84268         * lib/fts.c (fd_safer): Remove decl.
84269         Include fcntl--.h rather than unistd-safer.h
84270         (fts_safe_changedir): Don't call fd_safer; no longer needed
84271         now that we include fcntl--.h.
84272
84273 2005-08-12  Simon Josefsson  <jas@extundo.com>
84274
84275         * modules/getndelim2: Use ssize_t module.
84276         * modules/getnline: Likewise.
84277         * modules/safe-read: Likewise.
84278         * modules/xreadlink: Likewise.
84279
84280         * modules/ssize_t: New file.
84281
84282 2005-08-12  Simon Josefsson  <jas@extundo.com>
84283
84284         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84285
84286 2005-08-12  Simon Josefsson  <jas@extundo.com>
84287
84288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84289         ssize_t.
84290
84291 2005-08-12  Simon Josefsson  <jas@extundo.com>
84292
84293         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84294         readline, getdelim and check_version.
84295         (Support for systems lacking ISO C 99: Sizes of integer types):
84296         Add size_max.
84297
84298 2005-08-12  Bruno Haible  <bruno@clisp.org>
84299
84300         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84301
84302 2005-08-11  Simon Josefsson  <jas@extundo.com>
84303
84304         * modules/readline: New file.
84305
84306         * modules/strnlen (Files): Add strnlen.h.
84307
84308 2005-08-11  Simon Josefsson  <jas@extundo.com>
84309
84310         * m4/readline.m4: New file.
84311
84312 2005-08-11  Simon Josefsson  <jas@extundo.com>
84313
84314         * lib/readline.h, readline.c: New file.
84315
84316 2005-08-11  Simon Josefsson  <jas@extundo.com>
84317
84318         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84319         gl_AVOID.
84320
84321 2005-08-11  Bruno Haible  <bruno@clisp.org>
84322
84323         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84324
84325 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84326
84327         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84328
84329 2005-08-10  Simon Josefsson  <jas@extundo.com>
84330
84331         * tests/test-iconvme.c: New file.
84332
84333 2005-08-10  Simon Josefsson  <jas@extundo.com>
84334
84335         * m4/strnlen.m4: New file.
84336
84337         * m4/strndup.m4: Don't check for strnlen declaration, done in
84338         strnlen.m4.
84339
84340 2005-08-10  Simon Josefsson  <jas@extundo.com>
84341
84342         * lib/strndup.c: Use strnlen.h.
84343
84344         * lib/strnlen.h: New file.
84345
84346 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84347
84348         * README: Typos.
84349
84350 2005-08-02  Simon Josefsson  <jas@extundo.com>
84351
84352         * modules/readline: New file.
84353
84354 2005-08-02  Simon Josefsson  <jas@extundo.com>
84355
84356         * modules/getdelim: New file.
84357
84358         * modules/getline: Rewrite, don't use getndelim2.
84359
84360 2005-08-02  Simon Josefsson  <jas@extundo.com>
84361
84362         * m4/getline.m4: Separate out getdelim stuff into separate module.
84363
84364         * m4/getdelim.m4: New file.
84365
84366 2005-08-02  Simon Josefsson  <jas@extundo.com>
84367
84368         * lib/getline.h, getline.c: Rewrite.
84369
84370         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84371
84372 2005-07-31  Bruno Haible  <bruno@clisp.org>
84373
84374         * lib/lock.h (gl_lock_initializer): New macro.
84375         (gl_lock_define_initialized): Use it.
84376         (gl_rwlock_initializer): New macro.
84377         (gl_rwlock_define_initialized): Use it.
84378         (gl_recursive_lock_initializer): New macro.
84379         (gl_recursive_lock_define_initialized): Use it.
84380
84381 2005-07-30  Karl Berry  <karl@gnu.org>
84382
84383         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84384         Report from Ben Pfaff, regarding getopt.
84385
84386 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84389         normal way.
84390         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84391         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84392         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84393         (gl_GETOPT): Use the new macros.  Most of the implementation
84394         is moved to the new macros.  This is for programs like Emacs
84395         that don't want all the functionality of gl_GETOPT.
84396
84397 2005-07-26  Bruno Haible  <bruno@clisp.org>
84398
84399         * m4/lock.m4: Update from GNU gettext.
84400
84401 2005-07-26  Bruno Haible  <bruno@clisp.org>
84402
84403         * lib/lock.h: Update from GNU gettext.
84404         * lib/lock.c: Update from GNU gettext.
84405
84406 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84407
84408         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84409         obsolescent AC_TRY_RUN.  Include the default includes files, for
84410         'exit'.
84411
84412 2005-07-24  Bruno Haible  <bruno@clisp.org>
84413
84414         * modules/visibility: New file.
84415         * MODULES.html.sh (Misc): Add visibility.
84416
84417 2005-07-24  Bruno Haible  <bruno@clisp.org>
84418
84419         * m4/visibility.m4: New file.
84420
84421 2005-07-24  Bruno Haible  <bruno@clisp.org>
84422
84423         * doc/visibility.texi: New file.
84424
84425 2005-07-22  Bruno Haible  <bruno@clisp.org>
84426
84427         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84428         $(ALLOCA_H), redundant through BUILT_SOURCES.
84429         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84430         redundant through BUILT_SOURCES.
84431         * modules/byteswap (Makefile.am): Remove explicit dependency on
84432         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84433         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84434         $(FNMATCH_H), redundant through BUILT_SOURCES.
84435         * modules/getopt (Makefile.am): Remove explicit dependency on
84436         $(GETOPT_H), redundant through BUILT_SOURCES.
84437         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84438         redundant through BUILT_SOURCES.
84439         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84440         redundant through BUILT_SOURCES.
84441         * modules/stdbool (Makefile.am): Remove explicit dependency on
84442         $(STDBOOL_H), redundant through BUILT_SOURCES.
84443         * modules/stdint (Makefile.am): Remove explicit dependency on
84444         $(STDINT_H), redundant through BUILT_SOURCES.
84445         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84446         Remove explicit dependency on $(SYSEXITS_H).
84447         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84448
84449 2005-07-18  Simon Josefsson  <jas@extundo.com>
84450
84451         * lib/check-version.c (check_version): Accept identical versions too.
84452
84453 2005-07-18  Bruno Haible  <bruno@clisp.org>
84454
84455         * modules/lock: New file.
84456         * MODULES.html.sh (Multithreading): New section.
84457
84458 2005-07-18  Bruno Haible  <bruno@clisp.org>
84459
84460         * m4/lock.m4: New file, from GNU gettext.
84461
84462 2005-07-18  Bruno Haible  <bruno@clisp.org>
84463
84464         * lib/lock.h: New file, from GNU gettext.
84465         * lib/lock.c: New file, from GNU gettext.
84466
84467 2005-07-18  Bruno Haible  <bruno@clisp.org>
84468
84469         * lib/lock.h (gl_once_t): New type.
84470         (gl_once_define, gl_once): New macros.
84471         * lib/lock.c (fresh_once): New variable.
84472         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84473         functions.
84474
84475 2005-07-16  Simon Josefsson  <jas@extundo.com>
84476
84477         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84478         workaround, suggested by Bruno.
84479
84480 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84481
84482         * modules/xalloc (Depends-on): Add xalloc-die.
84483         * modules/xvasprintf (Depends-on): Add xalloc-die.
84484
84485 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84486
84487         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84488         with a minor change.
84489
84490 2005-07-15  Bruno Haible  <bruno@clisp.org>
84491
84492         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84493         When using lib/poll.c, define poll as rpl_poll.
84494
84495 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84496
84497         * modules/argp (Depends-on): Remove unlocked-io.
84498
84499 2005-07-14  Derek Price  <derek@ximbiot.com>
84500
84501         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84502         for glob symlink bug.
84503
84504 2005-07-14  Bruno Haible  <bruno@clisp.org>
84505
84506         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84507         Instead, test for *_unlocked function declarations directly.
84508
84509 2005-07-11  Simon Josefsson  <jas@extundo.com>
84510
84511         * modules/size_max: New file.
84512
84513         * modules/xsize: Depend on size_max module for size_max.m4.
84514
84515 2005-07-11  Simon Josefsson  <jas@extundo.com>
84516
84517         * lib/size_max.h: New file.
84518
84519 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84520
84521         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84522         copyright symbol and the year.
84523         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84524         (version_etc_va): Use parameterized copyright notice.
84525         Reword to conform to the current GNU coding standards.
84526
84527 2005-07-11  Karl Berry  <karl@gnu.org>
84528
84529         * doc/gnulib.texi (Quoting): new node.
84530         (Initial import): more info, from Patrice.
84531
84532 2005-07-11  Bruno Haible  <bruno@clisp.org>
84533
84534         * gnulib-tool (func_usage): Document option --avoid.
84535         (Command line options): Handle --avoid.
84536         (func_acceptable): New function.
84537         (func_modules_transitive_closure): Use it.
84538
84539 2005-07-11  Bruno Haible  <bruno@clisp.org>
84540
84541         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84542         Reported by Jim Meyering.
84543
84544 2005-07-10  Bruno Haible  <bruno@clisp.org>
84545
84546         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84547         Needed when size_t is smaller than 'unsigned int'.
84548         Reported by Paul Eggert.
84549
84550 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84551
84552         * modules/argp (Depends-on): Add unlocked-io
84553
84554 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84555
84556         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84557         block of defines.
84558
84559 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84562         fix now.
84563
84564 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84565         and Paul Eggert  <eggert@cs.ucla.edu>
84566
84567         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84568         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84569
84570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84571
84572         * modules/regex (Files): Add lib/regex_internal.c,
84573         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84574         (Depends-on): Add extensions.
84575         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84576
84577 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84580         pathconf.
84581         * m4/same.m4 (gl_SAME): Likewise.
84582         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84583
84584         * m4/regex.m4: Adjust to new libc regex implementation.
84585         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84586         all the .c and .h parts of (the new) regex.
84587         Quote the m4 stuff better.
84588         Check for RE_ICASE bug of old gnulib.
84589         Check for REG_STARTEND of recent libc.
84590         Rename local variables from jm_* to gl_*.
84591         Quote operand of "test -f".
84592         Say "recent enough" version of libc, not "version 2".
84593         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84594         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84595         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84596         Remove check for btowc, isascii.
84597         Require AM_LANGINFO_CODESET.
84598
84599 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * lib/regex.c, regex.h: Sync from libc.
84602         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84603         * lib/regexec.c:
84604         New files, synced from libc, except that regex_internal.h
84605         currently has a small porting fix.
84606
84607 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84608
84609         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84610         regex_internal.c, regexec.c.
84611         Add regex_internal.h too, but as a comment, since the libc version
84612         is currently broken in gnulib mode.
84613
84614 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84615
84616         Support programs like Emacs that use gnulib but not gettext.
84617         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84618         * modules/gettext-h: New file.
84619         * modules/gettext (Files): Remove lib/gettext.h.
84620         (Depends-on): Add gettext-h.
84621         (Makefile.am): Remove lib_SOURCES.
84622         * modules/argmatch, modules/c-stack, modules/closeout:
84623         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84624         * modules/execute, modules/file-type, modules/getaddrinfo:
84625         * modules/getopt, modules/human, modules/javacomp:
84626         * modules/javaexec, modules/mkdir-p, modules/obstack:
84627         * modules/openat, modules/pagealign_alloc, modules/pipe:
84628         * modules/quotearg, modules/regex, modules/rpmatch:
84629         * modules/unicodeio, modules/userspec, modules/version-etc:
84630         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84631         * modules/xsetenv:
84632         Depend on gettext-h, not gettext.
84633
84634 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * gnulib-tool (func_import): Add support for 'public domain' license.
84637         * modules/alloca, modules/atexit, modules/memmove:
84638         Now public domain, not GPL.
84639         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84640         * modules/realloc, modules/strerror, modules/strtod:
84641         Now LGPL, not GPL.
84642
84643 2005-07-05  Bruno Haible  <bruno@clisp.org>
84644
84645         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84646         autoconf CVS. Needed for mingw.
84647
84648 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84649
84650         Remove the dependency of the strftime module on the tzset module.
84651         * modules/strftime (Depends-on): Remove dependency on tzset.
84652
84653 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84654
84655         Remove the dependency of the strftime module on the tzset module.
84656         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84657         gl_FUNC_TZSET_CLOBBER.
84658
84659 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84660
84661         Remove the dependency of the strftime module on the tzset module.
84662         * lib/strftime.c (my_strftime)
84663         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84664         Copy the input structure, to work around some of the bug with
84665         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84666         Solaris releases, you should also use the tzset module, but we won't
84667         require it as a dependency any more since we don't want LGPLed code
84668         to depend on GPLed code.
84669
84670 2005-07-02  Jim Meyering  <jim@meyering.net>
84671
84672         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84673         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84674         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84675         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84676
84677 2005-07-02  Jim Meyering  <jim@meyering.net>
84678
84679         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84680
84681 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84682
84683         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84684         declares only 'struct timespec;' (!).
84685
84686 2005-07-01  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84689         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84690         * lib/save-cwd.c, tempname.c:
84691         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84692         and don't include <sys/file.h>).
84693
84694 2005-06-29  Jim Meyering  <jim@meyering.net>
84695
84696         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84697         type name.  Use the variable name instead.
84698         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84699         Likewise.
84700
84701 2005-06-28  Simon Josefsson  <jas@extundo.com>
84702
84703         * modules/check-version (Files): Add check-version.m4.
84704
84705 2005-06-28  Simon Josefsson  <jas@extundo.com>
84706
84707         * m4/check-version.m4: New file, suggested by Jim Meyering
84708         <jim@meyering.net>.
84709
84710 2005-06-28  Simon Josefsson  <jas@extundo.com>
84711
84712         * lib/check-version.h, lib/check-version.c: New files.
84713
84714 2005-06-28  Simon Josefsson  <jas@extundo.com>
84715
84716         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84717         collision with global variable.  Better indentation.  Don't
84718         increment buffer pointer beyond buffer end.  Based on comments
84719         from Paul Eggert <eggert@cs.ucla.edu>.
84720
84721         * lib/base64.h: Indent.
84722
84723 2005-06-28  Simon Josefsson  <jas@extundo.com>
84724
84725         * doc/gnulib.texi (Library version handling): New section.
84726
84727 2005-06-28  Jim Meyering  <jim@meyering.net>
84728
84729         * check-module (find_included_lib_files): Hard-code another
84730         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84731         but modules/fts-lgpl (correctly) does not list those files.
84732
84733         * modules/canonicalize (Files): Add lib/pathmax.h.
84734
84735 2005-06-25  Simon Josefsson  <jas@extundo.com>
84736
84737         * modules/check-version: New file.
84738
84739 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84740
84741         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84742         initializer of struct addrinfo, as an indication that we don't
84743         care how many members the structure has.
84744
84745 2005-06-24  Derek Price  <derek@ximbiot.com>
84746         and Bruno Haible  <bruno@clisp.org>
84747
84748         Remove stat module & update lstat.
84749         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84751         * m4/stat.m4: Remove this file.
84752
84753 2005-06-24  Derek Price  <derek@ximbiot.com>
84754         and Bruno Haible  <bruno@clisp.org>
84755
84756         Remove stat module & update lstat.
84757         * lib/stat.c: Remove this file...
84758         (slash_aware_lstat): ...moving this content and its support...
84759         * lib/lstat.c (rpl_lstat): ...into here.
84760         * lib/lstat.h: New file.
84761
84762 2005-06-24  Derek Price  <derek@ximbiot.com>
84763         and Bruno Haible  <bruno@clisp.org>
84764
84765         Remove stat module & update lstat.
84766         * config/srclist.txt (libc sources): Remove stat.
84767
84768 2005-06-24  Derek Price  <derek@ximbiot.com>
84769         and Bruno Haible  <bruno@clisp.org>
84770
84771         Remove stat module & update lstat.
84772         * MODULES.html.sh (stat): Remove.
84773         * MODULES.html: Regenerated.
84774         * modules/lstat (Description): Correct function name.
84775         (Files): Add "lstat.h".
84776         (Depends-on): Remove stat, add xalloc, stat-macros.
84777         * modules/stat: Remove this file.
84778         (Include): Add "lstat.h", remove <sys/stat.h>.
84779
84780 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84783         (ranged_convert): Don't save conversion in a temporary struct.
84784         This causes a warning with GCC 4.0.0, and anyway in the typical
84785         case it's not worth the extra 100 bytes or so of code.
84786         (ranged_convert, __mktime_internal): When calling a function via a
84787         pointer P, use P () rather than (*P) (), as we now assume C89 or
84788         better.
84789
84790 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84793         "who -r" failed to give output.  Problem reported by Tim Waugh.
84794
84795         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84796         (xcalloc): Use it to avoid needless tests.
84797         Problem reported by Jim Meyering.
84798
84799 2005-06-20  Derek Price  <derek@ximbiot.com>
84800
84801         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84802         unnecessary for Autoconfs > 2.59c.
84803
84804 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84805
84806         * lib/argp.h (__option_is_short): Check upper limit of
84807         __key. Isprint() requires its argument to have the value
84808         of an unsigned char or EOF.
84809
84810 2005-06-16  Jim Meyering  <jim@meyering.net>
84811
84812         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84813         when either N or S is zero.
84814
84815 2005-06-16  Derek Price  <derek@ximbiot.com>
84816
84817         * m4/bison.m4: Declare YACC & YFLAGS precious.
84818
84819 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84822         multibyte string or pattern, fall back on unibyte matching.
84823         Problem reported by James Youngman.
84824
84825 2005-06-08  Bruno Haible  <bruno@clisp.org>
84826
84827         * modules/csharpcomp: New file.
84828         * MODULES.html.sh (C#): Add csharpcomp.
84829
84830 2005-06-08  Bruno Haible  <bruno@clisp.org>
84831
84832         * m4/csharpcomp.m4: New file, from GNU gettext.
84833
84834 2005-06-08  Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/csharpcomp.h: New file, from GNU gettext.
84837         * lib/csharpcomp.c: New file, from GNU gettext.
84838         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84839
84840 2005-06-08  Bruno Haible  <bruno@clisp.org>
84841
84842         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84843         warning on mingw.
84844
84845 2005-06-07  Derek Price  <derek@ximbiot.com>
84846
84847         Sync from CVS.
84848         * lib/glob_.h: Indent nested #ifdef.
84849
84850 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         Sync from coreutils.
84853         Use "file name" when talking about file names, instead of "filename"
84854         or "path", as per the GNU coding standards.
84855         * lib/mkdir-p.c: Renamed from makepath.c.
84856         (make_dir_parents): Renamed from make_path.  All callers changed.
84857         * lib/mkdir-p.h: Likewise.  All includers changed.
84858         * lib/filenamecat.c: Renamed from path-concat.c.
84859         (file_name_concat): Renamed from path_concat.  All callers changed.
84860         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84861         * lib/filenamecat.h: Likewise.  All includers changed.
84862         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84863         in comments or local variable names.
84864         * lib/basename.c: Likewise.
84865         * lib/canonicalize.c, canonicalize.h: Likewise.
84866         * lib/dirname.c, dirname.h: Likewise.
84867         * lib/euidaccess.c: Likewise.
84868         * lib/exclude.c: Likewise
84869         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84870         * lib/fsusage.c, fsuage.h: Likewise.
84871         * lib/fts.c, fts_.h: Likewise.
84872         * lib/getcwd.c: Likewise.
84873         * lib/getloadavg.c: Likewise.
84874         * lib/mkstemp.c: Likewise.
84875         * lib/mountlist.c, mountlist.h: Likewise.
84876         * lib/openat.c, openat.h: Likewise.
84877         * lib/readlink-stub.c: Likewise.
84878         * lib/readutmp.c, readutmp.h: Likewise.
84879         * lib/rename.c: Likewise.
84880         * lib/rmdir.c: Likewise.
84881         * lib/same.c: Likewise.
84882         * lib/savedir.c: Likewise.
84883         * lib/stripslash.c: Likewise.
84884         * lib/tempname.c: Likewise.
84885         * lib/xreadlink.c: Likewise.
84886         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84887         All uses changed.
84888         * lib/exclude.h: Likewise.
84889
84890         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84891         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84892         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84893         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84894         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84895         files have been getting away with it for years (MORE/BSD 4.3
84896         is extinct now).
84897         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84898         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84899
84900         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84901         Define to 256, not 255, as per modern POSIX.
84902
84903 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84904
84905         Sync from coreutils.
84906         Use "file name" when talking about file names, instead of "filename"
84907         or "path", as per the GNU coding standards.
84908         * MODULES.html.sh: mkdir-p renamed from makepath.
84909         filenamecat renamed from path-concat.
84910         * modules/filenamecat: Renamed from modules/path-concat.
84911         (Files): filenamecat.h and filenamecat.c renamed from
84912         path-concat.h and path-concat.c.
84913         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84914         (Include): filenamecat.h, not path-concat.h.
84915         * modules/mkdir-p: Renamed from modules/makepath.
84916         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84917         makepath.c.
84918         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84919         (Include): mkdir-p.h, not makepath.h.
84920
84921 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84922
84923         Sync from coreutils.
84924         * m4/mkdir-p.m4: Renamed from makepath.m4.
84925         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84926         Rename files from makepath.c to mkdir-p.c, and from
84927         makepath.h to mkdir-p.h.
84928         * m4/filenamecat.m4: Renamed from path-concat.m4.
84929         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84930         Rename files from path-concat.c to filenamecat.c,
84931         and from path-concat.h to filenamecat.h.
84932         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84933         "file name" in local variables or comments.
84934         * m4/rename.m4: Likewise.
84935
84936 2005-06-01  Bruno Haible  <bruno@clisp.org>
84937
84938         * modules/csharpexec: New file.
84939         * MODULES.html.sh (C#): New section.
84940
84941 2005-06-01  Bruno Haible  <bruno@clisp.org>
84942
84943         * m4/csharp.m4: New file, from GNU gettext.
84944         * m4/csharpexec.m4: New file, from GNU gettext.
84945
84946 2005-06-01  Bruno Haible  <bruno@clisp.org>
84947
84948         * lib/csharpexec.h: New file, from GNU gettext.
84949         * lib/csharpexec.c: New file, from GNU gettext.
84950         * lib/csharpexec.sh.in: New file, from GNU gettext.
84951
84952 2005-05-31  Derek Price  <derek@ximbiot.com>
84953             Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         Sync from cvs.
84956         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84957
84958 2005-05-31  Derek Price  <derek@ximbiot.com>
84959             Paul Eggert  <eggert@cs.ucla.edu>
84960
84961         Sync from cvs.
84962         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84963
84964 2005-05-29  Derek Price  <derek@ximbiot.com>
84965
84966         * config/srclist.txt (glob_.h, glob.c): Add these files.
84967
84968 2005-05-29  Derek Price  <derek@ximbiot.com>
84969
84970         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84971         * modules/glob: New file.
84972         * modules/getlogin_r: Add link to POSIX spec in description.
84973
84974 2005-05-29  Derek Price  <derek@ximbiot.com>
84975             Paul Eggert  <eggert@cs.ucla.edu>
84976
84977         * m4/glob.m4: New file.
84978
84979 2005-05-29  Derek Price  <derek@ximbiot.com>
84980             Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * lib/glob_.h, lib/glob.c: New files.
84983
84984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84987         * modules/fts-lgpl (Depends-on): Remove gettext.
84988
84989 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84992         and don't require gt_INTTYPES_PRI.
84993
84994 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84997
84998         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84999         the configuration hassle isn't worth it.
85000         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85001         (LONGEST_MODIFIER, PRIuMAX): Remove.
85002
85003 2005-05-27  Bruno Haible  <bruno@clisp.org>
85004
85005         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85006
85007 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85010         _POSIX_PTHREAD_SEMANTICS for Solaris.
85011
85012 2005-05-25  Derek Price  <derek@ximbiot.com>
85013
85014         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85015
85016 2005-05-25  Derek Price  <derek@ximbiot.com>
85017             Paul Eggert  <eggert@cs.ucla.edu>
85018
85019         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85020         * lib/getlogin_r.c, getlogin_r.h: New files.
85021
85022 2005-05-25  Bruno Haible  <bruno@clisp.org>
85023             Derek Price  <derek@ximbiot.com>
85024
85025         * lib/getlogin_r.h: Simplify API documentation.
85026
85027 2005-05-23  Derek Price  <derek@ximbiot.com>
85028
85029         * modules/minmax (Files): Add m4/minmax.m4.
85030         (configure.ac): Add gl_MINMAX.
85031
85032 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85035         so that unistd-safer.h (GPL'ed code) need not be included.
85036
85037 2005-05-22  Bruno Haible  <bruno@clisp.org>
85038
85039         * m4/minmax.m4: New file.
85040         Based on a patch by Derek Price <derek@ximbiot.com>.
85041
85042 2005-05-22  Bruno Haible  <bruno@clisp.org>
85043
85044         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85045         (INT64_MIN): Fix definition.
85046         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85047
85048         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85049         NEED_SIGNED_INT_TYPES.
85050
85051         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85052         HAVE_SYSTEM_INTTYPES.
85053
85054 2005-05-22  Bruno Haible  <bruno@clisp.org>
85055
85056         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85057         Also include <sys/param.h> if it defines MIN, MAX.
85058         Based on a patch by Derek Price <derek@ximbiot.com>.
85059
85060 2005-05-21  Jim Meyering  <jim@meyering.net>
85061
85062         * modules/fts (Files): Add m4/inttypes-pri.m4.
85063         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85064
85065 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85066
85067         New fts module.
85068         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85069         (setup_dir, free_dir): New functions.
85070         (enter_dir, leave_dir): Define trivial
85071         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85072         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85073         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85074         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85075         Move to fts-cycle.c.
85076         (fts_open): Use setup_dir.
85077         (fts_close): Use free_dir.
85078         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85079         This adds a label and some gotos, but the alternatives were messier.
85080         Check for memory allocation failure when entering a dir.
85081         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85082         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85083         (FTS): New member fts_cycle, that is a union that contains the
85084         old active_dir_ht and cycle_state.  All uses changed to mention
85085         fts_cycle.ht and fts_cycle.state.
85086         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85087         fts.c, with the following changes:
85088         (setup_dir, free_dir): New functions.
85089         (enter_dir): Now returns bool.  Return true if successful, false
85090         if memory exhausted.  All callers changed.
85091         Do not bother partly cleaning up on
85092         memory allocation failure; that is free_dir's job.
85093         However, free ad if hash_insert fails, to avoid memory leak.
85094         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85095         fts->fts_options to see which union member to use.
85096
85097 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85098
85099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85100         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85101
85102 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85105
85106 2005-05-20  Jim Meyering  <jim@meyering.net>
85107
85108         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85109         Now a macro, to pacify GCC.
85110
85111 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85112
85113         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85114         of -1.
85115
85116 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85117
85118         * lib/chown.c (rpl_chown): Return -1 on failure.
85119
85120 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85123         Don't check for stddef.h.
85124         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85125         don't use its results.
85126         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85127         since we include them unconditionally.  Don't require
85128         AM_STDBOOL_H, since stdbool is a prerequisite.
85129         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85130         since we assume C89 or better.
85131         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85132         as we don't use their results.
85133         Don't check for fchdir, memmove, memset, strrchr, as we use
85134         them unconditionally.
85135         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85136         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85137
85138 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85141         Include <stddef.h> unconditionally, since we assume C89 now.
85142         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85143         * lib/fts.c: Include fts_.h first, to check interface.
85144         Do not include intprops.h; no longer needed.
85145         Include cycle-check.h and hash.h, since fts_.h no longer does.
85146         Remove unnecessary casts of closedir to void.
85147         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85148         decide whether to decrement nlinks.
85149         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85150         (FTS): Use struct hash_table * instead of Hash_table, so that
85151         we no longer need to include hash.h here.
85152
85153 2005-05-18  Jim Meyering  <jim@meyering.net>
85154
85155         * modules/dirfd (License): Change to LGPL.  Most of the code
85156         is already in the public domain.
85157
85158 2005-05-18  Jim Meyering  <jim@meyering.net>
85159
85160         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85161         Reported by Yoann Vandoorselaere.
85162
85163 2005-05-17  Jim Meyering  <jim@meyering.net>
85164
85165         * m4/fts.m4: New file, from coreutils.
85166
85167 2005-05-17  Jim Meyering  <jim@meyering.net>
85168
85169         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85170
85171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85172
85173         Sync from coreutils.
85174         * m4/unlinkdir.m4: New file.
85175
85176 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85177
85178         Sync from coreutils.
85179         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85180         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85181         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85182         White space changes only.
85183         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85184         special.
85185         * lib/yesno.c: Include getline.h, not ctype.h.
85186         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85187         Use getline to remove arbitrary restriction on response length.
85188
85189 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * config/srclist-update: Spell out "Street" in FSF postal
85192         mail address; this is the style the FSF seems to prefer.
85193
85194         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85195         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85196         this updates FSF postal mail address.
85197
85198         Sync from coreutils.
85199         * modules/unlinkdir: New file.
85200         * modules/yesno (Depends-on): Add getline.
85201         * MODULES.html.sh (File system functions): Add unlinkdir.
85202
85203 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85206         lib/strsep.h:
85207         Change the initial comment to refer to GPL, not LGPL.
85208         gnulib-tool will change it to LGPL as needed.
85209
85210         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85211         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85212         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85213         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85214         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85215         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85216         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85217         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85218         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85219         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85220         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85221         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85222         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85223         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85224         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85225         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85226         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85227         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85228         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85229         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85230         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85231         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85232         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85233         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85234         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85235         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85236         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85237         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85238         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85239         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85240         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85241         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85242         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85243         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85244         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85245         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85246         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85247         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85248         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85249         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85250         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85251         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85252         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85253         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85254         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85255         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85256         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85257         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85258         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85259         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85260         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85261         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85262         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85263         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85264         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85265         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85266         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85267         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85268         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85269         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85270         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85271         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85272         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85273         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85274         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85275         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85276         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85277         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85278         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85279         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85280         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85281         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85282         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85283         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85284         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85285         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85286         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85287         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85288         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85289         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85290         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85291         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85292         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85293         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85294         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85295         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85296         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85297         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85298         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85299         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85300         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85301         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85302         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85303         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85304         lib/yesno.c, lib/yesno.h:
85305         Update FSF postal mail address.
85306
85307 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85310         tests/test-memmem.c, tests/test-stpncpy.c:
85311         Update FSF postal mail address.
85312
85313 2005-05-13  Bruno Haible  <bruno@clisp.org>
85314
85315         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85316         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85317         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85318         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85319         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85320         Add support for 64-bit integers in the MSVC compiler.
85321
85322 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85323
85324         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85325
85326 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85327
85328         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85329
85330 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * doc/getdate.texi (General date syntax): Don't say that date
85333         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85334         Problem reported by Nic Ferrier.
85335
85336 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85337
85338         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85339         specified in ai_socktype. Fix invalid ai_protocol
85340         check. ai_protocol is usually set to 0 or depending on
85341         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85342         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85343         ai_socktype / ai_protocol in the returned addrinfo structure.
85344
85345 2005-05-10  Simon Josefsson  <jas@extundo.com>
85346
85347         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85348         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85349
85350 2005-05-10  Karl Berry  <karl@gnu.org>
85351
85352         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85353         (from http://www.gnu.org/licenses).
85354         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85355         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85356         fdl.texi suffices.
85357
85358 2005-05-10  Karl Berry  <karl@gnu.org>
85359
85360         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85361         (COPYING.DOC): remove.
85362
85363         * config/srclist-update: new FSF address.
85364
85365 2005-05-10  Derek Price  <derek@ximbiot.com>
85366
85367         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85368         possible.
85369
85370 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85371             Bruno Haible  <bruno@clisp.org>
85372
85373         * modules/inet_ntop: New file.
85374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85375         inet_ntop.
85376
85377 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85378             Bruno Haible  <bruno@clisp.org>
85379
85380         * m4/inet_ntop.m4: New file.
85381
85382 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85383             Bruno Haible  <bruno@clisp.org>
85384
85385         * lib/inet_ntop.h: New file.
85386         * lib/inet_ntop.c: New file, from glibc with modifications.
85387
85388 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         * modules/time_r (License): Change to LGPL.
85391         * modules/extensions (License): Change to LGPL.  Actually,
85392         the license is more permissive than that, but currently gnulib-tool
85393         doesn't know how to handle more-permissive licenses.
85394
85395         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85396         Problem reported by Dave Love.
85397
85398 2005-05-08  Jim Meyering  <jim@meyering.net>
85399
85400         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85401         blank.
85402
85403 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * modules/argmatch (Depends-on): Add stdbool.
85406         * modules/backupfile (Depends-on): Likewise.
85407         * modules/chdir-long (Depends-on): Likewise.
85408         * modules/closeout (Depends-on): Likewise.
85409         * modules/cycle-check (Depends-on): Likewise.
85410         * modules/dirname (Depends-on): Likewise.
85411         * modules/fnmatch (Depends-on): Likewise.
85412         * modules/fsusage (Depends-on): Likewise.
85413         * modules/fwriteerror (Depends-on): Likewise.
85414         * modules/getcwd (Depends-on): Likewise.
85415         * modules/getloadavg (Depends-on): Likewise.
85416         * modules/hard-locale (Depends-on): Likewise.
85417         * modules/makepath (Depends-on): Likewise.
85418         * modules/mountlist (Depends-on): Likewise.
85419         * modules/nanosleep (Depends-on): Likewise.
85420         * modules/posixtm (Depends-on): Likewise.
85421         * modules/quotearg (Depends-on): Likewise.
85422         * modules/readtokens (Depends-on): Likewise.
85423         * modules/readtokens0 (Depends-on): Likewise.
85424         * modules/readutmp (Depends-on): Likewise.
85425         * modules/save-cwd (Depends-on): Likewise.
85426         * modules/strftime (Depends-on): Likewise.
85427         * modules/userspec (Depends-on): Likewise.
85428         * modules/utimecmp (Depends-on): Likewise.
85429         * modules/xgetcwd (Depends-on): Likewise.
85430         * modules/xnanosleep (Depends-on): Likewise.
85431         * modules/xstrtod (Depends-on): Likewise.
85432         * modules/yesno (Depends-on): Likewise.
85433
85434 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85437         needless checks.
85438
85439 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         Merge from coreutils.  Among other things,
85442         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85443         * lib/fd-safer.c: New file.
85444         * lib/fcntl-safer.h, open-safer.c: Remove.
85445         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85446         * lib/dup-safer.c: Include unistd-safer.h first.
85447         Don't include errno.h.
85448         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85449         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85450         * lib/file-type.c: Rely on file-type.h change.
85451         * lib/getloadavg.c: Include unistd-safer.h.
85452         (getloadavg): Use safer open.
85453         * lib/getusershell.c: Include "stdio-safer.h".
85454         (getusershell): Use safer fopen.
85455         * lib/long-options.c (long_options): Use NULL rather than 0.
85456         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85457         'free'.
85458         * lib/modechange.c: Likewise.
85459         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85460         (MODE_DONE): New constant.
85461         (struct mode_change): Remove 'next' member.
85462         (make_node_op_equals): New function; like the old one of the
85463         same name, except it allocates an array.
85464         (mode_compile, mode_create_from_ref): Use it.
85465         (mode_compile): Allocate result as an array, not a linked list.
85466         Parse octal string ourself, so that we catch mistakes like "+0".
85467         (mode_adjust): Arg is an array, not a linked list.
85468         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85469         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85470         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85471         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85472         Remove.  This is now stat-macros.h's job.
85473         (talloc): Remove.  All callers replaced by xalloc, so that
85474         our invokers don't have to worry about reporting memory failures.
85475         (make_node_op_equals): Remove.
85476         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85477         New constants.
85478         (struct mode_change): Moved here from modechange.h.
85479         (mode_append_entry): Remove.
85480         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85481         apps to have incorrect behavior.  Use simpler algorithm for head
85482         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85483         Detect more invalid usages rather than having somewhat-random behavior.
85484         Don't insert an "a=" action, as that leads to incorrect behavior.
85485         (mode_compile, mode_create_from_ref): Return NULL on error instead
85486         of an enum, since now there's only one way to have an error.  All
85487         callers changed.
85488         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85489         at the correct time.  Simplify calculation of "+u" and its ilk.
85490         Don't mishandle "+X".
85491         (mode_free): Remove "register" and localize decls.
85492         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85493         (struct mode_change): Move to modechange.c; callers don't
85494         need to see this stuff.
85495         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85496         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85497         (mode_change, mode_adjust): Reflect the new signatures noted above.
85498         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85499         that might redefine system include files.
85500         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85501         (my_usleep): Use NULL rather than (void *) 0.
85502         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85503         Use siginterrupt to specify that system calls should be interrupted.
85504         (rpl_nanosleep): Move initialization of suspended closer to call of
85505         my_usleep.
85506         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85507         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85508         (desirable_utmp_entry): New function.
85509         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85510         using x2nrealloc, to simplify logic.
85511         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85512         size calculation.  Do not assume utmp file is a regular file.
85513         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85514         (READ_UTMP_CHECK_PIDS): New constant.
85515         * lib/save-cwd.c: Include unistd-safer.h.
85516         (save_cwd): Use fd_safer.
85517         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85518         [!_LIBC] Include "stat-macros.h" instead.
85519         * lib/unistd-safer.h (fd_safer): New decl.
85520
85521 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85522
85523         * modules/getloadavg (Depends-on): Add unistd-safer.
85524         * modules/getusershell (Depends-on): Add stdio-safer.
85525         * modules/lstat (Depends-on): Remove xalloc.
85526         * modules/mkstemp (Depends-on): Add stat-macros.
85527         * modules/modechange (Depends-on): Remove xstrtol.
85528         Add stat-macros, xalloc.
85529         * modules/save-cwd (Depends-on): Add unistd-safer.
85530         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85531         * modules/unistd-safer (Files): Add lib/fd-safer.c
85532         (Makefile.am): Remove lib_SOURCES.
85533
85534         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85535         Remove fcntl-safer; unistd-safer supersedes it.
85536
85537 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85538
85539         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85540         AC_HEADER_STAT.
85541         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85542         (gl_PREREQ_CHOWN): Remove.
85543         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85544         it.  Don't require AC_HEADER_STAT.
85545         (gl_PREREQ_LSTAT): Remove.
85546         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85547         Don't require AC_HEADER_STAT.
85548         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85549         (gl_PREREQ_RMDIR): Remove.
85550         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85551         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85552         the stat-macros module a prerequisite.
85553         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85554         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85555         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85556         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85557         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85558         variable names.
85559         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85560         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85561         variable prefixes.
85562         * m4/fcntl-safer.m4: Remove.
85563         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85564         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85565         Invoke gl_PREREQ_FD_SAFER.
85566         (gl_PREREQ_FD_SAFER): New macro.
85567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85568         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85569         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85570         Remove duplicate call to AC_LIBOBJ(readutmp).
85571         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85572
85573         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85574         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85575
85576 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85577
85578         * MODULES.html.sh (Misc): Add byteswap.
85579
85580 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85581
85582         * modules/getcwd (Depends-on): Add extensions.
85583         * modules/openat (Depends-on): Likewise.
85584
85585 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85586
85587         * modules/byteswap: New file.
85588
85589 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85590
85591         * m4/byteswap.m4: New file.
85592
85593 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85594
85595         * lib/byteswap_.h: New file.
85596
85597 2005-04-25  Karl Berry  <karl@gnu.org>
85598
85599         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85600
85601 2005-04-25  Albert Chin  <china@thewrittenword.com>
85602
85603         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85604         Toolkit C bug.
85605
85606 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85607
85608         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85609         (func_ln_if_changed): Remove forcibly for no error message
85610         in case file does not exist.
85611
85612 2005-04-19  Simon Josefsson  <jas@extundo.com>
85613
85614         * gnulib-tool (Options): Make --symlink mean --symbolic.
85615
85616 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85617
85618         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85619
85620 2005-04-16  Simon Josefsson  <jas@extundo.com>
85621
85622         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85623
85624 2005-04-15  Simon Josefsson  <jas@extundo.com>
85625
85626         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85627
85628 2005-04-15  Simon Josefsson  <jas@extundo.com>
85629
85630         * gnulib-tool: Rename --symlink to --symbolic.
85631
85632 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85633
85634         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85635         symbolic links to files instead of copying/moving.  Add --aux-dir,
85636         specifying directory relative --dir where auxiliary build tools
85637         are placed.
85638
85639 2005-04-14  Bruno Haible  <bruno@clisp.org>
85640
85641         * modules/allocsa (License): Change to LGPL.
85642         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85643
85644 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85645
85646         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85647         that "UTC +1 second" continues to work.  Problem reported
85648         by Dmitry V. Levin.
85649         (relunit_snumber): New rule.
85650         (relunit): Use it.
85651
85652 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85653
85654         * lib/getdate.y (universal_time_zone_table): New constant.
85655         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85656         universal_time_zone_table.
85657         (lookup_zone): Prefer universal_time_zone_table to
85658         local_time_zone_table, so that "GMT" time stamps are allowed in
85659         London during the summer.  Problem reported by Ian Abbott.
85660
85661 2005-04-12  Jim Meyering  <jim@meyering.net>
85662
85663         * lib/human.c (humblock): Set *options even when returning due to
85664         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85665         warning from gcc-4.
85666
85667 2005-04-09  Jim Meyering  <jim@meyering.net>
85668
85669         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85670         -Wuninitialized: initialize tm0.tm_year.
85671
85672 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85675         count, since there's no maximum.  All uses changed.
85676         Add member dsts_seen.
85677         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85678         not being INT_MAX.
85679         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85680         Use pc_rels_seen to decide whether a date is absolute.
85681
85682         * lib/getdate.y (number): Don't overwrite year.
85683         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85684         check.
85685
85686 2005-04-02  Simon Josefsson  <jas@extundo.com>
85687
85688         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85689         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85690
85691 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85692
85693         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85694         where no absolute path name can be longer than PATH_MAX.
85695
85696 2005-03-27  Jim Meyering  <jim@meyering.net>
85697
85698         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85699
85700 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85703         "one's complement" -> "ones' complement" in comment, as per Knuth.
85704         "value of type" -> "type or expression" in comment.
85705         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85706
85707 2005-03-26  Jim Meyering  <jim@meyering.net>
85708
85709         Comment nits.
85710         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85711         Correct typos: s/or/of/.
85712
85713 2005-03-26  Jim Meyering  <jim@meyering.net>
85714
85715         * modules/check-include-files: Move to ../ and rename to...
85716         * check-module: ...this.
85717
85718 2005-03-25  Jim Meyering  <jim@meyering.net>
85719
85720         * modules/xvasprintf (Files): Add xalloc.h.
85721
85722 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85723
85724         * modules/gettext (Files): config/config.rpath ->
85725         build-aux/config.rpath
85726         * modules/iconv (Files): Likewise.
85727         Problem reported by Oskar Liljeblad.
85728
85729 2005-03-23  Jim Meyering  <jim@meyering.net>
85730
85731         * modules/check-include-files: New script to check for
85732         missing dependencies, multiple includes, etc.
85733
85734         * modules/c-strtold (Depends-on): Add xalloc.
85735         * modules/c-strtod (Depends-on): Add xalloc.
85736         * modules/hash (Depends-on): Add xalloc.
85737         (Files): Remove lib/xalloc.h.
85738
85739         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85740         * modules/userspec (Files): Add lib/inttostr.h.
85741
85742 2005-03-23  Jim Meyering  <jim@meyering.net>
85743
85744         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85745
85746 2005-03-22  Jim Meyering  <jim@meyering.net>
85747
85748         * modules/stat-macros: New module.
85749         * modules/canonicalize, modules/euidaccess, modules/file-type,
85750         * modules/filemode, modules/lchown, modules/makepath,
85751         * modules/rmdir, modules/stat: Depend on new stat-macros module
85752         rather than listing lib/stat-macros.h manually.
85753         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85754
85755 2005-03-22  Jim Meyering  <jim@meyering.net>
85756
85757         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85758
85759 2005-03-22  Bruno Haible  <bruno@clisp.org>
85760
85761         * config/srclist.txt: Replace target directory 'config' with
85762         'build-aux'.
85763         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85764         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85765         ../build-aux/.
85766
85767 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85768
85769         * modules/chdir-long (Depends-on): Add mempcpy.
85770
85771         * modules/acl, modules/backupfile, modules/c-strtod,
85772         modules/c-strtold, modules/canon-host, modules/canonicalize,
85773         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85774         modules/exclude, modules/exitfail, modules/file-type,
85775         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85776         modules/getdate, modules/getline, modules/getpagesize,
85777         modules/getpass, modules/getugroups, modules/group-member,
85778         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85779         modules/inttostr, modules/long-options, modules/makepath,
85780         modules/md5, modules/memcasecmp, modules/memcoll,
85781         modules/modechange, modules/mountlist, modules/path-concat,
85782         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85783         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85784         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85785         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85786         modules/strftime, modules/strndup, modules/strverscmp,
85787         modules/timespec, modules/unlocked-io, modules/userspec,
85788         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85789         modules/yesno:
85790         Remove lib_SOURCES line from Makefile.am section, as this is now
85791         done automatically by the corresponding Autoconf macro.
85792
85793 2005-03-21  Jim Meyering  <jim@meyering.net>
85794
85795         Changes imported from coreutils.
85796
85797         * lib/cycle-check.c: Don't include xalloc.h.
85798
85799         * lib/path-concat.c: Don't include assert.h.
85800         (path_concat): Remove assertion that would have triggered
85801         for ABASE starting with more than one slash.
85802         Reported by Andreas Schwab.
85803
85804         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85805         properly when ABASE is an absolute file name.
85806         Correct the description of this function.
85807         Include <assert.h>.
85808         Add an assertion and a test driver.
85809         This fixes a bug introduced on 2004-07-02.
85810         Andreas Schwab reported the resulting failure of cp --parents:
85811         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85812
85813 2005-03-21  Jim Meyering  <jim@meyering.net>
85814
85815         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85816         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85817
85818 2005-03-21  Jim Meyering  <jim@meyering.net>
85819         and  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85822         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85823         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85824         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85825         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85826         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85827         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85828         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85829         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85830         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85831         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85832         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85833         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85834         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85835         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85836         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85837         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85838         for these modules.
85839
85840 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85841
85842         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85843         (which shouldn't happen), generate nothing instead of returning 0
85844         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85845
85846 2005-03-16  Bruno Haible  <bruno@clisp.org>
85847
85848         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85849         HAVE_LONGLONG_64BIT.
85850
85851 2005-03-16  Bruno Haible  <bruno@clisp.org>
85852
85853         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85854         HAVE_LONGLONG_64BIT.
85855
85856 2005-03-16  Bruno Haible  <bruno@clisp.org>
85857
85858         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85859         HAVE_LONGLONG_64BIT.
85860
85861 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85862
85863         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85864         reliably distinguish strftime failure from empty output on POSIX
85865         hosts.
85866
85867 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85870         (iconv_string): Don't guess a size-zero buffer, as that might cause
85871         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85872         result would be 'too large', where 'too large' is (heuristically)
85873         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85874         overflow concerns.  This will prevent some unwanted malloc failures
85875         when the inputs are very large.
85876
85877 2005-03-15  Karl Berry  <karl@gnu.org>
85878
85879         * config/srclist.txt (config.rpath): from gettext.
85880         * config/config.rpath: update.
85881
85882 2005-03-15  Bruno Haible  <bruno@clisp.org>
85883
85884         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85885         to 'negate'.
85886
85887         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85888         variable.
85889
85890         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85891         results.
85892
85893 2005-03-14  Simon Josefsson  <jas@extundo.com>
85894
85895         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85896         <fx@gnu.org>.
85897
85898 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85901         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85902         intprops.h.
85903         * lib/strtol.c: Likewise.
85904
85905 2005-03-14  Jim Meyering  <jim@meyering.net>
85906
85907         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85908         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85909         to be nonzero so that we (and caller) can detect the difference
85910         between a valid zero-length expansion and an error return, even
85911         when the underlying strftime fails before writing anything into
85912         that location.
85913
85914 2005-03-14  Bruno Haible  <bruno@clisp.org>
85915
85916         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85917         Update from GNU gettext 0.14.3.
85918
85919 2005-03-10  Jim Meyering  <jim@meyering.net>
85920
85921         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85922
85923 2005-03-10  Jim Meyering  <jim@meyering.net>
85924
85925         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85926         so that this module works on systems without fchdir.
85927
85928 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85929
85930         Factor int-properties macros into a single file, except for
85931         glibc-related files.
85932         * lib/intprops.h: New file.
85933         * lib/getloadavg.c: Include it instead of limits.h.
85934         (INT_STRLEN_BOUND): Remove.
85935         * lib/human.c: Include intprops.h.
85936         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85937         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85938         302/1000.
85939         * lib/inttostr.h: Include intprops.h instead of limits.h.
85940         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85941         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85942         for consistency with intprops.h.
85943         (time_t_is_integer, twos_complement_arithmetic): Use them.
85944         * lib/sig2str.h: Include <signal.h>, intprops.h.
85945         (INT_STRLEN_BOUND): Remove.
85946         * lib/strftime.c (TYPE_SIGNED): Remove.
85947         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85948         * lib/strtol.c: Adjust comments to match intprops.h.
85949         * lib/userspec.c: Include intprops.h.
85950         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85951         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85952         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85953         instead of rolling our own expressions.
85954         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85955
85956         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85957         instead of int.
85958         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85959         the right thing even if adding 1900 would overflow.  Similarly
85960         for tm_mon + 1 and tm_yday + 1.
85961         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85962         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85963         (DO_SIGNED_NUMBER): New macro.
85964         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85965
85966 2005-03-07  Bruno Haible  <bruno@clisp.org>
85967
85968         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85969
85970 2005-03-07  Bruno Haible  <bruno@clisp.org>
85971
85972         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85973
85974 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85975
85976         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85977         (func_import): Only replace files via --import when they have actually
85978         changed.
85979
85980 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85981
85982         * m4/mmap-anon.m4: New file.
85983         * m4/pagealign_alloc.m4: New file.
85984
85985 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85986             Bruno Haible  <bruno@clisp.org>
85987
85988         * modules/pagealign_alloc: New file.
85989         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85990
85991 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85992             Bruno Haible  <bruno@clisp.org>
85993
85994         * lib/pagealign_alloc.h: New file.
85995         * lib/pagealign_alloc.c: New file.
85996
85997 2005-03-03  Bruno Haible  <bruno@clisp.org>
85998
85999         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86000         Use an all-permissive copyright notice, recommended by RMS.
86001
86002 2005-03-02  Bruno Haible  <bruno@clisp.org>
86003
86004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86005         of AIX, the replacement has to be done only after <string.h> is
86006         included, therefore not in config.h. stpncpy.h does the replacement,
86007         and stpncpy.c uses it.
86008
86009 2005-03-02  Bruno Haible  <bruno@clisp.org>
86010
86011         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86012         stpncpy.c uses it.
86013
86014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86015
86016         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86017         The workaround isn't strictly needed for POSIX conformance, and
86018         it's too much of a pain to configure and maintain.  We'll ask
86019         people to fix their kernels instead.
86020         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86021         (NANOSLEEP_BUG_WORKAROUND): Remove.
86022         (xnanosleep): Remove the workaround.
86023
86024 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86027         Reported by Derek Price.
86028         (Include): Add "timespec.h".
86029
86030         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86031
86032 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86035         to detect nanosleep bug.
86036
86037 2005-03-01  Bruno Haible  <bruno@clisp.org>
86038
86039         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86040
86041 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86042
86043         * modules/gethrxtime: New file.
86044         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86045         (Depends-on): Add gethrxtime.
86046         (configure.ac): Add gl_XNANOSLEEP.
86047         (Makefile.am): Remove lib_SOURCES line.
86048
86049 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86052         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86053
86054 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86055
86056         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86057         * lib/timespec.h (gettime): Return void, since it always
86058         succeeds now.  All uses changed.
86059         * lib/gettime.c (gettime): Likewise.
86060         [HAVE_NANOTIME]: Prefer nanotime.
86061         Assume gettimeofday succeeds, as POSIX requires.
86062         Assime time () succeeds, since other code already does.
86063         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86064         (timespec_subtract): Remove.
86065         (NANOSLEEP_BUG_WORKAROUND): New constant.
86066         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86067         things considerably.  Use it only on GNU/Linux hosts, since the
86068         workaround shouldn't be needed elsewhere.
86069
86070 2005-02-24  Bruno Haible  <bruno@clisp.org>
86071
86072         * modules/gettext (Files): Add m4/glibc2.m4.
86073
86074 2005-02-24  Bruno Haible  <bruno@clisp.org>
86075
86076         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86077         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86078         * m4/progtest.m4:
86079         Update from GNU gettext 0.14.2.
86080         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86081
86082 2005-02-24  Bruno Haible  <bruno@clisp.org>
86083
86084         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86085         * lib/config.charset: Update from GNU gettext 0.14.2.
86086
86087 2005-02-24  Bruno Haible  <bruno@clisp.org>
86088
86089         * lib/gettext.h: Update from GNU gettext 0.14.2.
86090
86091 2005-02-23  Simon Josefsson  <jas@extundo.com>
86092
86093         * m4/iconvme.m4: New file.
86094
86095 2005-02-23  Jim Meyering  <jim@meyering.net>
86096
86097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86098         change.
86099         Thanks to Bruno Haible for catching it.
86100
86101 2005-02-22  Simon Josefsson  <jas@extundo.com>
86102
86103         * modules/iconvme: New file.
86104
86105         * MODULES.html.sh: Add iconvme.
86106
86107 2005-02-22  Simon Josefsson  <jas@extundo.com>
86108
86109         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86110
86111 2005-02-22  Simon Josefsson  <jas@extundo.com>
86112
86113         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86114
86115 2005-02-22  Jim Meyering  <jim@meyering.net>
86116
86117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86118         s/ifndef/ifdef/.
86119
86120 2005-02-20  Neil Conway  <neilc@samurai.com>
86121
86122         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86123         returned by OSX/Darwin if the specified buffer is not large
86124         enough for the hostname.
86125
86126 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86127
86128         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86129         pass it to _help, otherwise the latter coredumps trying to
86130         dereference state.root_argp.
86131
86132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86133
86134         * modules/chdir-long (Depends-on): Add memrchr.
86135         * modules/memrchr (Files): Add lib/memrchr.h.
86136         (Include): "memrchr.h".
86137
86138 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86139
86140         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86141
86142 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86143
86144         * lib/memrchr.h: New file.
86145         * lib/chdir-long.c: Include it.
86146         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86147         Don't bother including stddef.h.
86148
86149 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86150
86151         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86152         inclusion.
86153         Include <sys/types.h>, for dev_t.
86154         (ME_DUMMY, ME_REMOTE): Move from here....
86155         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86156         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86157         Dmitry V. Levin.
86158         Include mountlist.h first, to test the interface.
86159
86160 2005-01-29  Bruno Haible  <bruno@clisp.org>
86161
86162         * lib/progname.c (program_name): Initialize.
86163         Needed when linking statically on MacOS X.
86164
86165 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86166
86167         Sync from coreutils.
86168         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86169         (Depends-on): Add c-strtod.
86170         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86171
86172 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86173
86174         Sync from coreutils.
86175         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86176
86177         Remove files that are specific to coreutils.
86178         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86179
86180 2005-01-28  Bruno Haible  <bruno@clisp.org>
86181
86182         * modules/javacomp: New file.
86183         * MODULES.html.sh (Java): Add javacomp.
86184
86185 2005-01-28  Bruno Haible  <bruno@clisp.org>
86186
86187         * m4/javacomp.m4: New file, from GNU gettext.
86188
86189 2005-01-28  Bruno Haible  <bruno@clisp.org>
86190
86191         * lib/javacomp.sh.in: New file, from GNU gettext.
86192         * lib/javacomp.h: New file, from GNU gettext.
86193         * lib/javacomp.c: New file, from GNU gettext.
86194
86195 2005-01-26  Simon Josefsson  <jas@extundo.com>
86196
86197         * lib/gai_strerror.c: Use GPL in header.
86198
86199 2005-01-26  Bruno Haible  <bruno@clisp.org>
86200
86201         * modules/javaexec: New file.
86202         * MODULES.html.sh (Java): Add javaexec.
86203
86204 2005-01-26  Bruno Haible  <bruno@clisp.org>
86205
86206         * m4/javaexec.m4: New file, from GNU gettext.
86207
86208 2005-01-26  Bruno Haible  <bruno@clisp.org>
86209
86210         * lib/javaexec.sh.in: New file, from GNU gettext.
86211         * lib/javaexec.h: New file, from GNU gettext.
86212         * lib/javaexec.c: New file, from GNU gettext.
86213
86214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86215
86216         * modules/lchown (Depends-on): Remove lchown.h
86217
86218 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86219
86220         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86221         must be defined if the header file was not found, in order
86222         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86223
86224 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86225
86226         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86227         initializers for struct pentry_state.
86228         (__argp_error): Check return value of __asprintf
86229         (__argp_failure): Translate error message
86230
86231         * lib/argp-parse.c: Removed braces around the expansion of N_()
86232
86233 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86236         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86237         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86238         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86239         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86240         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86241         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86242         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86243         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86244         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86245         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86246         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86247         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86248         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86249         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86250         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86251         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86252         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86253         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86254         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86255         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86256         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86257         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86258         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86259         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86260         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86261         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86262         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86263         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86264         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86265         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86266         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86267         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86268         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86269         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86270         Use an all-permissive copyright notice, recommended by RMS.
86271
86272 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86273
86274         * modules/chdir-long (Depends-on): Remove mempcpy.
86275
86276 2005-01-21  Jim Meyering  <jim@meyering.net>
86277
86278         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86279         same value as for Solaris 9.
86280
86281         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86282         component length.  This included changing the parameter to be
86283         of type `char *' rather than `char const *'.
86284         * lib/chdir-long.h (chdir_long): Update prototype.
86285
86286         * lib/openat.c (fdopendir, fstatat): New functions.
86287         * lib/openat.h: Include headers required for use of DIR and struct
86288         stat.
86289         [AT_SYMLINK_NOFOLLOW]: Define.
86290         (fdopendir, fstatat): Add prototypes.
86291
86292 2005-01-21  Bruno Haible  <bruno@clisp.org>
86293
86294         * modules/classpath: New file.
86295         * MODULES.html.sh (Java): Add classpath.
86296
86297 2005-01-21  Bruno Haible  <bruno@clisp.org>
86298
86299         * lib/classpath.h: New file, from GNU gettext.
86300         * lib/classpath.c: New file, from GNU gettext.
86301
86302 2005-01-20  Simon Josefsson  <jas@extundo.com>
86303
86304         * modules/version-etc-fsf: New file.
86305
86306 2005-01-20  Simon Josefsson  <jas@extundo.com>
86307
86308         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86309         * lib/version-etc.c: Remove version_etc_copyright.
86310         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86311         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86312
86313 2005-01-20  Simon Josefsson  <jas@extundo.com>
86314
86315         * lib/base64.h (isbase64): Add.
86316
86317         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86318         using a unsigned prototype, don't inline.
86319         (base64_decode): Use it.
86320
86321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86324         it.
86325
86326 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86327
86328         * lib/save-cwd.c (save_cwd): Remove code to support the case
86329         where fchdir is missing or flaky.
86330
86331 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86332
86333         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86334
86335 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86336
86337         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86338         AC_LIBSOURCES now does this.
86339         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86340         with new ullong_max module.
86341
86342 2005-01-19  Bruno Haible  <bruno@clisp.org>
86343
86344         * modules/sh-quote: New file.
86345         * MODULES.html.sh (Executing programs): Add sh-quote.
86346
86347 2005-01-19  Bruno Haible  <bruno@clisp.org>
86348
86349         * lib/sh-quote.h: New file, from GNU gettext.
86350         * lib/sh-quote.c: New file, from GNU gettext.
86351
86352 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         Merge from coreutils.
86355         * m4/ullong_max.m4: New file.
86356         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86357         (gl_MACROS): Assume localeconv exists.
86358
86359 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86360
86361         Merge changes from coreutils, as described below in several
86362         changelogs dated today.
86363
86364         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86365         (O_DIRECTORY): Remove; not needed here, since "." must be
86366         a directory.  All uses removed.
86367         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86368         universal on Suns, and we also need to test for IRIX.
86369         Revamp code to use 'if' rather than '#if'.
86370         Avoid unnecessary comparison of cwd->desc to 0.
86371
86372         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86373         for known valid error numbers rather than observed invalid ones.
86374
86375 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * modules/ullong_max: New file.
86378
86379         * modules/chdir-long, modules/openat: New files.
86380         * modules/save-cwd (Depends-on): Depend on chdir-long.
86381         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86382
86383 2005-01-18  Jim Meyering  <jim@meyering.net>
86384
86385         Merge from coreutils.
86386         * m4/chdir-long.m4, m4/openat.m4: New files.
86387         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86388         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86389         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86390         is sane and DOES follow symlinks.  Besides, testing 20 different
86391         systems found no broken chown implementations.
86392         Prompted by a change in rsync's copy of this macro.
86393         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86394
86395         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86396
86397         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86398         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86399         NULL-means-set-to-current-time semantics.
86400         Remove temporary file immediately, rather than waiting
86401         for configure's at-exit trap code to do it.
86402
86403 2005-01-18  Jim Meyering  <jim@meyering.net>
86404
86405         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86406
86407         * lib/utimens.c (futimens): Account for the fact that futimes
86408         can also fail with errno == ENOSYS or errno == ENOENT.
86409         Patch from Dmitry V. Levin.
86410
86411         Change the name of the robust chdir function from chdir to chdir_long.
86412         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86413         (restore_cwd): Use chdir_long, not chdir.
86414         * lib/chdir-long.c: Renamed from chdir.c.
86415         * lib/chdir-long.h: Renamed from chdir.h.
86416         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86417         Hurd.
86418
86419 2005-01-18  Bruno Haible  <bruno@clisp.org>
86420
86421         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86422         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86423         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86424         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86425         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86426         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86427         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86428         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86429         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86430         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86431         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86432         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86433         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86434         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86435         Use an all-permissive copyright notice, recommended by RMS.
86436
86437 2005-01-18  Bob Proulx  <bob@proulx.com>
86438
86439         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86440         simplify offsetof() macro construct to avoid compile failure with
86441         native HP-UX 11.0 ANSI C compiler.
86442
86443 2005-01-17  Bruno Haible  <bruno@clisp.org>
86444
86445         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86446         redundant because stpncpy.m4 takes care of it.
86447
86448 2005-01-17  Bruno Haible  <bruno@clisp.org>
86449
86450         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86451
86452 2005-01-17  Bruno Haible  <bruno@clisp.org>
86453
86454         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86455         used.
86456
86457 2005-01-17  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/fwriteerror.h (fwriteerror): Change specification to include
86460         fclose.
86461         * lib/fwriteerror.c: Include <stdbool.h>.
86462         (fwriteerror): At the end, close the file stream. Record whether
86463         stdout was already closed.
86464
86465 2005-01-17  Bruno Haible  <bruno@clisp.org>
86466
86467         * lib/execute.c (environ): Declare if needed.
86468         * lib/pipe.c (environ): Likewise.
86469         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86470
86471 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86472
86473         * modules/argp: Depend on vsnprintf
86474
86475 2005-01-10  Jim Meyering  <jim@meyering.net>
86476
86477         * modules/closeout (Depends-on): Add atexit.
86478
86479 2005-01-06  Bruno Haible  <bruno@clisp.org>
86480
86481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86482
86483 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86484
86485         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86486         definitions to be after all include files, to avoid collisions.
86487         Problem reported by Bob Proulx.
86488
86489 2005-01-04  Jim Meyering  <jim@meyering.net>
86490
86491         Changes imported from coreutils.
86492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86493         as the mkstemp template, use a temporary directory and an
86494         8.3-friendly template to avoid trouble on systems like DJGPP.
86495         Reported by Juan M. Guerrero via Stepan Kasal.
86496         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86497         close. Remove the temporary directory right away, rather than waiting
86498         for configure's at-exit trap code to do it.
86499         Suggestion from Stepan Kasal.
86500
86501 2005-01-01  Simon Josefsson  <jas@extundo.com>
86502
86503         * gnulib-tool: Print #include directives when --import'ing.
86504
86505 2004-12-28  Simon Josefsson  <jas@extundo.com>
86506
86507         * tests/test-base64.c: Include required header files.  Remove
86508         unused variables.
86509
86510 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86511
86512         * modules/error (Depends-on): Remove gettext.
86513
86514 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86517         not needed.  This removes a dependency on the gettext module.
86518         [defined _LIBC]: Do not include <libintl.h>; not needed.
86519
86520 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86521
86522         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86523         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86524
86525 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86526
86527         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86528         HAVE_DECL_STRTOLD.
86529
86530 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86531
86532         * modules/getdate (Depends-on): Remove alloca-opt.
86533
86534 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86535
86536         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86537
86538 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86539
86540         * lib/argp-parse.c: Include <stddef.h>.
86541         (alignof, alignto): New macros.
86542         (parser_init): Don't assume that void * is aligned sufficiently
86543         for struct option.
86544
86545         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86546         need to extend the stack.
86547         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86548         large.
86549
86550 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86551
86552         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86553
86554 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86557         (2004-10-24) change.  Apparently this was a false alarm.
86558
86559         * modules/getdate: Depend on alloca-opt, not alloca.
86560
86561 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86562
86563         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86564         Remove now-obsolete comment about AIX.
86565         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86566         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86567         (YYMAXDEPTH): New macro.
86568
86569 2004-12-18  Simon Josefsson  <jas@extundo.com>
86570
86571         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86572
86573 2004-12-18  Bruno Haible  <bruno@clisp.org>
86574
86575         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86576
86577 2004-12-18  Bruno Haible  <bruno@clisp.org>
86578
86579         * lib/fatal-signal.c (fatal_signals): Make non-const.
86580         (init_fatal_signals): New function.
86581         (uninstall_handlers, install_handlers): Ignore signals that were set to
86582         SIG_IGN.
86583         (at_fatal_signal): Call init_fatal_signals.
86584         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86585         SIG_IGN.
86586         Reported by Paul Eggert.
86587
86588 2004-12-18  Bruno Haible  <bruno@clisp.org>
86589
86590         * doc/alloca.texi: New file.
86591         * doc/alloca-opt.texi: New file.
86592
86593 2004-12-17  Jim Meyering  <jim@meyering.net>
86594
86595         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86596         Otherwise, install-sh could exit with improper exit status when
86597         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86598
86599 2004-12-16  Simon Josefsson  <jas@extundo.com>
86600
86601         * tests/test-base64.c: Add license.
86602
86603 2004-12-15  Stepan Kasal  <address@hidden>
86604
86605         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86606
86607 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86608
86609         * modules/getcwd (Files): Add m4/d-ino.m4.
86610         Suggested by Mark D. Baushke.
86611
86612 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         * lib/getdate.y (textint): New member "negative".
86615         (time_zone_hhmm): New function.
86616         Expect 14 shift-reduce conflicts, not 13.
86617         (o_colon_minutes): New rule.
86618         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86619         (yylex): Set the "negative" member of signed numbers.
86620
86621 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         * doc/getdate.texi (Time of day items, Time zone items):
86624         Describe new formats +00:00, UTC+00:00.
86625
86626 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86627
86628         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86629         spurious "-l"s.  Problem reported by Stepan Kasal.
86630
86631 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86632
86633         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86634         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86635
86636 2004-12-04  Simon Josefsson  <jas@extundo.com>
86637
86638         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86639         Vandoorselaere <yoann@prelude-ids.org>.
86640
86641 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86642
86643         Changes imported from coreutils.
86644         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86645         exist.
86646         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86647
86648 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86649
86650         Changes imported from coreutils.
86651         * lib/hard-locale.c: Assume <locale.h> exists.
86652         Include "strdup.h".
86653         (GLIBC_VERSION): New macro.
86654         (hard_locale): Assume setlocale exists.
86655         Rewrite to avoid #ifdef.
86656         Use strdup rather than malloc + strcpy.
86657         * lib/human.c: Assume <locale.h> exists.
86658         (human_readable): Assume localeconv exists.
86659
86660 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * modules/hard-locale (Depends-on): Add strdup.
86663
86664 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86665
86666         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86667         convert T2, not T.  (Imported from libc.)
86668
86669 2004-11-30  Simon Josefsson  <jas@extundo.com>
86670
86671         * modules/restrict (License): Change to LGPL.
86672
86673 2004-11-30  Simon Josefsson  <jas@extundo.com>
86674
86675         * m4/restrict.m4: Add copyright and copying conditions.
86676
86677 2004-11-30  Simon Josefsson  <jas@extundo.com>
86678
86679         * m4/base64.m4: New file.
86680
86681 2004-11-30  Simon Josefsson  <jas@extundo.com>
86682
86683         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86684         base64.
86685
86686         * tests/test-base64.c: New file.
86687
86688         * modules/base64: New file.
86689
86690 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86693         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86694
86695         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86696
86697 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86698
86699         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86700         (__getcwd.c): Don't restore errno; glibc doesn't.
86701         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86702         first, falling back to our code only if its results look suspicious.
86703         Ensure that the resulting buffer is only as large as necessary.
86704
86705         * lib/readutmp.c: Include readutmp.h first.
86706         Include <errno.h>, since readutmp.h no longer does that.
86707         * lib/readutmp.h: Don't include <errno.h>,
86708         <sys/param.h>, <time.h>; not needed to establish interface.
86709         (errno): Remove decl.
86710         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86711         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86712         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86713
86714 2004-11-28  Simon Josefsson  <jas@extundo.com>
86715
86716         * lib/base64.h, base64.c: New file.
86717
86718 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86719
86720         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86721
86722 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86723
86724         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86725         (Depends-on): Remove pathmax, same.  Add mempcpy.
86726         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86727         (Makefile.am): Append getcwd.h to lib_SOURCES.
86728         (Include): Add getcwd.h.
86729         (Maintainer): Change from Jim Meyering to "all, glibc",
86730         since getdate now uses intended-for-glibc code.
86731         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86732         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86733
86734 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86735
86736         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86737         HP's ANSI C compiler.
86738         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86739         Declaring int functions causes warnings on some modern systems and
86740         shouldn't be needed to compile on ancient ones.
86741         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86742         defined.
86743
86744         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86745         with the following changes.
86746         (__set_errno): Parenthesize properly.
86747         Include <stdbool.h>.
86748         (MIN, MAX, MATCHING_INO): New macros.
86749         (__getcwd): Define with prototype, not K&R form.
86750         Use heuristics to allocate default buffer on stack if possible.
86751         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86752         behavior, and to avoid the PATH_MAX limit when computing
86753         ../../../../...
86754         Use MATCHING_INO to compare inode number to file.
86755         Check for arithmetic overflow in size calculations.
86756         Fix bug in reallocation of dot array that caused getcwd to fail
86757         on directories nested deeper than 75.
86758         Be more careful about saving errno on error.
86759         Do not use realloc; use only free+malloc, as this is a bit
86760         more flexible and avoids a needless copy operation.
86761         Do not inspect st_dev and st_ino for symbolic links; POSIX
86762         doesn't specify the latter.
86763         Check for closedir errors.
86764         Avoid needless casts.
86765         Use "#ifdef weak_alias" around weak_alias, to be like other
86766         glibc code.
86767         The following changes to getcwd.c have effect only when used in
86768         gnulib; they have no effect inside glibc proper.
86769         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86770         as alloca isn't used.
86771         (alloca, __alloca): Likewise.
86772         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86773         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86774         unconditionally, as gnulib assumes C89 or better.
86775         Do not include <sys/param.h>.
86776         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86777         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86778         better.
86779         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86780         Include <dirent.h> in a way that is compatible with modern Autoconf.
86781         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86782         New macros, if not already defined.
86783         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86784         Use "_LIBC", not "defined _LIBC", for consistency.
86785         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86786         a mempcpy module.
86787         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86788         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86789         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86790         credit only to Jim Meyering and adjust the copyright dates.
86791         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86792         <stdlib.h>, <unistd.h>, "pathmax.h".
86793         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86794         (INITIAL_BUFFER_SIZE): Remove.
86795         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86796
86797 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86798
86799         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86800         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86801         Use the _ONCE methods, for efficiency.
86802         Check for fcntl.h.  In test program, include <errno.h>
86803         and <fcntl.h> if available.  Remove old K&R cruft from
86804         test program.  Check for common errors in GNU/Linux,
86805         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86806         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86807         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86808         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86809         name accordingly.
86810         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86811         accommodate new getcwd.c.
86812         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86813         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86814         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86815         that's all we need now.
86816
86817 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86818
86819         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86820         argp-parse.c depends on getopt internals, that means we should
86821         always use our getopt, to be on the safe side.
86822         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86823         order not to spoil the result of an eventual previous invocation
86824         of gl_GETOPT_SUBSTITUTE.
86825
86826 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86827
86828         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86829         redefinition warnings. To avoid them, include the defines
86830         in `#if !defined __need_getopt ... #endif'. The only place
86831         where __getopt_argv_const is used is in definitions
86832         of getopt_long and getopt_long_only below, which are as well
86833         protected by `#ifndef __need_getopt'.
86834         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86835         __need_getopt after including <stdio.h> and <unistd.h> These
86836         headers might have defined it.
86837
86838 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86839
86840         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86841
86842 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86843
86844         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86845         (futimens): New function, which uses futimes if available.
86846         (futimens, utimens): Support timespec==NULL, with same semantics
86847         as utime and utimens.
86848         * lib/utimens.h (futimens): New decl.
86849
86850 2004-11-23  Jim Meyering  <jim@meyering.net>
86851
86852         * lib/getopt_.h: Remove trailing blanks.
86853
86854 2004-11-23  Jim Meyering  <jim@meyering.net>
86855
86856         * lib/__fpending.c: Add comment.
86857
86858 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         * modules/canonicalize (Depends-on): Add xreadlink.
86861         Problem reported by James Youngman.
86862
86863 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86864
86865         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86866         New macros.
86867         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86868         optopt): Use them instead of invoking ## directly; otherwise, the
86869         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86870
86871 2004-11-19  Bruno Haible  <bruno@clisp.org>
86872
86873         * lib/strtok_r.c: Move comments from here...
86874         * lib/strtok_r.h: ... to here.
86875
86876 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86877
86878         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86879         implementations that mishandle size_t overflow.
86880
86881 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86882
86883         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86884         might fail.  Problem reported by Yoann Vandoorselaere.
86885         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86886         implementations that mishandle size_t overflow.
86887
86888 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * modules/canon-host (Depends-on): Add strdup.
86891
86892 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86895
86896 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86897
86898         * lib/canon-host.c: Include "strdup.h".
86899         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86900         Use strdup instead of malloc/strcpy to duplicate strings.
86901
86902         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86903         (human_space_before_unit): New constant.
86904         * lib/human.c (human_readable): Support it.
86905
86906         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86907         (xgetcwd): Set errno correctly when failing.
86908         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86909         the failure is actually due to a PATH_MAX problem.
86910
86911         Further getopt changes to make it more likely that glibc will
86912         buy the changes back.
86913         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86914         (getopt): Use it, so to preserve glibc semantic
86915         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86916         when compiling for libc.
86917         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86918         (getopt_long, getopt_long_only): Use it.
86919
86920         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86921         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86922         (getopt): Argv is now char * const *, as per standard.
86923         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86924         not char *__getopt_argv_const *.
86925         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86926         _getopt_long_only_r): Likewise.
86927         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86928         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86929         _getopt_long_r, _getopt_long_only_r): Likewise.
86930         * lib/getopt_.h (__getopt_argv_const): Remove.
86931         (getopt): Argv is now char * const *, as per standard.
86932
86933         * lib/getdate.y (tORDINAL): New token.
86934         (day, relunit): Allow it for relative times.
86935         (relative_time_table): Use tORDINAL for ordinals.
86936
86937 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86940         Document that "second" isn't allowed as an ordinal number.
86941
86942 2004-11-16  Jim Meyering  <jim@meyering.net>
86943
86944         * modules/closeout (Depends-on): Add fpending.
86945
86946 2004-11-15  Jim Meyering  <jim@meyering.net>
86947
86948         * lib/closeout.c: Include "__fpending.h" once again.
86949         Include <stdbool.h>.
86950         (close_stdout): Don't fail just because stdout was closed initially,
86951         since some programs don't write to stdout in the normal course of
86952         operation (other than --version and --help), and we don't want this
86953         function to make e.g. `touch file >&-' fail.
86954         But do fail if it was closed and someone has tried to write to it.
86955         E.g., `printf foo >&-' must fail.
86956
86957 2004-11-13  Jim Meyering  <jim@meyering.net>
86958
86959         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86960
86961 2004-11-12  Simon Josefsson  <jas@extundo.com>
86962
86963         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86964         small doc fix is still pending.
86965
86966 2004-11-11  Simon Josefsson  <jas@extundo.com>
86967
86968         * modules/strtok_r: New file.
86969
86970         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86971         strtok_r.
86972
86973 2004-11-11  Simon Josefsson  <jas@extundo.com>
86974
86975         * m4/strtok_r.m4: New file.
86976
86977         * m4/getopt.m4: Replace opterr.
86978
86979 2004-11-11  Simon Josefsson  <jas@extundo.com>
86980
86981         * lib/strtok_r.h, strtok_r.c: New file.
86982
86983 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86984
86985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86986         of replacing opterr, getopt, etc.  This should handle the
86987         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86988
86989 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86990
86991         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86992         we can stop lying to compilers about the constness of argv when we
86993         are compiled outside glibc.
86994         (getopt, getopt_long, getopt_long_only): Use it.
86995         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86996         _getopt_internal, getopt): Likewise.
86997         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86998         _getopt_long_only_r): Likewise.
86999         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87000         _getopt_long_r, _getopt_long_only_r): Likewise.
87001
87002         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87003         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87004         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87005         the other external symbols.
87006         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87007         declaration, since the above renaming now works around collisions.
87008
87009 2004-11-11  Jim Meyering  <jim@meyering.net>
87010
87011         * lib/linebreak.c: Remove trailing blanks.
87012         * lib/alloca_.h: Likewise.
87013         * lib/acosl.c: Likewise.
87014         * lib/euidaccess.c: Likewise.
87015         * lib/allocsa.h: Likewise.
87016
87017 2004-11-10  Simon Josefsson  <jas@extundo.com>
87018
87019         * m4/getaddrinfo.m4: New file.
87020
87021 2004-11-10  Simon Josefsson  <jas@extundo.com>
87022
87023         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87024
87025 2004-11-10  Simon Josefsson  <jas@extundo.com>
87026
87027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87028         getaddrinfo.
87029
87030         * modules/getaddrinfo: New file.
87031
87032 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87035
87036 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87037
87038         * lib/mktime.c (SHR): New macro, which is a portable
87039         substitute for >> that should work even on Crays.
87040         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87041         Problem reported by Mark D. Baushke in
87042         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87043         * lib/getdate.y (SHR): Likewise.
87044         (tm_diff): Use it.
87045         * lib/strftime.c (SHR): Likewise.
87046         (tm_diff): Use it.
87047         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87048         quote_these_too, so that right shifts are well defined.  All uses
87049         changed.
87050
87051 2004-11-10  Jim Meyering  <jim@meyering.net>
87052
87053         Ensure that no close failure goes unreported.
87054         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87055         return early when it seems there's nothing to flush.
87056         Don't include __fpending.h.
87057
87058 2004-11-10  Jim Meyering  <jim@meyering.net>
87059
87060         * modules/closeout (Depends-on): Remove fpending.
87061
87062 2004-11-10  Jim Meyering  <jim@meyering.net>
87063
87064         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87065
87066 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87067
87068         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87069         gl_FUNC_STRFTIME.
87070         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87071         and AC_REQUIRE when possible, to avoid duplicate checks.
87072         Check for <wchar.h>.
87073
87074 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87075
87076         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87077
87078 2004-11-09  Bruno Haible  <bruno@clisp.org>
87079
87080         * m4/sockpfaf.m4: New file.
87081
87082 2004-11-05  Bruno Haible  <bruno@clisp.org>
87083
87084         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87085         Reported by Mark D. Baushke <mdb@cvshome.org>.
87086
87087 2004-11-04  Bruno Haible  <bruno@clisp.org>
87088
87089         2004-09-11  Bruno Haible  <bruno@clisp.org>
87090                 * allocsa.valgrind: New file.
87091         2004-02-06  Bruno Haible  <bruno@clisp.org>
87092                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87093                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87094                 Reported by Christopher Seip <chris.seip@hp.com>.
87095
87096 2004-11-04  Bruno Haible  <bruno@clisp.org>
87097
87098         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87099         (Makefile.am): Distribute it.
87100
87101 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87102
87103         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87104         with errno == ERANGE if the buffer is too small.
87105         Problem reported by Mark D. Baushke.
87106
87107 2004-11-03  Albert Chin  <china@thewrittenword.com>
87108             Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87111         equivalent, substitute $ac_type for equivalent type rather than
87112         blindly using uint32_t *always* which won't work if uint32_t is not
87113         available.  Define _UINT32_T to work around typedef of uint32_t if
87114         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87115         2.5.1.
87116
87117 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87118
87119         * m4/jm-macros.m4: Sync from coreutils.
87120         (gl_MACROS): Check for mbrlen, for pathchk.
87121         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87122
87123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87124
87125         * lib/xreadlink.c (MAXSIZE): New macro.
87126         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87127         size does not exceed MAXSIZE.  Avoid cast.
87128         As suggested by Mark D. Baushke in
87129         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87130         if readlink fails with buffer size just under MAXSIZE, try again
87131         with MAXSIZE.
87132
87133 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87134
87135         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87136
87137 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87138         and  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87141         (get_date): Overparenthesize to avoid GCC warning.
87142
87143 2004-11-02  Bruno Haible  <bruno@clisp.org>
87144
87145         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87146         returns void.
87147
87148 2004-11-02  Bruno Haible  <bruno@clisp.org>
87149
87150         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87151         function returns void.
87152
87153 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87156         fflush_unlocked, flockfile, funlockfile, funlockfile,
87157         fputs_unlocked, putc_unlocked.
87158
87159 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87160
87161         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87162         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87163         already declared.
87164
87165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         * modules/getdate (Files): Add doc/getdate.texi.
87168         (Depends-on): Add setenv, xalloc.
87169
87170 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87171
87172         * lib/getdate.y: Add support for TZ="foo" within a date string.
87173         Fix some bugs near time_t boundaries.  Reject dates with
87174         out-of-range components, e.g., "Sept 31".
87175         Include <stdlib.h>, "setenv.h", "xalloc.h".
87176         (ISDIGIT_LOCALE): Remove; unused.
87177         Note that the TZ and time functions used here are not reentrant.
87178         (mktime_ok, get_tz): New functions.
87179         (TZBUFSIZE): New constant.
87180         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87181         This requires that we sometimes generate our own TZ="XXX..." setting.
87182
87183 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         * doc/getdate.texi: New file, from coreutils with modifications for
87186         the new TZ parsing.
87187
87188 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87189
87190         * lib/mktime.c (not_equal_tm): Remove redundant check.
87191
87192 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87193
87194         * modules/regex (lib_SOURCES): Add regex.c.
87195         Reported by James Youngman in
87196         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87197
87198 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87199
87200         * lib/getdate.y: Use Bison 1.875 features, and some minor
87201         code cleanups.  This change does not affect semantics.
87202         Don't include <stdlib.h>; no longer needed.
87203         Don't include unlocked-io.h; only the "#if TEST" code uses
87204         stdio, and performance isn't crucial there.
87205         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87206         Bison 1.875 features as described below.
87207         All uses of "PC." replaced by "pc->".
87208         (YYSTYPE): Add a forward declaration.
87209         (yylex, yyerror): Use full prototypes in forward decls.
87210         Use "%pure-parser" rather than obsolescent "%pure_parser".
87211         Use %parse-param and %lex-param instead of obsolescent
87212         YYPARSE_PARAM and YYLEX_PARAM.
87213         (meridian_table, month_and_day_table, time_units_table,
87214         relative_time_table, time_zone_table, military_table,
87215         lookup_zone, lookup_word, get_date):
87216         Use NULL instead of 0 where appropriate.
87217         (to_hour): Avoid abort (), to avoid a dependency on
87218         stdlib.h.
87219         (yyerror, yylex): Now accepts parser_control * arg.
87220         (main) [TEST]: Use '\0' rather than 0 for char.
87221
87222 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87223
87224         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87225
87226 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87229         It's now the caller's responsibility to handle the case where
87230         !HAVE_GETPAGESIZE && !defined getpagesize.
87231
87232         * lib/mktime.c (leapyear): Arg is long int, not int.
87233
87234 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87235
87236         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87237
87238 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87239
87240         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87241         missing.  Problem reported by James Youngman.
87242
87243 2004-10-16  Simon Josefsson  <jas@extundo.com>
87244
87245         * gnulib-tool: Fix comments.  Fix parse problem.
87246         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87247
87248 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87249
87250         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87251         implementation of getopt_long.  Problem reported by Alexander Taler in:
87252         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87253
87254 2004-10-15  Bruno Haible  <bruno@clisp.org>
87255
87256         * gnulib-tool: Untabify. Initialize supplied_libname.
87257         (func_usage): More homogenous output.
87258         (func_modules_transitive_closure, func_modules_to_filelist,
87259         func_emit_lib_Makefile_am): New functions.
87260         (func_import): New function, extracted from big case statement. Use
87261         func_get_license, func_modules_transitive_closure,
87262         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87263         opt_lgpl. Don't use test -a, as it's not portable.
87264         (func_create_testdir): Use func_modules_transitive_closure,
87265         func_modules_to_filelist, func_emit_lib_Makefile_am.
87266
87267 2004-10-15  Bruno Haible  <bruno@clisp.org>
87268
87269         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87270
87271 2004-10-15  Bruno Haible  <bruno@clisp.org>
87272
87273         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87274         the portions belonging to each module.
87275         Suggested by Derek Robert Price <derek@ximbiot.com>.
87276
87277 2004-10-12  Simon Josefsson  <jas@extundo.com>
87278
87279         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87280         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87281         to real functions.
87282
87283 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87284
87285         * modules/vsnprintf: New file.
87286
87287 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87288
87289         * m4/vsnprintf.m4: New file.
87290
87291 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87292
87293         * lib/vsnprintf.h: New file.
87294         * lib/vsnprintf.c: New file.
87295
87296 2004-10-11  Bruno Haible  <bruno@clisp.org>
87297
87298         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87299         vsnprintf.
87300
87301 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87302
87303         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87304
87305 2004-10-07  Bruno Haible  <bruno@clisp.org>
87306
87307         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87308         fits into the provided buffer.
87309
87310 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87311
87312         * lib/diacrit.c, diacrit.h: Add GPL notice.
87313
87314         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87315         notice.
87316         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87317         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87318         This avoids a potential constant-folding bug.
87319
87320 2004-10-05  Bruno Haible  <bruno@clisp.org>
87321
87322         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87323         for the declaration of strsep.
87324
87325 2004-10-05  Bruno Haible  <bruno@clisp.org>
87326
87327         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87328
87329 2004-10-04  Simon Josefsson  <jas@extundo.com>
87330
87331         * modules/memmem: New file.
87332         * tests/test-memmem.c: New file.
87333         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87334
87335 2004-10-04  Simon Josefsson  <jas@extundo.com>
87336
87337         * m4/memmem.m4: New file.
87338
87339 2004-10-04  Simon Josefsson  <jas@extundo.com>
87340
87341         * lib/memmem.h: New file.
87342         * lib/memmem.c: New file, taken from glibc.
87343
87344 2004-10-04  Simon Josefsson  <jas@extundo.com>
87345
87346         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87347         '#ifdef USE_UNLOCKED_IO'.
87348
87349 2004-10-04  Simon Josefsson  <jas@extundo.com>
87350
87351         * config/srclist.txt: Add memmem from glibc.
87352
87353 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87354
87355         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87356
87357         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87358         modules/exclude, modules/getdate, modules/getline,
87359         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87360         modules/getusershell, modules/linebuffer, modules/md5,
87361         modules/mountlist, modules/posixtm, modules/readtokens,
87362         modules/readutmp, modules/regex, modules/sha1,
87363         modules/version-etc, modules/yesno:
87364         Remove dependency on unlocked-io.
87365
87366 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87367
87368         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87369
87370         * m4/unlocked-io.m4: Add copyright notice.
87371         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87372
87373 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87374
87375         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87376         * lib/xmalloc.c (xmemdup): Likewise.
87377         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87378         XFREE): Remove these long-obsolescent macros.
87379         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87380         * lib/xstrdup.c: Remove.
87381
87382         * lib/regex.c (re_comp): Cast gettext return value to char *,
87383         Problem reported by Martin Neitzel via Mark D. Baushke.
87384
87385 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87386
87387         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87388         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87389         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87390         regex.c, sha1.c, version-etc.c, yesno.c:
87391         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87392         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87393         the includer's responsibility.
87394
87395         Sync from coreutils.
87396
87397         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87398         points to the start of a string, as the C Standard says the
87399         resulting behavior is undefined.
87400
87401         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87402         simple -> simple_backups, numbered_existing ->
87403         numbered_existing_backups, numbered -> numbered_backups
87404         to avoid shadowing problems.  All uses changed.
87405         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87406         * lib/backupfile.c (check_extension, numbered_backup):
87407         Rename locals to avoid shadowing 'basename'.
87408         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87409         once.
87410
87411         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87412         * lib/.cvsignore: Add getopt.h.
87413
87414 2004-10-04  Bruno Haible  <bruno@clisp.org>
87415
87416         * modules/README: New file.
87417         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87418         not a module.
87419
87420 2004-10-02  Jim Meyering  <jim@meyering.net>
87421
87422         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87423
87424 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87425
87426         * modules/strsep: New file.
87427
87428 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87429
87430         * m4/strsep.m4: New file.
87431
87432 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87433
87434         * lib/strsep.h: New file.
87435         * lib/strsep.c: New file.
87436
87437 2004-10-01  Simon Josefsson  <jas@extundo.com>
87438
87439         * lib/snprintf.c (snprintf): Handle size==0.
87440
87441 2004-10-01  Simon Josefsson  <jas@extundo.com>
87442             Bruno Haible  <bruno@clisp.org>
87443
87444         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87445         (snprintf): Declare 'args'.
87446
87447 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * lib/snprintf.c: Remove comments as to why each header is needed.
87450
87451 2004-10-01  Bruno Haible  <bruno@clisp.org>
87452
87453         * MODULES.html.sh: Add strsep.
87454
87455 2004-09-30  Simon Josefsson  <jas@extundo.com>
87456
87457         * modules/snprintf: New file.
87458
87459 2004-09-30  Simon Josefsson  <jas@extundo.com>
87460
87461         * m4/snprintf.m4: New file.
87462
87463 2004-09-30  Simon Josefsson  <jas@extundo.com>
87464
87465         * lib/snprintf.h, lib/snprintf.c: New files.
87466
87467 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87468
87469         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87470         (hol_entry_help): Never translate an empty string.
87471         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87472         * lib/argp.h (OPTION_NO_TRANS): New option.
87473
87474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87475
87476         * modules/argp (Maintainer): Replace Simon Josefsson
87477         by Sergey Poznyakoff.
87478
87479 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87480
87481         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87482         changes merged back into glibc.
87483
87484 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87487
87488 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87489
87490         * lib/xvasprintf.c: Include xalloc.h.
87491         (xvasprintf): Use xalloc_die, not xmalloc_die.
87492
87493 2004-09-29  Bruno Haible  <bruno@clisp.org>
87494
87495         * modules/alloca-opt: New file, derived from modules/alloca.
87496         * modules/allocsa: Depend on alloca-opt instead of alloca.
87497         * modules/setenv: Likewise.
87498         * modules/vasnprintf: Likewise.
87499         * MODULES.html.sh: Add alloca-opt.
87500
87501 2004-09-28  Simon Josefsson  <jas@extundo.com>
87502
87503         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87504         LGPL, and to replace license template from GPL to LGPL.
87505
87506 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87507
87508         * modules/dummy: Change license to LGPL.
87509
87510 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87511
87512         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87513
87514 2004-09-24  Simon Josefsson  <jas@extundo.com>
87515
87516         * modules/minmax (License): Change from GPL to LGPL.
87517
87518 2004-09-23  Simon Josefsson  <jas@extundo.com>
87519
87520         * gnulib-tool (--import): Typo.
87521
87522 2004-09-23  Simon Josefsson  <jas@extundo.com>
87523
87524         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87525
87526 2004-09-22  Bruno Haible  <bruno@clisp.org>
87527
87528         * modules/*: Add 'License' field.
87529         * gnulib-tool: Accept --extract-license option.
87530         (func_get_license): New function.
87531
87532 2004-09-21  Bruno Haible  <bruno@clisp.org>
87533
87534         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87535         Reported by Simon Josefsson.
87536
87537 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87540         gl_AC_TYPE_LONG_LONG.
87541
87542 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87543
87544         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87545
87546 2004-09-18  Simon Josefsson  <jas@extundo.com>
87547         and  Paul Eggert  <eggert@cs.ucla.edu>
87548
87549         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87550         calls with autoreconf.  Define GL_LIB.
87551
87552 2004-09-14  Karl Berry  <karl@gnu.org>
87553
87554         * config/srclist.txt: unsync setenv.c, sigh.
87555
87556 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87559         Problem reported by Bruno Haible in:
87560         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87561
87562 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87563
87564         * config/srclist.txt: Comment out argp-pvh.c.
87565
87566 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87567
87568         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87569         in case some system header has #define'd it.  Problem reported by
87570         Soeren D. Schulze in
87571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87572
87573 2004-09-09  Karl Berry  <karl@gnu.org>
87574
87575         * regex.[ch]: delete from the root.  These were supposed to be
87576                 synced with emacs cvs, but this has not happened for about
87577                 a year, and anyway nothing else uses emacs regex.[ch].
87578                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87579                 lib/regex[.ch] is untouched.
87580
87581 2004-09-09  Bruno Haible  <bruno@clisp.org>
87582
87583         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87584
87585 2004-09-09  Bruno Haible  <bruno@clisp.org>
87586
87587         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87588         modifications.
87589         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87590
87591 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87592
87593         * modules/xvasprintf: New file.
87594         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87595
87596 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87597
87598         * lib/xvasprintf.h: New file.
87599         * lib/xvasprintf.c: New file.
87600         * lib/xasprintf.c: New file.
87601
87602 2004-09-08  Bruno Haible  <bruno@clisp.org>
87603
87604         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87605
87606 2004-09-08  Bruno Haible  <bruno@clisp.org>
87607
87608         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87609         length is > INT_MAX.
87610         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87611         more.
87612
87613 2004-09-08  Bruno Haible  <bruno@clisp.org>
87614
87615         * lib/stdint_.h: New file, taken from GNU clisp.
87616
87617 2004-09-08  Bruno Haible  <bruno@clisp.org>
87618             Oskar Liljeblad  <oskar@osk.mine.nu>
87619
87620         * modules/stdint: New file.
87621         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87622
87623 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         Import from coreutils.
87626         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87627         strings on unbounded length.  alloca's performance benefits aren't
87628         that important here.
87629         (V_STRDUP): Remove.
87630         (parse_with_separator): New function, with most of the internals
87631         of the old parse_user_spec.  Allow user to omit both user and group,
87632         for compatibility with FreeBSD.
87633         Clone only the user name, not the entire spec.
87634         Do not set *uid, *gid unless entirely successful.
87635         Avoid memory leak in some failing cases.
87636         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87637         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87638         (parse_user_spec): Rewrite to use parse_with_separator.
87639
87640 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87641
87642         * modules/userspec: Don't depend on alloca.
87643
87644 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87645
87646         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87647
87648 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87651         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87652         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87653
87654 2004-08-16  Simon Josefsson  <jas@extundo.com>
87655
87656         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87657         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87658         Add --dry-run for --import.
87659         Let user provided command line parameters override configure.ac
87660         settings.
87661
87662 2004-08-12  Simon Josefsson  <jas@extundo.com>
87663
87664         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87665         as discussed with Paul Eggert in threads rooted at
87666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87667         and
87668         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87669         Before, the test was empty, and relied on ELIDE_CODE in source
87670         code.)
87671         (gl_PREREQ_GETOPT): New macro.
87672         (gl_GETOPT): Use them.
87673
87674 2004-08-12  Simon Josefsson  <jas@extundo.com>
87675
87676         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87677         * lib/getopt_.h: Renamed from getopt.h.
87678
87679 2004-08-12  Simon Josefsson  <jas@extundo.com>
87680
87681         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87682         Change default library name from libfoo to libgnu.
87683         Now, if you have a configure.ac that says:
87684                 gl_SOURCE_BASE(gl)
87685                 gl_M4_BASE(gl/m4)
87686                 gl_MODULES(error getopt etcetera)
87687                 gl_INIT
87688         you can import all you need by running:
87689                 ../gnulib/gnulib-tool --import
87690
87691         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87692         (Makefile.am): Rewrite, use logic from argz.
87693         (Include): Use <getopt.h> instead of "getopt.h".
87694
87695 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87696
87697         * modules/argp (Files): Add m4/unlocked-io.m4.
87698         (Depends-on): Add extensions.
87699
87700 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87701
87702         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87703         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87704         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87705         Check for program_invocation_name, program_invocation_short_name,
87706         flockfile, funlockfile, features.h, _getopt_long_only_r.
87707
87708 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87709
87710         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87711         its complicated substitute.
87712         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87713         and program_invocation_name.
87714         (__argp_basename) [!_LIBC]: Remove; the only use was
87715         replaced by its body.
87716         (__argp_short_program_name): Change condition from
87717         !defined __argp_short_program_name to
87718         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87719         to match argp-namefrob.h.
87720         (__argp_failure): Don't assume strerror_r returns char *.
87721         * lib/argp-parse.c (N_): Define unconditionally.
87722         (argp_default_options): Fill out initializers with 0 to avoid
87723         gcc warnings.
87724
87725 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87726
87727         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87728         getopt1.c.
87729
87730 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87731
87732         Merge from coreutils.
87733
87734         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87735
87736         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87737         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87738
87739 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87740
87741         Merge from coreutils.
87742
87743         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87744         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87745         for Reliant Unix 5.43.
87746
87747         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87748         (union fooround): Use uintmax_t, not long int.
87749         The rest is a merge from libc:
87750         [defined _LIBC]: Include <shlib-compat.h>.
87751         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87752
87753         * lib/settime.c (settime): Recode to avoid warning with
87754         Sun Forte C 6U2.
87755
87756         * lib/strverscmp.c: Convert to UTF-8.
87757
87758 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87759
87760         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87761         m4/uintmax_t.m4.
87762
87763 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * modules/xalloc-die: New file.
87766         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87767
87768         * modules/md5 (Files): Add m4/uint32_t.m4.
87769         * modules/sha1: Renamed from modules/sha.
87770         (Files):
87771         Rename lib/sha.h to lib/sha1.h.
87772         Rename lib/sha.c to lib/sha1.c.
87773         Rename m4/sha.m4 to m4/sha1.m4.
87774         (lib_SOURCES): Likewise.
87775         (configure.ac): Rename gl_SHA to gl_SHA1.
87776         (Include): sha.h -> sha1.h.
87777
87778 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87781         * m4/sha1.m4: Renamed from sha.m4.
87782         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87783
87784 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87785
87786         * lib/obstack.h (obstack_empty_p):
87787         Don't assume that chunk->contents is suitably aligned.
87788         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87789         Likewise. Problem reported by Benno in
87790         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87791
87792         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87793         readable.  This could be improved further but it'd take some work.
87794
87795 2004-08-08  Simon Josefsson  <jas@extundo.com>
87796
87797         * modules/xgethostname (Depends-on): Remove exit and error (not
87798         used).
87799
87800         * modules/getpass-gnu: Add getpass.h.
87801         (Depends-on): Add stdbool.
87802         * modules/getpass: Add getpass.h.
87803
87804 2004-08-08  Simon Josefsson  <jas@extundo.com>
87805
87806         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87807         Check getpass declaration.
87808
87809 2004-08-08  Simon Josefsson  <jas@extundo.com>
87810
87811         * lib/xgethostname.c: Don't include error.h (not used).
87812
87813         * lib/getpass.h: Add.
87814         * lib/getpass.c: Include getpass.h first.
87815
87816 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87817
87818         * lib/xalloc-die.c: New file.
87819         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87820         All uses removed.
87821         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87822         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87823         xalloc-die.c.
87824         (_, N_, xalloc_die): Move to xalloc-die.c.
87825         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87826         so that we needn't mess with xalloc_msg_memory_exhausted.
87827
87828         * lib/sha1.h: Renamed from sha.h.
87829         (SHA1_H): Renamed from _SHA_H.
87830         (sha1_ctx): Renamed from sha_ctx.
87831         (sha1_init_ctx): Renamed from sha_init_ctx.
87832         (sha1_process_block): Renamed from sha_process_block.
87833         (sha1_process_bytes): Renamed from sha_process_bytes.
87834         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87835         (sha1_read_ctx): Renamed from sha_read_ctx.
87836         (sha1_stream): Renamed from sha_stream.
87837         (sha1_buffer): Renamed from sha_buffer.
87838         * lib/sha1.c: Likewise; renamed from sha.c.
87839         Do not include <sys/types.h>.
87840         Include <stddef.h> rather than <stdlib.h>.
87841
87842 2004-08-08  Bruno Haible  <bruno@clisp.org>
87843
87844         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87845         FILESYSTEM_PREFIX_LEN.
87846         * lib/progreloc.c: Likewise.
87847         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87848
87849 2004-08-06  Simon Josefsson  <jas@extundo.com>
87850
87851         * modules/progname (Depends-on): Don't depend on stdbool.
87852
87853 2004-08-06  Simon Josefsson  <jas@extundo.com>
87854
87855         * modules/getsubopt: New file.
87856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87857         getsubopt.
87858
87859 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87860
87861         More merge from coreutils.
87862
87863         * m4/utimens.m4, m4/utimecmp.m4: New files.
87864         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87865         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87866         prereq.m4, sha.m4: Import changes from coreutils.
87867
87868 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87869
87870         More merge from coreutils.
87871         * modules/raise, modules/readtokens0, modules/utimens:
87872         * modules/utimecmp, module/xnanosleep: New files.
87873         * modules/strftime: Add lib/strftime.h.
87874         Change include from <time.h> to "strftime.h".
87875         * modules/yesno: Add lib/yesno.h.
87876         * modules/backupfile: Remove lib/addext.c.
87877         * modules/euidaccess: Add stat-macros.h.
87878         * modules/canonicalize, modules/euidaccess,
87879         modules/filemode, modules/lchown, modules/makepath,
87880         modules/rmdir, modules/stat: Likewise.
87881
87882 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87883
87884         Merge from tar.
87885         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87886         SIZE_MAX is a valid preprocessor constant.
87887         (__argp_basename): Change from "#ifndef _LIBC"
87888         to "#ifndef __argp_short_program_name", so that
87889         we don't compile these functions for tar.
87890
87891         More merges from coreutils.
87892         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87893         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87894         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87895         * lib/addext.c: Remove; no longer needed.
87896         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87897         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87898         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87899         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87900         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87901         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87902         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87903         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87904         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87905         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87906         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87907         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87908         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87909         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87910         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87911         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87912         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87913         Import changes from coreutils.
87914
87915 2004-08-05  Simon Josefsson  <jas@extundo.com>
87916
87917         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87918
87919 2004-08-05  Simon Josefsson  <jas@extundo.com>
87920
87921         * m4/getsubopt.m4: New file.
87922
87923 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87924
87925         Merge from coreutils.
87926
87927         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87928         * m4/getcwd-path-max.m4: New files.
87929
87930         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87931         FILESYSTEM_PREFIX_LEN ->
87932         FILE_SYSTEM_PREFIX_LEN.
87933         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87934         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87935         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87936         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87937
87938         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87939         prerequisite modules now handle the DOS stuff.
87940         Don't check for unistd.h.
87941
87942 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87943
87944         Merge from coreutils.
87945
87946         * lib/.gdb-history: Remove; this doesn't belong here.
87947
87948         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87949         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87950         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87951         * lib/getcwd.c: New files.
87952
87953         * lib/dirname.h: Include <stdbool.h>.
87954         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87955         for consistency with POSIX terminology.  All uses changed.
87956         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87957         (strip_trailing_slashes): Use bool for booleans.
87958         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87959
87960         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87961         sometimes returns a positive errno value even when it succeeds.
87962         (print_errno_message) [!LIBC]: Fall back on strerror if
87963         __strerror_r fails.
87964
87965         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87966         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87967         (longest_relative_suffix): New function.
87968         (path_concat): Use it.  Assume first argument is not NULL.
87969         Port to DOS.  Omit redundant separators.
87970         Report an error instead of returning NULL.
87971         Use mempcpy instead of memcpy.
87972         (xpath_concat): Remove: not declared or used.
87973
87974         * lib/same.h: Include <stdbool.h>
87975         (same_name): Return bool, not int.
87976         * lib/same.c (same_name): Likewise.
87977         (errno): Don't declare; we assume C89 or better now.
87978
87979         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87980         if not already defined.
87981
87982         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87983         * lib/dup-safer.c (errno): Likewise.
87984
87985 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         Merge from coreutils.
87988         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87989         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87990         * modules/path-concat: Don't depend on strdup.
87991
87992 2004-08-03  Simon Josefsson  <jas@extundo.com>
87993
87994         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87995         * lib/progname.h: Don't include stdbool.h.
87996
87997 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88000         * MODULES.html.sh (func_all_modules): Remove fatal.
88001
88002 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88003
88004         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88005
88006 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88007
88008         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88009         working.
88010
88011 2004-08-02  Simon Josefsson  <jas@extundo.com>
88012
88013         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88014         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88015         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88016
88017 2004-08-01  Simon Josefsson  <jas@extundo.com>
88018
88019         * lib/xgetdomainname.c: Include stdlib.h, for free().
88020
88021 2004-07-19  Bruno Haible  <bruno@clisp.org>
88022
88023         * MODULES.html.sh (func_all_modules): Add dummy.
88024
88025 2004-07-16  Simon Josefsson  <jas@extundo.com>
88026
88027         * modules/dummy: New file.
88028
88029 2004-07-16  Simon Josefsson  <jas@extundo.com>
88030
88031         * lib/dummy.c: New file.
88032
88033 2004-07-16  Bruno Haible  <bruno@clisp.org>
88034
88035         * lib/backupfile.h: Add extern "C" for C++.
88036         * lib/closeout.h: Likewise.
88037         * lib/copy-file.h: Likewise.
88038         * lib/findprog.h: Likewise.
88039         * lib/full-write.h: Likewise.
88040         * lib/pathname.h: Likewise.
88041         * lib/progname.h: Likewise.
88042         * lib/stpcpy.h: Likewise.
88043         * lib/stpncpy.h: Likewise.
88044         * lib/strcase.h: Likewise.
88045         * lib/strstr.h: Likewise.
88046         * lib/xalloc.h: Likewise.
88047
88048         * lib/mbswidth.h: Add extern "C" for C++.
88049         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88050
88051 2004-07-13  Robert Millan  <robertmh@gnu.org>
88052
88053         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88054
88055 2004-07-09  Simon Josefsson  <jas@extundo.com>
88056
88057         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88058         failed without this.)
88059
88060 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88061
88062         * modules/chown (Files): Add lib/fchown-stub.c, since
88063         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88064
88065 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88066
88067         * lib/fchown-stub.c: New file.
88068
88069 2004-06-24  Jim Meyering  <jim@meyering.net>
88070
88071         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88072
88073 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88074
88075         * modules/argz: Omit "#include".
88076
88077         * MODULES.html.sh (func_all_modules): Add calloc, to match
88078         2004-06-01 addition of calloc module.
88079
88080 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88081
88082         * m4/argz.m4: New file, which is autoupdated from libtool.
88083
88084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88085
88086         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88087         libtool.
88088
88089 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88090
88091         * config/srclist-update: Don't insist on "USA." before the
88092         close-comment, as libtool omits the period and puts the */ on a
88093         separate line.
88094         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88095         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88096
88097 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88098
88099         * modules/argz: New file.
88100         * MODULES.html.sh (func_all_modules): Add argz.
88101
88102 2004-06-12  Jim Meyering  <jim@meyering.net>
88103         and  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         * modules/hash (Files): Add lib/xalloc.h.
88106         * modules/pipe (Depends-on): Add wait-process.
88107         * modules/stat (Depends-on): Add xalloc.
88108         * modules/userspec (Files): Add lib/userspec.h.
88109         * modules/xstrto
88110
88111         Upgrade from gettext-0.13.
88112         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88113         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88114         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88115
88116 2004-06-10  Jim Meyering  <jim@meyering.net>
88117
88118         * lib/calloc.c: New file.
88119
88120 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88121
88122         * lib/getdate.y (yylex): Allow space between sign and number.
88123         Problem reported by Dan Jacobson.
88124
88125 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88126
88127         Merge from coreutils CVS.
88128
88129         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88130         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88131         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88132         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88133         xstrtol.m4: Fix copyright date and/or serial number.
88134
88135         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88136         See if we need an fchown replacement.
88137         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88138         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88139         and use the replacement function if we detect either defect.
88140
88141         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88142         gl_UTIMECMP.
88143
88144 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88145         and  Jim Meyering  <jim@meyering.net>
88146
88147         Merge from coreutils CVS.
88148
88149         * lib/stat-macros.h: New file, with contents from file-type.h
88150         and coreutils' system.h.
88151         * lib/file-type.c: Include "stat-macros.h".
88152         * lib/file-type.h (file_type): Move all macro definitions to new file,
88153         stat-macros.h.
88154
88155         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88156         Wrap old code with this conditional.
88157         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88158         function that does not dereference symlinks.
88159         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88160
88161         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88162         dependency problems.
88163         (xreadlink): Accept new arg SIZE, for efficiency.
88164         All decls and uses changed.
88165         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88166
88167         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88168         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88169
88170         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88171         sysexits.h.
88172
88173 2004-06-01  Jim Meyering  <jim@meyering.net>
88174
88175         * m4/calloc.m4: New file.
88176
88177 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88178
88179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88180         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88181         Also, fix a typo in a diagnostic.
88182
88183 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88184
88185         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88186         or AC_FUNC_REALLOC.
88187
88188 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88189
88190         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88191         macros to be defined.
88192         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88193         the allocator returns NULL because the requested size is zero.
88194
88195 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88196
88197         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88198         var.  Add comment explaining why libc still defines it.  This
88199         merges the following patch from glibc:
88200         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88201
88202 2004-05-20  Andreas Schwab  <schwab@suse.de>
88203
88204         * m4/free.m4: Replace free if it not known to work, not the other
88205         way round.
88206
88207 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88208
88209         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88210         present in glibc since revision 1.1 of this file.
88211         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88212         obstack_alignment_mask, obstack_alloc, obstack_base,
88213         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88214         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88215         obstack_grow0, obstack_init, obstack_int_grow,
88216         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88217         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88218         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88219         nonexistent functions.
88220
88221 2004-05-18  Karl Berry  <karl@gnu.org>
88222
88223         * config/srclist.txt: break link for vasnprintf.c.
88224
88225 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88226
88227         Port obstack to the AS/400, where pointers are 16 bytes wide and
88228         you cannot cast an integer to a valid pointer.  This patch is
88229         currently waiting to be integrated into glibc; see
88230         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88231
88232         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88233         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88234         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88235         (struct obstack): temp member is now a union of a pointer and
88236         an integer, instead of an integer.  All integer uses changed.
88237         This does not affect the physical layout of struct obstack,
88238         except on hosts (like the AS/400) where the size or alignment of
88239         void * is greater than that of ptrdiff_t.
88240         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88241         __STDC__)]: Store temporary in pointer member of union, not
88242         integer member.
88243         * lib/obstack.c: Include <stddef.h>, for offsetof.
88244         (struct fooalign): Remove; it doesn't need a name.
88245         (union fooround): Change double to long double, and add void *.
88246         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88247         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88248         not a macro.  Hence the values are always int; so remove all
88249         casts-to-int in uses.
88250
88251 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88252
88253         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88254         we can get this patch merged into glibc.
88255
88256 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88257             Paul Eggert  <eggert@cs.ucla.edu>
88258
88259         * m4/argp: Depend on alloca.
88260
88261 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88262             Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88265         freecoding.
88266
88267 2004-05-17  Bruno Haible  <bruno@clisp.org>
88268
88269         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88270         precision that consists of a '.' followed by an empty digit string.
88271         Patch by Tor Lillqvist <tml@iki.fi>.
88272
88273 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88274
88275         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88276         for backward compatibility with older code.  We need our own
88277         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88278         it under some other name, and our alloca.h will define it.
88279
88280 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88281             Derek Price  <derek@ximbiot.com>
88282
88283         * lib/alloca.c: Include <alloca.h>, to get our interface.
88284         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88285         include <alloca.h> first.  Use C89 prototype for alloca; this
88286         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88287         Use #elif for simplicity, since we can assume C89 now.
88288         Don't try to source the system alloca.h since it will not be found
88289         and to prevent recursively including its replacement.
88290         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88291         * lib/regex.c: Likewise.
88292
88293 2004-05-16  Derek Price  <derek@ximbiot.com>
88294             Paul Eggert  <eggert@cs.ucla.edu>
88295
88296         getline cleanup.  This changes the getndelim2 API: both order of
88297         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88298         no delimiter).
88299
88300         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88301         interface does that.
88302         (getline): Always use getdelim, so that we don't have two
88303         copies of this code.
88304         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88305         if available.
88306         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88307         (GETNDELIM2_MAXIMUM): New macro.
88308         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88309         instead of the old practice of delim2==0.  All callers changed.
88310         Return -1 on overflow, instead of returning junk.
88311         Do not set *linesize unless allocation succeeds.
88312         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88313         that we include sys/types.h.
88314         * lib/getnline.h: Likewise.
88315         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88316         (getndelim2): Reorder arguments.
88317         * lib/getnline.c (getnline, getndelim):
88318         Don't discard the NMAX argument.
88319         (getnline): Invoke getndelim, to avoid code duplication.
88320         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88321         of (size_t) -1 by callers of the getnline family.
88322
88323 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88324
88325         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88326         Check for gettimeofday.
88327         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88328         Check for settimeofday, stime.
88329
88330 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         * lib/nanosleep.c (suspended): Change its type from int to
88333         sig_atomic_t volatile.
88334         (first_call): Make it private to rpl_nanosleep, and have it
88335         be zero initially as that's a bit faster.
88336         (my_usleep): Round up fractional times instead of truncating them,
88337         as this is the usual meaning for 'sleep'.
88338
88339         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88340         doesn't work.
88341         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88342         (ENOSYS): Define if not defined.
88343         (settime): Fall back on stime if it exists and settimeofday fails.
88344         But don't bother with fallbacks if a method fails with errno == EPERM.
88345
88346 2004-05-11  Jim Meyering  <jim@meyering.net>
88347
88348         Prior to this change, the save_cwd caller required read access to the
88349         current directory on most systems (ones with the fchdir function).
88350
88351         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88352         fails, try write-only, and finally, resort to using xgetcwd.
88353
88354 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88355
88356         * lib/obstack.c, obstack.h: Import changes from libc.
88357
88358 2004-04-28  Bruno Haible  <bruno@clisp.org>
88359
88360         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88361         also implicitly appends .exe to executables.
88362         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88363         accepts Windows pathnames.
88364         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88365         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88366         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88367         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88368         Reported by Derek Robert Price <derek@ximbiot.com>.
88369
88370 2004-04-21  Karl Berry  <karl@gnu.org>
88371
88372         * config/srclist.txt (localcharset.c): break sync.
88373
88374 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88375
88376         * m4/host-os.m4: Add a copyright notice.
88377
88378 2004-04-20  Jim Meyering  <jim@meyering.net>
88379
88380         Change UTILS_ to gl_ in AC_DEFINE'd names.
88381         Change utils_- and jm_-prefixed variables, too.
88382         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88383         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88385
88386         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88387         Don't emit trailing blanks.
88388         Also rename jm_-prefixed variables to have gl_ prefix.
88389
88390         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88391         Also rename jm_-prefixed variables to have gl_ prefix.
88392
88393         * m4/jm-macros.m4: Reflect the renamings.
88394         * m4/prereq.m4: Likewise.
88395
88396 2004-04-20  Jim Meyering  <jim@meyering.net>
88397
88398         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88399         memory.
88400
88401 2004-04-20  Jim Meyering  <jim@meyering.net>
88402             Bruno Haible  <bruno@clisp.org>
88403
88404         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88405         memory when realloc fails.
88406
88407 2004-04-19  Jim Meyering  <jim@meyering.net>
88408
88409         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88410         now that readutmp.c may call `free (0)'.
88411
88412 2004-04-19  Bruno Haible  <bruno@clisp.org>
88413
88414         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88415         * m4/inttypes_h.m4: Likewise.
88416         * m4/stdint_h.m4: Likewise.
88417         * m4/intmax_t.m4: Likewise.
88418         * m4/uintmax_t.m4: Likewise.
88419
88420 2004-04-18  Jim Meyering  <jim@meyering.net>
88421
88422         * m4/prereq.m4: Don't forbid jm_ prefix.
88423
88424         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88425         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88426         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88427         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88428         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88429         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88430         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88431         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88432         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88433         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88434         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88435         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88436         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88437         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88438         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88439         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88440         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88441         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88442         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88443
88444 2004-04-18  Jim Meyering  <jim@meyering.net>
88445
88446         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88447         failure, don't leak memory and do call END_UTMP_ENT.
88448
88449 2004-04-16  Jim Meyering  <jim@meyering.net>
88450
88451         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88452         coreutils' stat program.
88453         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88454
88455 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88456
88457         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88458         C89.
88459         (CHAR_BIT): Remove, since we assume C89.
88460         Include <stdint.h> if available, as per current Autoconf CVS advice.
88461
88462 2004-03-31  Jim Meyering  <jim@meyering.net>
88463
88464         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88465         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88466         * m4/xalloc.m4: Likewise.
88467
88468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88469
88470         Merge from coreutils.
88471
88472         * m4/inttostr.m4: New file.
88473         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88474         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88475         Require gl_CLOCK_TIME.
88476         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88477
88478 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88479
88480         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88481         not bool, to be more consistent with Unix conventions.
88482         Suggested by Bruno Haible.
88483
88484         Merge from coreutils.
88485
88486         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88487         * lib/umaxtostr.c: New files.
88488
88489         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88490         the usual <time.h> dance.
88491         (get_date): Change signature to support fractional time stamps.
88492         All callers changed.
88493         * lib/getdate.y: Include "getdate.h" first, as we can now
88494         assume C89 and don't need to worry about 'const'.
88495         Similarly, include "unlocked-io.h" near start, not in middle.
88496         Include <limits.h>.
88497         (textint.value): Use long int rather than int.
88498         (textint.digits): Use size_t rather than int.
88499         (BILLION, LOG10_BILLION): New constants.
88500         (parser_control): New member rel_ns.  Members day_ordinal,
88501         time_zone, month, day, hour, minutes, rel_year, rel_month,
88502         rel_day, rel_hour, rel_minutes, rel_seconds
88503         are now long int, not int.  Member seconds is now struct timespec,
88504         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88505         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88506         not int.
88507         (%union.intval): Now long int, not int.
88508         New member timespec.
88509         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88510         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88511         (spec): Now is a timespec or an item list.
88512         (timespec, items): New nonterminals.
88513         (time, rel, relunit, number, get_date):
88514         Add support for fractional seconds.
88515         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88516         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88517         (to_hour): First arg is now long int, not int.
88518         (to_year): Returns long int, not int.
88519         Don't treat year -70 like 70.
88520         (tm_diff): Returns long int, not int.
88521         (lookup_word): Use bool instead of int when appropriate.
88522         (yylex): Use size_t for count, not int.
88523         Detect overflow when parsing large integer constants.
88524         Add support for fractions.
88525         (get_date): Make pointers 'const' if possible.
88526         Use more-portable code to detect integer overflow.
88527         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88528         Don't use ctime; it's not reliable if the year has >4 digits.
88529
88530         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88531         This is for compatibility with BSD.
88532
88533         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88534         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88535         From coreutils' system.h.
88536
88537         * lib/userspec.c: Don't include "posixver.h".
88538         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88539         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88540         compatible extension.  Simplify code by removing a boolean int
88541         that was always nonzero if a string was nonnull.
88542
88543 2004-03-30  Jim Meyering  <jim@meyering.net>
88544
88545         Merge from coreutils.
88546
88547         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88548         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88549         on some systems one must include <grp.h> before it.
88550         Reported by Christian Krackowizer.
88551
88552 2004-03-30  Jim Meyering  <jim@meyering.net>
88553
88554         Merge from coreutils.
88555
88556         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88557
88558         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88559         an empty input stream.
88560
88561         * lib/readtokens.c: Include <stdbool.h>.
88562         (readtoken): Use `size_t' rather than int/long.
88563         All callers adjusted.
88564         Use `bool' rather than `int' where appropriate.
88565         Use memset rather than an explicit loop.
88566         Use x2nrealloc rather than xrealloc.
88567         Allow the use of `\0' as a delimiter.
88568         (readtokens): Likewise.
88569         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88570
88571 2004-03-30  Jim Meyering  <jim@meyering.net>
88572
88573         * m4/realloc.m4: Remove file, since now it does no more than
88574         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88575         the `configure.ac' section of module/realloc.
88576         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88577
88578 2004-03-30  Bruno Haible  <bruno@clisp.org>
88579
88580         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88581         nonnull.
88582
88583 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88584
88585         Merge changes to getloadavg.c from coreutils and Emacs.
88586
88587         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88588         Define to an expression, not to the empty string.
88589         Include cloexec.h and xalloc.h.
88590         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88591         Use set_cloexec_flag rather than rolling our own.
88592         * lib/cloexec.c, lib/cloexec.h: New files.
88593
88594 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88595
88596         * m4/cloexec.m4: New file.
88597
88598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88599
88600         * lib/getopt.h: Sync with libc CVS.
88601
88602 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88603             Bruno Haible  <bruno@clisp.org>
88604
88605         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88606         mbswidth.
88607
88608 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88609             Bruno Haible  <bruno@clisp.org>
88610
88611         * lib/mbswidth.h: Include <wchar.h> only if
88612         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88613         <wchar.h>.
88614         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88615
88616 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88617
88618         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88619         Sync with libc CVS.
88620         * lib/getopt_int.h: New file, also synced from libc.
88621
88622 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88623
88624         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88625         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88626         Bring back getopt.c, getopt.h, getopt1.c.
88627
88628 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88629
88630         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88631         All uses changed.  Check for sa_sigaction member; this fixes
88632         a bug first reported by Jason Andrade in
88633         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88634
88635 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88636
88637         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88638         '#if' expressions.  Unlike the code it replaces, it does not
88639         depend on (defined _SC_PAGESIZE).  However, it does depend on
88640         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88641         first reported by Jason Andrade in
88642         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88643
88644 2004-02-25  Simon Josefsson  <jas@extundo.com>
88645
88646         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88647
88648 2004-02-25  Simon Josefsson  <jas@extundo.com>
88649
88650         * lib/strdup.h: New file.
88651         * lib/strdup.c: Include it.
88652         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88653         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88654
88655 2004-02-23  Karl Berry  <karl@gnu.org>
88656
88657         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88658         (from fencepost.gnu.org:/gd/gnuorg).
88659
88660 2004-02-23  Karl Berry  <karl@gnu.org>
88661
88662         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88663         * config/srclist.txt: add maintain/standards documents.
88664
88665 2004-02-18  Bruno Haible  <bruno@clisp.org>
88666
88667         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88668         Reported by Derek Robert Price <derek@ximbiot.com>.
88669
88670 2004-02-16  Karl Berry  <karl@gnu.org>
88671
88672         * config/mkinstalldirs, install-sh: update from automake.
88673
88674 2004-02-06  Karl Berry  <karl@gnu.org>
88675
88676         * m4/po.m4: update from gettext 0.14.1.
88677
88678 2004-02-06  Karl Berry  <karl@gnu.org>
88679
88680         * lib/config.charset: update from gettext 0.14.1.
88681
88682 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88683
88684         Add comments and code, prompted by suggestions from Bruno Haible
88685         for sh-quote.
88686         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88687         describing the enum quoting_style values.
88688         * lib/quotearg.c (quotearg_alloc): New function.
88689         (quotearg_buffer_restyled): Treat lone { and } as special.
88690         Treat = as special.  Work around bug with older shells
88691         that "see" a '\' that is really the 2nd byte of a multibyte char.
88692         Quote empty string with shell_quoting_style.
88693
88694 2004-02-03  Bruno Haible  <bruno@clisp.org>
88695
88696         * m4/pipe.m4: New file, from GNU gettext.
88697
88698 2004-02-03  Bruno Haible  <bruno@clisp.org>
88699
88700         * lib/pipe.h: New file, from GNU gettext.
88701         * lib/pipe.c: New file, from GNU gettext.
88702
88703 2004-01-27  Bruno Haible  <bruno@clisp.org>
88704
88705         * m4/execute.m4: New file, from GNU gettext.
88706
88707 2004-01-27  Bruno Haible  <bruno@clisp.org>
88708
88709         * lib/execute.h: New file, from GNU gettext.
88710         * lib/execute.c: New file, from GNU gettext.
88711         * lib/w32spawn.h: New file, from GNU gettext.
88712
88713 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88714
88715         Merge from diffutils.
88716
88717         * lib/file-type.c (file_type): Add typed memory objects.
88718         * lib/file-type.h (S_TYPEISTMO): New macro.
88719
88720         * lib/c-stack.h (c_stack_action): Remove argv argument.
88721         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88722         (die): Don't calculate message unless segv_action returns.
88723         (get_stack_location, min_address_from_argv, max_address_from_argv,
88724         volatile stack_base, volatile_stack_size): Remove.
88725         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88726         that every segmentation violation is a stack overflow.  (Ouch!)
88727         See Debian bug 136249 (still outstanding) for more info about why
88728         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88729
88730 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88731
88732         Exit-status fix from coreutils.
88733
88734         Use exit_failure consistently in place of EXIT_FAILURE,
88735         so that program exit statuses are consistent on failure.
88736
88737         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88738         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88739         * lib/argmatch.h: Comment fix to match the above.
88740         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88741         Now a macro referring to exit_failure, instead of a separate
88742         variable.  Include "exitfail.h" to get it.
88743         * lib/xstrtol.h: Include "exitfail.h".
88744         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88745
88746         * lib/long-options.c (parse_long_options): Use prototype
88747         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88748         for clarity.
88749
88750 2004-01-21  Jim Meyering  <jim@meyering.net>
88751
88752         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88753         so as not to conflict with a different-sized __mktime_internal
88754         function in GNU libc.
88755         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88756         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88757
88758 2004-01-20  Karl Berry  <karl@gnu.org>
88759
88760         * config/config.guess: update from config.
88761
88762         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88763
88764 2004-01-20  Bruno Haible  <bruno@clisp.org>
88765
88766         Safer stack allocation.
88767         * lib/setenv.c: Include allocsa.h.
88768         (alloca): Remove fallback definition.
88769         (freea): Remove macro.
88770         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88771         instead of freea.
88772
88773 2004-01-20  Bruno Haible  <bruno@clisp.org>
88774
88775         * m4/eealloc.m4: New file, from GNU gettext.
88776
88777 2004-01-20  Bruno Haible  <bruno@clisp.org>
88778
88779         * m4/allocsa.m4: New file, from GNU gettext.
88780
88781 2004-01-20  Bruno Haible  <bruno@clisp.org>
88782
88783         * lib/xallocsa.h: New file, from GNU gettext.
88784         * lib/xallocsa.c: New file, from GNU gettext.
88785
88786 2004-01-20  Bruno Haible  <bruno@clisp.org>
88787
88788         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88789
88790 2004-01-20  Bruno Haible  <bruno@clisp.org>
88791
88792         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88793         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88794         specially.
88795
88796 2004-01-20  Bruno Haible  <bruno@clisp.org>
88797
88798         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88799         patch.
88800
88801 2004-01-20  Bruno Haible  <bruno@clisp.org>
88802
88803         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88804
88805 2004-01-20  Bruno Haible  <bruno@clisp.org>
88806
88807         * lib/eealloc.h: New file.
88808
88809 2004-01-20  Bruno Haible  <bruno@clisp.org>
88810
88811         * lib/binary-io.h: Avoid warnings on Cygwin.
88812
88813 2004-01-20  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/allocsa.h: New file, from GNU gettext.
88816         * lib/allocsa.c: New file, from GNU gettext.
88817
88818 2004-01-18  Karl Berry  <karl@gnu.org>
88819
88820         * doc/gpl.texi, doc/lgpl.texi: new files.
88821
88822 2004-01-18  Karl Berry  <karl@gnu.org>
88823
88824         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88825         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88826
88827 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88828
88829         Merge from coreutils.
88830
88831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88832         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88833         (gl_DEFAULT_POSIX2_VERSION): Move
88834         the documentation from 'configure' into 'config.hin',
88835         so that 'configure --help' isn't burdened by it and
88836         we don't have to worry about its formatting there.
88837         Reword the documentation so that it's more succinct
88838         and can be run together into a single paragraph.
88839         * m4/same.m4 (gl_SAME): Check for pathconf.
88840
88841 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88842
88843         Merge from coreutils.
88844
88845         * lib/posixver.c: Include posixver.h.
88846
88847         * lib/same.c: Include <stdbool.h>, <limits.h>.
88848         (_POSIX_NAME_MAX): Define if not defined.
88849         (MIN): New macro.
88850         (same_name): If file names are silently truncated, report
88851         that the file names are the same if they are the same after
88852         the silent truncation.
88853
88854         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88855         conversion function.
88856         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88857         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88858         longer needed.
88859
88860 2004-01-15  Jim Meyering  <jim@meyering.net>
88861
88862         Merge from coreutils.
88863
88864         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88865         if no library is required.
88866         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88867         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88868         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88869         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88870         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88871         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88872         value, $ac_cv_search_crypt, if it's "none required".
88873         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88874         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88875         not gl_FUNC_GETLOADAVG.
88876         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88877         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88878
88879 2004-01-15  Jim Meyering  <jim@meyering.net>
88880
88881         Merge from coreutils.
88882
88883         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88884         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88885         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88886
88887         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88888         optional configure-time default.
88889
88890         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88891
88892         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88893
88894 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88895
88896         Merge from coreutils.
88897
88898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88899         value, $ac_cv_search_nanosleep, if it's "none required".
88900
88901 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88902
88903         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88904         with like-named macro in fnmatch.c.
88905         (EXT): Use an internal constant instead.
88906
88907         Merge fnmatch patches from glibc.
88908         * lib/fnmatch.c (mbsinit): Remove define.
88909         Add libc_hidden_ver (__fnmatch, fnmatch).
88910         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88911         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88912
88913 2004-01-14  Karl Berry  <karl@gnu.org>
88914
88915         * config/install-sh: update from automake.
88916
88917 2004-01-13  Karl Berry  <karl@gnu.org>
88918
88919         * config/install-sh: update from automake.
88920
88921 2004-01-09  Karl Berry  <karl@gnu.org>
88922
88923         * config/install-sh: update from automake.
88924
88925 2004-01-05  Karl Berry  <karl@gnu.org>
88926
88927         * config/config.{sub,guess}: update from config.
88928
88929 2003-12-31  Karl Berry  <karl@gnu.org>
88930
88931         * config/depcomp: update from automake.
88932
88933 2003-12-14  Karl Berry  <karl@gnu.org>
88934
88935         * lib/config.charset: update from gettext-runtime.
88936
88937 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88938
88939         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88940         Bug reported by Alfred M. Szmidt.
88941
88942 2003-12-03  Bruno Haible  <bruno@clisp.org>
88943
88944         * m4/gettext.m4: Upgrade from gettext-0.13.
88945         * m4/po.m4: Upgrade from gettext-0.13.
88946         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88947         * m4/intmax.m4: New file, from gettext-0.13.
88948         * m4/printf-posix.m4: New file, from gettext-0.13.
88949
88950 2003-11-29  Karl Berry  <karl@gnu.org>
88951
88952         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88953
88954 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88955             Bruno Haible  <bruno@clisp.org>
88956
88957         * lib/printf-parse.h: Don't include sys/types.h.
88958         (ARG_NONE): New macro.
88959         (char_directive): Change type of *arg_index fields to size_t.
88960         * lib/printf-parse.c: Don't include sys/types.h.
88961         (SSIZE_MAX): Remove macro.
88962         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88963         Remove unnecessary overflow check.
88964         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88965         fields.
88966
88967 2003-11-25  Bruno Haible  <bruno@clisp.org>
88968
88969         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88970
88971 2003-11-25  Bruno Haible  <bruno@clisp.org>
88972
88973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88974         gt_TYPE_SSIZE_T.
88975
88976 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88977
88978         * modules/alloca: Remove dependency on xalloc.
88979
88980 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88981
88982         * lib/alloca.c: Remove dependency on xalloc module.
88983         (xalloc_die): Remove.
88984         (memory_full) [!defined emacs]: New macro.
88985         [!defined emacs]: Don't include xalloc.h.
88986         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88987         address arithmetic overflows.  Change datatypes a bit to avoid
88988         unnecessary casts.
88989
88990 2003-11-22  Jim Meyering  <jim@meyering.net>
88991
88992         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88993         s/size/size_t/.
88994
88995 2003-11-21  Karl Berry  <karl@gnu.org>
88996
88997         * config/config.{sub,guess}: update from config.
88998
88999 2003-11-18  Karl Berry  <karl@gnu.org>
89000
89001         * config/config.{sub,guess}: update from config.
89002
89003         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89004
89005 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89006
89007         * README: Mention that S+T cannot overflow if S is the size of
89008         an existing object and T is sufficiently small.
89009
89010 2003-11-17  Jim Meyering  <jim@meyering.net>
89011
89012         On systems without utime and without a utimes function capable of
89013         dealing with a NULL struct utimbuf* argument, this utime replacement
89014         could -- in unusual circumstances -- leak a file descriptor.
89015         * lib/utime.c: Include <unistd.h> and <errno.h>.
89016         (utime_null): Be sure to close `fd' and to preserve errno.
89017         Reported by Geoff Collyer via Arnold Robbins.
89018
89019 2003-11-17  Bruno Haible  <bruno@clisp.org>
89020
89021         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89022         (Depends-on): Add xsize.
89023
89024 2003-11-17  Bruno Haible  <bruno@clisp.org>
89025
89026         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89027
89028 2003-11-17  Bruno Haible  <bruno@clisp.org>
89029
89030         * lib/vasnprintf.c (alloca): Remove fallback definition.
89031         (freea): Remove definition.
89032         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89033         Reported by Paul Eggert.
89034
89035 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89036             Bruno Haible  <bruno@clisp.org>
89037
89038         Protect against address arithmetic overflow.
89039         * lib/printf-args.h: Include stddef.h.
89040         (arguments): Change type of field 'count' to size_t.
89041         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89042         'unsigned int' where appropriate.
89043         * lib/printf-parse.h: Include sys/types.h.
89044         (char_directive): Change type of *arg_index fields to ssize_t.
89045         (char_directives): Change type of fields 'count', max_*_length to
89046         size_t.
89047         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89048         (SSIZE_MAX): Define fallback value.
89049         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89050         instead of 'int' where appropriate. Check a_allocated, d_allocated
89051         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89052         * lib/vasnprintf.c: Include xsize.h.
89053         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89054         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89055         overflow. Avoid wraparound when converting a width or precision from
89056         decimal to binary.
89057
89058 2003-11-16  Bruno Haible  <bruno@clisp.org>
89059
89060         Update from GNU gettext.
89061         * lib/printf-parse.c: Generalize to it can be compiled for wide
89062         strings.
89063         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89064         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89065         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89066         SNPRINTF): New macros.
89067         Don't include <alloca.h> if the file is used inside libintl.
89068         (local_wcslen): New function, for Solaris 2.5.1.
89069         (VASNPRINTF): Use it instead of wcslen.
89070
89071 2003-11-16  Bruno Haible  <bruno@clisp.org>
89072
89073         * lib/xsize.h (xmax): New function.
89074         (xsum, xsum3, xsum4): Declare as "pure" functions.
89075
89076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89077
89078         * modules/xalloc (Files): Undo latest change, since xalloc.h
89079         no longer needs SIZE_MAX or PTRDIFF_MAX.
89080
89081 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89082
89083         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89084         gl_PTRDIFF_MAX.
89085
89086 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89087
89088         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89089         "return", to pacify some unknown compiler.  Problem reported
89090         by Joerg Schilling.
89091
89092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89093
89094         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89095         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89096         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89097         heuristic is just as accurate as far as we know, and it removes a
89098         dependency on size_max.m4 and ptrdiff_max.m4.
89099
89100 2003-11-11  Bruno Haible  <bruno@clisp.org>
89101
89102         * modules/xsize (Files): Add m4/size_max.m4.
89103         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89104
89105 2003-11-11  Bruno Haible  <bruno@clisp.org>
89106
89107         * m4/size_max.m4: New file.
89108         * m4/ptrdiff_max.m4: New file.
89109         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89110         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89111         (gl_XALLOC): Invoke it.
89112
89113 2003-11-11  Bruno Haible  <bruno@clisp.org>
89114
89115         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89116         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89117         defined.
89118
89119 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89120
89121         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89122         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89123         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89124         From Bruno Haible.
89125         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89126         not (size_t) -1, since it's defined here.
89127
89128 2003-11-09  Karl Berry  <karl@gnu.org>
89129
89130         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89131
89132 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89135         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89136         Reject sizes of exactly SIZE_MAX bytes.
89137         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89138         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89139
89140 2003-11-05  Bruno Haible  <bruno@clisp.org>
89141
89142         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89143         SIZE_MAX defined in <limits.h> on Solaris.
89144
89145 2003-11-04  Jim Meyering  <jim@meyering.net>
89146
89147         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89148         variable names, rather than @VAR@.
89149         * modules/poll: Likewise.
89150
89151 2003-11-04  Bruno Haible  <bruno@clisp.org>
89152
89153         * modules/xsize: New file.
89154         * modules/linebreak: Depend on xsize.
89155         * MODULES.html.sh (func_all_modules): Add xsize.
89156
89157 2003-11-04  Bruno Haible  <bruno@clisp.org>
89158
89159         * m4/xsize.m4: New file.
89160
89161 2003-11-04  Bruno Haible  <bruno@clisp.org>
89162
89163         * lib/xsize.h: New file.
89164         * lib/linebreak.c: Include xsize.h.
89165         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89166         argument for overflow.
89167         Suggested by Paul Eggert.
89168
89169 2003-11-03  Karl Berry  <karl@gnu.org>
89170
89171         * config/config.{guess,sub}: update from config.
89172
89173 2003-11-03  Jim Meyering  <jim@meyering.net>
89174
89175         * modules/userspec (lib_SOURCES): Add userspec.h.
89176         (Include): Add "userspec.h".
89177         Improve description.
89178
89179 2003-11-03  Jim Meyering  <jim@meyering.net>
89180
89181         * lib/userspec.c: Include "userspec.h".
89182         * lib/userspec.h: New file.
89183
89184 2003-11-03  Bruno Haible  <bruno@clisp.org>
89185
89186         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89187
89188 2003-11-03  Bruno Haible  <bruno@clisp.org>
89189
89190         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89191         available, to avoid (extremely rare) race condition.
89192         Suggested by Paul Eggert.
89193
89194 2003-11-02  Karl Berry  <karl@gnu.org>
89195
89196         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89197
89198 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89199
89200         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89201         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89202         (read_filesystem_list): Set and use me_type_malloced.
89203         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89204         whatever the type happens to be), for brevity and consistency.
89205         Check for size calculation overflow on Alphas running OSF/1.
89206
89207 2003-10-31  Jim Meyering  <jim@meyering.net>
89208
89209         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89210
89211         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89212
89213 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89214             Bruno Haible  <bruno@clisp.org>
89215
89216         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89217         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89218
89219 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89220
89221         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89222         netbsd*-gnu*.  Suggested by Robert Millan.
89223
89224 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89225
89226         * modules/group-member: Depend on stdbool.
89227
89228 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89229
89230         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89231
89232 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89233
89234         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89235         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89236         after the 'gnu' in these cases.  This fixes some bugs in the
89237         previous change, and is based on suggestions by Robert Millan.
89238
89239 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89240
89241         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89242         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89243         no longer needed.
89244         * lib/quotearg.c (quotearg_n_options): Use it.
89245         * lib/group-member.c: Include <stdbool.h>.
89246         (free_group_info): Arg is now const *; don't free arg.
89247         (get_group_info): Now returns bool and accepts struct group_info *,
89248         rather than returning a malloc'ed struct group_info *.
89249         All uses changed.  Check for overflow in internal size calculation.
89250
89251         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89252         rather than xmalloc/xrealloc.
89253         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89254         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89255         conformance bug: the old code used a pointer after freeing the
89256         storage that it addressed.
89257         * lib/hash.c (hash_initialize): Simplify the code by using
89258         xalloc_oversized rather than doing it by hand.
89259         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89260         the buffer preserved.  Use free and xmalloc instead.
89261         * lib/quotearg.c (quotearg_n_options): Likewise.
89262         Use a simpler test for size overflow.  Don't use xalloc_oversized
89263         because unsigned int might be wider than size_t (!); this suggests
89264         that we should switch from unsigned int to size_t for slot numbers.
89265
89266 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89267
89268         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89269         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89270         NetBSD kernels.  Requested by Richard Stallman.
89271
89272 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89273
89274         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89275         to allocate the returned structure.  Do not allocate a subarray,
89276         as x2nrealloc will do that.
89277         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89278         instead of xnrealloc.
89279         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89280
89281 2003-10-27  Bruno Haible  <bruno@clisp.org>
89282
89283         * lib/stdbool_.h: Better support for BeOS.
89284
89285 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89286
89287         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89288         now uses inline.
89289
89290 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89291
89292         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89293         callers that want to do their own size-overflow checking.  Include
89294         <stdbool.h>, since xalloc_oversized returns bool.
89295         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89296         to use xalloc_oversized.
89297
89298         Add two functions x2realloc, x2nrealloc, for programs that grow
89299         arrays dynamically by doubling their sizes.
89300         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89301         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89302         New functions.
89303
89304         Port to C99 semantics for 'inline' of external functions.
89305         Bug reported by Bruno Haible.
89306         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89307         with the old contents of xnmalloc.
89308         (xnmalloc, xmalloc): Use it.
89309         (xnrealloc_inline): New static inline function,
89310         with the old contents of xnrealloc.
89311         (xnrealloc, xrealloc): Use it.
89312
89313         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89314         that.
89315
89316 2003-10-26  Karl Berry  <karl@gnu.org>
89317
89318         * config/srclist.txt (COPYING.DOC): no longer available from
89319         /gd/gnuorg; don't know where the ultimate source is.
89320
89321 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89322
89323         Fix several address-calculation bugs in the hash modules,
89324         plus some minor code cleanup.
89325
89326         * lib/hash.h: Include <stdbool.h>, for bool.
89327         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89328         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89329         hash_get_n_entries, hash_get_max_bucket_length,
89330         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89331         hash_rehash): Use size_t rather than unsigned.
89332         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89333         hash_get_n_buckets_used, hash_get_n_entries,
89334         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89335         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89336         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89337         Likewise.
89338         (SIZE_MAX): Define if not defined.
89339         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89340         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89341         hash_print):
89342         Use const * when possible.
89343         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89344         (check_tuning): Fix bug: if tuning parameters were very close to
89345         0 or 1, rounding errors could have caused subscript violations.
89346         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89347         (hash_initialize): Add 'fail:' label
89348         to free table and return NULL, and use it to simplify code.
89349         Use calloc rather than clearing the storage ourself.
89350         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89351         buffer size calculations.
89352         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89353         Include <stddef.h>, for size_t.
89354         * lib/hash-pjw.c (hash_pjw): Likewise.
89355         Switch to method described by Bruno Haible.
89356         Include <limits.h>, for CHAR_BIT.
89357         (SIZE_BITS): New macro.
89358
89359 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89360
89361         * m4/getline.m4 (AM_FUNC_GETLINE):
89362         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89363         hosts.  Problem reported by Derek Robert Price in
89364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89365         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89366         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89367
89368 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89369
89370         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89371         ceiling the allocation at NMAX bytes rather than silently
89372         discarding input bytes before NMAX is reached.  This makes
89373         a difference only if NMAX exceeds SIZE_MAX / 2.
89374
89375         * lib/obstack.c: Merge from glibc.
89376         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89377         Add libc_hidden_def (_obstack_newchunk).
89378         (_obstack_free) [! defined _LIBC]: Remove.
89379         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89380         a clone of the function body.
89381         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89382         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89383
89384         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89385         glibc.
89386         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89387         arg to memcpy.
89388
89389         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89390         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89391         Don't use lvalue casts, as GCC plans to remove support for them
89392         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89393         was also present in the non-GCC version, indicating that this
89394         code had always been buggy and had never been widely used.
89395         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89396         Use the fast variant of each macro, rather than copying the
89397         definiens of the fast variant; that way, we'll be more likely to
89398         catch future bugs in the fast variants.
89399
89400 2003-10-20  Bruno Haible  <bruno@clisp.org>
89401
89402         * modules/wait-process: New file.
89403         * MODULES.html.sh (func_all_modules): Add wait-process.
89404
89405 2003-10-20  Bruno Haible  <bruno@clisp.org>
89406
89407         * m4/wait-process.m4: New file.
89408
89409 2003-10-20  Bruno Haible  <bruno@clisp.org>
89410
89411         * lib/wait-process.h: New file, from GNU gettext.
89412         * lib/wait-process.c: New file, from GNU gettext.
89413
89414 2003-10-19  Jim Meyering  <jim@meyering.net>
89415
89416         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89417         HPUX 10.20.
89418
89419 2003-10-18  Karl Berry  <karl@gnu.org>
89420
89421         * config/config.guess: update from config.
89422
89423 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89424
89425         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89426         (getgroups): First arg is int, not size_t.
89427         Don't let 'free' mangle errno.
89428
89429 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89430
89431         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89432
89433 2003-10-16  Karl Berry  <karl@gnu.org>
89434
89435         * config/config.{guess,sub}: update from config.
89436
89437 2003-10-16  Jim Meyering  <jim@meyering.net>
89438
89439         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89440         memcpy.
89441
89442 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89443
89444         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89445         (SIZE_MAX): Remove.
89446         (new_exclude, add_exclude_file): Initial size no longer needs to
89447         be a power of 2.
89448         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89449         our own address arithmetic overflow checking.
89450
89451         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89452         (fnmatch): Do not alloca more than 2000 wide characters;
89453         instead, use malloc for large buffers.
89454         Check for address arithmetic overflow, and return -1
89455         with errno set to ENOMEM in that case.
89456         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89457         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89458         instead, return -1.  Check for address arithmetic overflow.
89459
89460 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89461
89462         Handle invalid suffixes and overflow independently, so that
89463         callers can treat them independently as needed.  Fix some bugs in
89464         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89465         suffix for a human-readable blocksize.  The major caller-visible
89466         change is the addition of a new
89467         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89468         that both overflow and suffix chars were found.
89469
89470         * lib/human.c (humblock): Don't check separately for invalid suffix
89471         char; that is xstrtoumax's job (now that its bug is fixed).
89472         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89473         INTMAX_MAX]: New macros.
89474         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89475         TYPE_MAXIMUM): New macros.
89476         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89477         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89478         if overflow occurs, as it's what __strtol does and it's more useful
89479         in practice.
89480         (__xstrtol): If __strtol reports some error other than ERANGE,
89481         reflect it to the caller as LONGINT_INVALID.  If it reports
89482         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89483         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89484         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89485         value.
89486         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89487         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89488         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89489         [defined UINTMAX_MAX]: New macros.
89490
89491 2003-10-14  Bruno Haible  <bruno@clisp.org>
89492
89493         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89494
89495 2003-10-14  Bruno Haible  <bruno@clisp.org>
89496
89497         * m4/sig_atomic_t: New file, from GNU gettext.
89498         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89499
89500 2003-10-14  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89503         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89504         Also use volatile where needed.
89505
89506 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89507
89508         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89509         Change maintainer from Bruno Haible to 'all'.
89510
89511 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89512
89513         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89514
89515 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89518         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89519         and define in terms of the other primitives.
89520         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89521         (SIZE_MAX): Define if not already defined.
89522         (array_size_overflow): New function.
89523         (xalloc_die): Abort instead of exiting if 'error' returns.
89524         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89525         (xmalloc, xrealloc): Use them.
89526         (xcalloc): Check for address arithmetic overflow.
89527         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89528         a bit faster than strcpy.
89529
89530 2003-10-10  Simon Josefsson  <jas@extundo.com>
89531
89532         * modules/argp (Depends-on): Add restrict and strcase.
89533
89534 2003-10-10  Simon Josefsson  <jas@extundo.com>
89535
89536         * m4/argp.m4: Add AC_C_INLINE.
89537
89538 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89539
89540         Merge getpass from libc, plus a few fixes.
89541
89542         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89543         Include <stdbool.h>.
89544         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89545         __fsetlocking to empty.
89546         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89547         do include <bits/libc-lock.h>.
89548         Do not include <fcntl.h>; not needed.
89549         [_LIBC]: Include <wchar.h>.
89550         (NOTCANCEL_MODE): New macro.
89551         (flockfile, funlockfile) [_LIBC]: New macros.
89552         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89553         [!_LIBC]: New macros.
89554         (call_fclose): New function.
89555         (getpass): Use it.  Save tty stream separately; this simplifies the
89556         code and makes it more reliable if stdin happens to equal stdout.
89557         Invoke __fsetlocking on tty.
89558         Handle thread cancellation if needed.
89559         Namespace cleanup (use __tcgetattr, __getline).
89560         Use bool for Booleans.
89561         [USE_IN_LIBIO]: Handle wide streams.
89562         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89563         stream might go where.
89564
89565         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89566         doesn't have to include <stdio.h> before us.
89567         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89568         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89569         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89570         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89571         if not declared, so that we can use getpass.c code from libc without
89572         rewriting it.
89573         (flockfile, ftrylockfile, funlockfile): New macros.
89574
89575 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89576
89577         * modules/getpass: Depend on stdbool.
89578
89579 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89580
89581         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89582
89583 2003-10-07  Karl Berry  <karl@gnu.org>
89584
89585         * config/config.{guess,sub}: update from config.
89586
89587 2003-10-06  Jim Meyering  <jim@meyering.net>
89588             Bruno Haible  <bruno@clisp.org>
89589
89590         This lets translators provide better translations for the
89591         "Written by ..." part of --version output.
89592         * lib/version-etc.h: Include stdarg.h.
89593         (version_etc_copyright): Declare as readonly.
89594         (version_etc): Make this function variadic with a NULL-terminated list
89595         of author name strings.
89596         (version_etc_va): New declaration.
89597         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89598         (version_etc_copyright): Declare as readonly.
89599         (version_etc_va): New function. Provide a different translatable string
89600         for each possible number of authors < 10. Abbreviate when there are 10
89601         authors or more.
89602         (version_etc): Make this function variadic. Call version_etc_va.
89603         Suggestion from Gary V. Vaughan.
89604
89605         * lib/long-options.h (parse_long_options): Change prototype: the
89606         authors string is moved to the end and becomes variadic.
89607         * lib/long-options.c: Include stdarg.h.
89608         (parse_long_options): Make this function variadic, too.
89609         Call version_etc_va, not version_etc.
89610
89611 2003-10-06  Bruno Haible  <bruno@clisp.org>
89612
89613         * modules/version-etc-2: Remove file.
89614         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89615
89616 2003-10-06  Bruno Haible  <bruno@clisp.org>
89617
89618         * modules/fatal-signal: New file.
89619         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89620
89621 2003-10-06  Bruno Haible  <bruno@clisp.org>
89622
89623         * m4/fatal-signal.m4: New file.
89624         * m4/signalblocking.m4: New file, from GNU gettext.
89625
89626 2003-10-06  Bruno Haible  <bruno@clisp.org>
89627
89628         * lib/version-etc-2.h: Remove file.
89629         * lib/version-etc-2.c: Remove file.
89630
89631 2003-10-06  Bruno Haible  <bruno@clisp.org>
89632
89633         * lib/fatal-signal.h: New file, from GNU gettext.
89634         * lib/fatal-signal.c: New file, from GNU gettext.
89635
89636 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89637
89638         * README: Rework advice for preventing empty .o files.
89639         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89640         not <sys/types.h>.
89641
89642 2003-10-04  Karl Berry  <karl@gnu.org>
89643
89644         * lib/argp*: update from libc.
89645
89646 2003-10-04  Karl Berry  <karl@gnu.org>
89647
89648         * config/config.{guess,sub}: update from config.
89649
89650 2003-10-02  Bruno Haible  <bruno@clisp.org>
89651
89652         * modules/lchown (Include): Add lchown.h.
89653         * modules/time_r (Include): Use "..." syntax.
89654         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89655
89656 2003-10-01  Simon Josefsson  <jas@extundo.com>
89657
89658         * MODULES.html.sh (func_all_modules): Move gethostname from section
89659         'based on' to section 'lacking' POSIX:2001.
89660
89661 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89662
89663         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89664         to output mode on the same stream.
89665
89666 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89667
89668         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89669         Fix arg typo in previous patch.
89670
89671 2003-09-28  Jim Meyering  <jim@meyering.net>
89672
89673         * lib/error.c: Correct cpp indentation.
89674
89675 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89676
89677         * modules/free: New file.
89678
89679 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89680
89681         * m4/free.m4: New file.
89682
89683 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89684
89685         * lib/minmax.h (MIN, MAX)
89686         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89687         Omit the special code that used __typeof__, since we worry that
89688         it could be more trouble than it's worth.  See:
89689         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89690         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89691
89692         * lib/free.c: New file.
89693
89694 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89695
89696         Trivial fixes to Makefile.am parts of module listings.
89697         * modules/strstr: Append strstr.h to lib_SOURCES.
89698         * modules/strcase: Likewise, for strcase.h.
89699
89700 2003-09-27  Karl Berry  <karl@gnu.org>
89701
89702         * config/mkinstalldirs: update from automake.
89703
89704 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89705
89706         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89707         (error_tail): Do not loop, reallocating temporary buffer, since
89708         the output cannot contain more wide characters than the input
89709         contains bytes, the size must be big enough already.  This avoids
89710         one potential size overflow calculation.  Check for size overflow
89711         when calculating temporary buffer size.  Free temporary buffer
89712         when done, if it was allocated with malloc; this plugs a memory
89713         leak.  Remove casts from void * to pointers, that are no longer
89714         needed now that we're assuming C89 or better.
89715
89716         Merge error changes from glibc.
89717
89718         * lib/error.c, error.h: Update copyright notice header to match glibc.
89719         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89720         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89721         Disable cancellation while printing error.
89722         * lib/error.h: Prepend __ to parameter names.
89723
89724 2003-09-26  Jim Meyering  <jim@meyering.net>
89725
89726         * lib/error.c (error_tail): Move some declarations
89727         into inner scope where the local variables are used.
89728
89729 2003-09-26  Bruno Haible  <bruno@clisp.org>
89730
89731         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89732         stpncpy().
89733         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89734
89735 2003-09-26  Bruno Haible  <bruno@clisp.org>
89736
89737         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89738         (stpncpy): Define as alias for gnu_stpncpy.
89739         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89740
89741 2003-09-25  Simon Josefsson  <jas@extundo.com>
89742
89743         * lib/xgetdomainname.h: New file.
89744         * lib/xgetdomainname.c: New file.
89745
89746 2003-09-25  Simon Josefsson  <jas@extundo.com>
89747             Bruno Haible  <bruno@clisp.org>
89748
89749         * modules/getdomainname: New file.
89750         * modules/xgetdomainname: New file.
89751         * MODULES.html.sh (func_all_modules): Add getdomainname,
89752         xgetdomainname.
89753
89754 2003-09-25  Simon Josefsson  <jas@extundo.com>
89755             Bruno Haible  <bruno@clisp.org>
89756
89757         * m4/getdomainname.m4: New file.
89758
89759 2003-09-25  Simon Josefsson  <jas@extundo.com>
89760             Bruno Haible  <bruno@clisp.org>
89761
89762         * lib/getdomainname.h: New file.
89763         * lib/getdomainname.c: New file.
89764
89765 2003-09-25  Karl Berry  <karl@gnu.org>
89766
89767         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89768
89769 2003-09-25  Karl Berry  <karl@gnu.org>
89770
89771         * config/install-sh: update from automake.
89772
89773 2003-09-25  Bruno Haible  <bruno@clisp.org>
89774
89775         * modules/version-etc-2: New file, from modules/version-etc with
89776         modifications.
89777         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89778
89779 2003-09-25  Bruno Haible  <bruno@clisp.org>
89780
89781         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89782         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89783
89784 2003-09-24  Simon Josefsson  <jas@extundo.com>
89785
89786         * modules/xgethostname: Add xgethostname.h.
89787
89788 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89789
89790         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89791         the buffer associated with the argument.  Bug reported by
89792         Simon Josefsson.
89793
89794 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89795
89796         * README: Document assumptions that 'int' is at least 32 bits
89797         wide, that integer arithmetic is 2's complement without overflow,
89798         that there are no holes in integer values, that adding sizes of
89799         two nonoverlapping objects can't overflow, and that all-bits-zero
89800         yields scalar zero.  Fix spelling and capitalization typos.
89801
89802 2003-09-19  Karl Berry  <karl@gnu.org>
89803
89804         * lib/argp.h: update from libc.
89805
89806 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89807
89808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89809         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89810         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89811
89812 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89813
89814         * gnulib-tool: Use "test -h", not "test -L", for portability
89815         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89816         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89817         (sed_extract_prog): Issue s commands one-by-one, rather than
89818         using \| in one s command.
89819
89820 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89821
89822         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89823         input error, instead of returning NULL the next time we are called
89824         (and therefore losing track of errno).
89825
89826 2003-09-16  Bruno Haible  <bruno@clisp.org>
89827
89828         * gnulib-tool (func_create_testdir): Warn about duplicated
89829         dependencies.
89830
89831 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89832
89833         * modules/argmatch, modules/fatal, modules/obstack,
89834         modules/xalloc, modules/xgethostname: Sort dependencies by
89835         importance, not alphabetically.
89836
89837 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89838
89839         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89840         fails, so that the caller gets the proper errno.
89841
89842         * lib/readutmp.c (read_utmp): Likewise.
89843         Check for fstat error.  Close stream and free storage
89844         when failing.
89845
89846 2003-09-14  Karl Berry  <karl@gnu.org>
89847
89848         * config/srclist.txt (strdup.c): disable for c89 changes.
89849
89850 2003-09-14  Jim Meyering  <jim@meyering.net>
89851
89852         * lib/getloadavg.c: Correct cpp indentation.
89853         * lib/strdup.c: Likewise.
89854         * lib/vasnprintf.c: Likewise.
89855
89856 2003-09-14  Bruno Haible  <bruno@clisp.org>
89857
89858         * modules/fwriteerror: New file.
89859         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89860
89861 2003-09-14  Bruno Haible  <bruno@clisp.org>
89862
89863         * lib/fwriteerror.h: New file.
89864         * lib/fwriteerror.c: New file.
89865
89866 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89867
89868         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89869         modules/xgethostname, modules/xalloc: Depend on exit.
89870
89871 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89872
89873         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89874
89875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89876         and AC_MINIX, too, so that their extensions are available.
89877
89878         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89879         This macro has been superseded by gl_BACKUPFILE.
89880
89881         More patches to assume C89 or better.
89882
89883         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89884
89885         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89886         unconditionally.
89887         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89888         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89889         Include <string.h>, <stdlib.h> unconditionally.
89890         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89891         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89892         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89893         headers or for string.h.
89894         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89895         or strtoul.
89896
89897         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89898         headers.
89899         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89900         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89901         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89902         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89903         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89905         memcpy, memset.
89906         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89907         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89908         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89909         strtol.
89910         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89911         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89913         strtoul.
89914
89915 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89916
89917         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89918         * lib/obstack.c [!defined _LIBC]: Likewise.
89919         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89920         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89921         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89922
89923         More changes to assume C89 or better.
89924
89925         * lib/error.c (error_tail): Assume vprintf.
89926
89927         * lib/argmatch.c (getenv): Remove decl.
89928         * lib/progreloc.c (get_full_program_name): Define via prototype.
89929         * lib/setenv.c (clearenv): Likewise.
89930         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89931         needed.
89932         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89933         (malloc, memcpy): Remove decls.
89934         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89935         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89936         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89937         (memcpy): Remove macro.
89938         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89939         (__P): Remove.  All uses removed.
89940         (PTR): Remove.  All uses changed to void *.
89941         (CHAR_BIT, NULL): Remove.
89942         (spaces, zeros, memset_space, memset_zero)
89943         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89944         Remove.
89945         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89946         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89947         Define with prototype.
89948         Remove now-unnecessary prototype decl.
89949         (extra_args_spec): Assume ANSI C.  All uses changed.
89950         (extra_args_spec_iso): Remove.
89951         (my_strftime, emacs_strftimeu): Define via prototype.
89952         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89953         unconditionally.
89954         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89955         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89956         (strtoul, strtol): Remove decls.
89957         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89958         LONG_MAX): Remove.
89959         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89960         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89961         (LOCALE_PARAM_PROTO): New macro.
89962         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89963         (INTERNAL (strtol), strtol): Define with a prototype.
89964         (PARAMS): Remove.  All uses removed.
89965         * lib/tempname.c: Include <string.h> unconditionally.
89966         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89967         * lib/xgethostname.c (main): Define with a prototype.
89968         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89969         Include <stdlib.h> unconditionally.
89970         (calloc, malloc, realloc, free): Remove decls.
89971         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89972         Include <stdlib.h> unconditionally.  Sort include file names.
89973         (strtod): Remove.
89974         (xstrtod): Define with a prototype.
89975         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89976         (strtol, strtoul): Remove decls.
89977
89978 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89979
89980         More patches to assume C89 or better.
89981         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89982         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89983         string.h, memchr, STDC_HEADERS.
89984
89985 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89986
89987         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89988         Include <stdlib.h>, <string.h> unconditionally.
89989         Remove now-unnecessary cast to char *.
89990         * lib/strnlen.c: Include <string.h> unconditionally.
89991         * lib/yesno.c (yesno): Define with a prototype.
89992
89993 2003-09-11  Bruno Haible  <bruno@clisp.org>
89994
89995         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89996
89997 2003-09-10  Jim Meyering  <jim@meyering.net>
89998
89999         * lib/error.c: Correct indentation of cpp directives.
90000
90001 2003-09-10  Bruno Haible  <bruno@clisp.org>
90002
90003         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90004         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90005         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90006         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90007         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90008         <stdlib.h> and <string.h> checks.
90009         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90010         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90011
90012 2003-09-10  Bruno Haible  <bruno@clisp.org>
90013
90014         * lib/strcspn.c: Include <string.h> unconditionally.
90015         * lib/strpbrk.c: Include <string.h> unconditionally.
90016         * lib/strstr.c: Include <string.h> unconditionally.
90017         * lib/unicodeio.c: Include <string.h> unconditionally.
90018         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90019         * lib/unsetenv.c: Likewise.
90020         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90021         * lib/yesno.c: Include <stdlib.h> unconditionally.
90022         (rpmatch): Add prototype.
90023
90024 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90025
90026         More patches to assume C89 or better.
90027         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90028         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90029         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90030         or for string.h.
90031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90032         stdlib.h.
90033         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90034         C headers.
90035         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90036         string.h.
90037         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90038         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90039         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90040         or for string.h.
90041         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90042         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90043         C headers.
90044         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90045         memcpy.
90046         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90047         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90048         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90049         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90050         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90051         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90052         string.h, free.
90053         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90054         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90055         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90056         C headers, or for string.h.
90057         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90058         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90059         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90060         headers, memory.h, stdlib.h, string.h, strings.h.
90061         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90062         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90063         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90064         strchr.
90065         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90066         headers, memory.h, string.h.
90067         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90068         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90069         free.
90070         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90071         headers.
90072         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90073         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90074         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90075         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90076         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90077
90078 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90079
90080         More K&R removal.
90081
90082         * lib/acosl.c (main): Use a prototype.
90083         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90084         tanl.c: Likewise.
90085
90086         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90087
90088         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90089         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90090         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90091         with a prototype.
90092         * lib/getopt.c (const): Remove macro.
90093         Include <string.h> unconditionally.
90094         (my_index): Remove; all uses changed to strchr.
90095         (strlen): Remove decl.
90096         (exchange): Remove forward decl; no longer needed.
90097         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90098         Define with prototype.
90099         * lib/getopt1.c (const): Remove macro.
90100         (getopt_long, getopt_long_only, main): Define with prototype.
90101
90102         * lib/getugroups.c: Include <string.h> unconditionally.
90103
90104         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90105         (getusershell, setusershell, endusershell, readname, main):
90106         Define with prototypes.
90107
90108         * lib/group-member.c: Include group-member.h first.
90109         Include <stdlib.h> unconditionally.
90110
90111         * lib/hard-locale.c: Include hard-locale.h first.
90112         Include <stdlib.h>, <string.h> unconditionally.
90113
90114         * lib/hash.c (free, malloc): Remove decls.
90115         Include <stdlib.h> unconditionally.
90116
90117         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90118         (getenv): Do not declare.
90119
90120         * lib/idcache.c: Include <string.h> unconditionally.
90121
90122         * lib/long-options.c: Include long-options.h first, to test interface.
90123         Include <stdlib.h> unconditionally.
90124
90125         * lib/makepath.c: Include makepath.h first, to test interface.
90126         Include <stdlib.h> and <string.h> unconditionally.
90127
90128         * lib/linebuffer.c: Include <stdlib.h>.
90129         (free): Remove decl.
90130
90131         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90132         stddef.h. rpl_malloc returns void *, not char *.
90133         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90134         prototype.
90135
90136         * lib/md5.h: Include <limits.h> unconditionally.
90137         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90138         (__P): Remove; all uses removed.
90139         * lib/md5.c: Include "md5.h" first.
90140         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90141         md5_buffer, md5_process_bytes, md5_process_block):
90142         Define with prototypes.
90143         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90144         * lib/sha.c: Include "sha.h" first.
90145         Include <stdlib.h>, <string.h> unconditionally.
90146
90147         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90148         * lib/memcmp.c (__ptr_t): Likewise.
90149         * lib/memrchr.c (__ptr_t): Likewise.
90150         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90151         Include <string.h> unconditionally.
90152         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90153         * lib/memchr.c: Include <stdlib.h> unconditionally.
90154         * lib/memchr.c (LONG_MAX): Remove.
90155         * lib/memrchr.c (LONG_MAX): Likewise.
90156         * lib/memchr.c (__memchr): Define via a prototype.
90157         * lib/memrchr.c (__memrchr): Likewise.
90158         * lib/memcmp.c (__P): Remove, and remove all uses.
90159         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90160         Remove forward decls; no longer needed.
90161         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90162         Use types required by C89 in prototype.
90163
90164         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90165         * lib/savedir.c: Likewise.
90166         * lib/mkdir.c (free): Remove decl.
90167         * lib/rmdir.c (rmdir): Define with a prototype.
90168         * lib/savedir.c: Include savedir.h first, to test interface.
90169
90170         * lib/mktime.c (STDC_HEADERS): Remove.
90171         Include <stdlib.h>, <string.h> unconditionally.
90172
90173         * lib/modechange.c: Include <stdlib.h> unconditionally.
90174         (malloc): Remove decl.
90175
90176         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90177         (free): Remove decl.
90178
90179         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90180         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90181         (This type really should be intptr_t, but that's a C99ism.)
90182         (_obstack_memcpy): Remove: all uses changed to memcpy.
90183         Include <string.h> unconditionally.
90184         (struct obstack): Assume __STDC__ for types of members
90185         chunkfun, freefun, extra_arg.
90186         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90187         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90188         obstack_begin, obstack_specify_allocation,
90189         obstack_specify_allocation_with_arg, obstack_chunkfun,
90190         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90191         Remove unprototyped decls and the macros that use them.
90192         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90193         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90194         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90195         (defined __STDC__ && __STDC__)]:
90196         Remove nonprototyped code.
90197         Include <stdlib.h> unconditionally.
90198         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90199         _obstack_allocated_p, _obstack_free, obstack_free,
90200         _obstack_memory_used, print_and_abort):
90201         Define using prototypes.
90202         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90203         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90204         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90205         obstack_next_free, obstack_object_size, obstack_room) [0]:
90206         Remove unused, unprototyped code.
90207
90208         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90209
90210         * lib/physmem.c (physmem_total, physmem_available, main): Define
90211         with prototypes.
90212
90213         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90214         (main): Define with a prototype.
90215
90216         * lib/posixver.c (getenv): Remove decl.
90217
90218         * lib/putenv.c (malloc): Returns void *, not char *.
90219         Include <string.h> unconditionally.
90220         (strchr, memcpy, NULL): Do not define.
90221
90222         * lib/readtokens.c: Include readtokens.h first, to test interface.
90223         Include <stdlib.h>, <string.h> unconditionally.
90224         (init_tokenbuffer): Define with a prototype.
90225
90226         * lib/regex.c (PARAMS): Remove.  All uses removed.
90227         All uses of _RE_ARGS removed, too.
90228         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90229         unconditionally.
90230         (bzero): Assume memset exists.
90231         (memcmp, memcpy, NULL): Remove.
90232         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90233         char, or assignments to local vars of type signed char.
90234         (init_syntax_once, PREFIX(extract_number_and_incr),
90235         PREFIX(print_partial_compiled_pattern),
90236         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90237         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90238         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90239         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90240         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90241         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90242         wcs_compile_range, byte_compile_range, truncate_wchar,
90243         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90244         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90245         count_mbs_length, wcs_re_match_2_internal,
90246         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90247         PREFIX(alt_match_null_string_p),
90248         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90249         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90250         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90251         now-unnecessary declaration, if any.
90252         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90253         regcomp, regexec):
90254         Remove now-unnecessary casts among pointer types.
90255         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90256
90257         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90258         (free): Remove decl.
90259
90260         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90261
90262         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90263         (free): Remove decl.
90264
90265         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90266         * lib/xgetcwd.c: Likewise.
90267
90268         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90269         (free): Remove decl.
90270
90271         * lib/strchrnul.c (strchrnul): Define with a prototype.
90272         Fix bug: c_in was not converted to char before searching.
90273
90274         The following changes are not K&R related:
90275
90276         * lib/group-member.h: Include <sys/types.h>, so that this file is
90277         self-contained.
90278         * lib/makepath.h: Likewise.
90279
90280         * lib/getusershell.c (readname, default_index, line_size, readname):
90281         Use size_t, not int, for sizes.
90282         (readname): If the size overflows, report an error instead of
90283         looping forever.
90284
90285 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90286
90287         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90288         libc.
90289
90290 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90291
90292         * README: New section: portability guidelines.
90293
90294 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90295
90296         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90297         C89 spec.
90298
90299 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90300
90301         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90302
90303 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90304
90305         Assume C89 or better; remove K&R cruft.
90306         A few of these changes were first proposed by Derek Robert Price
90307         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90308
90309         * lib/addext.c: Include <string.h> unconditionally.
90310         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90311         Don't declare getenv or malloc.
90312
90313         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90314         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90315         (NULL): Remove.
90316         (find_stack_direction, alloca): Use prototypes.
90317
90318         * lib/atexit.c (atexit): Define using a prototype.
90319
90320         * lib/basename.c, dirname.c, stripslash.c:
90321         Include <string.h> unconditionally.
90322
90323         * lib/bcopy.c: Include <stddef.h>.
90324         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90325
90326         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90327
90328         * lib/error.h (error, error_at_line, error_print_progname)
90329         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90330         * lib/error.c: Include error.h first, to check interface.
90331         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90332         (VA_START): Remove; all uses changeed to va_start.
90333         (exit, strerror): Remove decls.
90334         (error_print_progname): Prototype uncondionally.
90335         Don't include <errno.h>; no longer needed.
90336         (private_strerror): Remove.
90337         (error_tail): Always define.
90338         (error, error_at_line): Assume C89 or better; always use prototypes.
90339         * lib/fatal.c: Include "fatal.h" first, to test interface.
90340         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90341         (VA_START): Remove; all uses changed to va_start.
90342         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90343         this case.
90344         (exit): Remove decl.
90345         (fatal): Prototype unconditionally.  Assume va_start works.
90346         Abort at end, to pacify gcc.
90347
90348         * lib/euidaccess.c (main): Define with a prototype.
90349
90350         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90351
90352         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90353
90354         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90355         prototypes.
90356         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90357         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90358         (getenv): Remove decl.
90359         (fnmatch): Define using a prototype.
90360         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90361         (FCT): Define using a prototype.
90362
90363         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90364
90365         * lib/gethostname.c: Include <stddef.h>.
90366         (gethostname): Define with prototype.  Length is size_t, not int.
90367
90368 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90369
90370         Assume C89 or better; remove K&R cruft.
90371         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90372         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90373         string.h, getenv, malloc.
90374         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90375         headers.
90376         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90377         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90378         do not check for strerror.
90379         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90380         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90381         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90382         do not check for doprnt or vprintf.
90383         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90384         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90385
90386 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90387
90388         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90389         getversion.c should have been removed then, but was accidentally
90390         preserved.
90391
90392         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90393         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90394
90395 2003-09-08  Karl Berry  <karl@gnu.org>
90396
90397         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90398                 config, forget about prep.
90399
90400         * config/depcomp, missing: update from automake.
90401
90402 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90403
90404         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90406
90407 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90408
90409         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90410         copy_tm_result.  Bug reported by Simon Josefsson in
90411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90412
90413 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90414
90415         * m4/time_r.m4: New file.
90416         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90417         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90418         is. Check for timegm declaration.
90419         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90420         Do not check for gmtime_r.
90421         Replace mktime if __mktime_internal does not exist and if mktime
90422         hasn't been replaced already.
90423
90424 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90425
90426         * lib/time_r.c, lib/time_r.h: New files.
90427
90428         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90429         __localtime_r.
90430         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90431         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90432
90433         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90434         __gmtime_r.
90435         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90436         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90437         Include <time_r.h>.
90438
90439         * lib/timegm.c: Switch to glibc implementation, with the following
90440         changes:
90441         [defined HAVE_CONFIG_H]: Include <config.h>.
90442         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90443         (__mktime_internal) [!defined _LIBC]: New decl.
90444         (__gmtime_r) [!defined _LIBC]: New macro and function.
90445         (timegm): Use a prototype, since gnulib assumes C89.
90446         Do not bother declaring tmp to be const, as it's not really usefu.
90447         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90448         (timegm): Declare only if HAVE_DECL_TIMEGM.
90449
90450 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90451
90452         * MODULES.html.sh (func_all_modules): Add time_r.
90453         * modules/time_r: New file.
90454         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90455         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90456
90457 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90458
90459         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90460         Bug reported by Lute Kamstra in
90461         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90462
90463         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90464         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90465         course with correspondingly smaller numbers for tomorrow and
90466         yesterday.  From Tadayoshi Funaba.  Originally installed into
90467         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90468         coreutils merge?).
90469
90470 2003-08-31  Simon Josefsson  <jas@extundo.com>
90471
90472         * modules/timegm: New file.
90473         * MODULES.html.sh (func_all_modules): Add timegm.
90474
90475 2003-08-31  Simon Josefsson  <jas@extundo.com>
90476
90477         * m4/timegm.m4: New file.
90478
90479 2003-08-31  Simon Josefsson  <jas@extundo.com>
90480
90481         * lib/timegm.h: New file.
90482         * lib/timegm.c: New file.  Based on
90483         wget-1.8.2/src/http.c:mktime_from_utc.
90484
90485 2003-08-31  Karl Berry  <karl@gnu.org>
90486
90487         * lib/argp.h: update from libc.
90488
90489 2003-08-28  Bruno Haible  <bruno@clisp.org>
90490
90491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90492         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90493         followed by '#define fnmatch fnmatch_posix' gives an error.
90494
90495 2003-08-28  Bruno Haible  <bruno@clisp.org>
90496
90497         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90498         warning on QNX, which defines O_BINARY to 000000.
90499
90500 2003-08-27  Jim Meyering  <jim@meyering.net>
90501
90502         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90503         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90504         would fail after 32.  Reported by Danny Levinson.  Details here:
90505         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90506
90507 2003-08-24  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90510         MSVC7 <stdio.h> is included later.
90511
90512 2003-08-22  Simon Josefsson  <jas@extundo.com>
90513
90514         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90515
90516 2003-08-20  Karl Berry  <karl@gnu.org>
90517
90518         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90519
90520 2003-08-20  Bruno Haible  <bruno@clisp.org>
90521
90522         * modules/progname: New file.
90523         * MODULES.html.sh (func_all_modules): Add progname.
90524
90525 2003-08-20  Bruno Haible  <bruno@clisp.org>
90526
90527         * lib/progname.h: New file, from GNU gettext.
90528         * lib/progname.c: New file, from GNU gettext.
90529         * lib/progreloc.c: New file, from GNU gettext.
90530
90531 2003-08-19  Jim Meyering  <jim@meyering.net>
90532
90533         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90534         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90535
90536 2003-08-19  Bruno Haible  <bruno@clisp.org>
90537
90538         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90539         more.
90540
90541 2003-08-19  Bruno Haible  <bruno@clisp.org>
90542
90543         * lib/xstrdup.c: Assume <string.h> exists.
90544
90545 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90546
90547         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90548         in makefile rules.
90549
90550 2003-08-18  Jim Meyering  <jim@meyering.net>
90551
90552         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90553         * m4/lib-ld.m4: Likewise.
90554
90555 2003-08-18  Jim Meyering  <jim@meyering.net>
90556
90557         * lib/setenv.h: Indent nested cpp directive.
90558         * lib/vasnprintf.c: Remove trailing blanks.
90559
90560 2003-08-17  Simon Josefsson  <jas@extundo.com>
90561
90562         * modules/xstrndup: New file.
90563         * MODULES.html.sh (func_all_modules): Add xstrndup.
90564
90565 2003-08-17  Simon Josefsson  <jas@extundo.com>
90566
90567         * modules/argp: Fix autoconf macro name. Add more dependencies.
90568
90569 2003-08-17  Simon Josefsson  <jas@extundo.com>
90570
90571         * m4/xstrndup.m4: New file.
90572
90573 2003-08-17  Simon Josefsson  <jas@extundo.com>
90574
90575         * m4/argp.m4: New file.
90576
90577 2003-08-17  Simon Josefsson  <jas@extundo.com>
90578             Bruno Haible  <bruno@clisp.org>
90579
90580         * lib/xstrndup.h: New file.
90581         * lib/xstrndup.c: New file.
90582
90583 2003-08-17  Bruno Haible  <bruno@clisp.org>
90584
90585         * modules/strndup (Files, Include): Add lib/strndup.h.
90586
90587 2003-08-17  Bruno Haible  <bruno@clisp.org>
90588
90589         * modules/euidaccess (Files): Add lib/euidaccess.h.
90590
90591 2003-08-17  Bruno Haible  <bruno@clisp.org>
90592
90593         * lib/strndup.h: New file.
90594
90595 2003-08-17  Bruno Haible  <bruno@clisp.org>
90596
90597         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90598         like AC_GNU_SOURCE.
90599         * modules/extensions (configure.ac): Comment out the invocation of
90600         gl_USE_SYSTEM_EXTENSIONS.
90601
90602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90603
90604         Merges from coreutils, etc.
90605         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90606         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90607         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90608         fixing a typo.
90609         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90610         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90611
90612 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90613
90614         Document merge from coreutils.
90615         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90616         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90617         * modules/utime: Add m4/utimes-null.m4.
90618
90619 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90620
90621         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90622         space, undoing this 2003-08-12 change:
90623         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90624
90625 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90626
90627         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90628         strtoul.c from libc, undoing this 2003-08-12 change:
90629         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90630
90631 2003-08-16  Jim Meyering  <jim@meyering.net>
90632
90633         Merges from coreutils.
90634         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90635         prefix.  Adjust cache variables similarly.  Create 500 rather than
90636         just 300 files, to exercise bug on Darwin6.5, too.
90637         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90638         $missing_dir.
90639         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90640         AM_SYS_POSIX_TERMIOS.
90641         Reported by mkc@mathdogs.com.
90642         Also change use of $am_cv_sys_posix_termios
90643         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90644         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90645         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90646         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90647         in /proc/mounts until it finds one with matching device number.  This
90648         is unnecessary when the FILE argument *is* a mount point.  No stat call
90649         is necessary in that case.  So, disable the statvfs-testing code on
90650         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90651         as RedHat bug# 84846.
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
90660         Merge from coreutils.
90661         * lib/xstrtoimax.c: #else #if -> #elif.
90662         * lib/xstrtoumax.c: Likewise.
90663
90664 2003-08-16  Jim Meyering  <jim@meyering.net>
90665
90666         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90667         * m4/utimes.m4: Removed.
90668         * m4/utimes-null.m4: Renamed from utimes.m4.
90669
90670         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90671         to 1MB, so as not to render systems with no stack size limit (e.g.,
90672         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90673         Include <unistd.h>.  On some systems,
90674         it is required for the definition of _SC_PAGESIZE.
90675
90676 2003-08-16  Jim Meyering  <jim@meyering.net>
90677         and Paul Eggert  <eggert@cs.ucla.edu>
90678
90679         Merges from coreutils, etc.
90680
90681         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90682         using the latest version from cvs.  This avoids problems with #line
90683         directives using a vendor (Sun) compiler.
90684         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90685         Don't set GETGROUPS_LIB here; now it's
90686         done via getgroups.m4's wrapper function.
90687         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90688         rather than just in sh-util/configure.in, so that the
90689         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90690         same.
90691         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90692         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90693         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90694         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90695         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90696         Remove code that is now done by the newly-required macros.
90697         Append $(EXEEXT) to DF_PROG.
90698         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90699         Do not invoke or require the following here,
90700         since prereq.m4 or some gnulib .m4 now does this for us:
90701         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90702         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90703         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90704         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90705         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90706         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90707         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90708         AC_FUNC_OBSTACK.
90709         Do not replace the following functions, as this is now the job
90710         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90711         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90712         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90713         atexit getpass, strdup, getpagesize.
90714         Replace 'raise'.
90715         Do not check for the following functions, as this is now the job
90716         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90717         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90718         setregid.
90719         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90720         Check for sys/sysctl.h.
90721         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90722         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90723         of checking for ssize_t ourselves.
90724
90725         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90726         Require every macro that gnulib/modules/* suggests for us.
90727         (jm_PREREQ_ADDEXT): New macro.
90728         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90729         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90730
90731         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90732         (gl_PHYSMEM): Use it.
90733         Also check for `table' function.
90734         Check for new headers and functions.
90735         Add check for sys/sysmp.h.
90736         With suggestions from Kaveh Ghazi.
90737         Ignore headers that are present but cannot be compiled.  This
90738         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90739         C 5.4.
90740
90741 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90742
90743         Document merge from coreutils.
90744         * modules/userspec: Depend on posixver.
90745         * modules/strftime: Depend on tzset.
90746
90747 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90748
90749         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90750         rather than tab, after '#' in shell-script copyright notices.
90751         Suggested by Bruno Haible.
90752
90753 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90754
90755         * config/srclist-update: Use three spaces, rather than tab, after '#'
90756         in shell-script copyright notices.  Suggested by Bruno Haible.
90757         Remove unnecessary parenthesization in regular expression.
90758
90759 2003-08-15  Jim Meyering  <jim@meyering.net>
90760
90761         Merge from coreutils.
90762         * lib/xgethostname.c: Include <stdlib.h>.
90763         (xghostname): Don't exit for anything other than memory-related
90764         failure; just return NULL.
90765         * lib/userspec.c: Include "posixver.h".
90766         (parse_user_spec): Accept `.' as a separator only
90767         in pre-POSIX-200112 mode.
90768         * lib/strtoimax.c: Use #elif rather than #else #if.
90769         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90770         Remove function, now that we can rely on a working tzset function.
90771         [!_LIBC]: Ensure that the required autoconf test has been run.
90772         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90773         Use underlying_strftime for %r.
90774         * lib/sha.c: Merge in some clean-up and optimization changes from
90775         glibc.
90776         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90777         Ensure that it is a multiple of 64.
90778         Rearrange loop exit tests so as to avoid performing an
90779         additional fread after encountering an error or EOF.
90780         * lib/realloc.c: Update copyright date.
90781
90782 2003-08-15  Jim Meyering  <jim@meyering.net>
90783         and Paul Eggert  <eggert@twinsun.com>
90784
90785         Merge from coreutils.
90786         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90787         member but strut utmpx does not.  Needed for AIX 4.3.3.
90788         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90789
90790 2003-08-15  Jim Meyering  <jim@meyering.net>
90791         and Paul Eggert  <eggert@cs.ucla.edu>
90792
90793         Merges from coreutils, etc.
90794         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90795         Require gl_FUNC_TZSET_CLOBBER.
90796         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90797         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90798         members.
90799
90800 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90801
90802         Help the merge from coreutils.
90803         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90805         * m4/tzset.m4: Use it too.
90806
90807 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90808
90809         * modules/tzset: New file.
90810
90811 2003-08-14  Jim Meyering  <jim@meyering.net>
90812
90813         Merges from coreutils.
90814         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90815         variable names, rather than @FNMATCH_H@.
90816         * modules/alloca: Likewise for $(ALLOCA_H).
90817
90818         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90819         the three copies of the literal target, `fnmatch.h'.
90820         * modules/alloca (alloca.h): Likewise.
90821
90822 2003-08-14  Jim Meyering  <jim@meyering.net>
90823
90824         Merge from coreutils.
90825         * m4/tzset.m4: New file.
90826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90827         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90828         otherwise, AIX 5.1 systems would end up using the latter.
90829         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90830         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90831         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90832         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90833
90834 2003-08-14  Jim Meyering  <jim@meyering.net>
90835
90836         Merge from coreutils.
90837         * lib/obstack.h: Whitespace changes.
90838         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90839         and xcalloc return values.
90840         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90841         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90842         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90843         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90844         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90845         error from mntctl.
90846         Use mntctl's return value to drive the entry-processing loop, since
90847         we can't rely on the value of the vmt_length member in the last
90848         entry.  On some systems doing so could result in exhausting
90849         virtual memory.  Based in part on a patch from Mike Jetzer.
90850
90851 2003-08-14  Jim Meyering  <jim@meyering.net>
90852         and Paul Eggert  <eggert@twinsun.com>
90853
90854         Merges from coreutils, plus other fixes.
90855         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90856         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90857         for credits and details.  Thanks to Kaveh Ghazi for helping
90858         to keep these files in sync.
90859         (ARRAY_SIZE): Define it.
90860         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90861         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90862         (memcasecmp): Don't assume size_t fits in unsigned int.
90863         Remove casts and duplicate code.
90864         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90865         (memcpy): Remove definition.
90866         Merge in some clean-up and optimization changes from glibc.
90867         [BLOCKSIZE]: Move definition to top of file.
90868         Ensure that it is a multiple of 64.
90869         Rearrange loop exit tests so as to avoid performing an
90870         additional fread after encountering an error or EOF.
90871         * lib/md5.h (md5_uintptr): Define.
90872         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90873         return to the initial working directory.  Preserve errno
90874         for caller.
90875         * lib/idcache.c: Include "xalloc.h".
90876         (xmalloc, xrealloc): Remove decls.
90877         (getuser): Remove casts no longer required in C89.
90878         * lib/human.c: Include stdio.h, for sprintf.
90879         * lib/group-member.c: Include "xalloc.h".
90880         (xmalloc, xrealloc): Remove decls.
90881         (get_group_info): Remove casts no longer required in C89.
90882         * lib/getusershell.c (readname): Remove casts no longer required in
90883         C89.
90884         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90885         * lib/getline.c: Whitespace fix, from coreutils.
90886
90887 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90888
90889         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90890         Check for isascii.
90891
90892         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90893         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90894         Undo previous (whitespace-only) change.
90895
90896 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90897
90898         * lib/exclude.c: Include <ctype.h>
90899         (IN_CTYPE_DOMAIN): New macro.
90900         (is_space): New fn.
90901         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90902         and empty lines.
90903
90904         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90905         Undo previous (whitespace-only) change.
90906
90907 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90908
90909         * config/srclist-update: Change update back to the old behavior,
90910         leaving whitespace alone.  Use one 'sed' command rather than a
90911         pipeline.
90912         (fixlicense): Now a variable, not a function.
90913         (remove_trailing_blanks): Remove.
90914         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90915         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90916         Undo previous (whitespace-only) change.
90917
90918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90919
90920         Merge from coreutils.
90921         * modules/euidaccess: Add lib_SOURCES, include for new
90922         file euidaccess.h
90923
90924 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90925
90926         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90927         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90928         Normalize leading white space and remove trailing white space.
90929
90930         Merge from coreutils
90931         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90932
90933         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90934         0.12.1.  These files are now being upgraded automatically by
90935         ../config/srclist-update.
90936
90937 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90938
90939         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90940         Normalize leading white space and remove trailing white space.
90941         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90942         notice, as per ../config/srclist-update.
90943
90944         Merge from coreutils.
90945         * lib/euidaccess.h: New file.
90946         * lib/euidaccess.c: Include it.
90947         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90948         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90949         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90950
90951 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90952
90953         * config/srclist-update: Add copyright notice.
90954         (remove_id_lines, remove_trailing_blanks): New constants.
90955         (fixfile): Use them to normalize spacing a bit in copied files.
90956         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90957         Normalize leading white space and remove trailing white space.
90958
90959         * config/texinfo.tex: Sync with texinfo.
90960
90961         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90962         strtoul.c from libc, to merge coreutils whitespace changes.
90963
90964         * config/srclist.txt: Get the following m4 files from gettext:
90965         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90966         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90967         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90968         wint_t.m4.
90969
90970 2003-08-12  Karl Berry  <karl@gnu.org>
90971
90972         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90973         been made.
90974
90975 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90976
90977         * modules/gnu-source, m4/gnu-source.m4:
90978         Remove; we're assuming Autoconf 2.54 or later now.
90979         Suggested by Bruno Haible.
90980         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90981
90982 2003-08-11  Bruno Haible  <bruno@clisp.org>
90983
90984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90985
90986 2003-08-11  Bruno Haible  <bruno@clisp.org>
90987
90988         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90989         (vasnprintf): Use it instead of wcslen.
90990
90991 2003-08-11  Bruno Haible  <bruno@clisp.org>
90992
90993         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90994         value to ensure that _Bool promotes to int. Use #define for _Bool when
90995         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90996
90997 2003-08-10  Karl Berry  <karl@gnu.org>
90998
90999         * lib/regex.h: update from libc (whitespace fix).
91000
91001 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91002
91003         Merge some files from coreutils.  These changes were
91004         originally made by Jim Meyering.
91005         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91006         many older Unixes require this.
91007         * lib/alloca.c (alloca): Remove cast to argument of free;
91008         no longer needed in C89.
91009         * lib/alloca_.h, regex.h: Fix white space to match
91010         what GNU indent does.
91011
91012 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91013
91014         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91015         apparently Emacs's Unicode mode got confused before my 2003-08-05
91016         checkin.
91017
91018 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91019
91020         * m4/extensions.m4: New file.
91021         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91022         Require gl_USE_SYSTEM_EXTENSIONS.
91023         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91024         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91025
91026 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91027
91028         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91029         * modules/extensions, modules/gnu-source: New files.
91030         * modules/timespec, modules/unlocked-io: Depend on extensions.
91031
91032 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91033
91034         * modules/restrict: New file.
91035         * MODULES.html.sh (func_all_modules): Add restrict.
91036         * modules/regex: Depend on restrict.
91037
91038 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91039
91040         * m4/restrict.m4: New file.
91041         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91042
91043 2003-08-07  Bruno Haible  <bruno@clisp.org>
91044
91045         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91046         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91047
91048 2003-08-07  Bruno Haible  <bruno@clisp.org>
91049
91050         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91051         makes the module 'getndelim2' compatible with the module 'getline'.
91052
91053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91054
91055         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91056         byte with "\201" to avoid glitches when editing that source file
91057         with multi-gnome-terminal.
91058
91059 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91060
91061         * lib/bumpalloc.h: Remove.
91062
91063 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91064
91065         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91066         * modules/bumpalloc: Remove.
91067
91068 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91069
91070         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91071         GNU coding style.
91072
91073         Merge from coreutils.
91074         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91075         1. From glibc.
91076         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91077         from Karl Berry, implemented by Jim Meyering.
91078         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91079         from Dmitry V. Levin.
91080         Remove anachronistic cast of xrealloc.
91081         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91082         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91083         type. Otherwise, it wouldn't compile with at least /bin/cc on
91084         ymp-cray-unicos9.0.2.X.
91085         Combine two mostly-identical uses of alloca into one.
91086         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91087
91088 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91089
91090         [From Emacs.]
91091
91092         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91093         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91094         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91095         obsolete NLIST_NAME_UNION.
91096         [__GNU__]: Undef BSD and FSCALE.
91097         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91098
91099 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91100
91101         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91102         an enum type, so that it's guaranteed to promote to int.  See:
91103         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91104
91105 2003-08-03  Karl Berry  <karl@gnu.org>
91106
91107         * config/depcomp: update from automake.
91108
91109 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91110
91111         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91112         (strerror): Don't assume that a printable int fits in 14 bytes.
91113
91114 2003-07-31  Bruno Haible  <bruno@clisp.org>
91115
91116         * modules/getpass-gnu: New file.
91117         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91118
91119 2003-07-31  Bruno Haible  <bruno@clisp.org>
91120
91121         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91122
91123 2003-07-24  Karl Berry  <karl@gnu.org>
91124
91125         * config/missing: update from automake.
91126
91127 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91128             Bruno Haible  <bruno@clisp.org>
91129
91130         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91131         * lib/getline.c (getline, getdelim): Likewise.
91132         Remove _GNU_SOURCE define; now it's defined in config.h through
91133         m4/getline.m4.
91134
91135 2003-07-23  Karl Berry  <karl@gnu.org>
91136
91137         * config/config.sub: update from prep.
91138
91139 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91140
91141         * modules/xalloc (Depends-on): Add exitfail.
91142         * modules/xmemcoll: Likewise.
91143
91144 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91145
91146         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91147         over-parenthesization in macros.
91148
91149         Sync with coreutils.
91150
91151         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91152         required by C99.
91153
91154         Use `exit_failure' for xalloc and xmemcoll instead of their own
91155         private exit-failure variables.
91156         * lib/xalloc.h (xalloc_exit_failure): Remove.
91157         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91158         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91159         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91160         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91161         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91162
91163 2003-07-20  Jim Meyering  <jim@meyering.net>
91164
91165         * modules/closeout (Depends-on): Add exitfail.
91166         Suggestion from Bruno Haible.
91167
91168 2003-07-19  Karl Berry  <karl@gnu.org>
91169
91170         * config/config.sub: update from prep.
91171
91172 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91173
91174         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91175         Remove.
91176         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91177         to test that it can stand by itself.  Include "exitfail.h".
91178         Clients should set exit_failure instead.
91179         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91180
91181 2003-07-18  Bruno Haible  <bruno@clisp.org>
91182
91183         * modules/getndelim2: New file.
91184         * modules/getline: Share files with module getndelim2.
91185         * modules/getnline: Depend on getndelim2 instead of sharing files with
91186         it. Add getnline.c to lib_SOURCES.
91187         * MODULES.html.sh (func_all_modules): Add getndelim2.
91188
91189 2003-07-18  Bruno Haible  <bruno@clisp.org>
91190
91191         * m4/getndelim2.m4: New file.
91192         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91193         invoke gl_PREREQ_GETNDELIM2.
91194         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91195         gl_PREREQ_GETNDELIM2.
91196         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91197         gl_GETNDELIM2.
91198
91199 2003-07-18  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/getndelim2.h: New file.
91202         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91203         getndelim2.h.
91204         (getndelim2): Make non-static. Change return type to ssize_t.
91205         * lib/getline.h: Change argument names.
91206         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91207         * lib/getnline.c: Include getndelim2.h.
91208
91209 2003-07-18  Andreas Schwab  <schwab@suse.de>
91210
91211         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91212
91213 2003-07-17  Karl Berry  <karl@gnu.org>
91214
91215         * config/config.sub: update from prep.
91216
91217 2003-07-17  Bruno Haible  <bruno@clisp.org>
91218
91219         * modules/getnline: New file.
91220         * modules/getline: Add lib/getndelim2.c to source file list.
91221         * MODULES.html.sh (func_all_modules): Add getnline.
91222
91223 2003-07-17  Bruno Haible  <bruno@clisp.org>
91224
91225         * m4/getnline.m4: New file.
91226
91227 2003-07-17  Bruno Haible  <bruno@clisp.org>
91228
91229         * m4/Makefile.am.in: Remove file.
91230         * m4/Makefile.am: Remove file.
91231         * m4/Makefile.in: Remove file.
91232
91233 2003-07-17  Bruno Haible  <bruno@clisp.org>
91234
91235         * lib/getnline.h: New file.
91236         * lib/getnline.c: New file.
91237         * lib/getndelim2.c: New file, extracted from getline.c.
91238         (getndelim2): Renamed from getdelim2, with added nmax argument.
91239         * lib/getline.c: Include getndelim2.c.
91240         (getdelim2): Moved out to getndelim2.c.
91241         (getline, getdelim): Update.
91242
91243 2003-07-17  Bruno Haible  <bruno@clisp.org>
91244
91245         * lib/Makefile.am: Remove file.
91246         * lib/Makefile.in: Remove file.
91247
91248 2003-07-17  Bruno Haible  <bruno@clisp.org>
91249
91250         * configure.in: Remove file.
91251         * Makefile.in: Remove file.
91252
91253 2003-07-17  Bruno Haible  <bruno@clisp.org>
91254
91255         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91256
91257 2003-07-16  Karl Berry  <karl@gnu.org>
91258
91259         * config/srclist-update: was running fixlicense twice, which caused
91260                 texinfo.tex to be nullified for some reason.  Simplify,
91261                 $gplsrc is no longer needed as far as I can see?
91262
91263 2003-07-16  Jim Meyering  <jim@meyering.net>
91264
91265         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91266
91267 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91268
91269         * config/srclist.txt: Get the following files from gettext-runtime/intl
91270         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91271         ref-del.sin.  From Bruno Haible.
91272         * config/srclist-update (fixfile): Change grep pattern again, since the
91273         previous fix didn't work (there was another trailing $).  Use
91274         '[$]' to escape the $s.
91275
91276 2003-07-15  Karl Berry  <karl@gnu.org>
91277
91278         * lib/vasnprintf.c: update from gettext.
91279
91280 2003-07-15  Karl Berry  <karl@gnu.org>
91281
91282         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91283         gets expanded when surrounded by '$'.
91284
91285 2003-07-15  Jim Meyering  <jim@meyering.net>
91286
91287         * modules/save-cwd: Don't depend on error.  From Derek Price.
91288
91289 2003-07-15  Jim Meyering  <jim@meyering.net>
91290
91291         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91292
91293 2003-07-14  Simon Josefsson  <jas@extundo.com>
91294
91295         * modules/mempcpy: New file.
91296         * MODULES.html.sh (func_all_modules): Add mempcpy.
91297
91298 2003-07-14  Simon Josefsson  <jas@extundo.com>
91299
91300         * m4/mempcpy.m4: New file.
91301
91302 2003-07-14  Simon Josefsson  <jas@extundo.com>
91303
91304         * lib/mempcpy.h: New file.
91305         * lib/mempcpy.c: New file.
91306
91307 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91308
91309         * modules/getdate, modules/posixtm: Depend on mktime.
91310
91311 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91314         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91315         unicodeio.c, unicodeio.h, unlocked-io.h:
91316         Switch from LGPL to GPL.
91317
91318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91319
91320         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91321         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91322         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91323         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91324         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91325         updated automatically by ../config/srclist-update.  This changes
91326         their license from LPGL to GPL.
91327
91328 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91329
91330         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91331         assumed to refer to the root of the most recent stable gettext version.
91332         * config/srclistvars.sh: Add defaults for eggert.
91333         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91334         Match "This program" as well as "The program".  This is needed
91335         for gettext.
91336
91337 2003-07-14  Jim Meyering  <jim@meyering.net>
91338
91339         Don't emit diagnostics.  Let callers do that.
91340         * lib/save-cwd.c: Don't include "error.h".
91341         (save_cwd): Don't call error.  Ensure that errno is valid
91342         when returning nonzero.
91343
91344         * lib/save-cwd.h (restore_cwd): Update prototype.
91345         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91346         Simplify.  Don't call error upon failure.  Let callers do that.
91347         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91348         when auditing is enabled.  But don't bother updating the #if.
91349
91350 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91351
91352         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91353         it breaks C++ compilation.
91354         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91355
91356 2003-07-10  Simon Josefsson  <jas@extundo.com>
91357
91358         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91359
91360 2003-07-10  Jim Meyering  <jim@meyering.net>
91361
91362         * m4/clock_time.m4: Remove trailing blank.
91363         * m4/intmax_t.m4: Likewise.
91364
91365 2003-07-10  Jim Meyering  <jim@meyering.net>
91366
91367         * lib/vasnprintf.c: Remove trailing blanks.
91368         Make cpp indentation consistent.
91369
91370 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91371
91372         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91373         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91374         Switch from LGPL to GPL.
91375
91376 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91377
91378         * config/srclist.txt: Sort sublists.  Add
91379         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91380         that differ from gnulib for one reason or another; we'd like this list
91381         to be smaller but for now let's document what we have.
91382
91383 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91384
91385         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91386         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91387         and sweeter "eval x=$x".
91388         * config/srclist.txt: Get lib/argp* from glibc.
91389
91390 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91391
91392         * lib/mktime.c: Fix some boundary cases and remove need for floating
91393         point.
91394
91395         Issue a compile-time diagnostic if time_t is floating point, or if
91396         two's complement arithmetic is not in effect, or if arithmetic
91397         right shift does not propagate the sign.  These assumptions were
91398         all in the original code but they weren't checked.
91399
91400         (TIME_T_MIDPOINT, verify): New macros.
91401         (__isleap): Remove; it has integer overflow problems.
91402         (leapyear): New function, without those problems.
91403         (ydhms_tm_diff): Remove; splitting into two parts.
91404         (ydhms_diff): New function, containing the arithmetic part of
91405         the old ydhms_tm_diff function.  Issue a compile-time
91406         diagnostic if we are not using C99 integer division.
91407         Avoid casts when possible.
91408         (guess_time_tm): New function, containing the checking part of
91409         the old ydhms_tm_diff function.  Return the new value, rather than
91410         the difference between it and the old.  Accept a new argument T
91411         so that *T specifies the old value.  Check for overflow in the result.
91412
91413         (__mktime_internal): Use a time_t offset, not a long int offset.
91414         This undoes the 2003-06-04 change, which is no longer needed now
91415         that we have better overflow checking.
91416         (localtime_offset): Likewise.
91417
91418         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91419         and long are 64-bit but int is only 32-bit.
91420         (ydhms_diff): Use long int to store year1 and yday1.
91421         Issue a compile-time diagnostic if long int is not wide enough.
91422
91423         (__mktime_internal): Use long int to store adjusted year and yday.
91424         Use plain C rather than preprocessor commands, if that doesn't
91425         affect efficiency.
91426         Check for overflow (and try to repair) after each probe
91427         rather than checking only at the very end.  This avoids some bugs
91428         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91429         does not equal GMT offset at maximum time).
91430         Use integer to check for overflow rather than floating point; this
91431         is more portable to non-IEEE hosts, and is a tad faster.
91432         When we detect that we are oscillating between two values,
91433         don't check whether tm_isdst has the requested value, since
91434         we already know the answer.  When tm_isdst has the wrong value,
91435         use a different heuristic to find the right one, based on the
91436         extreme values actually observed in practice in tz2003a,
91437         rather than the (overly optimistic) "previous 3 calendar quarters".
91438
91439         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91440         "T const" to accommodate glibc style.
91441         (check_result): Use less-confusing report format.  "long" -> "long int.
91442         (main): Likewise.
91443         Don't loop if the iteration overflows time_t.
91444         Allow a negative step in the iteration.
91445
91446 2003-07-06  Karl Berry  <karl@gnu.org>
91447
91448         * config/depcomp: update from automake.
91449         * config/config.sub: update from prep.
91450
91451 2003-07-03  Karl Berry  <karl@gnu.org>
91452
91453         * config/config.guess: update from prep.
91454
91455 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91456
91457         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91458         xreadlink.c now includes it unconditionally.
91459
91460 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91461
91462         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91463         having it depend on HAVE_SYS_TYPES_H.
91464
91465 2003-07-01  Bruno Haible  <bruno@clisp.org>
91466
91467         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91468         <sys/types.h> should be sufficient.
91469         Reported by Paul Eggert.
91470
91471 2003-06-26  Karl Berry  <karl@gnu.org>
91472
91473         * config/depcomp: update from automake.
91474
91475 2003-06-26  Bruno Haible  <bruno@clisp.org>
91476
91477         * modules/human: Depend on module stdbool.
91478
91479 2003-06-25  Bruno Haible  <bruno@clisp.org>
91480
91481         * modules/readlink: New file.
91482         * modules/xreadlink: Depend on it.
91483         * MODULES.html.sh (func_all_modules): Add readlink.
91484
91485 2003-06-25  Bruno Haible  <bruno@clisp.org>
91486
91487         * m4/readlink.m4: New file.
91488
91489 2003-06-25  Bruno Haible  <bruno@clisp.org>
91490
91491         * lib/readlink.c: New file.
91492
91493 2003-06-22  Karl Berry  <karl@gnu.org>
91494
91495         * config/srclist.txt: update mkinstalldirs from automake.
91496         * config/mkinstalldirs: update.
91497
91498 2003-06-22  Bruno Haible  <bruno@clisp.org>
91499
91500         Portability to mingw32.
91501         * m4/ssize_t.m4: New file, from GNU gettext.
91502         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91503         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91504
91505 2003-06-22  Bruno Haible  <bruno@clisp.org>
91506
91507         * modules/safe-read: Add m4/ssize_t.m4.
91508         * modules/xreadlink: Add m4/ssize_t.m4.
91509
91510 2003-06-20  Bruno Haible  <bruno@clisp.org>
91511
91512         Assume C89, so PARAMS isn't needed.
91513         * lib/unicodeio.h (PARAMS): Remove.
91514         * lib/unicodeio.c: Don't use PARAMS.
91515
91516 2003-06-18  Karl Berry  <karl@gnu.org>
91517
91518         * config/config.{guess,sub}: update from prep.
91519
91520 2003-06-18  Jim Meyering  <jim@meyering.net>
91521
91522         Merge changes from coreutils.
91523         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91524         Remove explicit declarations of xmalloc and realloc.
91525         Include xalloc.h.
91526         (read_utmp): Remove anachronistic cast of xmalloc.
91527
91528 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91529
91530         Assume C89, so PARAMS isn't needed.
91531         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91532         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91533         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91534         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91535         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91536         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91537         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91538         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91539         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91540         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91541         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91542         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91543         no longer needed. Anyway, config.h should always be included before any
91544         other file.
91545
91546 2003-06-11  Simon Josefsson  <jas@extundo.com>
91547
91548         * modules/sysexits: New file.
91549         * MODULES.html.sh (func_all_modules): Add sysexits.
91550
91551 2003-06-11  Simon Josefsson  <jas@extundo.com>
91552
91553         * lib/sysexit_.h: New file.
91554
91555 2003-06-11  Derek Price  <derek@ximbiot.com>
91556
91557         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91558         necessary.
91559
91560 2003-06-11  Bruno Haible  <bruno@clisp.org>
91561
91562         * m4/sysexits.m4: New file.
91563
91564 2003-06-10  Simon Josefsson  <jas@extundo.com>
91565
91566         * lib/argp.h: New file, from glibc.
91567         * lib/argp-ba.c: New file, from glibc.
91568         * lib/argp-eexst.c: New file, from glibc.
91569         * lib/argp-fmtstream.c: New file, from glibc.
91570         * lib/argp-fmtstream.h: New file, from glibc.
91571         * lib/argp-fs-xinl.c: New file, from glibc.
91572         * lib/argp-help.c: New file, from glibc.
91573         * lib/argp-namefrob.h: New file, from glibc.
91574         * lib/argp-parse.c: New file, from glibc.
91575         * lib/argp-pv.c: New file, from glibc.
91576         * lib/argp-pvh.c: New file, from glibc.
91577         * lib/argp-xinl.c: New file, from glibc.
91578
91579 2003-06-10  Simon Josefsson  <jas@extundo.com>
91580
91581         * modules/strchrnul: New file.
91582
91583 2003-06-10  Simon Josefsson  <jas@extundo.com>
91584
91585         * modules/argp: New file.
91586
91587 2003-06-10  Simon Josefsson  <jas@extundo.com>
91588
91589         * m4/strchrnul.m4: New file.
91590
91591 2003-06-10  Simon Josefsson  <jas@extundo.com>
91592
91593         * lib/strchrnul.h: New file.
91594         * lib/strchrnul.c: New file.
91595
91596 2003-06-10  Bruno Haible  <bruno@clisp.org>
91597
91598         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91599
91600 2003-06-07  Karl Berry  <karl@gnu.org>
91601
91602         * config/config.{guess,sub}: update from prep.
91603
91604 2003-06-07  Jim Meyering  <jim@meyering.net>
91605
91606         * modules/strtod: Use $(...) notation, not @...@ for
91607         AC_REPLACE'd variables.
91608         * modules/localcharset: Likewise.
91609
91610 2003-06-07  Jim Meyering  <jim@meyering.net>
91611
91612         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91613         in place of my name in the copyright comment.
91614         Remove definition and uses of __P.
91615
91616         From coreutils.
91617         * lib/stat.c: Don't declare xmalloc explicitly.
91618         Instead, include "xalloc.h".
91619         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91620         xrealloc, and xcalloc return values.
91621         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91622         Improve comment.
91623         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91624
91625 2003-06-07  Bruno Haible  <bruno@clisp.org>
91626
91627         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91628         avoid AC_CONFIG_LINKS.
91629         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91630         fnmatch.h, to avoid AC_CONFIG_LINKS.
91631         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91632
91633 2003-06-07  Bruno Haible  <bruno@clisp.org>
91634
91635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91636         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91637         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91638         directory.
91639         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91640         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91641         directory.
91642
91643 2003-06-06  Jim Meyering  <jim@meyering.net>
91644
91645         Merge from coreutils.
91646         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91647         Consolidate declarations and initializations of *_base* locals.
91648
91649         Merge from coreutils.
91650         This avoids a core dump on systems without GNU putenv,
91651         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91652         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91653         (unsetenv): New static function, from GNU libc.
91654         (rpl_putenv): Use it.
91655
91656         * lib/modechange.c: Remove trailing blanks.
91657
91658         Merge from coreutils.
91659         * lib/fsusage.c: Remove declaration of statfs.
91660         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91661
91662         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91663
91664 2003-06-06  Jim Meyering  <jim@meyering.net>
91665
91666         * lib/stdbool_.h: Renamed from stdbool.h.in.
91667
91668 2003-06-06  Jim Meyering  <jim@meyering.net>
91669             Bruno Haible  <bruno@clisp.org>
91670
91671         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91672         Adjust Makefile.am snippet not to redirect directly to target.
91673         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91674
91675 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91676
91677         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91678         mismatch, look in future quarters as well as past.  This fixes a
91679         bug when processing fall-backwards gaps immediately after a long
91680         period of daylight-saving time.
91681
91682         * lib/mktime.c: Assume freestanding C89 or better.
91683         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91684         (__P): Remove; not used.
91685         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91686         (mktime, not_equal_tm, print_tm, check_result,
91687         main): Use prototypes.  Use const * where appropriate.
91688         (main): Fix typo in testing code that uncovered by above changes.
91689         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91690
91691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91692
91693         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91694         locale.h, localeconv.  This merges changes from coreutils.
91695
91696         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91697         It can be removed after the next Autoconf is released.
91698         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91699         needed.
91700
91701 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91702
91703         * lib/mktime.c: Fix Debian bug 177940
91704         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91705         (localtime_offset): Now long int, not time_t, because we want it
91706         to be guaranteed to be signed.  All uses changed.
91707         (__mktime_internal): If overflow would occur when adding offset,
91708         don't add it.
91709
91710         Merge 'human' changes from coreutils.  Rewrite to support
91711         locale-specific notations like thousands separators.
91712         * lib/human.c: Simplify authorship notice.
91713         Include human.h immediately after config.h.
91714         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91715         <limits.h>: Do not include, since human.h does.
91716         (SIZE_MAX, UINTMAX_MAX): New macros.
91717         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91718         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91719         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91720         (power_letter): Renamed from suffixes.
91721         (generate_suffix_backwards): Remove.
91722         (adjust_value): Now takes int style (because of human.h changes)
91723         and long double value (for greater precision on some platforms).
91724         (group_number): New function.
91725         (human_readable): Use it.  Use integer options, not enum.
91726         Put the options before the sizes in the arg list.
91727         Support all the new options.
91728         The old human_readable function has been removed;
91729         use inttostr.h instead.
91730         (human_readable, default_block_size, humblock):
91731         Use uintmax_t, not int, for block sizes.
91732         (human_readable_inexact, block_size_types): Remove.
91733         (block_size_opts): New constant.
91734         (human_options): Renamed from human_block_size, with new signature
91735         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91736         * lib/human.h: Add copyright and authorship notice.
91737         Include <limits.h> and <stdbool.h> unconditionally.
91738         (PARAMS): Remove.  All uses removed.
91739         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91740         (enum human_inexact_style): Remove tag; now a nameless enum.
91741         (human_floor, human_ceiling, human_round_to_even): Now have
91742         values 2, 0, 1 rather than -1, 1, 0.
91743         (human_group_digits, human_suppress_point_zero, human_autoscale,
91744         human_base_1024, human_SI, human_B): New constants.
91745         (human_readable_inexact, human_block_size): Remove.
91746         (human_readable): Size args are now uintmax_t, not int.
91747         (human_options): New decl.
91748
91749         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91750         unnecessary now that we assume C89 or better.  This change
91751         imported from coreutils.
91752
91753         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91754         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91755         in the 2003-05-30 sync from glibc.
91756
91757         .h files should stand alone, but we shouldn't include <sys/types.h>
91758         if we can get away with just <stddef.h>.
91759
91760         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91761         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91762         rather than <sys/types.h>, as we merely need size_t.
91763         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91764         to get size_t.
91765         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91766         Include <stdio.h>, to get FILE.
91767         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91768         memcasecmp.h has included <stddef.h> and all we need is size_t.
91769         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91770         our interface, instead of including <sys/types.h>
91771
91772 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91773
91774         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91775         now, as glibc mktime is buggy on non-glibc systems.
91776
91777 2003-06-03  Karl Berry  <karl@gnu.org>
91778
91779         * config/config.sub: update from prep.
91780
91781 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91782
91783         [from coreutils]
91784         Fix some minor time-related bugs with POSIX time arguments.
91785         Some valid time stamps were being rejected (notably -1, and
91786         time stamps before 1900 on 64-bit hosts).  And some invalid
91787         time stamps were being accepted, e.g. September 31.
91788
91789         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91790         that we can return (time_t) -1 successfully.
91791         * lib/posixtm.c: Likewise.
91792         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91793         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91794         (t): Remove static var.
91795         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91796         of static var.  All uses changed.
91797         (year): Do not reject years before 1900; they can occur with
91798         64-bit time_t.
91799         (posix_time_parse): Do not check for out-of-range components;
91800         that is now the caller's responsibility, since our checks were
91801         only approximations.
91802         (posixtime): Use mktime to check for out-of-range components,
91803         since it knows them exactly.
91804         If mktime returns (time_t) -1, check whether an error actually occurred
91805         by invoking localtime on -1.
91806         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91807         posixtime failures better.
91808         Improve the test data (in comments only).
91809
91810 2003-06-02  Karl Berry  <karl@gnu.org>
91811
91812         * config/mkinstalldirs (version): new variable.
91813         (--version): new option.
91814         (usage): improve message.
91815
91816 2003-05-30  Karl Berry  <karl@gnu.org>
91817
91818         * lib/mktime.c: update from libc.
91819
91820 2003-05-30  Bruno Haible  <bruno@clisp.org>
91821
91822         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91823         * config/config.rpath: Upgrade to gettext-0.12.1.
91824
91825 2003-05-30  Bruno Haible  <bruno@clisp.org>
91826
91827         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91828         * m4/nls.m4: New file, from gettext-0.12.1.
91829         * m4/po.m4: New file, from gettext-0.12.1.
91830         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91831
91832 2003-05-30  Bruno Haible  <bruno@clisp.org>
91833
91834         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91835         * lib/localcharset.h: Likewise.
91836         * lib/localcharset.c: Likewise.
91837
91838 2003-05-29  Karl Berry  <karl@gnu.org>
91839
91840         * config/config.rpath: update from gettext.
91841
91842 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91843
91844         Assume the headers required for C89 freestanding compilers.
91845         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91846         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91847         * m4/human.m4 (gl_HUMAN): Likewise.
91848         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91849         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91850         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91851         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91852         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91853         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91854
91855 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91856
91857         Assume the headers required for C89 freestanding compilers.
91858         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91859         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91860         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91861         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91862         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91863         define, since <limits.h> is guaranteed to do that.
91864         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91865         * lib/exclude.c: Include <stdbool.h> unconditionally.
91866         * lib/tempname.c: Include <stddef.h> unconditionally.
91867         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91868         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91869         <stddef.h> does that.
91870         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91871         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91872         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91873         needed.
91874         * lib/xstrtol.c: Likewise.
91875         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91876         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91877
91878         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91879         warnings on some platforms.
91880
91881         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91882         arbitrarily.
91883
91884 2003-05-26  Jim Meyering  <jim@meyering.net>
91885
91886         Merge in a change from coreutils:
91887         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91888         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91889         that condition, rather than `-1' which is slightly misleading.
91890         Change the name of the cache variable to have the gl_ prefix.
91891         Prompted by a patch from Richard Dawe for DJGPP.
91892
91893 2003-05-24  Karl Berry  <karl@gnu.org>
91894
91895         * config/config.guess: update from prep.
91896
91897 2003-05-22  Karl Berry  <karl@gnu.org>
91898
91899         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91900
91901 2003-05-20  Karl Berry  <karl@gnu.org>
91902
91903         * config/config.guess: update from prep.
91904
91905 2003-05-18  Karl Berry  <karl@gnu.org>
91906
91907         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91908         might actually be set by the user.
91909
91910         * config/depcomp, install-sh, mdate-sh: update from automake.
91911
91912 2003-05-17  Bruno Haible  <bruno@clisp.org>
91913
91914         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91915         invalid expansion for AC_EGREP_CPP.
91916         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91917         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91918         Suggested by Akim Demaille <akim@epita.fr> in
91919         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91920
91921 2003-05-12  Jim Meyering  <jim@meyering.net>
91922
91923         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91924         the space-padded-by-default conversion specifiers, %e, %k, %l.
91925
91926 2003-05-12  Bruno Haible  <bruno@clisp.org>
91927
91928         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91929         the string is longer than 4 KB.
91930
91931 2003-05-11  Karl Berry  <karl@gnu.org>
91932
91933         * config/config.{guess,sub}: update from prep.
91934
91935 2003-05-09  Bruno Haible  <bruno@clisp.org>
91936
91937         * modules/error: Add m4/strerror_r.m4 to file list.
91938
91939 2003-05-03  Bruno Haible  <bruno@clisp.org>
91940
91941         Upgrade to Unicode-4.0.
91942         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91943         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91944         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91945         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91946         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91947         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91948         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91949         Change width of U+E0100..U+E01EF from 1 to 0.
91950
91951 2003-04-25  Jim Meyering  <jim@meyering.net>
91952
91953         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91954         of type size_t, not int.
91955
91956 2003-04-25  Bruno Haible  <bruno@clisp.org>
91957
91958         * lib/copy-file.c: Include <stddef.h>, for size_t.
91959
91960 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91963         code which expansion is under static control.  Patch imported from
91964         Akim Demaille's patch to Bison; see
91965         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91966
91967 2003-04-14  Bruno Haible  <bruno@clisp.org>
91968
91969         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91970
91971 2003-04-11  Jim Meyering  <jim@meyering.net>
91972
91973         Merge changes from Coreutils.
91974
91975         2003-03-22  Jim Meyering  <jim@meyering.net>
91976
91977         * lib/strftime.c (widen): Cast alloca return value to proper type.
91978
91979         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91980
91981         From GNU libc.
91982         * lib/strftime.c (my_strftime): Handle very large width
91983         specifications for numeric values correctly.  Improve checks for
91984         overflow.
91985
91986         2003-01-19  Jim Meyering  <jim@meyering.net>
91987
91988         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91989         definitions.
91990         (nl_get_alt_digit) [! defined my_strftime]: Define.
91991         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91992         _nl_get_alt_digit and _nl_get_walt_digit.
91993
91994         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91995         libc. These changes have no effect outside of _LIBC.
91996
91997 2003-04-10  Bruno Haible  <bruno@clisp.org>
91998
91999         * modules/findprog: New file.
92000         * MODULES.html.sh (func_all_modules): Add it.
92001
92002 2003-04-10  Bruno Haible  <bruno@clisp.org>
92003
92004         * m4/findprog.m4: New file.
92005         * m4/eaccess.m4: New file.
92006
92007 2003-04-10  Bruno Haible  <bruno@clisp.org>
92008
92009         * lib/findprog.h: New file, from GNU gettext.
92010         * lib/findprog.c: New file, from GNU gettext.
92011
92012 2003-04-05  Jim Meyering  <jim@meyering.net>
92013
92014         Merge changes from Coreutils.
92015
92016         * lib/exclude.h (PARAMS): Remove definition and uses.
92017         * lib/exclude.c: Remove uses of `PARAMS'.
92018
92019         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92020         Add test-cases for DOS filenames. Declare program_name.
92021         (main): Set up program_name.  Patch by Rich Dawe.
92022
92023         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92024         error from mntctl.
92025         Use mntctl's return value to drive the entry-processing loop, since
92026         we can't rely on the value of the vmt_length member in the last
92027         entry.  On some systems doing so could result in exhausting
92028         virtual memory.  Based in part on a patch from Mike Jetzer.
92029
92030 2003-04-04  Bruno Haible  <bruno@clisp.org>
92031
92032         * modules/linebreak: New file.
92033         * MODULES.html.sh (func_all_modules): Add it.
92034
92035 2003-04-04  Bruno Haible  <bruno@clisp.org>
92036
92037         * m4/linebreak.m4: New file.
92038
92039 2003-04-04  Bruno Haible  <bruno@clisp.org>
92040
92041         * lib/linebreak.h: New file, from GNU gettext.
92042         * lib/linebreak.c: New file, from GNU gettext with slight
92043         modifications.
92044         * lib/lbrkprop.h: New file, from GNU gettext.
92045
92046 2003-04-03  Bruno Haible  <bruno@clisp.org>
92047
92048         * modules/utf8-ucs4: New file.
92049         * modules/utf16-ucs4: New file.
92050         * modules/ucs4-utf8: New file.
92051         * modules/ucs4-utf16: New file.
92052         * MODULES.html.sh (func_all_modules): Add them.
92053
92054 2003-04-03  Bruno Haible  <bruno@clisp.org>
92055
92056         * m4/utf-ucs4.m4: New file.
92057         * m4/ucs4-utf.m4: New file.
92058
92059 2003-04-03  Bruno Haible  <bruno@clisp.org>
92060
92061         * lib/utf8-ucs4.h: New file, from GNU gettext.
92062         * lib/utf16-ucs4.h: New file, from GNU gettext.
92063         * lib/ucs4-utf8.h: New file, from GNU gettext.
92064         * lib/ucs4-utf16.h: New file, from GNU gettext.
92065
92066 2003-04-02  Bruno Haible  <bruno@clisp.org>
92067
92068         * modules/binary-io: New file.
92069         * MODULES.html.sh (func_all_modules): Add it.
92070
92071 2003-04-02  Bruno Haible  <bruno@clisp.org>
92072
92073         * lib/binary-io.h: New file, from GNU gettext.
92074
92075 2003-04-01  Bruno Haible  <bruno@clisp.org>
92076
92077         * modules/pathname: New file.
92078         * MODULES.html.sh (func_all_modules): Add it.
92079
92080 2003-04-01  Bruno Haible  <bruno@clisp.org>
92081
92082         * lib/pathname.h: New file, from GNU gettext.
92083         * lib/concatpath.c: New file, from GNU gettext.
92084
92085 2003-03-30  Bruno Haible  <bruno@clisp.org>
92086
92087         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92088
92089 2003-03-30  Bruno Haible  <bruno@clisp.org>
92090
92091         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92092         function chown() doesn't exist.
92093
92094 2003-03-28  Bruno Haible  <bruno@clisp.org>
92095
92096         * modules/copy-file: New file.
92097         * MODULES.html.sh (func_all_modules): Add it.
92098
92099 2003-03-28  Bruno Haible  <bruno@clisp.org>
92100
92101         * m4/copy-file.m4: New file.
92102
92103 2003-03-28  Bruno Haible  <bruno@clisp.org>
92104
92105         * lib/copy-file.h: New file, from GNU gettext.
92106         * lib/copy-file.c: New file, from GNU gettext.
92107
92108 2003-03-18  Jim Meyering  <jim@meyering.net>
92109
92110         * lib/quote.c (quote_n): Fix typo in comment.
92111
92112 2003-03-18  Bruno Haible  <bruno@clisp.org>
92113
92114         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92115         checking.
92116         * m4/onceonly_2_57.m4: Likewise.
92117
92118 2003-03-17  Bruno Haible  <bruno@clisp.org>
92119
92120         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92121         (m4_quote): Remove macro.
92122         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92123
92124 2003-03-14  Jim Meyering  <jim@meyering.net>
92125
92126         Merge changes from Coreutils.
92127         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92128         to be const, in order to avoid warnings.
92129         (obstack_room): Likewise.
92130         (obstack_empty_p): Likewise.
92131
92132 2003-03-14  Bruno Haible  <bruno@clisp.org>
92133
92134         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92135         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92136
92137 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92138
92139         Merge changes from Bison.
92140         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92141         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92142         when compiling Bison 1.875's `bitset bset = obstack_alloc
92143         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92144         * lib/hash.c: Include <stdbool.h> unconditionally.
92145
92146 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92147
92148         * m4/onceonly.m4 (m4_quote): New macro.
92149         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92150         Quote AC_FOREACH variable-expansions properly.
92151
92152 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92153
92154         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92155
92156 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92157
92158         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92159         Reported by Bruce Becker; see:
92160         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92161
92162 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92163             Bruno Haible  <bruno@clisp.org>
92164
92165         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92166         Reported by John Hughes, see
92167         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92168
92169 2003-02-20  Bruno Haible  <bruno@clisp.org>
92170
92171         * MODULES.html.sh (func_all_modules): Add poll.
92172
92173 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92174
92175         * modules/poll: New file.
92176
92177 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92178
92179         * lib/poll_.h: New file.
92180         * lib/poll.c: New file.
92181
92182 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92183
92184         * m4/poll.m4: New file.
92185
92186 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92187
92188         * modules/mathl: New file.
92189
92190 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92191
92192         * lib/mathl.h: New file.
92193         * lib/acosl.c: New file.
92194         * lib/asinl.c: New file.
92195         * lib/atanl.c: New file.
92196         * lib/ceill.c: New file.
92197         * lib/cosl.c: New file.
92198         * lib/expl.c: New file.
92199         * lib/floorl.c: New file.
92200         * lib/frexpl.c: New file.
92201         * lib/ldexpl.c: New file.
92202         * lib/logl.c: New file.
92203         * lib/sincosl.c: New file.
92204         * lib/sinl.c: New file.
92205         * lib/sqrtl.c: New file.
92206         * lib/tanl.c: New file.
92207         * lib/trigl.c: New file.
92208         * lib/trigl.h: New file.
92209
92210 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92211
92212         * m4/mathl.m4: New file.
92213
92214 2003-02-18  Bruno Haible  <bruno@clisp.org>
92215
92216         * MODULES.html.sh (func_all_modules): Add mathl.
92217
92218 2003-02-17  Bruno Haible  <bruno@clisp.org>
92219
92220         * modules/mkdtemp: New module.
92221         * MODULES.html.sh (func_all_modules): Add it.
92222
92223 2003-02-17  Bruno Haible  <bruno@clisp.org>
92224
92225         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92226
92227 2003-02-17  Bruno Haible  <bruno@clisp.org>
92228
92229         * lib/mkdtemp.h: New file, from GNU gettext.
92230         * lib/mkdtemp.c: New file, from GNU gettext.
92231
92232 2003-02-02  Jim Meyering  <jim@meyering.net>
92233
92234         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92235         e.g. glibc-2.2.93.
92236
92237 2003-01-31  Bruno Haible  <bruno@clisp.org>
92238
92239         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92240         'rpl_rename'.
92241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92242         'rpl_strnlen'.
92243         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92244         'rpl_strtod'.
92245         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92246         'rpl_utime'.
92247
92248 2003-01-31  Bruno Haible  <bruno@clisp.org>
92249
92250         * lib/rename.c: #undef rename before defining rpl_rename.
92251         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92252
92253 2003-01-30  Bruno Haible  <bruno@clisp.org>
92254
92255         * modules/vasnprintf, modules/vasprintf: New modules.
92256         * MODULES.html.sh (func_all_modules): Add them.
92257
92258 2003-01-30  Bruno Haible  <bruno@clisp.org>
92259
92260         * m4/signed.m4: New file, from GNU gettext.
92261         * m4/longdouble.m4: New file, from GNU gettext.
92262         * m4/wchar_t.m4: New file, from GNU gettext.
92263         * m4/wint_t.m4: New file, from GNU gettext.
92264         * m4/vasnprintf.m4: New file.
92265         * m4/vasprintf.m4: New file.
92266
92267 2003-01-30  Bruno Haible  <bruno@clisp.org>
92268
92269         * lib/printf-args.h: New file, from GNU gettext.
92270         * lib/printf-args.c: New file, from GNU gettext.
92271         * lib/printf-parse.h: New file, from GNU gettext.
92272         * lib/printf-parse.c: New file, from GNU gettext.
92273         * lib/vasnprintf.h: New file, from GNU gettext.
92274         * lib/vasnprintf.c: New file, from GNU gettext.
92275         * lib/asnprintf.c: New file, from GNU gettext.
92276         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92277         * lib/vasprintf.c: New file, from GNU gettext.
92278         * lib/asprintf.c: New file, from GNU gettext.
92279
92280 2003-01-29  Bruno Haible  <bruno@clisp.org>
92281
92282         * modules/stpncpy: New module.
92283         * MODULES.html.sh (func_all_modules): Add it.
92284
92285 2003-01-29  Bruno Haible  <bruno@clisp.org>
92286
92287         * m4/stpncpy.m4: New file.
92288
92289 2003-01-29  Bruno Haible  <bruno@clisp.org>
92290
92291         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92292         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92293
92294 2003-01-28  Bruno Haible  <bruno@clisp.org>
92295
92296         * modules/c-ctype: New module.
92297         * MODULES.html.sh (func_all_modules): Add it.
92298
92299 2003-01-28  Bruno Haible  <bruno@clisp.org>
92300
92301         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92302         Paul Eggert.
92303         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92304         Paul Eggert.
92305
92306 2003-01-27  Bruno Haible  <bruno@clisp.org>
92307
92308         * modules/xsetenv: New module.
92309         * MODULES.html.sh (func_all_modules): Add it.
92310
92311 2003-01-27  Bruno Haible  <bruno@clisp.org>
92312
92313         * lib/xsetenv.h: New file, from GNU gettext.
92314         * lib/xsetenv.c: New file, from GNU gettext.
92315
92316 2003-01-23  Jim Meyering  <jim@meyering.net>
92317
92318         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92319         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92320
92321 2003-01-23  Bruno Haible  <bruno@clisp.org>
92322
92323         * modules/minmax: New module.
92324         * MODULES.html.sh (func_all_modules): Add it.
92325
92326 2003-01-23  Bruno Haible  <bruno@clisp.org>
92327
92328         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92329         Eggert.
92330
92331 2003-01-22  Bruno Haible  <bruno@clisp.org>
92332
92333         * modules/exit: New module.
92334         * MODULES.html.sh (func_all_modules): Add it.
92335
92336 2003-01-22  Bruno Haible  <bruno@clisp.org>
92337
92338         * lib/exit.h: New file, from GNU gettext.
92339
92340 2003-01-19  Bruno Haible  <bruno@clisp.org>
92341
92342         * gnulib-tool: Recognize option --extract-maintainer.
92343         (func_get_maintainer): New function.
92344         * modules/*: Add Maintainer entry.
92345
92346 2003-01-16  Jim Meyering  <jim@meyering.net>
92347
92348         * m4/regex.m4: The `regex' struct is both input and output.
92349         Initialize it before each use.  Patch by Tim Waugh.
92350
92351 2003-01-16  Bruno Haible  <bruno@clisp.org>
92352
92353         * MODULES.html.sh: Add a table of contents. Add the module name as
92354         leftmost column. Add hyperlinks.
92355
92356 2003-01-15  Bruno Haible  <bruno@clisp.org>
92357
92358         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92359
92360 2003-01-15  Bruno Haible  <bruno@clisp.org>
92361
92362         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92363         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92364         suffix.
92365
92366 2003-01-15  Bruno Haible  <bruno@clisp.org>
92367
92368         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92369
92370 2003-01-15  Bruno Haible  <bruno@clisp.org>
92371
92372         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92373         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92374
92375 2003-01-14  Jim Meyering  <jim@meyering.net>
92376
92377         * lib/same.c (same_name): Tweak a comment.
92378
92379 2003-01-14  Bruno Haible  <bruno@clisp.org>
92380
92381         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92382         when a string comparison is sufficient.
92383
92384 2003-01-14  Bruno Haible  <bruno@clisp.org>
92385
92386         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92387         'unsigned int'.
92388
92389 2003-01-14  Bruno Haible  <bruno@clisp.org>
92390
92391         * lib/hash-pjw.c: Add comment about low quality of this function.
92392
92393 2003-01-13  Bruno Haible  <bruno@clisp.org>
92394
92395         * modules/stpcpy: Distribute lib/stpcpy.h.
92396         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92397
92398 2003-01-13  Bruno Haible  <bruno@clisp.org>
92399
92400         * modules/*: Add a description.
92401         * modules/strpbrk: Fix Makefile.am snippet.
92402         * modules/strtoimax: Fix dependencies.
92403         * modules/strtoumax: Likewise.
92404
92405 2003-01-13  Bruno Haible  <bruno@clisp.org>
92406
92407         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92408         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92409         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92410
92411 2003-01-13  Bruno Haible  <bruno@clisp.org>
92412
92413         * gnulib-tool (func_create_testdir): Store config/* files in the main
92414         directory.
92415         * config.rpath: Move to ...
92416         * config/config.rpath: ... here.
92417         * modules/gettext: Contains config/config.rpath, not config.rpath.
92418         * modules/iconv: Likewise.
92419
92420 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92421
92422         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92423         to avoid collisions with libcurses and libreadline.
92424
92425         * m4/getstr.m4: Remove.
92426         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92427
92428 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92429
92430         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92431         to avoid collisions with libcurses and libreadline.
92432
92433         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92434         * lib/getstr.h, getstr.c: Remove.
92435         * lib/getline.c: Include "getline.h", to check interface.
92436         Move body of old getstr.c here: this defines MIN_CHUNK and
92437         declares getdelim2, which is renamed from getstr.
92438         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92439
92440         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92441         All uses changed.
92442         * lib/linebuffer.h: Likewise.
92443         (readline): Remove backward-compatibility macro.
92444
92445 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92446
92447         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92448         to avoid collisions with libcurses and libreadline.
92449         * getstr: Remove.
92450         * MODULES.html.sh: Remove getstr.
92451         * modules/getline: Depend on unlocked-io, not getstr.
92452
92453 2003-01-12  Jim Meyering  <jim@meyering.net>
92454
92455         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92456
92457 2003-01-10  Bruno Haible  <bruno@clisp.org>
92458
92459         * modules/alloca: Change Makefile.am requirements. Simplify Include
92460         requirements. Add lib/alloca_.h to file list.
92461
92462 2003-01-10  Bruno Haible  <bruno@clisp.org>
92463
92464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92465
92466 2003-01-10  Bruno Haible  <bruno@clisp.org>
92467
92468         * lib/alloca_.h: New file.
92469         * lib/getdate.y: Unconditionally include alloca.h.
92470         * lib/makepath.c: Likewise.
92471         * lib/setenv.c: Likewise.
92472         * lib/userspec.c: Likewise.
92473
92474 2003-01-09  Karl Berry  <karl@gnu.org>
92475
92476         * MODULES.html.sh: include `dirname $0` in PATH, to find
92477         gnulib-tool.
92478
92479 2003-01-09  Bruno Haible  <bruno@clisp.org>
92480
92481         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92482         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92483
92484 2003-01-09  Bruno Haible  <bruno@clisp.org>
92485
92486         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92487
92488 2003-01-09  Bruno Haible  <bruno@clisp.org>
92489
92490         * lib/stdbool.h.in: New file.
92491
92492 2003-01-09  Bruno Haible  <bruno@clisp.org>
92493
92494         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92495         * MODULES.html.sh: Likewise.
92496
92497 2003-01-08  Jim Meyering  <jim@meyering.net>
92498
92499         * lib/full-write.c: Undefine and define-away `const' after inclusion
92500         of errno.h, not before.  Suggestion from Bruno Haible.
92501
92502 2003-01-08  Bruno Haible  <bruno@clisp.org>
92503
92504         * modules/full-read: Depend on full-write.
92505
92506 2003-01-08  Bruno Haible  <bruno@clisp.org>
92507
92508         * lib/safe-read.c: Include specification header first, to ensure its
92509         selfcontainedness.
92510         * lib/full-write.c: Likewise.
92511
92512 2003-01-07  Jim Meyering  <jim@meyering.net>
92513
92514         * lib/full-write.c: Rework so that it may serve to define full_read,
92515         too.
92516         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92517
92518 2003-01-07  Bruno Haible  <bruno@clisp.org>
92519
92520         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92521         <inttypes.h>.
92522         * lib/xstrtol.h: Likewise.
92523         * lib/xstrtoimax.c: Likewise.
92524         * lib/xstrtoumax.c: Likewise.
92525         * lib/human.h: Likewise.
92526
92527         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92528         on systems that have <inttypes.h> but not <stdint.h>.
92529
92530 2003-01-07  Bruno Haible  <bruno@clisp.org>
92531
92532         * MODULES.html.sh: Add copyright notice.
92533         (missed_files): Omit CVS directory entries.
92534         (func_module): Make it work with sed-3.02.
92535         * MODULES.txt: Remove file.
92536
92537 2003-01-06  Jim Meyering  <jim@meyering.net>
92538
92539         * lib/version-etc.c: Update year in translatable copyright string.
92540
92541 2003-01-03  Karl Berry  <karl@gnu.org>
92542
92543         * config/config.{guess,sub}: update from prep.
92544
92545 2003-01-02  Karl Berry  <karl@gnu.org>
92546
92547         * doc/COPYING.DOC: belatedly updated to 1.2.
92548
92549 2003-01-01  Karl Berry  <karl@gnu.org>
92550
92551         * gnulib-tool (func_verify_module): report module name $module in
92552         error message, not $1.
92553         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92554         be created, only if it doesn't exist.
92555         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92556
92557 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92558
92559         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92560
92561 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92562
92563         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92564         memcmp if strcoll doesn't work.
92565
92566 2002-12-31  Bruno Haible  <bruno@clisp.org>
92567
92568         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92569         nonempty.
92570
92571 2002-12-31  Bruno Haible  <bruno@clisp.org>
92572
92573         * lib/memcoll.c (STRCOLL): New macro.
92574         (memcoll): Use it.
92575
92576 2002-12-31  Bruno Haible  <bruno@clisp.org>
92577
92578         * lib/localcharset.h: New file.
92579         * lib/localcharset.c: Include it.
92580         * lib/unicodeio.c: Likewise.
92581
92582 2002-12-31  Bruno Haible  <bruno@clisp.org>
92583
92584         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92585         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92586
92587 2002-12-31  Bruno Haible  <bruno@clisp.org>
92588
92589         * lib/getline.h: Include <stddef.h>, for size_t.
92590
92591         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92592         * lib/unicodeio.c: Don't include <stddef.h>.
92593
92594 2002-12-31  Bruno Haible  <bruno@clisp.org>
92595
92596         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92597         HAVE_TM_ZONE.
92598
92599 2002-12-24  Karl Berry  <karl@gnu.org>
92600
92601         * config/config.guess: update from prep.
92602
92603 2002-12-24  Bruno Haible  <bruno@clisp.org>
92604
92605         General infrasructure.
92606         * m4/README: Rewritten.
92607         * m4/onceonly.m4: New file.
92608         * m4/onceonly_2_57.m4: New file.
92609
92610         Module atexit.
92611         * m4/atexit.m4: New file.
92612
92613         Module strtod.
92614         * m4/strtod.m4: New file.
92615
92616         Module strtol.
92617         * m4/strtol.m4: New file.
92618
92619         Module strtoul.
92620         * m4/strtoul.m4: New file.
92621
92622         Module memchr.
92623         * m4/memchr.m4: New file.
92624
92625         Module memcmp.
92626         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92627         (jm_FUNC_MEMCMP): Invoke it.
92628
92629         Module memcpy.
92630         * m4/memcpy.m4: New file.
92631
92632         Module memmove.
92633         * m4/memmove.m4: New file.
92634
92635         Module memset.
92636         * m4/memset.m4: New file.
92637
92638         Module strcspn.
92639         * m4/strcspn.m4: New file.
92640
92641         Module strpbrk.
92642         * m4/strpbrk.m4: New file.
92643
92644         Module strstr.
92645         * m4/strstr.m4: New file.
92646
92647         Module strerror.
92648         * m4/strerror.m4: New file.
92649
92650         Module mktime.
92651         * m4/mktime.m4: Renamed from jm-mktime.m4.
92652         (gl_PREREQ_MKTIME): New macro.
92653         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92654
92655         Module malloc.
92656         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92657         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92658         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92659
92660         Module realloc.
92661         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92662         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92663         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92664
92665         Module strftime.
92666         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92668         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92669         gl_TM_GMTOFF.
92670         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92671
92672         Module xalloc.
92673         * m4/xalloc.m4: New file.
92674
92675         Module alloca.
92676         * m4/alloca.m4: New file.
92677
92678         Module putenv.
92679         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92680         (jm_FUNC_PUTENV): Invoke it.
92681
92682         Module setenv.
92683         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92684         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92685         when invoked twice.
92686         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92687         gt_FUNC_SETENV.
92688
92689         Module memrchr.
92690         * m4/memrchr.m4: New file.
92691
92692         Module stpcpy.
92693         * m4/stpcpy.m4: New file.
92694
92695         Module strcase.
92696         * m4/strcase.m4: New file.
92697
92698         Module strdup.
92699         * m4/strdup.m4: New file.
92700
92701         Module strnlen.
92702         * m4/strnlen.m4: New file.
92703
92704         Module strndup.
92705         * m4/strndup.m4: New file.
92706
92707         Module xstrtod.
92708         * m4/xstrtod.m4: New file.
92709
92710         Module xstrtol.
92711         * m4/xstrtol.m4: New file.
92712
92713         Module getdate.
92714         * m4/getdate.m4: New file.
92715
92716         Module unlocked-io.
92717         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92718         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92719         * m4/jm-glibc-io.m4n: Remove file.
92720
92721         Module long-options.
92722         * m4/long-options.m4: New file.
92723
92724         Module md5.
92725         * m4/md5.m4: New file.
92726
92727         Module sha.
92728         * m4/sha.m4: New file.
92729
92730         Module getstr.
92731         * m4/getstr.m4: New file.
92732
92733         Module getline.
92734         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92735         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92736         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92737         simply getline. Infoke gl_PREREQ_GETLINE.
92738
92739         Module obstack.
92740         * m4/obstack.m4: New file.
92741
92742         Module hash.
92743         * m4/hash.m4: New file.
92744
92745         Module readtokens.
92746         * m4/readtokens.m4: New file.
92747
92748         Module strverscmp.
92749         * m4/strverscmp.m4: New file.
92750
92751         Module stdbool.
92752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92753         OSF/1.
92754
92755         Module strtoll.
92756         * m4/strtoll.m4: New file.
92757
92758         Module strtoull.
92759         * m4/strtoull.m4: New file.
92760
92761         Module strtoimax.
92762         * m4/strtoimax.m4: New file.
92763
92764         Module strtoumax.
92765         * m4/strtoumax.m4: New file.
92766
92767         Module xstrtoimax.
92768         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92769         jm_AC_PREREQ_XSTRTOIMAX.
92770         Moved the strtol prerequisites to strtol.m4.
92771         Moved the strtoll prerequisites to strtoll.m4.
92772         Moved the strtoimax prerequisites to strtoimax.m4.
92773
92774         Module xstrtoumax.
92775         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92776         jm_AC_PREREQ_XSTRTOUMAX.
92777         Moved the strtoul prerequisites to strtoul.m4.
92778         Moved the strtoull prerequisites to strtoull.m4.
92779         Moved the strtoumax prerequisites to strtoumax.m4.
92780
92781         Module chown.
92782         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92783         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92784
92785         Module dup2.
92786         * m4/dup2.m4: New file.
92787
92788         Module ftruncate.
92789         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92790         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92791
92792         Module getgroups.
92793         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92794         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92795
92796         Module gettimeofday.
92797         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92798         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92799         gl_PREREQ_GETTIMEOFDAY.
92800
92801         Module mkdir.
92802         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92803         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92804
92805         Module mkstemp.
92806         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92807         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92808         jm_AC_TYPE_UINTMAX_T.
92809         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92810
92811         Module stat.
92812         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92813         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92814
92815         Module lstat.
92816         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92817         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92818
92819         Module timespec.
92820         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92821         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92822         * m4/st_mtim.m4: Indentation.
92823
92824         Module nanosleep.
92825         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92826         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92827         gl_PREREQ_NANOSLEEP.
92828
92829         Module regex.
92830         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92831         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92832         (gl_REGEX): New macro.
92833
92834         Module rename.
92835         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92836         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92837
92838         Module rmdir.
92839         * m4/rmdir.m4: New file.
92840
92841         Module utime.
92842         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92843         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92844         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92845
92846         Module dirname.
92847         * m4/dirname.m4: New file.
92848
92849         Module getopt.
92850         * m4/getopt.m4: New file.
92851
92852         Module unistd-safer.
92853         * m4/unistd-safer.m4: New file.
92854
92855         Module fnmatch.
92856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92857         declaration.
92858         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92859         (gl_FUNC_FNMATCH_POSIX): New macro.
92860         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92861         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92862         simply fnmatch.
92863
92864         Module exclude.
92865         * m4/exclude.m4: New file.
92866
92867         Module human.
92868         * m4/human.m4: New file.
92869
92870         Module acl.
92871         * m4/acl.m4: Nop.
92872
92873         Module backupfile.
92874         * m4/backupfile.m4: New file.
92875         * m4/d-ino.m4: Indentation.
92876
92877         Module fsusage.
92878         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92879         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92880         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92881
92882         Module dirfd.
92883         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92884         requirements.
92885
92886         Module euidaccess.
92887         * m4/euidaccess.m4: New file.
92888
92889         Module file-type.
92890         * m4/file-type.m4: New file.
92891
92892         Module fileblocks.
92893         * m4/fileblocks.m4: New file.
92894
92895         Module filemode.
92896         * m4/filemode.m4: New file.
92897
92898         Module isdir.
92899         * m4/isdir.m4: New file.
92900
92901         Module lchown.
92902         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92903         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92904
92905         Module makepath.
92906         * m4/makepath.m4: New file.
92907
92908         Module modechange.
92909         * m4/modechange.m4: New file.
92910
92911         Module mountlist.
92912         * m4/mountlist.m4: New file.
92913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92914         Indentation.
92915
92916         Module path-concat.
92917         * m4/path-concat.m4: New file.
92918
92919         Module pathmax.
92920         * m4/pathmax.m4: New file.
92921
92922         Module same.
92923         * m4/same.m4: New file.
92924
92925         Module save-cwd.
92926         * m4/save-cwd.m4: New file.
92927
92928         Module savedir.
92929         * m4/savedir.m4: New file.
92930
92931         Module xgetcwd.
92932         * m4/xgetcwd.m4: New file.
92933         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92934
92935         Module xreadlink.
92936         * m4/xreadlink.m4: New file.
92937
92938         Module safe-read.
92939         * m4/safe-read.m4: New file.
92940
92941         Module safe-write.
92942         * m4/safe-write.m4: New file.
92943
92944         Module closeout.
92945         * m4/closeout.m4: New file.
92946
92947         Module stdio-safer.
92948         * m4/stdio-safer.m4: New file.
92949
92950         Module getpass.
92951         * m4/getpass.m4: New file.
92952
92953         Module getugroups.
92954         * m4/getugroups.m4: New file.
92955
92956         Module group-member.
92957         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92958         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92959
92960         Module idcache.
92961         * m4/idcache.m4: New file.
92962
92963         Module userspec.
92964         * m4/userspec.m4: New file.
92965
92966         Module gettime.
92967         * m4/clock_time.m4: New file.
92968         * m4/gettime.m4: New file.
92969
92970         Module settime.
92971         * m4/settime.m4: New file.
92972
92973         Module posixtm.
92974         * m4/posixtm.m4: New file.
92975
92976         Module gethostname.
92977         * m4/gethostname.m4: New file.
92978
92979         Module canon-host.
92980         * m4/canon-host.m4: New file.
92981
92982         Module gettext.
92983         * m4/codeset.m4: New file, from gettext-0.11.5.
92984         * m4/gettext.m4: New file, from gettext-0.11.5.
92985         * m4/glibc21.m4: New file, from gettext-0.11.5.
92986         * m4/iconv.m4: New file, from gettext-0.11.5.
92987         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92988         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92989         * m4/inttypes.m4: New file, from gettext-0.11.5.
92990         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92991         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92992         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92993         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92994         * m4/lib-link.m4: New file, from gettext-0.11.5.
92995         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92996         * m4/progtest.m4: New file, from gettext-0.11.5.
92997         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92998         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92999         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93000
93001         Module localcharset.
93002         * m4/localcharset.m4: New file.
93003
93004         Module hard-locale.
93005         * m4/hard-locale.m4: New file.
93006
93007         Module mbswidth.
93008         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93009         onceonly macros.
93010         * m4/mbrtowc.m4: Add comment.
93011
93012         Module memcasecmp.
93013         * m4/memcasecmp.m4: New file.
93014
93015         Module memcoll.
93016         * m4/memcoll.m4: New file.
93017
93018         Module unicodeio.
93019         * m4/unicodeio.m4: New file.
93020
93021         Module rpmatch.
93022         * m4/rpmatch.m4: New file.
93023
93024         Module yesno.
93025         * m4/yesno.m4: New file.
93026
93027         Module exitfail.
93028         * m4/exitfail.m4: New file.
93029
93030         Module c-stack.
93031         * m4/c-stack.m4 (gl_C_STACK): New macro.
93032         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93033
93034         Module error.
93035         * m4/error.m4 (gl_ERROR): New macro.
93036         (jm_PREREQ_ERROR): Use onceonly macros.
93037
93038         Module fatal.
93039         * m4/fatal.m4: New file.
93040
93041         Module getloadavg.
93042         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93043         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93044
93045         Module getpagesize.
93046         * m4/getpagesize.m4: New file.
93047
93048         Module getusershell.
93049         * m4/getusershell.m4: New file.
93050
93051         Module physmem.
93052         * m4/physmem.m4: New file.
93053
93054         Module posixver.
93055         * m4/posixver.m4: New file.
93056
93057         Module quotearg.
93058         * m4/quotearg.m4: New file.
93059
93060         Module quote.
93061         * m4/quote.m4: New file.
93062
93063         Module readutmp.
93064         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93065
93066         Module sig2str.
93067         * m4/sig2str.m4: New file.
93068
93069         Other.
93070         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93071         ulonglong.m4.
93072         * m4/intmax_t.m4: New file.
93073         * m4/d-type.m4: Indentation.
93074         * m4/jm-macros.m4: Update.
93075         * m4/prereq.m4 (jm_PREREQ): Update.
93076         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93077         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93078         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93079         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93080         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93081         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93082         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93083         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93084         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93085         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93086         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93087         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93088         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93089         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93090         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93091         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93092         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93093         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93094         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93095
93096 2002-12-24  Bruno Haible  <bruno@clisp.org>
93097
93098         * MODULES.txt: Update according to m4/ changes.
93099
93100         Module gettext.
93101         * config.rpath: New file, from gettext-0.11.5.
93102
93103         * modules/*: New module descriptions.
93104         * gnulib-tool: New file.
93105         * MODULES.html.sh: New file.
93106
93107 2002-12-21  Karl Berry  <karl@gnu.org>
93108
93109         * doc/fdl.texi: update to version 1.2.
93110
93111 2002-12-19  Karl Berry  <karl@gnu.org>
93112
93113         * config/config.guess: update from prep.
93114
93115 2002-12-18  Bruno Haible  <bruno@clisp.org>
93116
93117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93118         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93119
93120 2002-12-17  Bruno Haible  <bruno@clisp.org>
93121
93122         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93123         stdlib.h, string.h.
93124
93125 2002-12-17  Bruno Haible  <bruno@clisp.org>
93126
93127         * lib/canon-host.c (strdup): Remove unused declaration.
93128
93129         * lib/fsusage.c: Include full_read.h.
93130         (get_fs_usage): Use full_read instead of safe_read.
93131
93132         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93133
93134 2002-12-12  Karl Berry  <karl@gnu.org>
93135
93136         * config/config.guess: update from prep.
93137
93138 2002-12-11  Bruno Haible  <bruno@clisp.org>
93139
93140         * m4/setenv.m4: New file, from gettext-0.11.5.
93141
93142 2002-12-11  Bruno Haible  <bruno@clisp.org>
93143
93144         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93145         not unsetenv().
93146         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93147         modifications:
93148
93149         2002-12-11  Bruno Haible  <bruno@clisp.org>
93150
93151                 * setenv.c (alloca): Fall back to malloc.
93152                 (freea): New macro.
93153                 (setenv): Use freea() to free memory allocated with alloca().
93154
93155         2002-11-13  Bruno Haible  <bruno@clisp.org>
93156
93157                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93158                 function declarations.
93159                 * unsetenv.c (unsetenv): Likewise.
93160
93161         2002-03-04  Bruno Haible  <bruno@clisp.org>
93162
93163                 Portability to AIX 4.3.3.
93164                 * unsetenv.c: New file, extracted from setenv.c.
93165                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93166
93167         2001-12-20  Bruno Haible  <bruno@clisp.org>
93168
93169                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93170                 use malloc instead. For SunOS 4.
93171
93172         2001-12-11  Bruno Haible  <bruno@clisp.org>
93173
93174                 * setenv.c: Declare alloca.
93175                 (compar_fn_t): New typedef.
93176                 (KNOWN_VALUE, STORE_VALUE): Use it.
93177
93178         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93179         setenv.h.
93180
93181 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93182
93183         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93184         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93185         Choose values that are less likely to collide with system fnmatch
93186         options.
93187         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93188         defined (e.g., a pure POSIX system).
93189         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93190         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93191
93192 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93193
93194         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93195         a pain in practice to deal with generated m4 files.  This change
93196         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93197
93198         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93199         and jm-glibc-io.m4, as they are no longer a special case.
93200         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93201         kludge and the auto-generation stuff.  Check only whether the
93202         functions are declared, not whether they exist, since older hosts
93203         that don't declare the functions can't use the optimization anyway.
93204
93205 2002-12-06  Jim Meyering  <jim@meyering.net>
93206
93207         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93208
93209         Merge in changes from libc's misc/error.c, in preparation
93210         for the merge of gnulib's changes back into libc.
93211
93212         * lib/error.c (_): Define only if not already defined.
93213         Move definition to follow all #include directives.
93214         Include unlocked-io.h only if !_LIBC.
93215         [_LIBC]: Include <libio/libioP.h>.
93216         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93217         (fflush): Tweak definition to use INTUSE.
93218         (putc): Define.
93219
93220 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93221
93222         * lib/alloca.c [defined emacs]: Include "lisp.h".
93223         (xalloc_die) [defined emacs]: New macro.
93224         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93225         [! defined emacs]: Include <xalloc.h>.
93226         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93227         (pointer): Typedef to POINTER_TYPE *.
93228         (malloc): Remove decl; we now always use xmalloc.
93229         (alloca): Use old-style definition, since Emacs needs this.
93230         Check for arithmetic overflow when computing combined size.
93231
93232 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93233
93234         Do not generate unlocked-io.h automatically, since it's easier to
93235         maintain it by hand.
93236
93237         * lib/unlocked-io.h: New file, from GNU diffutils,
93238         but with proper copyright notice and attribution.
93239         * lib/gen-uio: Remove.
93240         * lib/Makefile.am: Add copyright notice.
93241         (libfetish_a_SOURCES): Add unlocked-io.h.
93242         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93243         (DISTCLEANFILES, io_functions): Remove macros.
93244         (EXTRA_DIST): Remove gen_uio.
93245         (unlocked-io.h): Remove rule.
93246
93247 2002-12-04  Jim Meyering  <jim@meyering.net>
93248
93249         Reflect the fact that stat.c and lstat.c are no longer generated.
93250         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93251         (DISTCLEANFILES): Likewise.
93252         (EXTRA_DIST): Likewise.
93253         (all_local): Don't depend on stat.c or lstat.c.
93254         (stat.c, lstat.c): Remove rules.
93255         (EXTRA_DIST): Remove xstat.in.
93256
93257         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93258         * lib/stat.c: New file.  Contents mostly from xstat.in.
93259         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93260         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93261
93262         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93263         too.
93264         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93265
93266 2002-12-03  Jim Meyering  <jim@meyering.net>
93267
93268         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93269         but not semantics, to minimize the differences between these two files.
93270         (safe_read): Change comment to mention SAFE_READ_ERROR.
93271
93272         * lib/safe-read.c (IS_EINTR): Define.
93273         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93274
93275 2002-12-02  Jim Meyering  <jim@meyering.net>
93276
93277         * lib/safe-read.c (EINTR): Define.
93278         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93279         (INT_MAX): Provide fallback.
93280         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93281
93282         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93283
93284 2002-12-02  Bruno Haible  <bruno@clisp.org>
93285
93286         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93287         Define, taken from safe-read.c.
93288         (INT_MAX): Provide fallback.
93289         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93290         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93291
93292         * lib/safe-read.c (EINTR): Remove definition.
93293         (safe_read): Don't use EINTR if it is absent.
93294
93295 2002-12-01  Jim Meyering  <jim@meyering.net>
93296
93297         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93298         zero.
93299         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93300
93301 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93302
93303         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93304         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93305         with `if (! (value < limit)) abort ();', for readability.
93306
93307 2002-11-26  Karl Berry  <karl@gnu.org>
93308
93309         * lib/strdup.c: copy from libc again, with jim's ok.
93310         * lib/.cppi-disable: re-add strdup.c
93311
93312 2002-11-25  Karl Berry  <karl@gnu.org>
93313
93314         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93315         instead of "strtol.c".
93316
93317 2002-11-25  Karl Berry  <karl@gnu.org>
93318
93319         * config/install-sh: update from automake for variable quoting, $0 in
93320         error msgs, etc.
93321
93322         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93323         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93324         entry.
93325
93326 2002-11-25  Jim Meyering  <jim@meyering.net>
93327
93328         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93329
93330 2002-11-24  Karl Berry  <karl@gnu.org>
93331
93332         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93333         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93334
93335 2002-11-24  Jim Meyering  <jim@meyering.net>
93336
93337         Update from coreutils:
93338
93339         * lib/mktime.c: Merge in changes from libc.
93340
93341         Avoid a link-time failure on some Linux systems.
93342         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93343         (otherwise).
93344         (__mon_yday): Declare with the STATIC attribute.
93345         (__mktime_internal): Likewise.
93346         Based on a report from Greg Schafer.
93347
93348 2002-11-23  Jim Meyering  <jim@meyering.net>
93349
93350         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93351         Use `unsigned', not `int', as type of index.
93352
93353         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93354
93355         * lib/fsusage.c: Remove unneeded parentheses around operands of
93356         `defined'.
93357
93358 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93359
93360         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93361         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93362         so that we can be included first.
93363         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93364         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93365         No need to include stddef.h or sys/types.h any more.
93366         Surround local include files with "", not "<>".
93367         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93368         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93369         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93370         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93371         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93372         (ISPRINT): Remove; no longer needed now that we assume C89.
93373
93374         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93375         Preserve errno.
93376
93377         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93378         quotearg_char): Use SIZE_MAX rather than
93379         (size_t) -1 when we are talking about "infinity".
93380
93381         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93382
93383 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93384
93385         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93386         hint that one should use `if (! x) abort ();' rather than `assert
93387         (x);', and anyway it's one less thing to worry about configuring.
93388         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93389         hash_rehash, hash_insert): Use abort rather than assert.
93390
93391 2002-11-22  Bruno Haible  <bruno@clisp.org>
93392
93393         * lib/safe-read.h: Assume C89. Add comments.
93394         (safe_read): Change return type to size_t.
93395         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93396         byte counts > SSIZE_MAX correctly.
93397         * lib/safe-write.h: New file.
93398         * lib/safe-write.c: New file.
93399         * lib/full-read.h: New file.
93400         * lib/full-read.c: New file.
93401         * lib/full-write.h: Assume C89. Add comments.
93402         * lib/full-write.c: Include safe-write.h.
93403         (full_write): Rewritten to use safe_write.
93404         Suggested by Jim Meyering and Paul Eggert.
93405
93406 2002-11-21  Jim Meyering  <jim@meyering.net>
93407
93408         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93409
93410         Merge in changes from the coreutils.
93411
93412         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93413         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93414         <stdint.h>.
93415         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93416         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93417         int.  Work more efficiently if X is the same width as uintmax_t.
93418         Do not compare X to -1, to avoid bogus compiler warning.
93419         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93420         Don't assume that f_frsize and f_bsize are the same type.
93421
93422         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93423         warning on FreeBSD.
93424
93425         * lib/makepath.c (make_path): Restore umask *before* creating the final
93426         component.
93427         (make_path): Minor reformatting.
93428
93429         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93430         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93431         HAVE_MALLOC/HAVE_REALLOC.
93432
93433         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93434         dummy ones.  At least on GNU/Linux systems, `auto' means something
93435         else.
93436         From Michael Stone.
93437
93438 2002-11-21  Bruno Haible  <bruno@clisp.org>
93439
93440         Remove case insensitive option matching.
93441         * lib/argmatch.h (argcasematch): Remove declaration.
93442         (ARGCASEMATCH): Remove macro.
93443         (__xargmatch_internal): Remove case_sensitive argument.
93444         (XARGMATCH): Update.
93445         (XARGCASEMATCH): Remove macro.
93446         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93447         case_sensitive argument.
93448         (argcasematch): Remove function.
93449         (__xargmatch_internal): Remove case_sensitive argument.
93450         (main): Use XARGMATCH instead of XARGCASEMATCH.
93451
93452         * lib/xmalloc.c: Change compile-time error message. Add comment about
93453         required autoconf version.
93454
93455 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93456
93457         Merge argmatch cleanups from Bison.  Assume C89.
93458
93459         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93460         Include stdlib.h, for EXIT_FAILURE.
93461         Always include <string.h>, since we assume C89.
93462         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93463         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93464         Include <stddef.h> instead, since it's all we need for size_t.
93465         (PARAMS): Remove.  All uses removed.
93466         (ARRAY_CARDINALITY): Do not bother to #undef.
93467         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93468         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93469         Remove unnecessary parentheses.
93470         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93471         Insert necessary parentheses.
93472         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93473         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93474
93475 2002-11-19  Bruno Haible  <bruno@clisp.org>
93476
93477         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93478         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93479
93480         * lib/mbswidth.h (PARAMS): Remove macro.
93481         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93482         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93483
93484         * lib/gcd.h (PARAMS): Remove macro.
93485         (gcd): Use ANSI C function declarations.
93486         * lib/gcd.c (gcd): Likewise.
93487
93488 2002-11-15  Bruno Haible  <bruno@clisp.org>
93489
93490         * lib/strcspn.c: Include <stddef.h>.
93491         (strcspn): Use ANSI C function declaration. Change return type to
93492         size_t. Use NULL.
93493         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93494         (strpbrk): Use NULL.
93495         * lib/strpbrk.h (PARAMS): Remove macro.
93496         (strpbrk): Use ANSI C function declaration.
93497         * lib/strstr.c: Don't include <sys/types.h>.
93498         * lib/strstr.h (PARAMS): Remove macro.
93499         (strstr): Use ANSI C function declarations.
93500
93501 2002-11-14  Karl Berry  <karl@gnu.org>
93502
93503         * config/mkinstalldirs: `do' on separate line, instead of
93504         `for var; do'.
93505
93506 2002-11-06  Bruno Haible  <bruno@clisp.org>
93507
93508         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93509         * lib/gcd.c (gcd): Likewise.
93510
93511 2002-11-05  Bruno Haible  <bruno@clisp.org>
93512
93513         * lib/gcd.h: New file, from gettext-0.11.5.
93514         * lib/gcd.c: New file, from gettext-0.11.5.
93515
93516 2002-11-05  Bruno Haible  <bruno@clisp.org>
93517
93518         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93519         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93520         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93521         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93522
93523         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93524         <libintl.h>.
93525         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93526         <libintl.h>.
93527
93528         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93529         * lib/human.c: Include gettext.h instead of <libintl.h>.
93530         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93531         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93532         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93533         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93534         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93535         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93536         (textdomain): Remove definition.
93537         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93538
93539         * lib/long-options.c: Remove include of <libintl.h> and definition of
93540         _.
93541         * lib/same.c: Remove include of <libintl.h> and definition of _.
93542
93543 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93544
93545         * lib/config.charset: A few additions for Solaris.
93546
93547 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93548
93549         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93550         * lib/localcharset.c (locale_charset): Declare as extern "C".
93551
93552 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93553
93554         * lib/config.charset: msdos in uk_UA uses CP1125.
93555
93556 2002-11-04  Bruno Haible  <bruno@clisp.org>
93557
93558         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93559         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93560         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93561         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93562         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93563
93564 2002-11-04  Bruno Haible  <bruno@clisp.org>
93565
93566         * lib/localcharset.c (locale_charset): Don't return an empty string.
93567
93568 2002-11-04  Bruno Haible  <bruno@clisp.org>
93569
93570         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93571         aliases.
93572
93573 2002-11-04  Bruno Haible  <bruno@clisp.org>
93574
93575         * lib/config.charset: Update for newest glibc. Add canonical names
93576         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93577
93578 2002-11-04  Bruno Haible  <bruno@clisp.org>
93579
93580         * lib/config.charset: Add support for NetBSD.
93581
93582 2002-11-04  Bruno Haible  <bruno@clisp.org>
93583
93584         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93585
93586 2002-11-01  Bruno Haible  <bruno@clisp.org>
93587
93588         * configure.in: Add AC_CONFIG_AUX_DIR call.
93589         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93590         test/Makefile.
93591         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93592
93593 2002-09-28  Karl Berry  <karl@gnu.org>
93594
93595         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93596         installed automake until the next release, since changes have been
93597         made.
93598
93599 2002-09-25  Karl Berry  <karl@gnu.org>
93600
93601         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93602         * lib/getopt*: copy from libc/posix.
93603         * lib/gettext.h: copy from gettext.
93604         * lib/.cppi-disable: add strdup.c, gettext.h.
93605
93606 2002-09-25  Karl Berry  <karl@gnu.org>
93607
93608         * config/srclist.txt: enable gettext.h check.
93609         * config/config.{guess,sub}: update from prep.
93610         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93611                 from automake 1.6.3.
93612         See srclist*.
93613
93614 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93615
93616         * regex.c (PATFETCH): Remove the translating fetch.
93617         (PATFETCH_RAW): Rename to PATFETCH.
93618         (set_image_of_range): New fun.
93619         (SET_RANGE_TABLE_WORK_AREA): Use it.
93620         (regex_compile): Don't translate the pattern chars so eagerly.
93621         Only do it when inserting an `exactn' bytecode or when handling
93622         a char-range.
93623         (mutually_exclusive_p): Avoid empty statement.
93624
93625 2002-07-06  Jim Meyering  <meyering@lucent.com>
93626
93627         * m4/README: Don't mention Makefile.am.in.
93628         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93629
93630 2002-07-01  Jim Meyering  <meyering@lucent.com>
93631
93632         * lib/c-stack.c: Include sys/time.h.
93633         From Volker Borchert.
93634
93635 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93636
93637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93638
93639 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93640
93641         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93642         New macro.  Use it uniformly instead of
93643         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93644         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93645         reported by Vin Shelton.
93646
93647 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93648
93649         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93650         Do not assume SA_SIGINFO behavior.
93651         Bug reported by Jim Meyering on NetBSD 1.5.2.
93652
93653 2002-06-22  Jim Meyering  <meyering@lucent.com>
93654
93655         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93657
93658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93659         now that configure.ac uses AC_GNU_SOURCE.
93660         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93661         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93662
93663         Update to latest tools.  Suggestions from Paul Eggert.
93664         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93665         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93666         * m4/fnmatch.m4: Likewise.
93667         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93668         to AC_HEADER_STDBOOL
93669
93670 2002-06-22  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93673         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93674
93675 2002-06-22  Jim Meyering  <meyering@lucent.com>
93676
93677         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93678
93679         * lib/exitfail.c, exitfail.h: Likewise.
93680         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93681
93682         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93683         of fnmatch.h.
93684         (EXTRA_DIST): Add fnmatch_loop.c.
93685         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93686
93687         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93688         * lib/fnmatch.c: Update from diffutils-2.8.2.
93689         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93690         * lib/fnmatch.h: Remove file.
93691
93692 2002-06-21  Jim Meyering  <meyering@lucent.com>
93693
93694         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93695         * m4/mbrtowc.m4: Likewise.
93696
93697         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93698         * m4/mbswidth.m4: Reflect name change:
93699         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93700         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93701
93702         * m4/lib-link.m4: Update from gettext-0.11.2.
93703         * m4/gettext.m4: Likewise.
93704
93705         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93706         From Alfred M. Szmidt.
93707
93708 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93709
93710         * lib/file-type.h: Report an error if neither S_ISREG nor
93711         S_IFREG is defined, instead of using a test specific to glibc
93712         2.2.  This should be safe, since POSIX requires S_ISREG and
93713         Unix Version 7 had S_IFREG.  We don't need to check for
93714         <sys/types.h> since we don't use any symbols that it defines.
93715
93716 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93717
93718         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93719         $@-t, so that each temporary file name is unique and valid in the first
93720         8 characters, for operation under DOS.
93721
93722 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93723
93724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93725
93726 2002-06-15  Jim Meyering  <meyering@lucent.com>
93727
93728         Work even with DJGPP 2.03, which lacks support for symlinks.
93729         From Richard Dawe.
93730         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93731         is defined.
93732         * lib/lchown.c (S_ISLNK): Likewise.
93733
93734 2002-06-15  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93737         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93738         have been included before this file.
93739
93740 2002-06-14  Jim Meyering  <meyering@lucent.com>
93741
93742         * lib/file-type.h: Use the version from diffutils-2.8.2.
93743         * lib/file-type.c: Likewise.
93744
93745 2002-06-07  Jim Meyering  <meyering@lucent.com>
93746
93747         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93748         They're needed at least for NetBSD 1.5.2.
93749         ($statxfs_includes): Include those same headers.
93750         ($statxfs_includes): Include sys/vfs.h if available.
93751         ($statxfs_includes): Likewise for sys/statvfs.h.
93752         Check for the following members in both structs statfs and statvfs:
93753         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93754
93755 2002-06-01  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93758         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93759
93760 2002-05-28  Jim Meyering  <meyering@lucent.com>
93761
93762         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93763         Reported by Volker Borchert.
93764
93765 2002-05-27  Jim Meyering  <meyering@lucent.com>
93766
93767         Fix a problem seen only on nonconforming systems whereby ls.c's
93768         use of localtime, and then of gettimeofday would cause trouble:
93769         the localtime call used to initialize rpl_gettimeofday's save
93770         mechanism would clobber ls's current local time information so
93771         that in any long listing the first file would always be listed
93772         with date 1970-01-01.  Analysis by Volker Borchert.
93773
93774         * lib/gettimeofday.c (localtime): Undefine.
93775         (rpl_localtime): New function.
93776
93777 2002-05-27  Jim Meyering  <meyering@lucent.com>
93778
93779         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93780         localtime.
93781
93782         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93783         use the replacement function; it wouldn't resolve at link time.
93784         Reported by Volker Borchert.
93785
93786 2002-05-22  Jim Meyering  <meyering@lucent.com>
93787
93788         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93789         file-type.h.
93790         * lib/file-type.h: New file.
93791         * lib/file-type.c (file_type): New file/function.  Extracted from
93792         diffutils.
93793
93794 2002-04-30  Jim Meyering  <meyering@lucent.com>
93795
93796         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93797
93798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93799
93800         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93801
93802 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93803
93804         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93805         Do not check for alloca.h (no longer used) or stdbool.h (was never
93806         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93807
93808 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93809
93810         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93811
93812 2002-04-29  Jim Meyering  <meyering@lucent.com>
93813
93814         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93815         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93816         Use AC_FUNC_STRNLEN here instead.
93817
93818         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93819         With autoconf-2.53a, it's part of AC_PROG_CC.
93820
93821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93822
93823         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93825
93826 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93827
93828         * lib/sig2str.h, lib/sig2str.c: New files.
93829         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93830
93831 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93832
93833         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93834         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93835         of 127, since 64 is the largest conceivable number for ancient
93836         nonstandard hosts.
93837         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93838
93839 2002-04-28  Jim Meyering  <meyering@lucent.com>
93840
93841         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93842
93843 2002-04-24  Jim Meyering  <meyering@lucent.com>
93844
93845         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93846         (jm_PREREQ): Use it.
93847
93848         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93849         mach/mach.h fcntl.h.
93850         Check for this function: setlocale.
93851
93852 2002-04-24  Jim Meyering  <meyering@lucent.com>
93853
93854         * lib/gettext.h: New file, from Gettext.
93855         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93856         (libfetish_a_SOURCES): Add gettext.h.
93857
93858 2002-04-16  Jim Meyering  <meyering@lucent.com>
93859
93860         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93861         ut_pid, ut_id, ut_exit.
93862
93863 2002-04-16  Jim Meyering  <meyering@lucent.com>
93864
93865         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93866         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93867         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93868
93869 2002-04-12  Jim Meyering  <meyering@lucent.com>
93870
93871         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93872         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93873         existence of the getmntinfo function.  Needed for Darwin 5.3.
93874
93875         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93876         This is necessary at least on Darwin 5.3.
93877
93878         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93879         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93880         strnlen.o in the library, and that makes some versions of ranlib
93881         object.
93882
93883 2002-04-12  Jim Meyering  <meyering@lucent.com>
93884
93885         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93886
93887 2002-04-09  Jim Meyering  <meyering@lucent.com>
93888
93889         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93890         to be more precise.  Rather than saying we're checking whether the
93891         function `works', say what we're testing.
93892         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93893         Reported by Bruno Haible.
93894
93895 2002-03-10  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93898         Suggestion from Santiago Vila.
93899
93900 2002-03-08  Jim Meyering  <meyering@lucent.com>
93901
93902         * lib/rename.c: Mention that this wrapper is needed also on
93903         mips-dec-ultrix4.4 systems.
93904
93905 2002-03-02  Jim Meyering  <meyering@lucent.com>
93906
93907         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93908         not HAVE_CLOCK_SETTIME.
93909
93910 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93911
93912         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93913         Check for clock_settime.
93914
93915 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93916
93917         * lib/nanosleep.h: Rename to....
93918         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93919
93920         * lib/gettime.c: New file.
93921         * lib/settime.c: New file.
93922         * lib/stime.c: Remove.
93923
93924         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93925         timespec.h.  Remove nanosleep.h.
93926
93927 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93928
93929         * m4/acl.m4: New file.
93930         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93931         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93932
93933 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93934
93935         * lib/acl.c, lib/acl.h: New files.
93936         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93937
93938 2002-02-24  Jim Meyering  <meyering@lucent.com>
93939
93940         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93941         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93942         cause trouble.  Reported by Nelson Beebe.
93943
93944 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93945
93946         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93947         compilers that don't know that xalloc_die never returns.
93948
93949 2002-02-20  Jim Meyering  <meyering@lucent.com>
93950
93951         * lib/getdate.c: Regenerate using bison-1.33.
93952
93953 2002-02-17  Jim Meyering  <meyering@lucent.com>
93954
93955         * config/config.guess (main): Don't use `head -1'; it's no longer
93956         portable. Use `sed 1q' instead.
93957
93958 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93959
93960         * m4/codeset.m4: Upgrade to gettext-0.11.
93961         * m4/gettext.m4: Upgrade to gettext-0.11.
93962         * m4/glibc21.m4: Upgrade to gettext-0.11.
93963         * m4/iconv.m4: Upgrade to gettext-0.11.
93964         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93965         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93966         * m4/lib-ld.m4: New file, from gettext-0.11.
93967         * m4/lib-link.m4: New file, from gettext-0.11.
93968         * m4/lib-prefix.m4: New file, from gettext-0.11.
93969         * m4/progtest.m4: Upgrade to gettext-0.11.
93970
93971 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93972
93973         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93974         (jm_PREREQ): Use it.
93975
93976 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93977
93978         * lib/posixver.c, lib/posixver.h: New files.
93979         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93980
93981 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93982             Bruno Haible  <bruno@clisp.org>
93983
93984         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93985         (fwrite_success_callback): New declaration.
93986         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93987         print_unicode_char. Call failure callback instead of error.
93988         (fwrite_success_callback): New function.
93989         (exit_failure_callback): New function.
93990         (fallback_failure_callback): New function.
93991         (print_unicode_char): Call unicode_to_mb.
93992
93993 2002-01-26  Jim Meyering  <meyering@lucent.com>
93994
93995         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93996         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93997
93998 2002-01-26  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94001
94002 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94003
94004         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94005
94006 2002-01-22  Jim Meyering  <meyering@lucent.com>
94007
94008         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94009         Otherwise, some versions of automake would omit the rule that makes
94010         Makefile from Makefile.in.
94011
94012 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94013
94014         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94015         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94016         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94017         (memcoll): Set errno to zero if there is no error.
94018
94019         * lib/quotearg.c (quotearg_buffer_restyled):
94020         Fix bug with quoting buffers containing NUL when backslashing escapes.
94021         This bug was exposed by the other changes in this patch.
94022         (quotearg_n_options): New arg ARGSIZE.
94023         All callers changed.
94024         (quoting_options_from_style): New function.
94025         (quotearg_n_style): Use it.
94026         (quotearg_n_style_mem): New function.
94027
94028         * lib/quotearg.h (quotearg_n_style_mem): New function.
94029
94030 2002-01-19  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94033         Remove useless quotes: DF_PROG="df".
94034         * m4/strnlen.m4: New file.
94035
94036 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94037
94038         * lib/backupfile.c (ISDIGIT): Comment fix.
94039         * lib/getdate.y (ISDIGIT): Likewise.
94040         * lib/posixtm.c (ISDIGIT, year): Likewise.
94041         * lib/strverscmp.c (ISDIGIT): Likewise.
94042         * lib/userspec.c (ISDIGIT): Likewise.
94043
94044 2002-01-16  Jim Meyering  <meyering@lucent.com>
94045
94046         * lib/getdate.y: Add three semicolons, each just before a closing
94047         brace. Bison (as of version 1.31) no longer papers over that mistake.
94048
94049 2002-01-05  Jim Meyering  <meyering@lucent.com>
94050
94051         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94052
94053 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94054
94055         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94056         not silently exit merely because the output buffer happens to
94057         have nothing pending.
94058
94059 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94060
94061         See the big note in ../ChangeLog.
94062         * lib/human.c (suffixes): Prefer K to k for 1024.
94063         (generate_suffix_backwards): New function.
94064         (human_readable_inexact): Use it.
94065         * lib/xstrtol.c (__xstrtol): If there is no number but there
94066         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94067         Accept 'K' as well as 'k'.
94068
94069 2001-12-15  Jim Meyering  <meyering@lucent.com>
94070
94071         * lib/regex.h (__restrict_arr): Update from libc.
94072
94073         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94074         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94075         (STREQ): Define.
94076
94077 2001-12-14  Jim Meyering  <meyering@lucent.com>
94078
94079         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94080         Suggestion from Bruno Haible.
94081
94082 2001-12-10  Jim Meyering  <meyering@lucent.com>
94083
94084         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94085         xrealloc, Instead, include "xalloc.h".
94086         (initbuffer): Don't cast xmalloc return value to char*.
94087         (readline): Reword comment.
94088         Don't cast xrealloc return value to char*
94089         Return NULL, not 0.
94090
94091 2001-12-09  Jim Meyering  <meyering@lucent.com>
94092
94093         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94094         about `signed and unsigned type in conditional expression'.
94095         * lib/posixtm.c (posix_time_parse): Likewise.
94096
94097         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94098
94099         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94100         to avoid a pedantic warning.
94101
94102         * lib/getstr.c: Don't include assert.h.
94103         (getstr): Remove warning-evoking assertions.
94104         Return -1 if offset parameter is out of bounds.
94105         Change the type of a local from int to size_t.
94106
94107         * lib/strftime.c (my_strftime_localtime_r): Include this function
94108         definition in the `#if ! HAVE_TM_GMTOFF' block.
94109
94110         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94111         Include xalloc.h instead.
94112
94113 2001-12-02  Jim Meyering  <meyering@lucent.com>
94114
94115         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94116         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94117         included.
94118
94119         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94120         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94121
94122 2001-11-30  Akim Demaille  <akim@epita.fr>
94123
94124         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94125         before being defined.
94126
94127 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94128
94129         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94130         First arg is int, not unsigned.
94131         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94132         (SIZE_MAX, UINT_MAX): New macros.
94133         (quotearg_n_options): Abort if N is negative.
94134         Avoid overflow check on hosts where size_t is 64 bits and int
94135         is 32 bits, as overflow is impossible there.
94136         Fix off-by-one typo that caused unnecessary reallocation.
94137
94138 2001-11-27  Jim Meyering  <meyering@lucent.com>
94139
94140         * lib/tempname.c: Merge with version from libc.
94141         * lib/regex.c: Likewise.
94142
94143         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94144         systems for which STDC_HEADERS is 0, it was not included, resulting in
94145         a warning about an integer-to-pointer conversion problem with getenv.
94146         Reported by Volker Borchert.
94147
94148 2001-11-26  Jim Meyering  <meyering@lucent.com>
94149
94150         * lib/gtod.h: Remove file.
94151         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94152         * lib/gettimeofday.c: Don't include gtod.h.
94153         (GTOD_init): Remove function.
94154         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94155         Suggestion from Volker Borchert.
94156
94157 2001-11-23  Jim Meyering  <meyering@lucent.com>
94158
94159         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94160         it.
94161         * lib/hash.c (struct hash_table): Define it here instead.
94162
94163 2001-11-22  Jim Meyering  <meyering@lucent.com>
94164
94165         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94166
94167 2001-11-20  Jim Meyering  <meyering@lucent.com>
94168
94169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94170         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94171
94172 2001-11-19  Jim Meyering  <meyering@lucent.com>
94173
94174         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94175         directory.  Use "conftestXXXXXX" as the template.
94176         Suggestion from Paul Eggert.
94177
94178         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94179         immediately, so the test doesn't mistakenly hit the max-open-files
94180         limit.
94181
94182 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94183
94184         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94185         (TEMPORARIES): New macro.
94186         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94187         removes an artificial limitation (e.g. HP-UX 10.20, where
94188         TMP_MAX is 17576).
94189
94190 2001-11-18  Jim Meyering  <meyering@lucent.com>
94191
94192         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94193
94194 2001-11-18  Jim Meyering  <meyering@lucent.com>
94195
94196         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94197         on SunOS 4.
94198
94199         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94200         files will be created before anything else.
94201
94202 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94203
94204         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94205         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94206
94207 2001-11-17  Jim Meyering  <meyering@lucent.com>
94208
94209         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94210         Prompted by a report from Bob Proulx.
94211
94212         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94213         Instead, require UTILS_FUNC_MKSTEMP.
94214
94215 2001-11-17  Jim Meyering  <meyering@lucent.com>
94216
94217         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94218         Now, that's done as part of AC_FUNC_STRTOD.
94219
94220 2001-11-17  Jim Meyering  <meyering@lucent.com>
94221
94222         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94223         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94224         rather than group writable.  Patch by Juan F. Codagnone.
94225
94226         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94227         xrealloc, Instead, include "xalloc.h".
94228
94229         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94230         Remove explicit declarations of xmalloc, xrealloc,
94231         and xstrdup.  Instead, include "xalloc.h".
94232
94233         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94234         unlocked-io.h.
94235         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94236         Likewise.
94237         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94238
94239         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94240         Reported by Padraig Brady.
94241
94242         * lib/mkstemp.c: #undef mkstemp.
94243         Include config.h.
94244         (rpl_mkstemp): Rename from mkstemp.
94245         Protoize.
94246
94247 2001-11-16  Jim Meyering  <meyering@lucent.com>
94248
94249         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94250         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94251         determine the amount of total physical memory, use pstat_getstatic.
94252         HPUX-11 doesn't define _SC_PHYS_PAGES.
94253         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94254         If sysconf couldn't be used to determine the amount of available
94255         physical memory, use both pstat_getstatic and pstat_getdynamic.
94256         Based on a patch from Bob Proulx.
94257
94258 2001-11-10  Jim Meyering  <meyering@lucent.com>
94259
94260         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94261         (jm_PREREQ): Use it.
94262
94263 2001-11-09  Jim Meyering  <meyering@lucent.com>
94264
94265         * m4/jm-macros.m4: Require autoconf-2.52f.
94266         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94267         Use these AC_-prefixed names, not the AM_-prefixed ones.
94268
94269         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94270
94271 2001-11-05  Jim Meyering  <meyering@lucent.com>
94272
94273         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94274
94275 2001-11-04  Jim Meyering  <meyering@lucent.com>
94276
94277         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94278         $DEFS.
94279
94280 2001-11-03  Jim Meyering  <meyering@lucent.com>
94281
94282         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94283         of AC_DEFUN.
94284
94285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94286         know the name of the variable in the macro definition.
94287
94288 2001-11-03  Jim Meyering  <meyering@lucent.com>
94289
94290         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94291         in argmatch_to_argument call.
94292
94293         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94294         argument.
94295
94296         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94297         e.g., a fault due to an attempt to free a NULL pointer.
94298
94299 2001-11-01  Jim Meyering  <meyering@lucent.com>
94300
94301         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94302         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94303
94304 2001-11-01  Jim Meyering  <meyering@lucent.com>
94305
94306         * lib/dirfd.c, lib/dirfd.h: New files.
94307         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94308
94309         * lib/hash.c (hash_print) [TESTING]: Clean up.
94310
94311 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94312
94313         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94314         to avoid a warning if -Wall.
94315
94316 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94317
94318         * README: New file
94319         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94320         (per RMS's instructions, this is now the canonical source)
94321         * lgpl/, gpl/: New directories.
94322
94323 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94324
94325         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94326
94327 2001-10-21  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94330         this code would end up calling gettext even in packages built
94331         with --disable-nls.
94332         * lib/getopt.c (_): Likewise.
94333         * lib/regex.c (_): Likewise.
94334
94335 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94336
94337         * m4/error.m4 (jm_PREREQ_ERROR):
94338         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94339         AC_FUNC_STRERROR_R does that.
94340         Check for strerror declaration.
94341
94342         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94343         are supposed to have them these days.
94344         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94345         Merge changes from latest Autoconf CVS.
94346         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94347         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94348         POSIX decided to standardize on the int flavor of strerror_r.
94349
94350 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94351
94352         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94353         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94354         Use strerror_r that is only a macro, even if it is not a function.
94355         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94356         (private_strerror): Use prototypes, not old-style function definition.
94357         (print_errno_message): New function.
94358         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94359         char*-flavored one.
94360         (error_tail, error, error_at_line): Use it.
94361
94362 2001-10-11  Jim Meyering  <meyering@lucent.com>
94363
94364         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94365         and quote_n (1, ... to avoid clobbering a buffer.
94366
94367 2001-10-05  Jim Meyering  <meyering@lucent.com>
94368
94369         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94370         hash-pjw.h.
94371         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94372         * lib/hash-pjw.h: New file.
94373
94374 2001-09-30  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94377         `struct fsstat' has the `f_fstypename' member.
94378         Use that to define FS_TYPE, which is now used to make
94379         the getfsstat link test tighter.
94380
94381 2001-09-30  Jim Meyering  <meyering@lucent.com>
94382
94383         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94384         Include <sys/ucred.h>, for Apple Darwin.
94385         Include sys/mount.h and sys/fs_types.h only if available.
94386         (FS_TYPE): Define.
94387         (read_filesystem_list): Use FS_TYPE.
94388
94389 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94390
94391         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94392         a boolean context.
94393
94394 2001-09-29  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94397         [one-argument getmntent function]): Include stdio.h before mntent.h.
94398         SunOS 4.1.x needs it for the declaration of `FILE'.
94399         Patch by Volker Borchert.
94400
94401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94402         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94403         sys/fs_types.h, and make the link-test for getfsstat guard #include
94404         directives with appropriate #if HAVE_*_H tests so that we can
94405         detect getfsstat on Apple Darwin1.3.7 systems.
94406         Reported by Nelson Beebe.
94407         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94408
94409 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94410
94411         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94412         #defines strtoimax.  Also treat the other strto* functions
94413         like strtoimax.
94414
94415         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94416         Check for strtoul and strtoumax,
94417         as those declarations are made even in the signed case.
94418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94419         Likewise, for strtol and strtoimax.
94420
94421 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94422
94423         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94424         #defines strtoimax.  Also treat the other strto* functions
94425         like strtoimax.
94426
94427         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94428         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94429         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94430
94431 2001-09-26  Jim Meyering  <meyering@lucent.com>
94432
94433         Most macros in unlocked-io.h had the wrong number of arguments.
94434         * lib/gen-uio: New script.
94435         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94436         * lib/unlocked-io.hin: Remove file.
94437         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94438         rather than trying to embed it here.
94439         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94440         Reported by Padraig Brady.
94441
94442 2001-09-25  Volker Borchert  <bt@teknon.de>
94443
94444         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94445         `result'.
94446
94447 2001-09-24  Jim Meyering  <meyering@lucent.com>
94448
94449         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94450
94451 2001-09-23  Jim Meyering  <meyering@lucent.com>
94452
94453         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94454         instead of the mere test for existence of mntent.h.  The latter
94455         would get a false-positive on AIX 3.4 systems.
94456         In the outer getmntent if-block, don't die if neither of the getmntent
94457         tests succeeds.  Instead, just fall through and continue with the
94458         remaining tests.
94459
94460 2001-09-23  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/mountlist.c: Remove useless parentheses in #if directives.
94463         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94464         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94465
94466 2001-09-22  Jim Meyering  <meyering@lucent.com>
94467
94468         * m4/gettext.m4: New file.  From gettext.
94469         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94470         * m4/progtest.m4: Likewise
94471         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94472         * m4/glibc21.m4: Likewise.
94473
94474         * m4/libintl.m4: Remove.  No longer used.
94475
94476 2001-09-22  Jim Meyering  <meyering@lucent.com>
94477
94478         * lib/localcharset.c: Update from latest gettext.
94479         * lib/config.charset: Likewise.
94480
94481 2001-09-20  Jim Meyering  <meyering@lucent.com>
94482
94483         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94484         strtoimax.
94485         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94486         strtoumax.
94487
94488 2001-09-20  Jim Meyering  <meyering@lucent.com>
94489
94490         * lib/xstrtol.c (strtoimax): Guard declaration with
94491         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94492         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94493         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94494         (strtoumax): Likewise, for completeness (it wasn't necessary).
94495
94496 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94497
94498         * lib/strtoimax.c (HAVE_LONG_LONG):
94499         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94500         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94501         to work around bug in IBM C compiler.
94502
94503 2001-09-17  Jim Meyering  <meyering@lucent.com>
94504
94505         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94506         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94507         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94508         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94509         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94510         whenever the right hand side need not be expanded by the shell.
94511
94512 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94513
94514         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94515         library.  It's not correct, as some older glibcs are buggy.
94516         fnmatch wasn't fixed until glibc 2.2.
94517
94518         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94519         special shell magic here.
94520
94521 2001-09-16  Jim Meyering  <meyering@lucent.com>
94522
94523         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94524         * m4/jm-macros.m4: Require it.
94525
94526 2001-09-16  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/mkdir.c: New file.
94529
94530 2001-09-15  Jim Meyering  <meyering@lucent.com>
94531
94532         * m4/jm-macros.m4: Check for help2man.
94533
94534 2001-09-11  Jim Meyering  <meyering@lucent.com>
94535
94536         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94537         The body, by Paul Eggert, was moved here from configure.in.
94538         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94539
94540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94541
94542         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94543         (jm_PREREQ): Use it.
94544
94545 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94546
94547         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94548         Use ssize_t, not int, to store result of readlink.
94549         Check for ssize_t overflow as well as size_t overflow,
94550         as POSIX says the result of readlink is implementation-defined
94551         when ssize_t overflows.
94552         Remove unnecessary cast to char*.
94553         Use free+malloc instead of realloc, as the storage doesn't need
94554         to be preserved and it's clearer and can be more efficient that way.
94555         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94556         * lib/xreadlink.h (xreadlink): Update prototype.
94557
94558 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94559
94560         * lib/xgetcwd.c: Revert some of the previous change; intead,
94561         fix the HAVE_GETCWD_NULL code to behave more like the
94562         !HAVE_GETCWD_NULL code used to.
94563
94564         Include "xalloc.h".
94565         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94566         invoke xalloc_die.
94567
94568 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94569
94570         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94571         sys/param.h, as pathmax.h includes them.
94572
94573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94574
94575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94576         (jm_PREREQ_XGETCWD): New macro.
94577
94578         * m4/getcwd.m4: New file.
94579
94580 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94581
94582         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94583         like the HAVE_GETCWD_NULL code.
94584         Include pathmax.h if not HAVE_GETCWD.
94585         Do not include xalloc.h.
94586         (INITIAL_BUFFER_SIZE): New symbol.
94587         Do not use xmalloc / xrealloc, since the caller is responsible for
94588         handling errors.  Preserve errno around `free' during failure.
94589         Do not overrun buffer when using getwd.
94590
94591 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94592
94593         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94594         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94595         getcwd (NULL, 0).
94596
94597 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94598
94599         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94600         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94601         spotted by Jim Meyering.
94602
94603 2001-09-03  Jim Meyering  <meyering@lucent.com>
94604
94605         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94606         failure.
94607
94608 2001-09-02  Jim Meyering  <meyering@lucent.com>
94609
94610         * lib/error.c: Update from GNU libc.
94611
94612 2001-09-01  Jim Meyering  <meyering@lucent.com>
94613
94614         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94615         Used by df.
94616
94617 2001-09-01  Jim Meyering  <meyering@lucent.com>
94618
94619         * lib/xreadlink.c: New file.
94620         * lib/xreadlink.h: New file.
94621         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94622         xreadlink.h.
94623
94624         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94625         doesn't conflict with sparc Solaris 7's definition in
94626         /usr/include/sys/int_types.h.
94627
94628         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94629         files.
94630         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94631         and strncasecmp as r-values.  Unixware didn't have declarations.
94632
94633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94634
94635         * lib/xstrtol.h: Add copyright notice.
94636         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94637         LONGINT_INVALID_SUFFIX_CHAR.
94638
94639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94640
94641         * lib/xstrtol.c (strtoimax): New decl.
94642
94643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94644
94645         * lib/xgetcwd.c: Don't include pathmax.h.
94646         Include stdlib.h and unistd.h if available.
94647         Include xalloc.h.
94648         (xmalloc, xstrdup, free): Remove decls.
94649         (xgetcwd): Don't assume sizes fit in unsigned.
94650         Check for overflow when computing sizes.
94651         Simplify reallocation code.
94652
94653 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94654
94655         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94656         a directory's st_size can have an arbitrary value, so the old
94657         usage could waste an arbitrary amount of memory.  All uses
94658         changed.
94659         * lib/savedir.h: Update prototype.
94660
94661 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94662
94663         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94664
94665         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94666         old strtoimax.c.
94667
94668         Also, make the following further changes to make this file's
94669         configuration more similar to that of strtol.c:
94670         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94671         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94672         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94673         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94674         changed to signed values.
94675
94676         And make the following changes as well:
94677         Fix copyright notice, as 1999 was missing.
94678         (verify): New macro.
94679         (strtoimax): Check sizes at compile-time, not run-time.
94680         Prefer strtol to strtoll if both work.
94681         (main): Remove; it was not that useful and was a pain to maintain.
94682
94683         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94684
94685 2001-08-31  Jim Meyering  <meyering@lucent.com>
94686
94687         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94688         Use an initial, malloc'd, buffer of length 128 rather than
94689         a statically allocated one of length 1024.
94690
94691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94692
94693         Simplify code, partly by assuming autoconf 2.52 semantics.
94694
94695         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94696
94697         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94698         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94699         All uses removed.
94700         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94701         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94702         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94703         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94704         jm_AC_HEADER_INTTYPES_H.
94705         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94706
94707         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94708
94709         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94710         Quote first arg of AC_DEFUN.
94711         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94712         since they are needed to parse the include file even if we need
94713         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94715         but with opposite signedness.
94716
94717 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94718
94719         Merge 'exclude' changes from tar 1.13.22.
94720         This fixes one or two unlikely storage allocation overflow bugs,
94721         but doesn't change user-visible behavior otherwise.
94722
94723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94724
94725         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94726         (jm_PREREQ_EXCLUDE): New macro.
94727
94728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94729
94730         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94731         tm to be declared.
94732
94733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94734
94735         * lib/hash.c: Remove '2001' from copyright notice.
94736
94737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94738
94739         * lib/full-write.h: New file.
94740         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94741         * lib/full-write.c: Correct credits, as cccp.c no longer
94742         exists and anyway it was so heavily changed from the old cccp
94743         code as to be unrecognizable.  Include full-write.h.
94744         (full_write): Return size_t, with short writes meaning failure.
94745         All callers changed.  This fixes a bug with large buffers
94746         on 64-bit hosts.
94747         * lib/utime.c: Include full-write.h.
94748
94749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94750
94751         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94752         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94753         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94754         Include if available.
94755         (<xalloc.h>): Include
94756         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94757         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94758         collide with FNM macros.
94759         (struct patopts): New struct.
94760         (struct exclude): Use it, as exclude patterns now come with options.
94761         (new_exclude): Support above changes.
94762         (new_exclude, add_exclude_file):
94763         Initial size must now be a power of two to simplify overflow checking.
94764         (free_exclude, fnmatch_no_wildcards): New function.
94765         (excluded_filename): No longer requires options arg, as the options
94766         are determined by add_exclude.  Now returns bool, not int.
94767         (excluded_filename, add_exclude):
94768         Add support for the fancy new exclusion options.
94769         (add_exclude, add_exclude_file): Now takes int options arg.
94770         Check for arithmetic overflow when computing sizes.
94771         (add_exclude_file): xrealloc might modify errno, so don't
94772         realloc until after errno might be used.
94773
94774         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94775         New macros.
94776         (free_exclude): New decl.
94777         (add_exclude, add_exclude_file): Now takes int options arg.
94778         (excluded_filename): No longer requires options arg, as the options
94779         are determined by add_exclude.  Now returns bool, not int.
94780
94781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94782
94783         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94784
94785 2001-08-27  Jim Meyering  <meyering@lucent.com>
94786
94787         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94788
94789         * lib/version-etc.c (N_): Remove definition.
94790         Revert most of last change.
94791         Instead, simply don't mark the `Copyright...' string for translation.
94792         Based on advice from Paul Eggert.
94793
94794         * lib/strtoxmax.c: Tweak comment.
94795
94796 2001-08-26  Jim Meyering  <meyering@lucent.com>
94797
94798         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94799
94800         * m4/xstrtoimax.m4: New file.
94801         * m4/xstrtoumax.m4: Add comments explaining why we
94802         AC_REPLACE_FUNCS(strtol).
94803
94804 2001-08-26  Jim Meyering  <meyering@lucent.com>
94805
94806         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94807         of copyright with `%s' so translators don't get an untranslated
94808         message in 2002.
94809         (COPYRIGHT_YEAR): Define.
94810         (version_etc): Use fprintf rather than fputs.
94811         Suggestion from Ulrich Drepper.
94812
94813         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94814
94815         * lib/strtoll.c: New file, from GNU libc.
94816         * lib/xstrtoimax.c: New file.
94817
94818         * lib/xstrtol.h: Add xstrtoimax.
94819         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94820         * lib/strtoimax.c: New file.  Likewise, but first define
94821         STRTOUXMAX_SIGNED.
94822
94823         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94824         ...
94825         * lib/strtoxmax.c: ... then renamed to this.
94826
94827 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94828
94829         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94830         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94831         (jm_AC_TYPE_INTMAX_T): New macro.
94832         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94833
94834         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94835
94836         * m4/longlong.m4: Renamed from ulonglong.m4.
94837         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94838         * m4/uintmax_t.m4: Removed.
94839
94840 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94841
94842         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94843         Port to Solaris 8, where 'sed' requires a space after the 'r'
94844         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94845         Redirect output to $tmp just once.
94846
94847 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94848
94849         * lib/addext.c (<errno.h>): Include.
94850         (errno): Declare if not defined.
94851         (addext): Work correctly when pathconf returns -1 and leaves
94852         errno alone because there is no limit.  Also, work even if
94853         pathconf returns a value greater than SIZE_MAX.
94854
94855 2001-08-12  Jim Meyering  <meyering@lucent.com>
94856
94857         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94858         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94859         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94860         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94861         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94862         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94863         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94864         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94865         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94866         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94867         utime.m4, utimes.m4, xstrtoumax.m4:
94868         Quote the first argument in each use of AC_DEFUN.
94869
94870 2001-08-12  Jim Meyering  <meyering@lucent.com>
94871
94872         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94873         Simply `return getcwd (NULL, 0);'.
94874         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94875         Use 1300 as initial value for length, not PATH_MAX.
94876
94877         * lib/pathmax.h: Clean up cpp syntax.
94878
94879 2001-08-12  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/gettimeofday.c: New file.
94882         * lib/gtod.h: New file.
94883         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94884
94885 2001-08-05  Jim Meyering  <meyering@lucent.com>
94886
94887         * m4/jm-macros.m4: Require autoconf-2.52.
94888
94889 2001-08-04  Jim Meyering  <meyering@lucent.com>
94890
94891         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94892         stmt, to get in sync with glibc.
94893
94894 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94895
94896         The following changes are from gettext 0.10.39 as maintained by
94897         Bruno Haible.
94898
94899         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94900         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94901         with inverted sense.  All uses changed.
94902
94903         * lib/mbswidth.c: Don't include <limits.h>.
94904         Include <stdlib.h> and <string.h> unconditionally.
94905         (iswcntrl, mbsinit, ISCNTRL): New macros.
94906         (mbsnwidth): Use K&R style function declarations.
94907         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94908         can optimize it when MB_CUR_MAX == 1.
94909         The width of control characters is zero, not 1.
94910
94911 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94912
94913         The following changes are from gettext 0.10.39 as maintained by
94914         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94915
94916         * m4/codeset.m4: Upgrade to serial AM1.
94917         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94918         all uses changed.  Quote first arg of AC_DEFUN.
94919         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94920
94921         * m4/iconv.m4: Upgrade to serial AM2.
94922         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94923         Add --with-libconv-prefix.
94924         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94925         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94926         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94927         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94928         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94929
94930         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94931         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94932         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94933         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94934         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94935         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94936         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94937         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94938         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94939
94940         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94941         string.h any more.
94942
94943         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94944         not the default value.
94945
94946         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94948         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94949         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94950         Also check for iswcntrl, used for wcwidth fallback.
94951         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94952         to Autoconf 2.13.
94953
94954 2001-08-03  Jim Meyering  <meyering@lucent.com>
94955
94956         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94957         as it was in the original.  Reported by Paul Eggert.
94958
94959 2001-07-16  Jim Meyering  <meyering@lucent.com>
94960
94961         * m4/gettimeofday.m4: New file.
94962         Prompted by a report from Bernhard Baehr.
94963
94964 2001-07-15  Jim Meyering  <meyering@lucent.com>
94965
94966         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94967         stuff. Now it's in ../Makefile.cfg.
94968
94969 2001-07-15  Jim Meyering  <meyering@lucent.com>
94970
94971         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94972         (BUILT_SOURCES): Add unlocked-io.h.
94973         (io_functions): Define.
94974         (unlocked-io.h): New rule.
94975         (DISTCLEANFILES): Add unlocked-io.h.
94976         (all-local): Depend on unlocked-io.h, to ensure it is created.
94977
94978         * lib/unlocked-io.hin: New file
94979
94980         * lib/regex.c: Update from glibc.
94981
94982 2001-07-05  Jim Meyering  <meyering@lucent.com>
94983
94984         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94985         recommendation.
94986         (libfetish_a_SOURCES): Put all .h files here instead.
94987         Remove a thus-exposed (better checks in automake) duplicate and
94988         two unnecessary .h files.
94989
94990 2001-07-04  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94993         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94994         distcheck failure.
94995
94996 2001-07-02  Jim Meyering  <meyering@lucent.com>
94997
94998         The following changes were prompted by suggestions from Bruno Haible.
94999
95000         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95001         is now generated.
95002         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95003         definition of EXTRA_DIST.
95004         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95005         ensure that the generated file is created/updated whenever the list
95006         of $(unlocked_functions) is changed.
95007         (jm-glibc-io.m4): New rule.
95008         (unlocked-io.h): New rule -- currently unused.
95009
95010 2001-06-24  Jim Meyering  <meyering@lucent.com>
95011
95012         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95013         unmatched right bracket, rather than kludging it with an extra,
95014         falsely-matching quote in a comment.  Patch by Akim Demaille.
95015
95016 2001-06-11  Jim Meyering  <meyering@lucent.com>
95017
95018         * lib/regex.c: Update from GNU libc.
95019
95020 2001-05-27  Jim Meyering  <meyering@lucent.com>
95021
95022         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95023         Check for ut_type in struct utmp.
95024
95025 2001-05-27  Jim Meyering  <meyering@lucent.com>
95026
95027         * lib/readutmp.h (UT_TYPE): Define.
95028
95029 2001-05-24  Jim Meyering  <meyering@lucent.com>
95030
95031         * lib/argmatch.c: Include "quote.h".
95032         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95033         quote function.  Reported by Göran Uddeborg.
95034
95035 2001-05-22  Jim Meyering  <meyering@lucent.com>
95036
95037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95038         now that we use the package-supplied version unconditionally.
95039         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95040
95041 2001-05-21  Jim Meyering  <meyering@lucent.com>
95042
95043         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95044         shell syntax errors.
95045
95046 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95047
95048         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95049
95050 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95051
95052         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95053         Don't bother to check library strftime, since
95054         we'll be using our own my_strftime function anyway.
95055         Define my_strftime instead of strftime.
95056
95057 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95058
95059         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95060         which is not yet declared.
95061
95062 2001-05-15  Jim Meyering  <meyering@lucent.com>
95063
95064         * m4/regex.m4: Use proper quoting so brackets appear in the test
95065         program.
95066         Reported by, and with help from, Bruno Haible.
95067
95068 2001-05-13  Jim Meyering  <meyering@lucent.com>
95069
95070         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95071         undefined.
95072
95073 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95074
95075         dirname code cleanup.  base_name now behaves more compatibly
95076         with POSIX basename when given file names that have trailing
95077         slashes, and similarly for dir_name.  Add new primitives
95078         base_len and dir_len.  Put the directory-name-related decls
95079         into dirname.h.
95080
95081         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95082         * lib/backupfile.c (base_name): Likewise.
95083         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95084         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95085         * lib/makepath.c (strip_trailing_slashes): Likewise.
95086         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95087         ISSLASH): Likewise.
95088         * lib/rename.c (strip_trailing_slashes): Likewise.
95089         * lib/same.c (base_name): Likewise.
95090         * lib/stripslash.c (ISSLASH): Likewise.
95091
95092         * lib/addext.c: Include <dirname.h> after size_t is defined.
95093         * lib/backupfile.c: Likewise.
95094
95095         * lib/addext.c (addext): Use base_len to trim redundant
95096         trailing slashes instead of doing it ourselves.
95097         But do not trim the last slash if it is not redundant.
95098
95099         * lib/backupfile.c (find_backup_file_name,
95100         max_backup_version): Use base_len instead of rolling it ourselves.
95101         Handle the case of "" and (on DOS) "C:" correctly.
95102
95103         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95104         needed. Include <string.h>, <dirname.h>.
95105         (base_name): Allow file names ending in slashes, other than names
95106         that are all slashes.  In this case, return the basename followed
95107         by the slashes.  This is more general, and can be used in places
95108         where the original base_name purposely had an assertion failure.
95109         (base_len): New function.
95110
95111         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95112         Do not include <assert.h>; no longer needed.
95113         Include xalloc.h.
95114         (memrchr): Remove decl.
95115         (dir_name_r): Remove.
95116         (dir_len): Renamed from dirlen.  All callers changed.
95117         Rewrite in terms of base_name, for simplicity and consistency.
95118         (dir_name): Never return NULL.  All callers changed.
95119         Do not include <stdlib.h> in test program; no longer needed.
95120         return 0; is fine for test program.
95121
95122         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95123         New macros.
95124         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95125
95126         * lib/path-concat.c (path_concat): Use base_len to compute
95127         base length, not strlen; this means we cannot rely on memcpy
95128         to null-terminate.
95129
95130         * lib/same.c (STREQ): Remove.
95131         (same_name): Handle the case where the basename ends in trailing '/'.
95132
95133         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95134         a slash was stripped.  Do not strip the last slash after a
95135         file system prefix.
95136
95137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95138
95139         * lib/Makefile.am (libfetish_a_SOURCES):
95140         Add strftime.c, since we now compile it on all hosts.
95141
95142         * lib/strftime.c (my_strftime):
95143         Define to nstrftime if emacs, but only if my_strftime is not defined.
95144         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95145         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95146         Add one more extra argument: a nanoseconds value.
95147         All uses changed.
95148         (ns): New macro.
95149         (my_strftime function): Add %N format.
95150         (emacs_strftimeu): Renamed from emacs_strftime,
95151         with extra ut argument.
95152
95153 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95154
95155         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95156
95157 2001-04-21  Jim Meyering  <meyering@lucent.com>
95158
95159         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95160         doesn't interfere.
95161
95162 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95163
95164         * m4/ftruncate.m4: Check for chsize.
95165         Link with ftruncate.o unconditionally if ftruncate is missing.
95166         This was required when cross-compiling to i586-mingw32msvc.
95167
95168 2001-04-08  Jim Meyering  <meyering@lucent.com>
95169
95170         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95171         recomputed; that's necessary when the offset spans a DST transition.
95172         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95173
95174 2001-04-02  Jim Meyering  <meyering@lucent.com>
95175
95176         * lib/regex.h, regex.c: Update from GNU libc.
95177
95178 2001-03-24  Jim Meyering  <meyering@lucent.com>
95179
95180         * m4/jm-macros.m4: Require autoconf-2.49d.
95181
95182 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95183
95184         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95185
95186 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95187
95188         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95189
95190 2001-03-17  Jim Meyering  <meyering@lucent.com>
95191
95192         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95193         now that the version in autoconf is equivalent.
95194         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95195
95196         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95197         Suggestion from Akim Demaille.
95198
95199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95200         (jm_PREREQ_TEMPNAME): New function.
95201
95202 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95203
95204         * lib/tempname.c (uint64_t): Define to uintmax_t if
95205         not defined, and if UINT64_MAX is not defined.
95206         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95207         Reported by John David Anglin.
95208
95209 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95210
95211         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95212         resolve alias if codeset is empty.
95213         * lib/config.charset (BeOS): Use wildcard syntax.
95214
95215 2001-03-13  Jim Meyering  <meyering@lucent.com>
95216
95217         * lib/path-concat.c (path_concat)
95218         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95219         concatenating e.g., `C:' and `foo'.
95220         From Bruno Haible.
95221
95222 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95223
95224         * lib/localcharset.c (locale_charset): Don't use
95225         setlocale(LC_CTYPE,NULL). Don't return NULL.
95226         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95227
95228 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95229
95230         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95231         support for DOS/DJGPP.
95232
95233 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95234
95235         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95236         lacks mkstemp.  Compile our own tempname.c if we compile our own
95237         mkstemp.c, as mkstemp relies on tempname.
95238
95239 2001-03-01  Jim Meyering  <meyering@lucent.com>
95240
95241         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95242         AH_VERBATIM really does output its argument verbatim.
95243
95244 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95245
95246         * lib/Makefile.am (libfetish_a_SOURCES):
95247         Add dup-safer.c, fopen-safer.c.
95248         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95249
95250         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95251         * lib/unistd-safer.h: New files.
95252
95253 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95254
95255         The mkstemp replacement is taken from glibc 2.2.2, with some
95256         portability fixes for use outside glibc, as follows:
95257
95258         * lib/tempname.c (struct_stat64): New macro.
95259         (direxists, __gen_tempname): Use it.
95260         This avoids a portability problem with Solaris 8.
95261
95262         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95263         (<stddef.h>, <stdint.h>, <string.h>):
95264         Include only if STDC_HEADERS || _LIBC.
95265         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95266         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95267         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95268         (__set_errno): Define this macro if <errno.h> doesn't.
95269         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95270         Define these macros if <stdio.h> doesn't.
95271         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95272         Define these macros if <sys/stat.h>
95273         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95274         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95275         __xstat64): Define if not _LIBC.
95276         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95277         (__gen_tempname): Invoke gettimeofday only if
95278         HAVE_GETTIMEOFDAY || _LIBC;
95279         otherwise, fall back on plain "time".
95280         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95281
95282         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95283
95284         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95285
95286 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95287
95288         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95289
95290 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95291
95292         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95293         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95294         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95296
95297 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95298
95299         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95300         Remove workaround macros for hosts that have mbrtowc but not
95301         mbstate_t, as we now insist on proper declarations for both
95302         before using mbrtowc.
95303
95304 2001-02-17  Jim Meyering  <meyering@lucent.com>
95305
95306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95307         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95308         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95309         UnixWare 7.1.1.
95310
95311         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95312         rather than AC_CACHE_VAL.
95313
95314 2001-02-17  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95317         around included file name.
95318
95319         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95320
95321         * lib/strftime.c: Update from GNU libc (the only changes were to
95322         comments).
95323
95324 2001-02-17  Jim Meyering  <meyering@lucent.com>
95325
95326         * lib/regex.c: Update from libc.
95327
95328 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95329
95330         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95331         clash.
95332
95333 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95334
95335         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95336         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95337         Reported by Mark Hounschell via Paul Eggert.
95338
95339 2001-02-07  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95342
95343 2001-02-05  Jim Meyering  <meyering@lucent.com>
95344
95345         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95346         it includes the patch required for `large file' support with at least
95347         HP-UX's 10.20 /bin/cc.
95348
95349 2001-02-03  Jim Meyering  <meyering@lucent.com>
95350
95351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95352         AS_IF, now that it works once again (mysteriously).
95353         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95354
95355 2001-01-30  Jim Meyering  <meyering@lucent.com>
95356
95357         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95358         * m4/chown.m4: Rename conftestchown to conftest.chown.
95359         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95360         s/conftestdir2/conftest.d2/.
95361         * m4/utimes.m4: s/conftestdata/conftest.data/
95362         Inspired by Pavel Roskin's change in autoconf.
95363
95364 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95365
95366         * lib/config.charset: Update for FreeBSD 4.2.
95367
95368 2001-01-27  Jim Meyering  <meyering@lucent.com>
95369
95370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95371         a use of AS_IF.
95372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95373
95374 2001-01-26  Jim Meyering  <meyering@lucent.com>
95375
95376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95377         quotearg.c includes it.
95378
95379 2001-01-26  Jim Meyering  <meyering@lucent.com>
95380
95381         * lib/quotearg.c: Include stddef.h.
95382         * lib/quote.c: Include stddef.h.
95383         Reported by Axel Kittenberger.
95384
95385         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95386         line in double quotes so that it evokes a better diagnostic.
95387         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95388         Reported by Axel Kittenberger.
95389
95390 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95391
95392         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95393         as if it was a `charset'.
95394
95395 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95396
95397         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95398         has const.
95399
95400 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95401
95402         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95403         to avoid a warning.  Add back 'const' to inptr.
95404
95405 2001-01-20  Jim Meyering  <meyering@lucent.com>
95406
95407         Be sure that headers are checked before used in code compiled
95408         for the type checks.
95409         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95410         In place of that, invoke jm_CHECK_ALL_TYPES.
95411         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95412         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95413         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95414         The check for ssize_t was mistakenly run before the test for unistd.h.
95415
95416         The configure-time check for stdbool.h was missing.
95417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95418         (jm_PREREQ_HASH): New function.
95419
95420 2001-01-17  Jim Meyering  <meyering@lucent.com>
95421
95422         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95423         for autoconf-2.49c.
95424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95425
95426 2001-01-16  Jim Meyering  <meyering@lucent.com>
95427
95428         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95429         From Bruno Haible.
95430
95431 2001-01-14  Jim Meyering  <meyering@lucent.com>
95432
95433         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95434         foo and bar.  Create conftestdir/ in the script, not in the C code.
95435         Remove directories in the script, not in the C code.
95436         Remove conftestdir{,2} before trying to create the directory.
95437         Make the entire configure script fail if the mkdir fails.
95438
95439 2001-01-14  Jim Meyering  <meyering@lucent.com>
95440
95441         * lib/rename.c: New file.  From Volker Borchert.
95442         Include stdlib.h, string.h or strings.h, and xalloc.h.
95443         Use strip_trailing_slashes rather than open-coding it.
95444
95445 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95446
95447         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95448
95449 2001-01-03  Jim Meyering  <meyering@lucent.com>
95450
95451         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95452         of local `inptr' to avoid warning with some system declarations of
95453         iconv.
95454
95455 2001-01-02  Volker Borchert  <bt@teknon.de>
95456
95457         * m4/rename.m4: New file.
95458         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95459
95460 2001-01-01  Jim Meyering  <meyering@lucent.com>
95461
95462         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95463         even on systems with utmpx.h.  It's necessary for the declaration of
95464         utmp's ut_user member.  Reported by Andreas Jaeger.
95465
95466         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95467         available. They are required for the declarations of getgrgid and
95468         getpwuid resp.
95469         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95470         Reported by Andreas Jaeger.
95471
95472 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95473
95474         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95475         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95476         so `make install' also works in VPATH builds.
95477
95478 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95479
95480         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95481         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95482         can be used in subdirectories.
95483
95484 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95485
95486         * lib/modechange.c: Do not assume that mode_t uses the
95487         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95488         the other-execute bit of FOO even if S_IXOTH != 1.
95489
95490         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95491         WOTH, XOTH, ALLM): New macros.
95492         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95493          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95494         Use them.
95495         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95496         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95497         (mode_compile):
95498         No need to use uintmax_t; unsigned long is long enough.
95499         Don't bother to get suffix since we don't use it.
95500
95501 2000-12-26  Jim Meyering  <meyering@lucent.com>
95502
95503         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95504         better with autoheader.
95505
95506 2000-12-24  Jim Meyering  <meyering@lucent.com>
95507
95508         * lib/hash.c (is_prime): Return explicit boolean values.
95509         (hash_get_first): Return NULL to appease Irix5.6's 89.
95510         Reported by Nelson Beebe.
95511
95512 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95513
95514         * lib/localcharset.c (locale_charset): Add support for Win32.
95515
95516 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95517
95518         * lib/physmem.h, lib/physmem.c: New files.
95519
95520         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95521         (noinst_HEADERS): Add physmem.h.
95522
95523         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95524         't' for compatibility with Solaris 8 sort.
95525
95526 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95527
95528         * lib/config.charset: Add support for BeOS.
95529
95530 2000-12-17  Jim Meyering  <meyering@lucent.com>
95531
95532         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95533         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95534
95535 2000-12-16  Jim Meyering  <meyering@lucent.com>
95536
95537         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95538         N and M) would have treated it like `chown N:N FILE'.
95539
95540         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95541
95542 2000-12-16  Jim Meyering  <meyering@lucent.com>
95543
95544         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95545         SHELLS_FILE to a file name that's useful on djgpp systems.
95546         Include stdlib.h.
95547         (ADDITIONAL_DEFAULT_SHELLS): Define.
95548         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95549         Based mostly on a patch from Prashant TR.
95550
95551 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95552
95553         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95554         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95555         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95556
95557 2000-12-08  Andreas Schwab  <schwab@suse.de>
95558
95559         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95560         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95561
95562 2000-12-07  Jim Meyering  <meyering@lucent.com>
95563
95564         * lib/stripslash.c (ISSLASH): Define.
95565         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95566         `/'.
95567         From Prashant TR.
95568
95569         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95570         (dir_name_r): Declare this function as static.
95571         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95572         manifest itself on a name containing a mix of slashes and
95573         backslashes.
95574         Make this function work with names starting with a DOS-style
95575         drive letter and colon prefix.
95576         (dir_name): Append `.' if necessary.
95577         Based mostly on patches from Prashant TR and Eli Zaretskii.
95578
95579         * lib/dirname.h (dir_name_r): Remove prototype.
95580
95581 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95582
95583         * m4/off_t-format.m4: Remove this file.
95584         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95585
95586 2000-12-06  Jim Meyering  <meyering@lucent.com>
95587
95588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95589         replacement strtoull, we may well need the replacement strtoul, too.
95590         Check for declarations of strtoul and strtoull.
95591         Check for strtol.  Mainly as a cue to cause automake to include
95592         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95593         Check for limits.h -- strtol.c needs it.
95594
95595 2000-12-05  Jim Meyering  <meyering@lucent.com>
95596
95597         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95598
95599 2000-12-04  Jim Meyering  <meyering@lucent.com>
95600
95601         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95602         Also include memory.h, stdlib.h, unistd.h if appropriate.
95603         Reported by Andreas Jaeger (conflicting declaration of malloc).
95604
95605 2000-12-02  Jim Meyering  <meyering@lucent.com>
95606
95607         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95608         * m4/jm-macros.m4 (jm_MACROS): require it.
95609
95610 2000-12-02  Jim Meyering  <meyering@lucent.com>
95611
95612         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95613
95614 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95615
95616         * lib/memrchr.c: Include <config.h> before any system include file.
95617
95618 2000-11-30  Jim Meyering  <meyering@lucent.com>
95619
95620         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95621
95622 2000-11-30  Jim Meyering  <meyering@lucent.com>
95623
95624         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95625
95626 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95627
95628         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95629
95630 2000-11-26  Jim Meyering  <meyering@lucent.com>
95631
95632         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95633
95634 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95635
95636         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95637         size of (size_t) -1; it's not portable.
95638
95639 2000-11-17  Jim Meyering  <meyering@lucent.com>
95640
95641         * lib/strstr.c: Update from GNU libc.
95642
95643 2000-11-17  Akim Demaille  <akim@epita.fr>
95644
95645         * lib/obstack.h: Formatting changes.
95646         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95647         prevent type checking.
95648         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95649         cast the value to (void *): assigning a `foo *' to a `void *'
95650         variable is valid.
95651         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95652
95653 2000-11-16  Jim Meyering  <meyering@lucent.com>
95654
95655         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95656
95657 2000-11-11  Jim Meyering  <meyering@lucent.com>
95658
95659         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95660
95661 2000-11-10  Jim Meyering  <meyering@lucent.com>
95662
95663         * lib/obstack.h: Update from GNU libc.
95664         * lib/obstack.c: Likewise.
95665
95666 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95667
95668         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95669
95670 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95671
95672         * lib/getusershell.c (setusershell): Use rewind rather than
95673         fseek/fseeko, to avoid configuration hassles with fseeko.
95674         Don't bother opening SHELLS_FILE if shellstream is NULL;
95675         it's not necessary.
95676
95677 2000-11-05  Jim Meyering  <meyering@lucent.com>
95678
95679         * lib/makepath.h (make_dir): Declare.
95680         * lib/makepath.c (make_dir): Remove `static' attribute.
95681         Tweak a comment.
95682
95683 2000-11-04  Jim Meyering  <meyering@lucent.com>
95684
95685         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95686
95687 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95688
95689         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95690         last one in a bucket, advance to the next bucket.
95691
95692 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95693
95694         * lib/fnmatch.c: Do not comment out all the code if we are using
95695         the GNU C library, because in some cases we are replacing buggy
95696         code in the GNU C library itself.
95697
95698 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95699
95700         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95701         (regex_compile): Catch bogus \(\1\).
95702
95703 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95704
95705         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95706         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95707         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95708
95709 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95710
95711         * lib/error.h, getline.h, modechange.h:
95712         Remove "2000" from Copyright line, as the file hasn't been
95713         changed this year other than in the copyright notice.
95714
95715         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95716         was changed this year.
95717
95718 2000-10-29  Jim Meyering  <meyering@lucent.com>
95719
95720         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95721         renaming.
95722         * m4/ls-mntd-fs.m4: Likewise
95723
95724 2000-10-29  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/xstat.in: Fix grammar in comment.
95727
95728 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95729
95730         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95731         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95732         doesn't define __restrict_arr.
95733
95734 2000-10-28  Jim Meyering  <meyering@lucent.com>
95735
95736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95737         (jm_PREREQ_MEMCHR): New function.
95738
95739 2000-10-28  Jim Meyering  <meyering@lucent.com>
95740
95741         * lib/memchr.c: Update from libc.
95742         Adjust for portability:
95743         [HAVE_STDLIB_H]: Include stdlib.h.
95744         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95745         Undef __memchr, too.
95746         [!weak_alias]: Define __memchr to memchr.
95747
95748         * lib/regex.c: Update from libc.
95749         * lib/regex.h: Likewise.
95750         * lib/getopt1.c: Likewise.
95751         * lib/memcmp.c: Likewise.
95752
95753         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95754         Avoid using fseek, when possible -- it's broken by design.
95755         Patch by Ulrich Drepper.
95756
95757 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95758
95759         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95760         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95761         Giving in to popular pressure to shut up the compiler with casts.
95762
95763 2000-10-26  Jim Meyering  <meyering@lucent.com>
95764
95765         * lib/strftime.c: Update from libc.
95766
95767 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95768
95769         * regex.c: More `unsigned char' -> `re_char' changes.
95770         Also change several `int' into `re_wchar_t'.
95771         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95772         (PUSH_FAILURE_POINTER): Don't cast any more.
95773         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95774         We want GCC to complain, since this piece of code makes
95775         re_match non-reentrant, which *should* be fixed.
95776         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95777         (EXTEND_BUFFER): Use RETALLOC.
95778         (SET_LIST_BIT): Don't cast.
95779         (re_wchar_t): New type.
95780         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95781         that those two functions will always properly return.
95782         (IMMEDIATE_QUIT_CHECK): Cast to void.
95783         (analyse_first): Use recursion rather than an explicit stack.
95784         (re_compile_fastmap): Can't fail anymore.
95785         (re_search_2): Don't check re_compile_fastmap for failure.
95786         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95787         Now also sets the new value (passed in a new argument).
95788         (re_match_2_internal): Use it.
95789         Also, use a new var `reg' of type size_t when looping through regs
95790         rather than reuse the inappropriate `mcnt'.
95791
95792 2000-10-25  Jim Meyering  <meyering@lucent.com>
95793
95794         * lib/obstack.c: Update from libc.
95795
95796 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95797
95798         * regex.c (regex_compile): Change the way of handling a range from
95799         a char less than 256 to a char not less than 256.
95800
95801 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95802
95803         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95804         NT-Emacs only.
95805         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95806         so that re_search functions only quit when callers expect them to.
95807
95808 2000-10-23  Jim Meyering  <meyering@lucent.com>
95809
95810         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95811         wrong.  That set_locale call must not have any side effects.
95812         From Paul Eggert.
95813
95814 2000-10-22  Jim Meyering  <meyering@lucent.com>
95815
95816         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95817         [CYCLIC]: Remove now-unused definition.
95818
95819         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95820         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95821         Suggestion from Ulrich Drepper.
95822
95823 2000-10-21  Jim Meyering  <meyering@lucent.com>
95824
95825         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95826         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95828
95829 2000-10-21  Jim Meyering  <meyering@lucent.com>
95830
95831         * lib/dirname.c (memrchr): Declare if necessary.
95832         (dir_name): Remove the restriction that there be no
95833         trailing slashes.  Now, this code skips past them, effectively
95834         ignoring them.
95835         [TEST_DIRNAME] (main): New unit tests.
95836
95837         * lib/memrchr.c: New file from GNU libc.
95838         Undef __memrchr, too.
95839         [!weak_alias]: Define __memrchr to memrchr.
95840         Guard weak_alias use with `#ifdef weak_alias'.
95841
95842 2000-10-21  Jim Meyering  <meyering@lucent.com>
95843
95844         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95845         (dir_name): Use dir_name_r.
95846         * lib/dirname.h (dir_name_r): Declare it.
95847
95848 2000-10-17  Jim Meyering  <meyering@lucent.com>
95849
95850         * lib/quote.h (PARAMS): Define and use.
95851         Reported by Akim Demaille.
95852
95853         * lib/getopt.c: Update from libc.
95854
95855 2000-10-16  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95858         setlocale.
95859         From Jan Fedak.
95860
95861 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95862
95863         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95864
95865 2000-09-25  Jim Meyering  <meyering@lucent.com>
95866
95867         * lib/md5.h (rol): Define (from GnuPG).
95868
95869         * lib/sha.c: Give credit (GnuPG) where due.
95870         (M): Use rol rather than open-coding it.
95871         Add a FIXME comment.
95872
95873 2000-09-21  Jim Meyering  <meyering@lucent.com>
95874
95875         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95876         Reported by Michael Stone.
95877
95878 2000-09-20  Jim Meyering  <meyering@lucent.com>
95879
95880         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95881         (noinst_HEADERS): Add sha.h.
95882         Based on code from Scott G. Miller and from GnuPG.
95883
95884 2000-09-18  Jim Meyering  <meyering@lucent.com>
95885
95886         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95887         LIBS. Otherwise, everyone ends up linking with -lelf for some
95888         configurations.
95889         Reported by Mike Stone.
95890
95891 2000-09-15  Jim Meyering  <meyering@lucent.com>
95892
95893         * lib/regex.c: Update from libc.
95894
95895 2000-09-10  Jim Meyering  <meyering@lucent.com>
95896
95897         * lib/getopt.c (_getopt_internal): Update from glibc.
95898
95899 2000-09-09  Jim Meyering  <meyering@lucent.com>
95900
95901         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95902         think it should be used as a general replacement for isascii.
95903         * lib/fnmatch.c: Likewise.
95904         * lib/mbswidth.c: Likewise
95905         * lib/regex.c: Likewise.
95906
95907         Don't use atoi.
95908         * lib/userspec.c: Include sys/param.h and limits.h.
95909         Include xstrtol.h.
95910         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95911         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95912         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95913         UID, GID.  Check range.
95914
95915 2000-09-06  Jim Meyering  <meyering@lucent.com>
95916
95917         * lib/getopt.c (_getopt_internal): Update from glibc.
95918
95919 2000-08-30  Jim Meyering  <meyering@lucent.com>
95920
95921         * lib/strftime.c: Merge in changes from GNU libc.
95922
95923 2000-08-26  Jim Meyering  <meyering@lucent.com>
95924
95925         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95926         * m4/fpending.m4: New file.
95927
95928 2000-08-26  Jim Meyering  <meyering@lucent.com>
95929
95930         * lib/closeout.c: Include "__fpending.h".
95931         (close_stdout_status): Return right away if there's nothing to flush.
95932
95933         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95934         * lib/__fpending.c: New file.
95935         * lib/__fpending.h: New file.
95936
95937 2000-08-20  Jim Meyering  <meyering@lucent.com>
95938
95939         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95940         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95941         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95942
95943 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95944
95945         Improve fileutils installation on systems where running
95946         programs (like install) can't be unlinked.
95947         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95948         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95949
95950 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95951
95952         Standardize on "memory exhausted" instead of "Memory exhausted"
95953         or "virtual memory exhausted".
95954         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95955         "virtual memory exhausted".
95956         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95957         our own message.
95958         * lib/userspec.c (parse_user_spec): Likewise.
95959         * lib/bumpalloc.h: comment fix
95960         * lib/same.c, userspec.c: Include xalloc.h.
95961
95962         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95963         not char *const and pointing to a constant array.
95964         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95965         (xrealloc): Comment fix.
95966
95967         * lib/userspec.c (parse_user_spec):
95968         Don't translate a message until just before returning,
95969         to avoid unnecessary translation.
95970
95971 2000-08-07  Jim Meyering  <meyering@lucent.com>
95972
95973         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95974         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95975         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95976         getgroups.c, gethostname.c, getopt.h, group-member.c,
95977         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95978         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95979         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95980         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95981         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95982         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95983         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95984         yesno.c: Back out Copyright date changes for each file with no change
95985         this year.  This eases coordination with other programs using the same
95986         source code modules.  From Paul Eggert.
95987
95988 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95989
95990         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95991         not char, for compatibility with glibc 2.1.3 strftime.c.
95992
95993 2000-08-03  Greg McGary  <greg@mcgary.org>
95994
95995         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95996         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95997         (EXTEND_BUFFER): Use them.
95998
95999 2000-08-01  Jim Meyering  <meyering@lucent.com>
96000
96001         * lib/dirname.c (ISSLASH): Define.
96002         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96003         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96004         both `\' and `/' may be use as path separators.
96005         Based on a patch from Prashant TR.
96006
96007 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96008
96009         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96010         slot vector a constant, since it might get modified.
96011
96012 2000-07-31  Jim Meyering  <meyering@lucent.com>
96013
96014         * lib/xmalloc.c: Use `virtual memory exhausted', not
96015         `Memory exhausted'.
96016         * lib/obstack.c (print_and_abort): Likewise.
96017
96018 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96019
96020         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96021         buffer, so that the caller can always quote one small
96022         component of a "memory exhausted" message in slot 0.
96023         From a suggestion by Jim Meyering.
96024
96025 2000-07-30  Jim Meyering  <meyering@lucent.com>
96026
96027         * lib/makepath.c (make_path): Quote the other instance, too.
96028
96029         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96030         (STATIC_BUF_SIZE): Define.
96031         (quotearg_n_options): Use only statically allocated storage when
96032         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96033         than STATIC_BUF_SIZE.
96034
96035 2000-07-29  Jim Meyering  <meyering@lucent.com>
96036
96037         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96038         * lib/dirname.c (dir_name): Likewise.
96039
96040         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96041         `/'.
96042
96043         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96044         (dir_name): Assert that there are no trailing slashes.
96045
96046 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96047
96048         * lib/mbswidth.h (mbswidth): Add a flags argument.
96049         (mbswidth): New declaration.
96050         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96051         * lib/mbswidth.c (mbswidth): Add a flags argument.
96052         (mbsnwidth): New function.
96053
96054 2000-07-24  Jim Meyering  <meyering@lucent.com>
96055
96056         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96057
96058 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96059
96060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96061
96062 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96063
96064         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96065         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96066         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96067         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96068         invoke multibyte primitives.
96069
96070 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96071
96072         * lib/quotearg.c:
96073         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96074         so that mbstate_t is always defined.
96075
96076         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96077         be 1 in at least one GCC installation, and this configuration
96078         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96079         performance on hosts that have mbrtowc but have only unibyte
96080         locales, but I assume these hosts are rare.
96081
96082 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96083
96084         * lib/mbswidth.c (_XOPEN_SOURCE):
96085         Don't define; this causes problems on Solaris 7.
96086         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96087
96088 2000-07-23  Jim Meyering  <meyering@lucent.com>
96089
96090         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96091         too: getgrgid, getpwuid, getuid.
96092
96093 2000-07-23  Jim Meyering  <meyering@lucent.com>
96094
96095         * lib/basename.c (base_name): Add an assertion.
96096
96097 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96098
96099         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96100         shadow its mbsinit function.
96101
96102 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96103
96104         * lib/mbswidth.h: New file.
96105         * lib/mbswidth.c: New file.
96106         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96107         (noinst_HEADERS): Add mbswidth.h.
96108
96109 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96110
96111         * lib/config.charset: Add support for FreeBSD. Improve support for
96112         HP-UX and IRIX 6.
96113
96114 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96115
96116         * m4/mbswidth.m4: New file.
96117         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96118
96119 2000-07-15  Jim Meyering  <meyering@lucent.com>
96120
96121         * lib/makepath.c: Include quote.h.
96122         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96123         corresponding argument in a `quote (...)' call.
96124         Give better diagnostics.
96125
96126         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96127         (noinst_HEADERS): Add quote.h.
96128
96129         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96130         from tar's src/misc.c.
96131         * lib/quote.h: New file.  Prototypes for same.
96132
96133 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96134
96135         From a suggestion by Bruno Haible.
96136         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96137         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96138         to decide whether to define the BeOS workaround macro;
96139         this adjusts to the change to AC_MBSTATE_T.
96140
96141 2000-07-14  Jim Meyering  <meyering@lucent.com>
96142
96143         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96144         jm_AC_TYPE_UINTMAX_T.
96145
96146 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96147
96148         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96149
96150         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96151         quotearg_buffer_restyled): Add support for
96152         clocale_quoting_style.  Undo previous change to
96153         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96154         and "{RIGHT QUOTATION MARK}" msgids.
96155
96156 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96157
96158         From a suggestion by Bruno Haible.
96159         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96160         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96161         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96162         and mbstate_t, to a single-part test that simply defines mbstate_t.
96163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96164         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96165
96166 2000-07-10  Jim Meyering  <meyering@lucent.com>
96167
96168         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96169
96170         * m4/gnu-source.m4: Output to confdefs.h directly.
96171         Suggestion from Akim Demaille.
96172
96173 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96174
96175         The old behavior of quoting `like this' doesn't look good with
96176         newer, ISO-style fonts.  See:
96177         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96178
96179         Instead, quote "like this" by default.  Let the translator
96180         tailor the locale-specific quoting behavior by providing
96181         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96182
96183         * lib/quotearg.c (N_): New macro.
96184         (gettext_default): New function.
96185         (quotearg_buffer_restyled): Use
96186         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96187         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96188
96189 2000-07-09  Jim Meyering  <meyering@lucent.com>
96190
96191         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96192         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96193
96194         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96196
96197 2000-07-09  Jim Meyering  <meyering@lucent.com>
96198
96199         * lib/Most files: Update copyright dates to include 2000.
96200
96201 2000-07-08  Jim Meyering  <meyering@lucent.com>
96202
96203         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96204         if not defined.
96205         (xgethostname): Remove now-unnecessary #ifdef.
96206         Move declaration of `err' into loop where it's used.
96207
96208 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96209         and Bruno Haible  <haible@clisp.cons.org>
96210
96211         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96212         only if the test for an object-type mbstate_t fails.  This
96213         prevents us from mistakenly reporting that mbstate_t is a
96214         system object type after we "#define mbstate_t int" to work
96215         around its lack.
96216
96217 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96218         and Bruno Haible  <haible@clisp.cons.org>
96219
96220         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96221
96222 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96223
96224         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96225         to strerror_r.
96226         Include <ctype.h> for use of isalpha.
96227
96228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96229
96230         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96231         by allocating a larger buffer. Test the gethostname return value for
96232         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96233         returns an error and ENAMETOOLONG isn't defined.
96234
96235 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96236
96237         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96238         dimension.
96239
96240 2000-07-04  Jim Meyering  <meyering@lucent.com>
96241
96242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96243         of the deprecated AC_CHECKING.
96244
96245 2000-07-04  Jim Meyering  <meyering@lucent.com>
96246
96247         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96248         Reported by Bruno Haible.
96249
96250 2000-07-04  Jim Meyering  <meyering@lucent.com>
96251
96252         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96253         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96254         lacks mbrtowc.
96255
96256 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96257
96258         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96259         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96260
96261 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96262         and Bruno Haible  <haible@clisp.cons.org>
96263
96264         * lib/quotearg.c (mbrtowc):
96265         Assign to *pwc, and return 1 only if result is nonzero.
96266         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96267
96268 2000-07-03  Jim Meyering  <meyering@lucent.com>
96269
96270         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96271
96272 2000-07-03  Jim Meyering  <meyering@lucent.com>
96273
96274         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96275         This is necessary to get a definition of e.g., UTMP_FILE on
96276         HP-UX 10.20.
96277         From Bob Proulx.
96278
96279 2000-07-02  Jim Meyering  <meyering@lucent.com>
96280
96281         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96282
96283         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96284         AC_LIBOBJ(function_name).
96285         * m4/chown.m4: Likewise.
96286         * m4/fnmatch.m4: Likewise.
96287         * m4/ftruncate.m4: Likewise.
96288         * m4/getgroups.m4: Likewise.
96289         * m4/getline.m4: Likewise.
96290         * m4/group-member.m4: Likewise.
96291         * m4/jm-macros.m4: Likewise.
96292         * m4/lstat.m4: Likewise.
96293         * m4/malloc.m4: Likewise.
96294         * m4/memcmp.m4: Likewise.
96295         * m4/nanosleep.m4: Likewise.
96296         * m4/putenv.m4: Likewise.
96297         * m4/realloc.m4: Likewise.
96298         * m4/regex.m4: Likewise.
96299         * m4/stat.m4: Likewise.
96300         * m4/strftime.m4: Likewise.
96301
96302 2000-07-02  Jim Meyering  <meyering@lucent.com>
96303
96304         * lib/quotearg.c (mbstate_t): Don't define here.
96305
96306 2000-07-02  Jim Meyering  <meyering@lucent.com>
96307
96308         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96309
96310 2000-07-01  Jim Meyering  <meyering@lucent.com>
96311
96312         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96313
96314 2000-07-01  Jim Meyering  <meyering@lucent.com>
96315
96316         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96317         problem.
96318
96319 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96320
96321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96322         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96323
96324 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96325
96326         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96327         per change in ../m4/ls-mntd-fs.m4.
96328         (read_filesystem_list): Ignore symbolic links.
96329
96330 2000-06-29  Jim Meyering  <meyering@lucent.com>
96331
96332         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96333         for declaration of strcmp.
96334
96335         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96336
96337         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96338         Avoid warning by casting result to `char *' to remove `const'.
96339
96340 2000-06-28  Jim Meyering  <meyering@lucent.com>
96341
96342         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96343         included by quotearg.c, for which we perform this test.  From
96344         Bruno Haible.
96345
96346 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96347
96348         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96350         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96351
96352 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96353
96354         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96355
96356 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96357
96358         savedir now sets errno on failure and invokes xmalloc to get memory.
96359         Fix a couple of other minor bugs while we're at it.
96360
96361         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96362         (NAMLEN): Remove macro.
96363         (malloc, realloc): Remove decls.
96364         (stpcpy): Likewise.
96365         ("xalloc.h"): Include.
96366         (NAME_SIZE_DEFAULT): New macro.
96367         (savedir): Use xmalloc / xrealloc to allocate memory.
96368         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96369         Skip "" directory entries.
96370         Use strlen to calculate directory entry length, since the old method
96371         is rarely used these days and isn't worth supporting.
96372         Don't use a pointer after freeing it.
96373         Check for integer overflow when calculating allocation size.
96374         Use memcpy to copy entries, instead of stpcpy.
96375         Set errno properly when returning NULL.
96376         Check for readdir error.
96377
96378 2000-06-26  Jim Meyering  <meyering@lucent.com>
96379
96380         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96381
96382 2000-06-25  Jim Meyering  <meyering@lucent.com>
96383
96384         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96385         Linux header bug when _XOPEN_SOURCE is defined to 500.
96386
96387 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96388
96389         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96390         deficiency.
96391
96392 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96393
96394         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96395         Include xalloc.h.
96396         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96397
96398 2000-06-24  Jim Meyering  <meyering@lucent.com>
96399
96400         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96401         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96402         for which strerror does return char*, but which lacks a conveniently
96403         accessible declaration of the function.  If the compile-test says
96404         strerror_r doesn't work, then resort to a `run'-test that works on
96405         BeOS and segfaults on DEC Unix.
96406
96407 2000-06-24  Jim Meyering  <meyering@lucent.com>
96408
96409         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96410
96411 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96412
96413         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96415
96416 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96417
96418         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96419         (mbrtowc, mbstate_t): Define substitutes if
96420         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96421         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96422         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96423
96424 2000-06-23  Jim Meyering  <meyering@lucent.com>
96425
96426         * m4/afs.m4: Add missing AC_MSG_RESULT.
96427         Reported by Bruno Haible.
96428
96429         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96430         Suggestion from Bruno Haible.
96431
96432 2000-06-23  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96435
96436 2000-06-21  Jim Meyering  <meyering@lucent.com>
96437
96438         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96439
96440 2000-06-21  Jim Meyering  <meyering@lucent.com>
96441
96442         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96443         (noinst_HEADERS): Add getstr.h.
96444
96445         * lib/getline.c (getstr): Move into a separate file.
96446         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96447         the following changes: new parameter, delim2; both delim[12]
96448         parameters have type `int', not `char'.  The latter would lose
96449         with 8-bit delimiters.
96450         * lib/getstr.h: New file.
96451
96452 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96453
96454         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96455         than 1024, return a memory chunk of least possible size, instead
96456         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96457         Use free/xmalloc instead of xrealloc to avoid copying for very long
96458         paths.
96459
96460 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96461
96462         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96463         the empty string.
96464
96465 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96466
96467         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96468         address, not strdup.  Include <stdlib.h> and don't declare free().
96469
96470 2000-06-19  Jim Meyering  <meyering@lucent.com>
96471
96472         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96473
96474 2000-06-18  Jim Meyering  <meyering@lucent.com>
96475
96476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96477
96478         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96479         `checking whether...' message to be consistent with that of the
96480         lstat test.
96481
96482 2000-06-18  Jim Meyering  <meyering@lucent.com>
96483
96484         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96485         Besides, these days every porting target provides a mkdir function.
96486
96487         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96488         needed. (this snippet comes from src/system.h).
96489
96490 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96491
96492         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96493
96494 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96495
96496         * lib/human.c (adjust_value): New function.
96497         (human_readable_inexact): Apply rounding style even when
96498         printing approximate values.
96499
96500 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96501
96502         * lib/human.c (human_readable_inexact): Allow an input block
96503         size that is not a multiple of the output block size, and vice versa.
96504         Reported by Piergiorgio Sartor.
96505
96506 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96507
96508         * lib/getdate.y (get_date): Apply relative times after time
96509         zone indicator, not before.  Reported by Todd A. Jacobs.
96510
96511 2000-06-13  Jim Meyering  <meyering@lucent.com>
96512
96513         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96514
96515         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96516
96517 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96518
96519         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96520
96521 2000-06-12  Jim Meyering  <meyering@lucent.com>
96522
96523         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96524         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96525         optional argument.
96526         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96527         the optional argument, `lib'.
96528
96529 2000-06-08  Jim Meyering  <meyering@lucent.com>
96530
96531         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96532
96533 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96534
96535         Rewrite largefile configuration so that we don't need to run
96536         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96537         AC_CANONICAL_HOST in configure.in -- jmm]
96538
96539         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96540         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96541         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96542         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96543         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96544         All uses changed.
96545         Instead of inspecting the output of getconf, try to compile the
96546         test program without and with the macro definition.
96547         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96548         for getconf.  Instead, check for the needed flags by compiling
96549         test programs.
96550
96551 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96552
96553         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96554
96555 2000-06-04  Jim Meyering  <meyering@lucent.com>
96556
96557         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96558         SunOS 4.1.4 for which gid_t is an unsigned type.
96559
96560 2000-06-03  Jim Meyering  <meyering@lucent.com>
96561
96562         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96563         now that autoconf requires that.
96564
96565         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96566         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96567         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96568
96569 2000-06-03  Jim Meyering  <meyering@lucent.com>
96570
96571         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96572
96573 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96574
96575         * m4/glibc21.m4: New file.
96576         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96577
96578 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96579
96580         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96581         newer, don't install charset.alias.
96582         * lib/config.charset: Change the Linux/glibc rules so they become empty
96583         on glibc-2.1 or newer.
96584
96585 2000-06-02  Jim Meyering  <meyering@lucent.com>
96586
96587         * lib/mountlist.c: Back out last change.  Instead, do this...
96588         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96589         me_dummy member using the same `ignore'-testing code.
96590         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96591         fs_type strings.
96592         From Mark D. Roth.
96593
96594 2000-05-29  Jim Meyering  <meyering@lucent.com>
96595
96596         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96597         mounts with the `ignore' attribute.  Based on a patch from
96598         Mark D. Roth.
96599
96600 2000-05-28  Jim Meyering  <meyering@lucent.com>
96601
96602         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96603         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96604         * m4/stat.m4: Likewise.
96605         * m4/lstat.m4: Likewise.
96606         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96607
96608         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96609         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96610
96611 2000-05-26  Jim Meyering  <meyering@lucent.com>
96612
96613         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96614
96615 2000-05-24  Jim Meyering  <meyering@lucent.com>
96616
96617         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96618         autoconf requires that.
96619         * m4/lib-check.m4: Likewise.
96620         * m4/jm-macros.m4: Likewise.
96621         * m4/strftime.m4: Likewise.
96622
96623         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96624         AC_CHECK_DECLS, now that autoconf requires that.
96625
96626 2000-05-22  Jim Meyering  <meyering@lucent.com>
96627
96628         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96629         * m4/lstat.m4: Likewise.
96630
96631 2000-05-22  Jim Meyering  <meyering@lucent.com>
96632
96633         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96634
96635 2000-05-20  Jim Meyering  <meyering@lucent.com>
96636
96637         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96638         (jm_PREREQ): Use it.
96639
96640 2000-05-18  Jim Meyering  <meyering@lucent.com>
96641
96642         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96643         back, too, since it may have been modified by allocate_entry.
96644         (hash_delete): Rewrite to use neither the assignment operator
96645         nor the comma operator in an if-expression.
96646
96647 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96648
96649         * lib/closeout.c:
96650         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96651         Remove; no longer needed.
96652         "quotearg.h": Add include.
96653         (file_name): Do not bother to explicitly initialize to NULL; it's less
96654         efficient on some hosts.
96655         (close_stdout_status): Remove test as to whether stdout was already
96656         closed; it breaks for the case "echo x | sort >&-".
96657         Quote file name colons.
96658         Do not assume that _("write error") lacks format strings.
96659
96660 2000-05-15  Jim Meyering  <meyering@lucent.com>
96661
96662         * lib/version-etc.c (version_etc_copyright): Update the copyright
96663         string used in all --version output.
96664
96665 2000-05-14  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/closeout.c (close_stdout_set_file_name): New function.
96668         (close_stdout_status): Use new file-scoped global.
96669         Return right away if fstat says the stdout file descriptor is invalid.
96670         * lib/closeout.h (close_stdout_set_file_name): Declare.
96671
96672 2000-05-10  Jim Meyering  <meyering@lucent.com>
96673
96674         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96675         (close_stdout_set_status): New function.
96676         * lib/closeout.h (close_stdout_set_status): Declare.
96677
96678 2000-05-09  Jim Meyering  <meyering@lucent.com>
96679
96680         * m4/gettext.m4: Rename this...
96681         * m4/libintl.m4: ...to this.
96682
96683 2000-05-08  Jim Meyering  <meyering@lucent.com>
96684
96685         * lib/long-options.c: Don't include closeout.h.
96686         (parse_long_options): Don't call close_stdout for --version.
96687
96688 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96689
96690         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96691         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96692         2.1.3 bug.  This avoids a clash when files like regex.c define
96693         _GNU_SOURCE.
96694
96695 2000-05-06  Jim Meyering  <meyering@lucent.com>
96696
96697         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96698         (AC_REPLACE_FUNCS): Add strnlen.
96699
96700         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96701         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96702
96703         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96704         AC_SEARCH_LIBS call for nanosleep.
96705         (LIB_NANOSLEEP): Set and AC_SUBST.
96706
96707 2000-05-06  Jim Meyering  <meyering@lucent.com>
96708
96709         * lib/strnlen.c: Undefine __strnlen and strnlen.
96710         [!weak_alias]: Define __strnlen to strnlen.
96711
96712         * lib/atexit.c: New file, from libiberty.
96713
96714 2000-05-06  Jim Meyering  <meyering@lucent.com>
96715
96716         * lib/closeout.c (close_stdout_status): Also check for errors on the
96717         stderr stream.
96718
96719 2000-05-05  Jim Meyering  <meyering@lucent.com>
96720
96721         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96722         AC_SEARCH_LIBS call for clock_gettime.
96723         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96724
96725         * m4/search-libs.m4: Update from autoconf.
96726
96727         su doesn't work on Solaris 2.6.
96728         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96729         <shadow.h>.  Reported by Dragos Harabor.
96730
96731 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96732
96733         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96734         memcpy instead of xmalloc, xrealloc, path_concat.
96735         (locale_charset): Treat empty environment variables as absent.
96736         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96737
96738 2000-05-04  Jim Meyering  <meyering@lucent.com>
96739
96740         * lib/getopt.c: Update from glibc.
96741         * lib/obstack.c: Likewise.
96742         * lib/obstack.h: Likewise.
96743         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96744         file
96745
96746         * lib/regex.h: Likewise.
96747         * lib/strndup.c: Likewise.
96748         * lib/strnlen.c: New file, from glibc.
96749
96750 2000-05-03  Jim Meyering  <meyering@lucent.com>
96751
96752         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96753
96754 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96755
96756         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96757         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96758         compile-time test, rather than inspecting host and OS, to
96759         decide whether to define _LARGEFILE_SOURCE.
96760
96761 2000-05-01  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96764
96765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96766         Based on a patch from Bruno Haible.
96767
96768 2000-05-01  Jim Meyering  <meyering@lucent.com>
96769
96770         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96771
96772 2000-04-29  Jim Meyering  <meyering@lucent.com>
96773
96774         * lib/path-concat.c: Declare strdup only if it's not defined.
96775         * lib/canon-host.c: Likewise.
96776
96777 2000-04-28  Jim Meyering  <meyering@lucent.com>
96778
96779         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96780         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96781         is included first, then limits.h is included by locale.h by libintl.h.
96782         From John David Anglin.
96783
96784 2000-04-25  Jim Meyering  <meyering@lucent.com>
96785
96786         * lib/makepath.c (S_IRWXUGO): Define.
96787         (make_path): Always perform explicit chmod if MODE specifies any
96788         of the `special' permission bits.  Prompted by a bug report against
96789         install from Mate Wierdl and Joost van Baal.
96790
96791 2000-04-18  Jim Meyering  <meyering@lucent.com>
96792
96793         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96794         (jm_PREREQ): Use it.
96795
96796 2000-04-18  Jim Meyering  <meyering@lucent.com>
96797
96798         * lib/README: New file.
96799
96800         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96801         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96802
96803 2000-04-17  Jim Meyering  <meyering@lucent.com>
96804
96805         Get it right :-)
96806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96807         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96808         Suggestion from Akim Demaille.
96809
96810 2000-04-17  Jim Meyering  <meyering@lucent.com>
96811
96812         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96813         the definition of it to rpl_strftime also defined-away the system's
96814         declaration.
96815
96816 2000-04-15  Jim Meyering  <meyering@lucent.com>
96817
96818         Use `C' to denote so-called `contiguous' files, the same way
96819         that tar does.
96820         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96821         (ftypelet): Use S_ISCTG.
96822         From Michael Deutschmann.
96823
96824 2000-04-14  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96827         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96828         clobbered.
96829
96830 2000-04-14  Jim Meyering  <meyering@lucent.com>
96831
96832         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96833
96834 2000-04-13  Jim Meyering  <meyering@lucent.com>
96835
96836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96837         AH_VERBATIM to insert required #ifndef into config.h.in.
96838         Suggestion from Akim Demaille.
96839
96840 2000-04-12  Jim Meyering  <meyering@lucent.com>
96841
96842         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96843         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96844         Christian Krackowizer.
96845
96846         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96847         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96848         (AC_SYS_LARGEFILE): Require.
96849         (AM_C_PROTOTYPES): Require.
96850
96851 2000-04-08  Jim Meyering  <meyering@lucent.com>
96852
96853         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96854         names don't conflict.  Reported by Eli Zaretskii.
96855
96856 2000-04-07  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96859         sys/types.h, to work around system header problems on AIX 3.2.5.
96860         From Bruno Haible.
96861
96862 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96863
96864         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96865         bug.  Deal with the different error behavior of Irix iconv.
96866
96867 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96868
96869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96870         IRIX if the installer said otherwise.
96871
96872 2000-04-05  Jim Meyering  <meyering@lucent.com>
96873
96874         Portability tweaks required for ultrix4.3.
96875         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96876         (jm_CHECK_DECLS): Add getutent to the list of functions.
96877         (_jm_DECL_HEADERS): Add utmpx.h.
96878         From John David Anglin.
96879
96880         * m4/strftime.m4: Back out the 2000-04-02 change.
96881         Instead of that change, simply undefine putenv in the test program.
96882
96883 2000-04-05  Jim Meyering  <meyering@lucent.com>
96884
96885         Portability tweaks required for ultrix4.3.
96886         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96887         getutent.
96888         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96889         * lib/canon-host.c: Declare strdup.
96890         * lib/path-concat.c: Likewise.
96891         From John David Anglin.
96892
96893 2000-04-04  Jim Meyering  <meyering@lucent.com>
96894
96895         Be more DOS 8.3-friendly.
96896         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96897         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96898         * lib/Makefile.am: Reflect renaming.
96899         Reported by Eli Zaretskii.
96900
96901         Use a temporary file name that won't clash with `charset.alias'
96902         in the DOS 8.3 name space.
96903         * lib/Makefile.am (charset_tmp): Define.
96904         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96905         (uninstall-local): Likewise.
96906         Reported by Eli Zaretskii.
96907
96908 2000-04-03  Jim Meyering  <meyering@lucent.com>
96909
96910         * m4/gettext.m4: Fix typo in comment.
96911
96912         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96913         textutils/configure.in).  Suggestion from Paul Eggert.
96914         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96915
96916 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96917
96918         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96919         variable in the shell rather than using putenv, which isn't
96920         portable.  This avoids the configure-time inter-test dependency
96921         on the potentially-renamed putenv function.
96922
96923 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96924
96925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96926         before checking struct stat.st_blksize, so that
96927         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96928
96929 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96930
96931         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96932         since strftime.c uses HAVE_STRFTIME to decide whether to use
96933         the underlying strftime.
96934
96935 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96936
96937         * lib/time/strftime.c (my_strftime): Make sure we call the system
96938         strftime, not ourselves, when invoking the underlying strftime.
96939
96940 2000-03-24  Jim Meyering  <meyering@lucent.com>
96941
96942         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96943         (charset_alias): Define.
96944         (install-exec-local): Factor out common code.
96945         (uninstall-local): Split lines longer than 80.
96946         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96947         (SUFFIXES): Define.
96948         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96949         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96950
96951 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96952
96953         * lib/config.charset: Output a line containing "Packages using this
96954         file".
96955         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96956         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96957         ref-del.sed): New rules.
96958
96959 2000-03-17  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96962         Otherwise, include <strings.h>
96963
96964 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96965
96966         * lib/unicodeio.c (utf8_wctomb): New function.
96967         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96968         format instead of in UCS-4 with platform dependent endianness.
96969
96970 2000-03-10  Jim Meyering  <meyering@lucent.com>
96971
96972         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96973         From Marco Franzen.
96974
96975 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96976
96977         * lib/savedir.c (savedir): Work even if directory size is
96978         negative; this can happen with some screwy NFS configurations.
96979
96980 2000-03-06  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96983         if it's NULL (because we ran out of memory).  From Bruno Haible.
96984
96985 2000-03-05  Jim Meyering  <meyering@lucent.com>
96986
96987         * lib/localcharset.c ("path-concat.h"): Include.
96988         (get_charset_aliases): Use path_concat instead of ANSI string
96989         concatenation.
96990
96991         * lib/unicodeio.h (PARAMS): Define.
96992         Use it to guard prototype.
96993
96994 2000-03-04  Jim Meyering  <meyering@lucent.com>
96995
96996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96997         for lib/localcharset.c.
96998
96999 2000-03-04  Jim Meyering  <meyering@lucent.com>
97000
97001         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97002         installing into it.
97003         (uninstall-local): Uncomment this rule so `make distcheck' works
97004         once again.
97005
97006         * lib/unicodeio.c (<errno.h>): Include it.
97007         (errno): Declare if not defined.
97008
97009         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97010
97011         * lib/config.charset: New version, incorporating remarks from a linux
97012         i18n mailing list.  From Bruno Haible.
97013
97014 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97015
97016         * m4/codeset.m4: New file.
97017         * m4/iconv.m4: New file.
97018         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97019
97020 2000-03-03  Jim Meyering  <meyering@lucent.com>
97021
97022         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97023
97024 2000-03-02  Jim Meyering  <meyering@lucent.com>
97025
97026         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97027         the messages come out on separate lines.
97028
97029         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97030         rather than jm_CHECK_DECLARATIONS.
97031         * m4/decl.m4: Remove now-unused file.
97032
97033         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97034         geteuid.
97035
97036 2000-03-02  Jim Meyering  <meyering@lucent.com>
97037
97038         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97039
97040 2000-03-01  Jim Meyering  <meyering@lucent.com>
97041
97042         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97043         * lib/unicodeio.c: Likewise.
97044
97045 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97046
97047         * lib/config.charset: New file.
97048         * lib/localcharset.c: New file.
97049         * lib/unicodeio.h, lib/unicodeio.c: New files.
97050         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97051         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97052         (noinst_HEADERS): Add unicodeio.h.
97053         (all-local, install-exec-local, charset.alias): New targets.
97054
97055 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97056
97057         * lib/quotearg.c (ALERT_CHAR): New macro.
97058         (quotearg_buffer_restyled): Use it.
97059
97060 2000-02-27  Jim Meyering  <meyering@lucent.com>
97061
97062         * m4/check-decl.m4: Add getenv to the list.
97063
97064 2000-02-27  Jim Meyering  <meyering@lucent.com>
97065
97066         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97067         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97068
97069         * lib/backupfile.c: Guard inclusion of stdlib.h with
97070         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97071         Declare malloc if needed.
97072
97073         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97074         `#ifndef HAVE_DECL..'
97075         now that autoconf always defines the HAVE_DECL_ symbols.
97076         * lib/human.c: Likewise.
97077         * lib/same.c: Likewise.
97078         * lib/strtoumax.c: Likewise.
97079
97080         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97081         declaration check was not run.
97082         * lib/hash.c: Likewise.
97083         * lib/human.c: Likewise.
97084         * lib/same.c: Likewise.
97085         * lib/strtoumax.c: Likewise.
97086
97087         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97088         `.', then first look up the entire `.'-containing string as a login
97089         name.
97090
97091 2000-02-23  Jim Meyering  <meyering@lucent.com>
97092
97093         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97094         in place of my hack.
97095
97096 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97097
97098         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97099         (textint): New typedef.
97100         (parser_control): Member year changed from int to textint.
97101         All uses changed.
97102         (YYSTYPE): Removed; replaced by %union with int and textint members.
97103         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97104         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97105         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97106         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97107         (date, number, to_year): Use width of number in digits, not its value,
97108         to determine whether it's a 2-digit year, or a 2-digit time.
97109         (yylex): Store number of digits of numeric tokens.
97110         Reported by John Kendall.
97111
97112         (parser_control): Changed from struct parser_control to typedef (for
97113         consistency).  All uses changed.
97114
97115         (tID): Removed; not used.
97116         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97117
97118 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97119
97120         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97121         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97122
97123 2000-02-12  Jim Meyering  <meyering@lucent.com>
97124
97125         * lib/userspec.c (ISDIGIT): Define it.
97126         (isdigit): Remove definition.
97127         (is_number): Use ISDIGIT, not isdigit.
97128         <libintl.h>: Include.
97129         (_ and N_): Define.
97130         (parse_user_spec): Mark translatable strings.
97131
97132 2000-02-10  Jim Meyering  <meyering@lucent.com>
97133
97134         With these changes, nanosleep.[ch] are finally enough like the other
97135         lib/* replacement files to compile on a few more losing systems.
97136
97137         * lib/nanosleep.h: Don't include config.h.
97138         Remove prototype from declaration of nanosleep.
97139         (PARAMS): Remove now-unneeded definition.
97140         * lib/nanosleep.c: #undef nanosleep.
97141         (rpl_nanosleep): Rename from nanosleep.
97142
97143 2000-02-10  Jim Meyering  <meyering@lucent.com>
97144
97145         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97146         gnu_nanosleep to rpl_nanosleep.
97147
97148 2000-02-09  Jim Meyering  <meyering@lucent.com>
97149
97150         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97151         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97152
97153 2000-02-08  Akim Demaille  <akim@epita.fr>
97154
97155         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97156         `[' and `]' and remove uses of `changequote'.
97157         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97158         (AC_SYS_LARGEFILE): Likewise.
97159         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97160         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97161         of changequote.
97162         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97163         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97164         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97165         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97166
97167 2000-02-05  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97170         Remove explicit use of AC_HEADER_TIME.  It is required by
97171         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97172         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97173         in autoconf whereby the expansion of the latter ended up preceding
97174         the expansion of its prerequisite, AC_HEADER_TIME.
97175         Reported by Volker Borchert.
97176
97177 2000-02-03  Jim Meyering  <meyering@lucent.com>
97178
97179         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97180
97181 2000-02-03  Jim Meyering  <meyering@lucent.com>
97182
97183         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97184         rather than with `#if HAVE_UTMPNAME'.
97185
97186 2000-02-02  Jim Meyering  <meyering@lucent.com>
97187
97188         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97189         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97190         Reported by Eli Zaretskii.
97191
97192 2000-02-01  Jim Meyering  <meyering@lucent.com>
97193
97194         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97195
97196 2000-01-31  Jim Meyering  <meyering@lucent.com>
97197
97198         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97199         functions.  Add the time.h and sys/time.h headers along with the
97200         AC_REQUIRE'ment of AC_HEADER_TIME.
97201
97202 2000-01-31  Jim Meyering  <meyering@lucent.com>
97203
97204         * lib/nanosleep.h (nanosleep): Guard declaration with
97205         `#if ! HAVE_DECL_NANOSLEEP'.
97206         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97207         the declaration in that vendor's sys/timers.h.
97208         Reported by Christian Krackowizer.
97209
97210         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97211         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97212         (ISPRINT): Likewise.
97213         Reported by Tom Tromey.
97214
97215 2000-01-30  Jim Meyering  <meyering@lucent.com>
97216
97217         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97218
97219         * m4/prereq.m4 (utmp_includes): Define.
97220         Check for ut_user and ut_name members in both struct utmpx
97221         and struct utmp.
97222
97223 2000-01-30  Jim Meyering  <meyering@lucent.com>
97224
97225         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97226         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97227         header files where only utmpx.ut_user is declared.
97228
97229         * lib/readutmp.h (UT_USER): Define.
97230
97231 2000-01-29  Jim Meyering  <meyering@lucent.com>
97232
97233         * m4/lib-check.m4: New file containing library-related checks from
97234         fileutils and sh-utils (textutils had none).
97235
97236 2000-01-28  Jim Meyering  <meyering@lucent.com>
97237
97238         * m4/perl.m4: Change format of warning message to look more like that
97239         from the missing script.  Suggestion from François Pinard.
97240
97241 2000-01-25  Jim Meyering  <meyering@lucent.com>
97242
97243         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97244         well as time.h in the compile check.
97245         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97246         Fix typo in cross-compiling case: s/yes/no/.
97247
97248 2000-01-23  Jim Meyering  <meyering@lucent.com>
97249
97250         * m4/jm-macros.m4: Move df-related tests here from
97251         fileutils/configure.in
97252
97253         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97254         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97255
97256         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97257         s/space/ac_fsusage_space/.
97258         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97259
97260         * m4/ftruncate.m4: New file (derived from part of
97261         fileutils/configure.in).
97262         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97263         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97264
97265         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97266         AC_SUBST these here, rather than just in sh-util/configure.in, so
97267         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97268         all the same.
97269         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97270         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97271         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97272         (AC_SUBST(POW_LIBM)): Likewise.
97273         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97274
97275 2000-01-23  Jim Meyering  <meyering@lucent.com>
97276
97277         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97278         obstack.c.
97279
97280 2000-01-22  Jim Meyering  <meyering@lucent.com>
97281
97282         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97283
97284         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97285
97286         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97287         configure.in
97288         (AC_CHECK_HEADERS): Likewise for sh-utils.
97289         (AC_CHECK_HEADERS): Likewise for textutils.
97290         Merge the three lists of headers.
97291
97292         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97293         from fileutils' configure.in.
97294
97295         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97296         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97297         check-decl.m4.
97298
97299         * m4/check-decl.m4: Use #if rather than #ifdef.
97300         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97301         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97302         (_jm_DECL_HEADERS): Define new function.
97303         (jm_CHECK_DECLARATIONS): Require it.
97304
97305 2000-01-22  Jim Meyering  <meyering@lucent.com>
97306
97307         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97308         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97309         Required for some AIX systems.  Reported by Christian Krackowizer.
97310         [TESTING] (main): New function.
97311
97312         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97313         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97314         letters.
97315
97316         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97317         iswprint.
97318
97319         * lib/strverscmp.c (ISDIGIT): Define.
97320         (strverscmp): Use ISDIGIT, not isdigit.
97321
97322 2000-01-19  Jim Meyering  <meyering@lucent.com>
97323
97324         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97325         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97326         defines `struct timespec' in <sys/time.h>
97327
97328         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97329         Thanks to Akim for explaining.
97330
97331 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97332
97333         * lib/nanosleep.c (nanosleep):
97334         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97335         POSIX.1 doesn't require SA_INTERRUPT and some systems
97336         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97337         it's been part of POSIX.1 since day 1 (in 1988).
97338
97339 2000-01-17  Jim Meyering  <meyering@lucent.com>
97340
97341         * lib/interlock: Remove unused file.  Reported by François Pinard.
97342
97343 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97344
97345         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97346         alert, backslash, formfeed, and vertical tab unnecessarily in
97347         shell quoting style.
97348
97349 2000-01-16  Jim Meyering  <meyering@lucent.com>
97350
97351         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97352         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97353         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97354         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97355
97356 2000-01-16  Jim Meyering  <meyering@lucent.com>
97357
97358         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97359         because the latter didn't work.
97360
97361 2000-01-15  Jim Meyering  <meyering@lucent.com>
97362
97363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97364         (AC_REPLACE_FUNCS): Add memcpy and memset.
97365         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97366         Add strpbrk.
97367         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97368
97369 2000-01-12  Jim Meyering  <meyering@lucent.com>
97370
97371         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97372         (jm_PREREQ): Use it.
97373         (jm_PREREQ_READUTMP): New macro.
97374         (jm_PREREQ): Use it.
97375
97376 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97377
97378         Quote multibyte characters correctly.
97379         * m4/c-bs-a.m4: New file.
97380         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97381         (jm_PREREQ): Use it.
97382
97383 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97384
97385         * m4/uintmax_t.m4: Port to autoconf 2.13.
97386
97387 2000-01-08  Jim Meyering  <meyering@ascend.com>
97388
97389         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97390         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97391
97392 2000-01-04  Jim Meyering  <meyering@ascend.com>
97393
97394         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97395         jm_STRUCT_DIRENT_D_TYPE.
97396         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97397         jm_STRUCT_DIRENT_D_INO.
97398         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97399         jm_STRUCT_UTIMBUF.
97400         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97401         renamings.
97402         * m4/utime.m4: Likewise.
97403
97404         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97405         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97406
97407 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97408
97409         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97410         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97411
97412 2000-01-02  Jim Meyering  <meyering@ascend.com>
97413
97414         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97415         remember if this is necessary.
97416
97417 1999-12-26  Jim Meyering  <meyering@ascend.com>
97418
97419         * m4/jm-macros.m4: Use it here.
97420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97421
97422 1999-12-23  Jim Meyering  <meyering@ascend.com>
97423
97424         * m4/jm-macros.m4: Check for clock_gettime (moved from
97425         fileutils/configure.in)
97426         Check for gettimeofday.
97427
97428 1999-12-20  Jim Meyering  <meyering@ascend.com>
97429
97430         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97431         autoconf-2.14a-1999-12-20.
97432
97433 1999-12-19  Jim Meyering  <meyering@ascend.com>
97434
97435         * m4/lstat-slash.m4: New file.
97436         * m4/jm-macros.m4: Use the new macro:
97437         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97438
97439 1999-12-07  Jim Meyering  <meyering@ascend.com>
97440
97441         * m4/perl.m4: Require that File::Compare be available, too.
97442         Too many systems seem to lack it.
97443
97444         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97445         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97446
97447 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97448
97449         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97450         problem with the QNX 4.25 shell, which doesn't propagate exit
97451         status of failed commands inside shell assignments.
97452
97453 1999-11-17  Jim Meyering  <meyering@ascend.com>
97454
97455         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97456
97457 1999-11-07  Jim Meyering  <meyering@ascend.com>
97458
97459         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97460
97461 1999-11-06  Jim Meyering  <meyering@ascend.com>
97462
97463         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97464         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97465
97466 1999-11-05  Jim Meyering  <meyering@ascend.com>
97467
97468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97469         configure.in of textutils, fileutils, and sh-utils into this one
97470         (shared between those packages) file.
97471         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97472         AC_STRUCT_ST_BLKSIZE.
97473
97474 1999-11-03  Jim Meyering  <meyering@ascend.com>
97475
97476         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97477         of AC_CHECK_TYPE checks includes unistd.h.
97478         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97479         Suggestion from Akim Demaille.
97480
97481 1999-10-30  Jim Meyering  <meyering@ascend.com>
97482
97483         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97484         m4-quoted string.
97485         * m4/ls-mntd-fs.m4: Likewise.
97486         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97487         * m4/jm-winsz1.m4: Likewise.
97488
97489         * m4/const.m4: Remove file, since the fix made it into the experimental
97490         version of autoconf.
97491         * m4/mktime.m4: Likewise.
97492
97493         * m4/check-type.m4: Remove file, now that the latest version of
97494         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97495
97496         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97497         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97498         AC_CHECK_TYPE.
97499
97500 1999-10-04  Jim Meyering  <meyering@ascend.com>
97501
97502         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97503
97504 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97505
97506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97507         2.95.1 bug with HP-UX 10.20.
97508
97509 1999-09-17  Jim Meyering  <meyering@ascend.com>
97510
97511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97512         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97513         due to missing strdup (against sh-utils-2.0).
97514
97515 1999-08-29  Jim Meyering  <meyering@ascend.com>
97516
97517         * m4/jm-macros.m4: Require jm_BISON.
97518         * m4/bison.m4: New file.
97519
97520 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97521
97522         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97523         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97524
97525 1999-08-05  Jim Meyering  <meyering@ascend.com>
97526
97527         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97528         to avoid conflicts with `conftest' on 8+3 filesystems.
97529         Suggestion from Eli Zaretskii.
97530
97531 1999-08-04  Jim Meyering  <meyering@ascend.com>
97532
97533         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97534         fileutils and sh-utils (textutils's getline test was inadequate).
97535         (AM_FUNC_GETLINE): Run this test.
97536         (AC_CHECK_FUNCS): Check for getdelim.
97537         Reported by Bob Proulx.
97538
97539 1999-08-02  Jim Meyering  <meyering@ascend.com>
97540
97541         * m4/jm-macros.m4: Add a comment.
97542
97543 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97544
97545         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97546         <inttypes.h> defines strtoumax as a macro (and not as a
97547         function).
97548
97549 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97550
97551         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97552         that we can shift, multiply and divide unsigned long long
97553         values; Ultrix cc can't do it.
97554
97555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97556
97557         * m4/mktime.m4: New file, which is a preview of what should appear
97558         in the next public autoconf release.
97559
97560 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97561
97562         * m4/lfs.m4: Remove this file.
97563         * m4/largefile.m4: New file.  It contains the old contents of
97564         lfs.m4, except that all names with prefix AC_LFS have been
97565         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97566         compatible with future autoconf versions.  Also, some minor m4
97567         quoting problems have been fixed.
97568
97569 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97570
97571         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97572         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97573         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97574         and simplify the shell code.
97575
97576 1999-08-01  Jim Meyering  <meyering@ascend.com>
97577
97578         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97579         m4.
97580
97581 1999-07-20  Jim Meyering  <meyering@ascend.com>
97582
97583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97584
97585 1999-07-15  Jim Meyering  <meyering@ascend.com>
97586
97587         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97588
97589 1999-05-22  Jim Meyering  <meyering@ascend.com>
97590
97591         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97592
97593 1999-05-20  Jim Meyering  <meyering@ascend.com>
97594
97595         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97596         Add a colon after each `then' in case $4 is empty.
97597
97598 1999-05-16  Jim Meyering  <meyering@ascend.com>
97599
97600         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97601
97602 1999-05-10  Jim Meyering  <meyering@ascend.com>
97603
97604         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97605
97606         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97607         AC_FUNC_MKTIME.
97608
97609 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97610
97611         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97612
97613 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97614
97615         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97616         not CPPFLAGS, so that linking works correctly in IRIX.
97617
97618 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97619
97620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97621
97622 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97623
97624         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97625         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97627         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97628         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97629
97630         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97631
97632 1999-04-20  Jim Meyering  <meyering@ascend.com>
97633
97634         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97635         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97636         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97637
97638 1999-04-18  Jim Meyering  <meyering@ascend.com>
97639
97640         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97641         * m4/jm-macros.m4: Use it.
97642
97643 1999-04-06  Jim Meyering  <meyering@ascend.com>
97644
97645         * m4/strftime.m4: Remove test for %f.
97646
97647 1999-03-29  Jim Meyering  <meyering@ascend.com>
97648
97649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97650         superset of the AC_TYPE_* checks in the textutils, fileutils,
97651         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97652         AC_TYPE_PID_T.
97653
97654 1999-03-28  Jim Meyering  <meyering@ascend.com>
97655
97656         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97657         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97658         replaced e.g., in the *.sh files of the sh-utils.
97659
97660 1999-03-20  Jim Meyering  <meyering@ascend.com>
97661
97662         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97663         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97664         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97665
97666 1999-03-19  Jim Meyering  <meyering@ascend.com>
97667
97668         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97669
97670 1999-03-12  Jim Meyering  <meyering@ascend.com>
97671
97672         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97673
97674 1999-03-07  Jim Meyering  <meyering@ascend.com>
97675
97676         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97677         declared.
97678
97679 1999-02-17  Jim Meyering  <meyering@ascend.com>
97680
97681         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97682         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97683
97684 1999-02-07  Jim Meyering  <meyering@ascend.com>
97685
97686         * m4/group-member.m4: New file -- extracted from sh-utils'
97687         configure.in.
97688
97689         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97690         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97691
97692 1999-02-06  Jim Meyering  <meyering@ascend.com>
97693
97694         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97695         * m4/fnmatch.m4: Likewise.
97696         * m4/getgroups.m4: Likewise.
97697         * m4/lstat.m4: Likewise.
97698         * m4/malloc.m4: Likewise.
97699         * m4/putenv.m4: Likewise.
97700         * m4/realloc.m4: Likewise.
97701         * m4/regex.m4: Likewise.
97702         * m4/stat.m4: Likewise.
97703         * m4/strftime.m4: Likewise.
97704         Suggestion from Alain Magloire.
97705
97706         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97707         * m4/fnmatch.m4: Likewise.
97708         * m4/getgroups.m4: Likewise.
97709         * m4/getline.m4: Likewise.
97710         * m4/lstat.m4: Likewise.
97711         * m4/malloc.m4: Likewise.
97712         * m4/memcmp.m4: Likewise.
97713         * m4/putenv.m4: Likewise.
97714         * m4/realloc.m4: Likewise.
97715         * m4/regex.m4: Likewise.
97716         * m4/stat.m4: Likewise.
97717         * m4/strftime.m4: Likewise.
97718         Suggestion from Alain Magloire.
97719
97720         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97721         an argument.
97722
97723         * m4/regex.m4: Add a run-time Test for proper operation of
97724         re_compile_pattern.
97725
97726 1999-01-31  Jim Meyering  <meyering@ascend.com>
97727
97728         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97729
97730 1999-01-30  Jim Meyering  <meyering@ascend.com>
97731
97732         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97733
97734         * m4/jm-mktime.m4: Make this a wrapper around the official
97735         AM_FUNC_MKTIME rather than my private copy, now that the official one
97736         is up to date.
97737         * m4/mktime.m4: Remove file.
97738
97739         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97740         * m4/uptime.m4: Likewise.
97741         * m4/uintmax_t.m4: Likewise.
97742
97743 1999-01-28  Jim Meyering  <meyering@ascend.com>
97744
97745         * m4/jm-macros.m4: Use jm_AFS.
97746         * m4/afs.m4: New file (from fileutils' configure.in).
97747
97748         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97749         * m4/chown.m4: Likewise.
97750         * m4/d-ino.m4: Likewise.
97751         * m4/d-type.m4: Likewise.
97752         * m4/fnmatch.m4: Likewise.
97753         * m4/getgroups.m4: Likewise.
97754         * m4/gettext.m4: Likewise.
97755         * m4/jm-mktime.m4: Likewise.
97756         * m4/jm-winsz2.m4: Likewise.
97757         * m4/lcmessage.m4: Likewise.
97758         * m4/ls-mntd-fs.m4: Likewise.
97759         * m4/malloc.m4: Likewise.
97760         * m4/memcmp.m4: Likewise.
97761         * m4/putenv.m4: Likewise.
97762         * m4/realloc.m4: Likewise.
97763         * m4/st_mtim.m4: Likewise.
97764         * m4/strftime.m4: Likewise.
97765
97766 1999-01-16  Jim Meyering  <meyering@ascend.com>
97767
97768         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97769         (ARGMATCH_DIE_DECL): Define.
97770
97771 1999-01-12  Jim Meyering  <meyering@ascend.com>
97772
97773         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97774         Reported by Lars Hecking.
97775
97776 1999-01-10  Jim Meyering  <meyering@ascend.com>
97777
97778         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97779         gross kludge.
97780         * m4/inttypes_h.m4: Likewise.
97781         * m4/lstat.m4: Likewise.
97782         * m4/malloc.m4: Likewise.
97783         * m4/readdir.m4: Likewise.
97784         * m4/realloc.m4: Likewise.
97785         * m4/st_dm_mode.m4: Likewise.
97786         * m4/stat.m4: Likewise.
97787         * m4/utimbuf.m4: Likewise.
97788         * m4/utimes.m4: Likewise.
97789
97790         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97791         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97792         comments in config.h.in are meaningful.
97793
97794         * m4/jm-macros.m4: Require autoconf-2.13 here.
97795
97796         * m4/regex.m4: By default, don't use the included regex.c on systems
97797         with glibc 2.  Suggestion from Uli Drepper.
97798
97799 1999-01-02  Jim Meyering  <meyering@ascend.com>
97800
97801         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97802
97803 1998-12-18  Jim Meyering  <meyering@ascend.com>
97804
97805         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97806         Based on a suggestion from Lars Hecking.
97807
97808 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97809
97810         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97811
97812 1998-11-16  Jim Meyering  <meyering@ascend.com>
97813
97814         * m4/lfs.m4: Double-quote the `uname...` expression.
97815
97816 1998-11-14  Jim Meyering  <meyering@ascend.com>
97817
97818         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97819         * m4/stat.m4: Likewise.
97820
97821 1998-11-03  Jim Meyering  <meyering@ascend.com>
97822
97823         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97824         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97825
97826 1998-10-18  Jim Meyering  <meyering@ascend.com>
97827
97828         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97829
97830 1998-10-17  Jim Meyering  <meyering@ascend.com>
97831
97832         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97833         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97834         calls for those previously hard-coded headers.  Instead, take a new
97835         parameter.
97836         (jm_CHECK_DECLARATIONS): Reflect interface change.
97837         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97838         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97839
97840         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97841
97842 1998-10-14  Jim Meyering  <meyering@ascend.com>
97843
97844         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97845         instead of "TZ=America/Vancouver".  From Paul Eggert.
97846
97847 1998-10-11  Jim Meyering  <meyering@ascend.com>
97848
97849         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97850         This adds a test for a recently added compatibility fix for mktime.c.
97851         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97852
97853 1998-09-27  Jim Meyering  <meyering@ascend.com>
97854
97855         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97856
97857         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97858         ../configure.in, including a change from Gordon Matzigkeit to allow
97859         cross-compiling for the Hurd.
97860
97861         * m4/glibc.m4: New file/macro to test for the GNU C Library
97862         versions 1 and 2.  From Gordon Matzigkeit.
97863         Indent.
97864
97865 1998-09-21  Jim Meyering  <meyering@ascend.com>
97866
97867         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97868
97869 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97870
97871         Port nanosecond-resolution times to UnixWare 2.1.2 and
97872         pedantic Solaris 2.6.
97873
97874         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97875         AC_STRUCT_ST_MTIM.
97876         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97877         Generate name of ns member, instead of just 1 or undef.
97878         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97879
97880 1998-08-15  Jim Meyering  <meyering@ascend.com>
97881
97882         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97883         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97884         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97885         instead of jm_TYPE_SSIZE_T.
97886
97887 1998-08-12  Jim Meyering  <meyering@ascend.com>
97888
97889         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97890
97891 1998-08-02  Jim Meyering  <meyering@ascend.com>
97892
97893         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97894         in acconfig.h manually.
97895
97896 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97897
97898         * m4/st_mtim.m4: New file.
97899
97900 1998-07-28  Jim Meyering  <meyering@ascend.com>
97901
97902         * m4/utimes.m4: Undef stat.
97903
97904 1998-07-25  Jim Meyering  <meyering@ascend.com>
97905
97906         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97907         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97908
97909 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97910
97911         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97912         uid and gid actually remain unchanged.
97913
97914 1998-07-07  Jim Meyering  <meyering@ascend.com>
97915
97916         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97917
97918 1998-07-04  Jim Meyering  <meyering@ascend.com>
97919
97920         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97921         to prove that this macro can be used in packages without regex.c.
97922
97923 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97924
97925         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97926         is to be used.
97927
97928 1998-07-03  Jim Meyering  <meyering@ascend.com>
97929
97930         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97931
97932         * m4/gettext.m4: New file -- from gettext-0.10.35.
97933         * m4/lcmessage.m4: Likewise.
97934         * m4/progtest.m4: Likewise.
97935
97936         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97937         * m4/jm-macros.m4: Require the new macro.
97938
97939 1998-06-29  Jim Meyering  <meyering@ascend.com>
97940
97941         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97942         for the definition of NGROUPS (used in a system header included
97943         by sys/mount.h).
97944
97945 1998-06-28  Jim Meyering  <meyering@ascend.com>
97946
97947         * m4/ls-mntd-fs.m4: New file.
97948         * m4/fstypename.m4: New file.
97949
97950         * m4/jm-macros.m4: Require the new macro.
97951         * m4/jm-glibc-io.m4: New file.
97952
97953 1998-05-19  Jim Meyering  <meyering@ascend.com>
97954
97955         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97956         * m4/lchown.m4: New file.
97957
97958         * m4/Makefile.am.in: New file.
97959         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97960
97961 1998-05-14  Jim Meyering  <meyering@ascend.com>
97962
97963         * m4/Makefile.am (EXTRA_DIST): Add them.
97964         * m4/jm-macros.m4: New file.
97965         * m4/utimbuf.m4: New file.
97966
97967 1998-05-12  Jim Meyering  <meyering@ascend.com>
97968
97969         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97970
97971 1998-05-11  Jim Meyering  <meyering@ascend.com>
97972
97973         * m4/isc-posix.m4: New file.
97974
97975 1998-05-10  Jim Meyering  <meyering@ascend.com>
97976
97977         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97978
97979 1998-05-09  Jim Meyering  <meyering@ascend.com>
97980
97981         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97982         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97983         with automake.
97984
97985         * m4/ssize_t.m4: New file.
97986         * m4/mktime.m4: Remove file -- the new automake has this now.
97987
97988 1998-04-26  Jim Meyering  <meyering@ascend.com>
97989
97990         * m4/assert.m4: New file.
97991         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97992
97993 1998-04-05  Jim Meyering  <meyering@ascend.com>
97994
97995         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97996         (jm_PREREQ): Use it here.
97997
97998 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97999
98000         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98001         in acconfig.h.
98002
98003 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98004
98005         * m4/prereq.m4: New file.
98006         * m4/error.m4: New file.
98007         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98008
98009 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98010
98011         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98012         cache-check for the same variable -- that defeated the purpose of
98013         the test; the test program was never run.  This was a problem only
98014         on systems with losing getline functions -- HP-UX 10.20 is one.
98015         Reported by Bjorn Helgaas.
98016
98017 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98018
98019         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98020
98021 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98022
98023         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98024
98025         * m4/const.m4: New file.  Use an initializer in this declaration
98026         typedef int charset[2]; const charset x;
98027         Reported by Bob Glickstein.
98028
98029 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98030
98031         * m4/chown.m4: Fix reversed types on -1 args to chown.
98032         From Kaveh Ghazi.
98033
98034 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98035
98036         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98037         Add lseek and memchr.
98038
98039         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98040         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98041         have a 20-character limit on names.
98042
98043 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98044
98045         * m4/inttypes_h.m4: New file.
98046         * m4/uintmax_t.m4: New file.
98047         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98048
98049
98050         -----
98051
98052         Local Variables:
98053         coding: utf-8
98054         End:
98055
98056         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98057
98058         Copying and distribution of this file, with or without
98059         modification, are permitted provided the copyright notice
98060         and this notice are preserved.